living.js 2.7 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/living"],{"06bc":function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var o={uEmpty:function(){return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null,"a405"))}},a=function(){var n=this.$createElement,t=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"15d0":function(n,t,e){},"18d5":function(n,t,e){"use strict";e.r(t);var o=e("d7ab"),a=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=a.a},"1c5e":function(n,t,e){"use strict";e.r(t);var o=e("06bc"),a=e("18d5");for(var i in a)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(i);e("ef2d");var r=e("f0c5"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},a907:function(n,t,e){"use strict";(function(n,t){var o=e("4ea4");e("d1cd");o(e("66fd"));var a=o(e("1c5e"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},d7ab:function(n,t,e){"use strict";(function(n){var o=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=e("cd04"),i=e("8878"),r=o(e("f6c5")),c={onShareAppMessage:function(n){if(console.log(this.share),"button"===n.from){var t=getCurrentPages(),e=t[t.length-1],o="/"+e.route+"?";for(var a in e.options)o+=a+"="+e.options[a]+"&";var i={path:o,imageUrl:this.share.cover_img,title:this.share.name};return console.log("data",i),i}},data:function(){return{list:[],shareShow:!1,share:""}},onLoad:function(){this.loadData()},onShow:function(){},onReachBottom:function(){},onReady:function(){},methods:{loadData:function(){var n=this;(0,a.live)({page:1,limit:100}).then((function(t){var e=t.data;e.forEach((function(n){n.add_time=(0,i.getTime)(n.start_time)})),n.list=e,console.log(e)}))},shareLink:function(n){console.log("dainjideniang"),this.share=n,this.shareShow=!0},copy:function(){var n=this;(0,a.short_link)({url:"pages/user/living"}).then((function(t){var e=t.data;console.log(e),n.comfirm(e.link)}))},comfirm:function(t){console.log(t);var e=(0,r.default)(t);!1===e?n.showToast({title:"不支持"}):n.showToast({title:"复制成功",icon:"none"})},cancel:function(){this.shareShow=!1},navTo:function(t){var e=t.roomid,o=encodeURIComponent(JSON.stringify({path:"pages/index/index",pid:1}));n.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(e,"&custom_params=").concat(o)})}}};t.default=c}).call(this,e("543d")["default"])},ef2d:function(n,t,e){"use strict";var o=e("15d0"),a=e.n(o);a.a}},[["a907","common/runtime","common/vendor"]]]);