shop-php/public/static/js/pages-room-index.44203bf6.js
2024-03-01 10:46:40 +08:00

1 line
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-room-index"],{"0a5d":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("c975");var n=i("3093"),o=a(i("e9c8"));var s={};["options","get","post","put","head","delete","trace","connect"].forEach((function(t){s[t]=function(e,i,a){return function(t,e,i,a){a.noAuth;var s=a.noVerify,r=void 0!==s&&s,c=n.HTTP_REQUEST_URL_FIVE,d=n.HEADER;return o.default.state.app.token&&(d[n.TOKENNAME]="Bearer "+o.default.state.app.token),new Promise((function(a,n){uni.request({url:c+"/api/"+t,method:e||"GET",header:d,data:i||{},success:function(t){r||200==t.data.status?a(t.data,t):-1!==[41e4,410001,410002,4e4].indexOf(t.data.status)?n(t.data):0==t.data.code||1==t.data.code?a(t.data,t):501==t.data.status?(uni.reLaunch({url:"/pages/error/index"}),n(t.data)):n(t.data.message||"系统错误")},fail:function(t){n("请求失败",t)}})}))}(e,t,i,a||{})}}));var r=s;e.default=r},"1aed":function(t,e,i){"use strict";i.r(e);var a=i("baed"),n=i("3ba7f");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("98ca");var s=i("f0c5"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"25886798",null,!1,a["a"],void 0);e["default"]=r.exports},"1e9b":function(t,e,i){var a=i("5e9a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("7684bad0",a,!0,{sourceMap:!1,shadowMode:!1})},"206a":function(t,e,i){"use strict";var a=i("5363"),n=i.n(a);n.a},"2e47":function(t,e,i){"use strict";i.r(e);var a=i("b8ef"),n=i("7636");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("206a");var s=i("f0c5"),r=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"1becd298",null,!1,a["a"],void 0);e["default"]=r.exports},"3ba7f":function(t,e,i){"use strict";i.r(e);var a=i("f700"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},5363:function(t,e,i){var a=i("7407");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("444dda68",a,!0,{sourceMap:!1,shadowMode:!1})},"5e9a":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.empty-box[data-v-25886798]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-25886798]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-25886798]{font-size:%?26?%;color:#999}',""]),t.exports=e},7407:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-1becd298]{background-color:#fff}body.?%PAGE?%[data-v-1becd298]{background-color:#fff}.goods_body_scroll[data-v-1becd298]{margin-top:%?50?%}.search_content[data-v-1becd298]{margin:0 auto;width:%?724?%;height:%?64?%;padding:2px 2px 2px %?21.05?%;border-radius:%?175?%;background:#fff;margin-bottom:%?21?%;position:relative;box-sizing:border-box;border:%?2?% solid #fcb9ad;margin-top:%?30?%}.search_content .icon-sousuo[data-v-1becd298]{font-size:%?26.32?%;font-weight:700;color:#c8c7c6;margin-right:%?17.54?%}.search_content .search_btn[data-v-1becd298]{color:#fff;width:%?105.26?%;height:%?56?%;line-height:%?56?%;background:#f84221;border-radius:100px;font-size:%?28.07?%}.banner[data-v-1becd298]{display:flex;padding-left:%?28?%}.banner-detail[data-v-1becd298]{width:%?133?%;margin-right:%?30?%}.banner-name[data-v-1becd298]{font-size:%?33?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#333;margin-bottom:%?10?%}.banner-t[data-v-1becd298]{width:46px;height:%?0?%;opacity:1;border:%?2?% solid #f84221;margin:0 auto}.noshuju[data-v-1becd298]{height:%?760?%}.mico-18[data-v-1becd298]{margin-top:%?10?%;color:#666}.view_body[data-v-1becd298]{width:100%;height:100%;background-color:#fff}.roomsbox-title[data-v-1becd298]{font-size:%?30?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#333;margin-bottom:%?30?%;margin-left:%?20?%}.roomstatus-d[data-v-1becd298]{width:%?20?%;height:%?20?%;border-radius:%?20?%;position:absolute;left:%?20?%;top:%?20?%}.roomstatus[data-v-1becd298]{position:absolute;left:%?40?%;top:%?10?%;font-size:%?28?%}.livetitle[data-v-1becd298]{position:absolute;bottom:%?20?%;width:100%;text-align:center;height:%?70?%;line-height:%?70?%;color:#fff}.top[data-v-1becd298]{display:flex;padding:%?20?%;top:0;position:fixed;left:0;width:95%;background-color:#fff;z-index:9999}.top_li[data-v-1becd298]{font-size:%?32?%;padding:0 %?20?%;display:table-cell;\r\n /* vertical-align:bottom; */padding-top:%?10?%;color:#666}.top-lable-box[data-v-1becd298]{width:80%}.active[data-v-1becd298]{font-size:%?40?%;font-weight:800;color:#333;padding-top:0}uni-image[data-v-1becd298]{width:100%}.roomsbox[data-v-1becd298]{display:flex;flex-wrap:wrap}.roomblock[data-v-1becd298]{width:45%;height:%?300?%;border-radius:%?10?%;overflow:hidden;margin-bottom:%?20?%;position:relative;margin-left:2.5%;background-color:#fff}.right_top_scroll[data-v-1becd298]{white-space:nowrap;overflow:hidden;width:100%}[data-v-1becd298]::-webkit-scrollbar{width:0;height:0;color:transparent}.scroll-view[data-v-1becd298]{display:inline-block;margin-right:%?30?%;text-align:center;font-size:%?32?%;height:%?60?%;line-height:%?60?%;box-sizing:border-box;padding:0 %?10?%}.view_body[data-v-1becd298]{background:#fff;width:100%;overflow:hidden}.mico-14[data-v-1becd298]{margin-right:%?4?%}.noshuju[data-v-1becd298]{height:%?750?%}.noshuju_ico[data-v-1becd298]{width:%?120?%;height:%?80?%;margin:0 auto;margin-top:%?300?%}.noshuju_ico uni-image[data-v-1becd298]{width:100%;height:100%}.mico-18[data-v-1becd298]{margin-top:%?10?%;color:#666}.create-but[data-v-1becd298]{background-color:#1ce0c5;width:%?120?%;height:%?60?%;line-height:%?60?%;color:#fff;text-align:center;border-radius:%?10?%;margin-top:%?4?%}',""]),t.exports=e},7636:function(t,e,i){"use strict";i.r(e);var a=i("b5a0"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"98ca":function(t,e,i){"use strict";var a=i("1e9b"),n=i.n(a);n.a},b5a0:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("7db0"),i("d3b7"),i("14d9"),i("e9c4");var n=a(i("1aed")),o=i("baa0"),s={components:{emptyPage:n.default},data:function(){return{keyword:"",device_height:380,page:1,dataindex:1,page_data:!0,list:[{name:"直播精选"},{name:"历史直播"}],roomList:[],dataList:[],user:[],index:0,isGetLoginInfo:!0,isindex:0}},onLoad:function(){},mounted:function(){this.getRoomList(),this.getbackList()},onShow:function(){},onReachBottom:function(){this.getRoomList()},onPullDownRefresh:function(){this.getRoomList(),this.getbackList()},methods:{change:function(t){t.detail.value.length<=0&&(this.page=1,this.getRoomList())},search:function(){this.page=1,this.roomList=[],this.dataList=[],0==this.isindex?this.getRoomList():this.getbackList()},zhisort:function(t){this.isindex=t,this.page=1,this.keyword="",this.roomList=[],this.dataList=[],0==t?this.getRoomList():this.getbackList()},getbackList:function(){var t=this;(0,o.playbackList)({page_size:100,page:this.page,app_name:"shop",keyword:this.keyword}).then((function(e){if(e.data.lists.length>0){for(var i=[],a=function(t){var a=e.data.lists[t],n=a.date,o=i.find((function(t){return t.date===n}));o||(o={date:n,records:[]},i.push(o)),o.records.push(a)},n=0;n<e.data.lists.length;n++)a(n);t.dataList=i}}))},getRoomList:function(){var t=this;(0,o.live)({page_size:10,page:this.page,app_name:"shop",keyword:this.keyword}).then((function(e){if(e.data.code=1){if(uni.hideLoading(),e.data.lists.length>0){var i=e.data.lists,a=t.$util.SplitArray(i,t.roomList);setTimeout((function(){t.$set(t,"roomList",a)}),500),t.page=t.page+1}}else uni.showModal({title:e.msg})}))},hsitroyjump:function(t){uni.navigateTo({url:"/pages/room/histroyroom?data="+encodeURIComponent(JSON.stringify(t))})},jump:function(t){uni.navigateTo({url:"/pages/room/spectator?data="+encodeURIComponent(JSON.stringify(t))})}}};e.default=s},b8ef:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"view_body"},[i("v-uni-view",[i("v-uni-view",{staticClass:"search_content flex_a_c_j_sb"},[i("v-uni-view",{staticClass:"flex_a_c"},[i("v-uni-view",{staticClass:"iconfont icon-sousuo",staticStyle:{"font-size":"39rpx"}}),i("v-uni-input",{attrs:{type:"text",placeholder:"搜索主播或关键字","placeholder-style":"font-size: 30rpx;"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("v-uni-button",{staticClass:"search_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)}}},[t._v("搜索")])],1),i("v-uni-view",{staticClass:"banner"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"banner-detail",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.zhisort(a)}}},[i("v-uni-view",{staticClass:"banner-name"},[t._v(t._s(e.name))]),t.isindex==a?i("v-uni-view",{staticClass:"banner-t"}):t._e()],1)})),1),0==t.isindex?i("v-uni-scroll-view",{staticClass:"goods_body_scroll",attrs:{"scroll-top":"0","scroll-y":"true"}},[i("v-uni-view",{staticClass:"roomsbox"},t._l(t.roomList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"roomblock",staticStyle:{border:"1px solid #e1d9d4"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jump(e)}}},[e.cover?i("v-uni-image",{attrs:{src:e.cover,mode:"aspectFill"}}):i("v-uni-image",{attrs:{src:"/static/lw/6.gif",mode:"aspectFill"}}),i("v-uni-view",{staticClass:"livetitle"},[t._v(t._s(e.live_name))]),1==e.status?i("v-uni-view",{staticClass:"roomstatus-d",staticStyle:{"background-color":"#09BB07"}}):i("v-uni-view",{staticClass:"roomstatus-d",staticStyle:{"background-color":"#fa2306"}}),1==e.status?i("v-uni-view",{staticClass:"roomstatus",staticStyle:{color:"#00B26A"}},[t._v("直播中")]):i("v-uni-view",{staticClass:"roomstatus",staticStyle:{color:"#fa2306"}},[t._v("已停播")])],1)})),1)],1):t._e(),1==t.isindex?i("v-uni-scroll-view",{staticClass:"goods_body_scroll",attrs:{"scroll-top":"0","scroll-y":"true"}},t._l(t.dataList,(function(e,a){return i("v-uni-view",{key:a},[i("v-uni-view",{staticClass:"roomsbox-a"},[i("v-uni-view",{staticClass:"roomsbox-title"},[t._v(t._s(e.date))]),i("v-uni-view",{staticClass:"roomsbox"},t._l(e.records,(function(e,a){return i("v-uni-view",{key:a,staticClass:"roomblock",staticStyle:{border:"1px solid #e1d9d4"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.hsitroyjump(e)}}},[e.cover?i("v-uni-image",{attrs:{src:e.cover,mode:"aspectFill"}}):i("v-uni-image",{attrs:{src:"/static/lw/6.gif",mode:"aspectFill"}}),i("v-uni-view",{staticClass:"livetitle"},[t._v(t._s(e.live_name))]),1==e.status?i("v-uni-view",{staticClass:"roomstatus-d",staticStyle:{"background-color":"#09BB07"}}):i("v-uni-view",{staticClass:"roomstatus-d",staticStyle:{"background-color":"#fa2306"}}),3==e.status?i("v-uni-view",{staticClass:"roomstatus-d",staticStyle:{"background-color":"#e1d9d4"}}):t._e(),1==e.status?i("v-uni-view",{staticClass:"roomstatus",staticStyle:{color:"#00B26A"}},[t._v("直播中")]):i("v-uni-view",{staticClass:"roomstatus",staticStyle:{color:"#fa2306"}},[t._v("已停播")])],1)})),1)],1)],1)})),1):t._e(),0==t.roomList.length&&0==t.isindex?i("v-uni-view",{staticClass:"noshuju"},[i("emptyPage",{attrs:{title:"暂无房间信息"}})],1):t._e(),0==t.dataList.length&&1==t.isindex?i("v-uni-view",{staticClass:"noshuju"},[i("emptyPage",{attrs:{title:"暂无房间信息"}})],1):t._e()],1)],1)},n=[]},baa0:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bindUser=function(t){return n.default.post("zhibo/bindUser",t)},e.createPushLive=function(t){return n.default.post("zhibo/createPushLive",t)},e.fansNum=function(t){return o.default.get("zhibo/fansNum",t)},e.getAjuser=function(t){return o.default.get("community/user/info/".concat(t))},e.getRechargeApi=function(){return o.default.get("common/recharge_quota")},e.getUserInfo=function(){return n.default.get("user")},e.getfans=function(t,e){return o.default.post("community/fans/"+t,e)},e.getfanslst=function(t){return o.default.get("community/fans/lst",t)},e.getfocuslst=function(t){return o.default.post("community/focus/lst",t)},e.getuser=function(t){return o.default.get("user",t)},e.giftList=function(t){return n.default.get("zhibo/giftList",t)},e.good=function(t){return o.default.get("product/spu/lst",t)},e.joinChatRoom=function(t){return n.default.post("zhibo/joinChatRoom",t)},e.live=function(t){return n.default.get("zhibo/live",t)},e.liveAudience=function(t){return n.default.get("zhibo/liveAudience",t)},e.liveDetail=function(t){return n.default.get("zhibo/liveDetail",t)},e.playbackDetail=function(t){return n.default.get("zhibo/playbackDetail",t)},e.playbackList=function(t){return n.default.get("zhibo/playbackList",t)},e.reward=function(t){return n.default.post("zhibo/reward",t)},e.rewardList=function(t){return o.default.get("zhibo/rewardList",t)},e.sendGift=function(t){return n.default.post("zhibo/sendGift",t)},e.sendGroupMessage=function(t){return n.default.post("zhibo/sendGroupMessage",t)},e.stopPushLive=function(t){return n.default.post("zhibo/stopPushLive",t)};var n=a(i("0a5d")),o=a(i("6860"))},baed:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box",style:{"margin-top":this.mt}},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt",style:{color:this.color}},[this._v(this._s(this.title))])],1)},n=[]},f700:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{title:{type:String,default:"暂无记录"},color:{type:String,default:"#999"},mt:{type:String,default:"200rpx"}}};e.default=a}}]);