服务器提交
This commit is contained in:
1
public/weapp/pages_tool/live/list.js
Executable file
1
public/weapp/pages_tool/live/list.js
Executable file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/live/list"],{"378e":function(e,t,n){"use strict";n.r(t);var i=n("860a"),a=n("562f");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("5f02");var u=n("828b"),l=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=l.exports},"562f":function(e,t,n){"use strict";n.r(t);var i=n("b992"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"5f02":function(e,t,n){"use strict";var i=n("e3a3"),a=n.n(i);a.a},"860a":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={nsEmpty:function(){return n.e("components/ns-empty/ns-empty").then(n.bind(null,"52a6"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"c003"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.liveList.length),i=n?e.__map(e.liveList,(function(t,n){var i=e.__get_orig(t),a=""!=t.banner?e.$util.img(t.banner):null,o=""==t.banner?e.$util.img("public/uniapp/live/live_default_banner.png"):null,u=""!=t.anchor_img?e.$util.img(t.anchor_img):null,l=""==t.anchor_img?e.$util.getDefaultImage():null,r=t.goods.length,s=e.$util.timeStampTurnTime(t.start_time),c=e.$util.timeStampTurnTime(t.end_time);return{$orig:i,g1:a,g2:o,g3:u,g4:l,g5:r,g6:s,g7:c}})):null;e.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},o=[]},b992:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{liveList:[],isIndex:!1,showEmpty:!1}},onShow:function(){var e=this;setTimeout((function(){e.addonIsExist.live||(e.$util.showToast({title:"商家未开启小程序直播",mask:!0,duration:2e3}),setTimeout((function(){e.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),this.liveList=[],this.$refs.mescroll&&this.$refs.mescroll.refresh()},methods:{getListData:function(e){var t=this;this.showEmpty=!1,this.$api.sendRequest({url:"/live/api/live/page",data:{page:e.num,page_size:e.size},success:function(n){t.showEmpty=!0;var i=[],a=n.message;0==n.code&&n.data?i=n.data.list:t.$util.showToast({title:a}),e.endSuccess(i.length),1==e.num&&(t.liveList=[]),t.liveList=t.liveList.concat(i),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(n){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},entryRoom:function(t){e.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(t)})}}};t.default=n}).call(this,n("3223")["default"])},e3a3:function(e,t,n){},f327:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("d381");i(n("3240"));var a=i(n("378e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["f327","common/runtime","common/vendor"]]]);
|
||||
6
public/weapp/pages_tool/live/list.json
Executable file
6
public/weapp/pages_tool/live/list.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"ns-empty": "/components/ns-empty/ns-empty",
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
1
public/weapp/pages_tool/live/list.wxml
Executable file
1
public/weapp/pages_tool/live/list.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}"></page-meta><view class="live-content"><mescroll-uni class="vue-ref" bind:getData="__e" vue-id="3275bf53-1" data-ref="mescroll" data-event-opts="{{[['^getData',[['getListData']]]]}}" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list"><block wx:if="{{$root.g0}}"><block><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['entryRoom',['$0'],[[['liveList','',index,'roomid']]]]]]]}}" class="live-wrap" bindtap="__e"><view class="banner-wrap"><image src="{{item.$orig.banner!=''?item.g1:item.g2}}" mode="widthFix"></image><view class="shade"></view><view class="wrap"><view class="room-name"><text class="{{['status-name','font-size-base',(item.$orig.live_status=='101')?'color-base-bg':'']}}"><block wx:if="{{item.$orig.live_status=='101'}}"><text class="iconfont icon-zhibozhong font-size-sub"></text></block><block wx:else><text class="iconfont icon-zhibojieshu font-size-sub"></text></block>{{''+item.$orig.status_name+''}}</text>{{''+item.$orig.name+''}}</view></view></view><view class="room-info"><image class="anchor-img" src="{{item.$orig.anchor_img!=''?item.g3:item.g4.head}}"></image><text class="anchor-name">{{"主播:"+item.$orig.anchor_name}}</text><text class="separate">|</text><text class="goods-text">{{"直播商品:"+item.g5}}</text></view><view class="time"><text class="color-tip">{{''+item.g6+''}}<text class="separate">-</text>{{''+item.g7+''}}</text></view></view></block></block></block><block wx:else><block><ns-empty vue-id="{{('3275bf53-2')+','+('3275bf53-1')}}" text="暂无直播记录" isIndex="{{isIndex}}" bind:__l="__l"></ns-empty></block></block></view></mescroll-uni><loading-cover class="vue-ref" vue-id="3275bf53-3" data-ref="loadingCover" bind:__l="__l"></loading-cover><privacy-popup class="vue-ref" vue-id="3275bf53-4" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>
|
||||
2
public/weapp/pages_tool/live/list.wxss
Executable file
2
public/weapp/pages_tool/live/list.wxss
Executable file
@@ -0,0 +1,2 @@
|
||||
.live-wrap{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden}.banner-wrap{width:100%;position:relative;line-height:1;display:flex}.banner-wrap image{width:100%}.banner-wrap .shade{width:100%;height:100%;position:absolute;background:hsla(0,0%,53.3%,.3);left:0;top:0;z-index:5}.banner-wrap .wrap{width:100%;height:100%;position:absolute;left:0;top:0;z-index:10;padding:30rpx;box-sizing:border-box}.banner-wrap .wrap .room-name{font-size:32rpx;color:#fff;line-height:1;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}.banner-wrap .wrap .room-name .status-name{display:inline-block;font-size:20rpx;color:#fff;padding:8rpx 20rpx;background-color:rgba(0,0,0,.6);border-radius:36rpx;margin-right:20rpx}.banner-wrap .wrap .room-name .status-name .iconfont{margin-right:4rpx}.banner-wrap .wrap .room-name .status-name .icon-zhibozhong{font-size:20rpx;color:#fff;margin-right:4rpx}.room-info{padding:20rpx 30rpx 0 30rpx;background:#fff;display:flex}.room-info .anchor-img{width:60rpx;height:60rpx;border-radius:50%;overflow:hidden;margin-right:20rpx}.room-info .anchor-name,
|
||||
.room-info .goods-text{font-size:28rpx;line-height:60rpx}.room-info .separate{color:grey;margin:0 10rpx;line-height:56rpx}.time{padding:20rpx 30rpx;background:#fff;line-height:1}.time .separate{color:grey;margin:0 10rpx;line-height:1}
|
||||
Reference in New Issue
Block a user