第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/live/live"],{"31fa":function(t,e,a){"use strict";a.r(e);var n=a("940b"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},3257:function(t,e,a){},"612f":function(t,e,a){"use strict";a.r(e);var n=a("d289"),i=a("31fa");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("80e0");var r=a("828b"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},"80e0":function(t,e,a){"use strict";var n=a("3257"),i=a.n(n);i.a},"940b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={components:{},data:function(){return{}},props:["itemData"],created:function(){},methods:{scroll:function(t){},convertStatus:function(t){var e="";switch(t){case 101:e="直播中";break;case 102:e="未开始";break;case 103:e="已结束";break;case 104:e="禁播";break;case 105:e="暂停";break;case 106:e="异常";break;case 107:e="已过期";break}return e},gotoList:function(){this.gotoPage("/pages/plus/live/wx/list")},gotoDetail:function(t){103==t.live_status?""!=t.record_url?this.gotoPage("/pagesLive/live/playback?room_id="+t.room_id):this.showError("暂无回放"):this.gotoPage("/pagesLive/live/live?room_id="+t.room_id+"&sence=join")}}}},d289:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=(t._self._c,t.itemData.data.length),n=a>0?t.__map(t.itemData.data,(function(e,a){var n=t.__get_orig(e),i=101==e.live_status||102==e.live_status||104==e.live_status?t.convertStatus(e.live_status):null;return{$orig:n,m0:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:a,l0:n}})},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/diy/live/live-create-component',
{
'components/diy/live/live-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("612f"))
})
},
[['components/diy/live/live-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

View File

@ -0,0 +1 @@
<block wx:if="{{$root.g0>0}}"><view class="diy-live" style="{{'background:'+(itemData.style.background)+';'}}"><view class="diy-head d-e-c" style="{{('background-image: url('+itemData.style.background_image+');')}}"><view data-event-opts="{{[['tap',[['gotoList',['$event']]]]]}}" class="right" bindtap="__e"><text data-event-opts="{{[['tap',[['gotoPage',['/pagesLive/live/index']]]]]}}" class="white" bindtap="__e">更多</text><text class="iconfont icon-jiantou mr20" style="font-size:24rpx;color:#999999;"></text></view></view><view class="list d-s-c f-w"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['gotoDetail',['$0'],[[['itemData.data','',index]]]]]]]}}" class="item" bindtap="__e"><view class="pic pr"><block wx:if="{{item.$orig.live_status==101||item.$orig.live_status==102||item.$orig.live_status==104}}"><text class="{{['state',(item.$orig.live_status==101)?'bg101':'',(item.$orig.live_status==102)?'bg102':'',(item.$orig.live_status==104)?'bg103':'']}}">{{''+item.m0+''}}</text></block><image src="{{item.$orig.share.file_path}}" mode="aspectFit"></image><view class="anchor">{{item.$orig.anchor_name}}</view></view><view class="text-ellipsis f30 live_name tc">{{item.$orig.name}}</view></view></block></view></view></block>

View File

@ -0,0 +1 @@
.diy-live{margin:20rpx;border-radius:20rpx;background:#fff;overflow:hidden}.diy-live .diy-head{height:90rpx;align-items:center;background-size:100% 100%}.diy-live .diy-head .name{font-size:36rpx;font-weight:700;width:200rpx}.diy-live .list{padding:20rpx}.diy-live .list .item{width:246rpx;margin-right:20rpx;height:330rpx;background-color:#f6f6f6;border-radius:12rpx;overflow:hidden}.diy-live .list .item:nth-child(2n + 0){margin-right:0}.diy-live .list .item .pic{width:246rpx;height:246rpx}.diy-live .list .item .pic .state{position:absolute;z-index:90;top:20rpx;left:20rpx;padding:4rpx 8rpx;background:red;color:#fff;border-radius:8rpx}.diy-live .list .item .pic .state.bg101{background:red}.diy-live .list .item .pic .state.bg102{background:#ffb100}.diy-live .list .item .pic .state.bg103{background:#333}.diy-live .list .item image{width:246rpx;height:246rpx;border-radius:16rpx}.diy-live .anchor{position:absolute;bottom:12rpx;left:18rpx;font-size:24rpx;line-height:24rpx}