Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
df3b9ffd
ShopXO
项目概览
飞鱼0526
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
df3b9ffd
编写于
4月 20, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
840f1bc0
变更
36
隐藏空白更改
内联
并排
Showing
36 changed file
with
215 addition
and
97 deletion
+215
-97
application/service/BuyService.php
application/service/BuyService.php
+1
-1
application/service/GoodsCommentsService.php
application/service/GoodsCommentsService.php
+0
-1
public/static/common/css/common.css
public/static/common/css/common.css
+3
-1
public/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png
...oad/images/app_center_nav/2020/02/01/1580558516351420.png
+0
-0
public/static/upload/images/app_nav/2020/04/19/1587304154495133.png
...tic/upload/images/app_nav/2020/04/19/1587304154495133.png
+0
-0
public/static/upload/images/common/2019/01/14/1547448748316693.png
...atic/upload/images/common/2019/01/14/1547448748316693.png
+0
-0
sourcecode/alipay/pages/goods-category/goods-category.js
sourcecode/alipay/pages/goods-category/goods-category.js
+12
-1
sourcecode/alipay/pages/goods-detail/goods-detail.acss
sourcecode/alipay/pages/goods-detail/goods-detail.acss
+3
-3
sourcecode/alipay/pages/goods-search/goods-search.js
sourcecode/alipay/pages/goods-search/goods-search.js
+12
-0
sourcecode/alipay/pages/index/index.js
sourcecode/alipay/pages/index/index.js
+3
-1
sourcecode/baidu/pages/goods-category/goods-category.js
sourcecode/baidu/pages/goods-category/goods-category.js
+11
-0
sourcecode/baidu/pages/goods-detail/goods-detail.css
sourcecode/baidu/pages/goods-detail/goods-detail.css
+3
-3
sourcecode/baidu/pages/goods-search/goods-search.js
sourcecode/baidu/pages/goods-search/goods-search.js
+11
-0
sourcecode/baidu/pages/index/index.js
sourcecode/baidu/pages/index/index.js
+3
-1
sourcecode/qq/pages/goods-category/goods-category.js
sourcecode/qq/pages/goods-category/goods-category.js
+12
-1
sourcecode/qq/pages/goods-detail/goods-detail.qss
sourcecode/qq/pages/goods-detail/goods-detail.qss
+3
-3
sourcecode/qq/pages/goods-search/goods-search.js
sourcecode/qq/pages/goods-search/goods-search.js
+12
-0
sourcecode/qq/pages/index/index.js
sourcecode/qq/pages/index/index.js
+3
-1
sourcecode/toutiao/pages/goods-category/goods-category.js
sourcecode/toutiao/pages/goods-category/goods-category.js
+12
-1
sourcecode/toutiao/pages/goods-detail/goods-detail.ttss
sourcecode/toutiao/pages/goods-detail/goods-detail.ttss
+3
-3
sourcecode/toutiao/pages/goods-search/goods-search.js
sourcecode/toutiao/pages/goods-search/goods-search.js
+12
-0
sourcecode/toutiao/pages/index/index.js
sourcecode/toutiao/pages/index/index.js
+3
-1
sourcecode/weixin/app.js
sourcecode/weixin/app.js
+1
-1
sourcecode/weixin/images/plugins/weixinliveplayer/detail-status-icon.png
...in/images/plugins/weixinliveplayer/detail-status-icon.png
+0
-0
sourcecode/weixin/images/plugins/weixinliveplayer/detail-time-icon.png
...ixin/images/plugins/weixinliveplayer/detail-time-icon.png
+0
-0
sourcecode/weixin/images/plugins/weixinliveplayer/nav-player-icon.png
...eixin/images/plugins/weixinliveplayer/nav-player-icon.png
+0
-0
sourcecode/weixin/images/plugins/weixinliveplayer/nav-share-friend-icon.png
...images/plugins/weixinliveplayer/nav-share-friend-icon.png
+0
-0
sourcecode/weixin/images/plugins/weixinliveplayer/nav-share-poster-icon.png
...images/plugins/weixinliveplayer/nav-share-poster-icon.png
+0
-0
sourcecode/weixin/pages/goods-category/goods-category.js
sourcecode/weixin/pages/goods-category/goods-category.js
+12
-1
sourcecode/weixin/pages/goods-detail/goods-detail.wxss
sourcecode/weixin/pages/goods-detail/goods-detail.wxss
+3
-3
sourcecode/weixin/pages/goods-search/goods-search.js
sourcecode/weixin/pages/goods-search/goods-search.js
+11
-0
sourcecode/weixin/pages/index/index.js
sourcecode/weixin/pages/index/index.js
+3
-1
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.js
...de/weixin/pages/plugins/weixinliveplayer/detail/detail.js
+31
-47
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.wxml
.../weixin/pages/plugins/weixinliveplayer/detail/detail.wxml
+11
-7
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.wxss
.../weixin/pages/plugins/weixinliveplayer/detail/detail.wxss
+18
-8
sourcecode/weixin/pages/plugins/weixinliveplayer/index/index.js
...code/weixin/pages/plugins/weixinliveplayer/index/index.js
+3
-7
未找到文件。
application/service/BuyService.php
浏览文件 @
df3b9ffd
...
...
@@ -208,7 +208,7 @@ class BuyService
$where
[
'c.user_id'
]
=
$params
[
'user'
][
'id'
];
$field
=
'c.*, g.inventory_unit, g.is_shelves, g.is_delete_time, g.buy_min_number, g.buy_max_number, g.model'
;
$data
=
Db
::
name
(
'Cart'
)
->
alias
(
'c'
)
->
j
oin
([
'__GOODS__'
=>
'g'
],
'g.id=c.goods_id'
)
->
where
(
$where
)
->
field
(
$field
)
->
order
(
'c.id desc'
)
->
select
();
$data
=
Db
::
name
(
'Cart'
)
->
alias
(
'c'
)
->
leftJ
oin
([
'__GOODS__'
=>
'g'
],
'g.id=c.goods_id'
)
->
where
(
$where
)
->
field
(
$field
)
->
order
(
'c.id desc'
)
->
select
();
// 数据处理
if
(
!
empty
(
$data
))
...
...
application/service/GoodsCommentsService.php
浏览文件 @
df3b9ffd
...
...
@@ -276,7 +276,6 @@ class GoodsCommentsService
$v
[
'upd_time_date'
]
=
empty
(
$v
[
'upd_time'
])
?
null
:
date
(
'Y-m-d'
,
$v
[
'upd_time'
]);
}
}
//print_r($data);
return
DataReturn
(
'处理成功'
,
0
,
$data
);
}
...
...
public/static/common/css/common.css
浏览文件 @
df3b9ffd
...
...
@@ -276,8 +276,10 @@ button.colorpicker-submit:active {
-webkit-box-shadow
:
inset
0
3px
5px
rgba
(
0
,
0
,
0
,
0.15
);
box-shadow
:
inset
0
3px
5px
rgba
(
255
,
255
,
255
,
0.15
);
}
button
.colorpicker-submit
{
padding-right
:
10px
;
}
button
.colorpicker-submit
img
{
margin-right
:
7px
;
width
:
14px
;
height
:
14px
;
float
:
right
;
...
...
public/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png
100644 → 100755
浏览文件 @
df3b9ffd
文件模式从 100644 更改为 100755
public/static/upload/images/app_nav/2020/04/19/1587304154495133.png
0 → 100644
浏览文件 @
df3b9ffd
1.3 KB
public/static/upload/images/common/2019/01/14/1547448748316693.png
100644 → 100755
浏览文件 @
df3b9ffd
文件模式从 100644 更改为 100755
sourcecode/alipay/pages/goods-category/goods-category.js
浏览文件 @
df3b9ffd
...
...
@@ -85,5 +85,16 @@ Page({
// 事件
category_event
(
e
)
{
my
.
navigateTo
({
url
:
'
/pages/goods-search/goods-search?category_id=
'
+
e
.
target
.
dataset
.
value
});
}
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-category/goods-category?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/alipay/pages/goods-detail/goods-detail.acss
浏览文件 @
df3b9ffd
.goods-photo .swiper-item {
height:
6
5vh !important;
height:
5
5vh !important;
display: block;
}
...
...
@@ -243,12 +243,12 @@
}
.goods-video video {
width: 100%;
height:
6
5vh;
height:
5
5vh;
}
.goods-video-submit {
position: absolute;
left: 30rpx;
top: calc(
6
5vh - 110rpx);
top: calc(
5
5vh - 110rpx);
z-index: 2;
}
.goods-video-submit image {
...
...
sourcecode/alipay/pages/goods-search/goods-search.js
浏览文件 @
df3b9ffd
...
...
@@ -189,4 +189,16 @@ Page({
});
this
.
get_data_list
(
1
);
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-search/goods-search?referrer=
'
+
user_id
};
},
});
sourcecode/alipay/pages/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -199,10 +199,12 @@ Page({
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/index/index?
share=index
'
path
:
'
/pages/index/index?
referrer=
'
+
user_id
};
},
...
...
sourcecode/baidu/pages/goods-category/goods-category.js
浏览文件 @
df3b9ffd
...
...
@@ -101,4 +101,15 @@ Page({
});
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-category/goods-category?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/baidu/pages/goods-detail/goods-detail.css
浏览文件 @
df3b9ffd
.goods-photo
.swiper-item
,
swiper
{
height
:
6
5vh
!important
;
height
:
5
5vh
!important
;
display
:
block
;
}
...
...
@@ -241,12 +241,12 @@
}
.goods-video
video
{
width
:
100%
;
height
:
6
5vh
;
height
:
5
5vh
;
}
.goods-video-submit
{
position
:
absolute
;
left
:
30
rpx
;
top
:
calc
(
6
5vh
-
110
rpx
);
top
:
calc
(
5
5vh
-
110
rpx
);
z-index
:
2
;
}
.goods-video-submit
image
,
.cover-goods-video-close
{
...
...
sourcecode/baidu/pages/goods-search/goods-search.js
浏览文件 @
df3b9ffd
...
...
@@ -201,4 +201,15 @@ Page({
});
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-search/goods-search?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/baidu/pages/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -186,10 +186,12 @@ Page({
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/index/index?
share=index
'
path
:
'
/pages/index/index?
referrer=
'
+
user_id
};
},
...
...
sourcecode/qq/pages/goods-category/goods-category.js
浏览文件 @
df3b9ffd
...
...
@@ -88,5 +88,16 @@ Page({
// 事件
category_event
(
e
)
{
qq
.
navigateTo
({
url
:
'
/pages/goods-search/goods-search?category_id=
'
+
e
.
currentTarget
.
dataset
.
value
});
}
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-category/goods-category?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/qq/pages/goods-detail/goods-detail.qss
浏览文件 @
df3b9ffd
.goods-photo .swiper-item, swiper {
height:
6
5vh !important;
height:
5
5vh !important;
display: block;
}
...
...
@@ -242,12 +242,12 @@
}
.goods-video video {
width: 100%;
height:
6
5vh;
height:
5
5vh;
}
.goods-video-submit {
position: absolute;
left: 30rpx;
top: calc(
6
5vh - 110rpx);
top: calc(
5
5vh - 110rpx);
z-index: 2;
}
.goods-video-submit image {
...
...
sourcecode/qq/pages/goods-search/goods-search.js
浏览文件 @
df3b9ffd
...
...
@@ -190,4 +190,16 @@ Page({
});
this
.
get_data_list
(
1
);
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-search/goods-search?referrer=
'
+
user_id
};
},
});
sourcecode/qq/pages/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -183,10 +183,12 @@ Page({
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/index/index?
share=index
'
path
:
'
/pages/index/index?
referrer=
'
+
user_id
};
},
...
...
sourcecode/toutiao/pages/goods-category/goods-category.js
浏览文件 @
df3b9ffd
...
...
@@ -88,5 +88,16 @@ Page({
// 事件
category_event
(
e
)
{
tt
.
navigateTo
({
url
:
'
/pages/goods-search/goods-search?category_id=
'
+
e
.
currentTarget
.
dataset
.
value
});
}
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-category/goods-category?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/toutiao/pages/goods-detail/goods-detail.ttss
浏览文件 @
df3b9ffd
.goods-photo .swiper-item, swiper {
height:
6
5vh !important;
height:
5
5vh !important;
display: block;
}
...
...
@@ -242,12 +242,12 @@
}
.goods-video video {
width: 100%;
height:
6
5vh;
height:
5
5vh;
}
.goods-video-submit {
position: absolute;
left: 30rpx;
top: calc(
6
5vh - 110rpx);
top: calc(
5
5vh - 110rpx);
z-index: 2;
}
.goods-video-submit image {
...
...
sourcecode/toutiao/pages/goods-search/goods-search.js
浏览文件 @
df3b9ffd
...
...
@@ -190,4 +190,16 @@ Page({
});
this
.
get_data_list
(
1
);
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-search/goods-search?referrer=
'
+
user_id
};
},
});
sourcecode/toutiao/pages/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -184,10 +184,12 @@ Page({
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/index/index?
share=index
'
path
:
'
/pages/index/index?
referrer=
'
+
user_id
};
},
...
...
sourcecode/weixin/app.js
浏览文件 @
df3b9ffd
...
...
@@ -68,7 +68,7 @@ App({
// 请求地址
request_url
:
"
{{request_url}}
"
,
request_url
:
'
http://shopxo.com/
'
,
//
request_url: 'https://dev.shopxo.net/',
request_url
:
'
https://dev.shopxo.net/
'
,
// 基础信息
application_title
:
"
{{application_title}}
"
,
...
...
sourcecode/weixin/images/plugins/weixinliveplayer/status-icon.png
→
sourcecode/weixin/images/plugins/weixinliveplayer/
detail-
status-icon.png
浏览文件 @
df3b9ffd
文件已移动
sourcecode/weixin/images/plugins/weixinliveplayer/time-icon.png
→
sourcecode/weixin/images/plugins/weixinliveplayer/
detail-
time-icon.png
浏览文件 @
df3b9ffd
文件已移动
sourcecode/weixin/images/plugins/weixinliveplayer/player-icon.png
→
sourcecode/weixin/images/plugins/weixinliveplayer/
nav-
player-icon.png
浏览文件 @
df3b9ffd
文件已移动
sourcecode/weixin/images/plugins/weixinliveplayer/
share
-icon.png
→
sourcecode/weixin/images/plugins/weixinliveplayer/
nav-share-friend
-icon.png
浏览文件 @
df3b9ffd
文件已移动
sourcecode/weixin/images/plugins/weixinliveplayer/nav-share-poster-icon.png
0 → 100644
浏览文件 @
df3b9ffd
2.2 KB
sourcecode/weixin/pages/goods-category/goods-category.js
浏览文件 @
df3b9ffd
...
...
@@ -87,5 +87,16 @@ Page({
// 事件
category_event
(
e
)
{
wx
.
navigateTo
({
url
:
'
/pages/goods-search/goods-search?category_id=
'
+
e
.
currentTarget
.
dataset
.
value
});
}
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-category/goods-category?referrer=
'
+
user_id
};
},
});
\ No newline at end of file
sourcecode/weixin/pages/goods-detail/goods-detail.wxss
浏览文件 @
df3b9ffd
.goods-photo .swiper-item, swiper {
height:
6
5vh !important;
height:
5
5vh !important;
display: block;
}
...
...
@@ -241,12 +241,12 @@
}
.goods-video video {
width: 100%;
height:
6
5vh;
height:
5
5vh;
}
.goods-video-submit {
position: absolute;
left: 30rpx;
top: calc(
6
5vh - 110rpx);
top: calc(
5
5vh - 110rpx);
z-index: 2;
}
.goods-video-submit image {
...
...
sourcecode/weixin/pages/goods-search/goods-search.js
浏览文件 @
df3b9ffd
...
...
@@ -190,4 +190,15 @@ Page({
});
this
.
get_data_list
(
1
);
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/goods-search/goods-search?referrer=
'
+
user_id
};
},
});
sourcecode/weixin/pages/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -184,10 +184,12 @@ Page({
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
return
{
title
:
app
.
data
.
application_title
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/index/index?
share=index
'
path
:
'
/pages/index/index?
referrer=
'
+
user_id
};
},
...
...
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.js
浏览文件 @
df3b9ffd
...
...
@@ -88,71 +88,55 @@ Page({
// 进入直播
player_event
(
e
)
{
if
((
this
.
data
.
detail
||
null
)
!=
null
)
{
if
(
this
.
data
.
detail
.
status
==
1
||
this
.
data
.
detail
.
status
==
2
)
{
var
room_id
=
this
.
data
.
detail
.
id
var
params
=
encodeURIComponent
(
JSON
.
stringify
({
type
:
'
detail
'
}));
wx
.
navigateTo
({
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
this
.
data
.
detail
.
id
}
&custom_params=
${
params
}
`
});
}
}
else
{
app
.
showToast
(
'
数据有误
'
);
if
(
this
.
data
.
detail
.
status
==
1
||
this
.
data
.
detail
.
status
==
2
)
{
var
room_id
=
this
.
data
.
detail
.
id
var
params
=
encodeURIComponent
(
JSON
.
stringify
({
type
:
'
detail
'
}));
wx
.
navigateTo
({
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
this
.
data
.
detail
.
id
}
&custom_params=
${
params
}
`
});
}
},
// 海报分享
share_event
()
{
var
user
=
app
.
get_user_info
(
this
,
'
poster_event
'
);
if
(
user
!=
false
)
{
// 用户未绑定用户则转到登录页面
if
(
app
.
user_is_need_login
(
user
))
{
wx
.
navigateTo
({
url
:
"
/pages/login/login?event_callback=poster_event
"
});
return
false
;
}
else
{
wx
.
showLoading
({
title
:
'
生成中...
'
});
wx
.
request
({
url
:
app
.
get_request_url
(
'
poster
'
,
'
index
'
,
'
weixinliveplayer
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
this
.
data
.
detail
.
id
},
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
wx
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
wx
.
previewImage
({
current
:
res
.
data
.
data
,
urls
:
[
res
.
data
.
data
]
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
wx
.
hideLoading
();
app
.
showToast
(
"
服务器请求出错
"
);
}
});
share_poster_event
()
{
wx
.
showLoading
({
title
:
'
生成中...
'
});
wx
.
request
({
url
:
app
.
get_request_url
(
'
poster
'
,
'
index
'
,
'
weixinliveplayer
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
this
.
data
.
detail
.
id
},
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
wx
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
wx
.
previewImage
({
current
:
res
.
data
.
data
,
urls
:
[
res
.
data
.
data
]
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
}
},
fail
:
()
=>
{
wx
.
hideLoading
();
app
.
showToast
(
"
服务器请求出错
"
);
}
}
}
);
},
// 自定义分享
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
if
((
this
.
data
.
detail
||
null
)
=
=
null
)
if
((
this
.
data
.
detail
||
null
)
!
=
null
)
{
var
did
=
this
.
data
.
detail
.
id
;
var
name
=
this
.
data
.
detail
.
name
;
}
else
{
var
did
=
0
;
var
name
=
''
;
var
name
=
app
.
data
.
application_title
;
}
return
{
title
:
app
.
data
.
application_title
+
name
,
title
:
name
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/plugins/weixinliveplayer/detail/detail?id=
'
+
did
+
'
&referrer=
'
+
user_id
};
...
...
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.wxml
浏览文件 @
df3b9ffd
...
...
@@ -8,12 +8,12 @@
<!-- 基础信息 -->
<view class="bg-white base">
<view class="item">
<image class="item-icon
" src="/images/plugins/weixinliveplayer/
status-icon.png" mode="widthFix" />
<image class="item-icon
dis-block fl" src="/images/plugins/weixinliveplayer/detail-
status-icon.png" mode="widthFix" />
<text class="cr-888">直播状态</text>
<view class="fr more status-{{detail.status}}">{{detail.status_name}}</view>
</view>
<view class="item br-t item-time">
<image class="item-icon
" src="/images/plugins/weixinliveplayer/
time-icon.png" mode="widthFix" />
<image class="item-icon
dis-block fl" src="/images/plugins/weixinliveplayer/detail-
time-icon.png" mode="widthFix" />
<text class="cr-888">开播时间</text>
<view class="fr time">
<view class="start-time">{{detail.start_time}}</view>
...
...
@@ -24,13 +24,17 @@
<!-- 导航 -->
<view class="nav wh-auto">
<button type="primary" class="share-
submit fl" hover-class="none" bindtap="share_event
">
<image class="item-icon" src="/images/plugins/weixinliveplayer/
share
-icon.png" mode="widthFix" />
<button type="primary" class="share-
friend-submit fl" hover-class="none" open-type="share" hover-class="none
">
<image class="item-icon" src="/images/plugins/weixinliveplayer/
nav-share-friend
-icon.png" mode="widthFix" />
<text>分享</text>
</button>
<button type="default" class="player-submit fr {{detail.status == 1 || detail.status == 2 ? '' : 'disabled'}}" hover-class="none" bindtap="player_event">
<image class="item-icon" src="/images/plugins/weixinliveplayer/player-icon.png" mode="widthFix" />
<text>{{detail.status_name}}</text>
<button type="primary" class="share-poster-submit fl" hover-class="none" bindtap="share_poster_event">
<image class="item-icon" src="/images/plugins/weixinliveplayer/nav-share-poster-icon.png" mode="widthFix" />
<text>海报</text>
</button>
<button type="default" class="player-submit fr" hover-class="none" bindtap="player_event">
<image class="item-icon" src="/images/plugins/weixinliveplayer/nav-player-icon.png" mode="widthFix" />
<text>进入直播</text>
</button>
</view>
...
...
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.wxss
浏览文件 @
df3b9ffd
...
...
@@ -16,7 +16,7 @@
padding: 15rpx 10rpx 0 10rpx;
}
.base .item {
line-height:
50
rpx;
line-height:
38
rpx;
padding: 20rpx 0;
}
.base .item .item-icon {
...
...
@@ -40,6 +40,9 @@
.base .item-time {
line-height: 75rpx;
}
.base .item-time .item-icon {
margin-top: 20rpx;
}
.base .item-time .time {
line-height: 38rpx;
}
...
...
@@ -61,22 +64,29 @@
height: 100rpx;
}
.nav button {
width: 50%;
height: 100% !important;
border-radius: 0;
font-size: 32rpx;
line-height: 100rpx;
color: #fff;
}
.nav button image {
width:
40
rpx;
height:
40
rpx !important;
width:
32
rpx;
height:
32
rpx !important;
vertical-align: middle;
margin-right: 10rpx;
}
.nav button.share-friend-submit,
.nav button.share-poster-submit {
width: 30%;
}
.nav button.share-friend-submit {
background: #1bad18;
}
.nav button.share-poster-submit {
background: #6367f0;
}
.nav button.player-submit {
width: 40%;
background: #d2364c;
color: #fff;
}
.nav button.disabled {
background: #ffc5cd;
}
\ No newline at end of file
sourcecode/weixin/pages/plugins/weixinliveplayer/index/index.js
浏览文件 @
df3b9ffd
...
...
@@ -10,15 +10,10 @@ Page({
banner_list
:
[],
},
onLoad
(
params
)
{
// 启动参数处理
params
=
app
.
launch_params_handle
(
params
);
onShow
()
{
this
.
init
();
},
onShow
()
{},
init
()
{
// 获取数据
this
.
get_data_list
();
...
...
@@ -89,8 +84,9 @@ Page({
onShareAppMessage
()
{
var
user
=
app
.
get_user_cache_info
()
||
null
;
var
user_id
=
(
user
!=
null
&&
(
user
.
id
||
null
)
!=
null
)
?
user
.
id
:
0
;
var
name
=
((
this
.
data
.
data_base
||
null
)
!=
null
&&
(
this
.
data
.
data_base
.
application_name
||
null
)
!=
null
)
?
this
.
data
.
data_base
.
application_name
:
app
.
data
.
application_title
;
return
{
title
:
app
.
data
.
application_titl
e
,
title
:
nam
e
,
desc
:
app
.
data
.
application_describe
,
path
:
'
/pages/plugins/weixinliveplayer/index/index?referrer=
'
+
user_id
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录