代码拉取完成,页面将自动刷新
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"0147":function(t,e,i){},"0762":function(t,e,i){"use strict";var a=i("5cfe"),n=i.n(a);n.a},"17e4":function(t,e,i){"use strict";var a=i("905c"),n=i.n(a);n.a},"1aa9":function(t,e,i){"use strict";var a=i("cd64"),n=i.n(a);n.a},2199:function(t,e,i){"use strict";i.r(e);var a=i("4f8e"),n=i("af52");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("0762");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"e7f6459e",null,!1,a["a"],void 0);e["default"]=s.exports},"22f9":function(t,e,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("af34")),o={data:function(){return{userDetail:0,authShow:!1,tabData:[{icon:"../../static/icon/indexType01.png",name:"短剧"},{icon:"../../static/icon/indexType02.png",name:"小说"}],active:0,keyword:"",platformShow:!1,selectData:[],selectActive:0,novelList:[],page:1,more:"more",empowerShow:!1}},props:{novelShow:{type:Number,default:function(){return 0}},reachBottom:{type:Number,default:function(){return 1}}},watch:{novelShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.getNovelCate()},deep:!0,immediate:!0},reachBottom:{handler:function(t){"more"==this.more&&(this.more="loading",this.page++,this.getNovelList())}}},onReachBottom:function(){"more"==this.more&&(this.more="loading",this.page++,this.getNovelList())},methods:{getNovelCate:function(){var e=this;this.util.request({url:"api/Dyapplet/applet_cate",data:{dif:2,type:this.active,version:t.getStorageSync("version")},success:function(t){e.selectData=t.data.data,e.getNovelList(1)}})},getNovelList:function(e){var i=this;this.util.request({url:"api/Dyapplet/applet_promotion",data:{source:this.selectData[this.selectActive].source,keyword:this.keyword,page:this.page,pagesize:"20",dif:2,type:this.active,version:t.getStorageSync("version")},success:function(t){var a;e?i.novelList=t.data.data:(a=i.novelList).push.apply(a,(0,n.default)(t.data.data));i.more=20==t.data.data.length?"more":"no-more"}})},getReset:function(){this.page=1,this.more="loading",this.getNovelCate()},tabTap:function(t){this.active=t,this.selectActive=0,this.getReset()},pfItemTap:function(t){this.platformShow=!1,this.selectActive=t,this.page=1,this.more="loading",this.getNovelList(1)},novelBoxTap:function(e){if(this.userDetail){var i=t.getStorageSync("empower");!i.is_status||i.is_authorizes?t.navigateTo({url:"/subcontract/pages/short/plan?id=".concat(e,"&index=").concat(this.active)}):this.empowerShow=!0}else this.authShow=!0},empowerBtnTap:function(){this.empowerShow=!1},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1},askBtnTap:function(){if(this.userDetail){var e=this.selectData[this.selectActive];t.navigateToMiniProgram({appId:"wx11266574b837c20b",extraData:{userid:this.userDetail.userId,id:e.agentid,admin:e.admin_id},success:function(t){console.log(t)},fail:function(t){console.log(t)}})}else this.authShow=!0}}};e.default=o}).call(this,i("df3c")["default"])},2345:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(i.bind(null,"46d4"))},authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))}},n=function(){var t=this.$createElement;this._self._c},o=[]},"249e":function(t,e,i){"use strict";i.r(e);var a=i("96ca"),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},2526:function(t,e,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("af34")),o={data:function(){return{cheatShow:"",versionShow:"",incomeTab:["短剧","推广计划"],incomeActive:0,tabData:[{icon:"../../static/icon/indexTab02.png",name:"快手",id:"0"},{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],novelTabData:[{icon:"../../static/icon/indexTab02.png",name:"快手",id:"0"},{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],movieTabData:[{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],active:0,cateList:[],cateActive:0,shortList:[],page:1,more:"more",isiPhoneX:t.getStorageSync("iPhoneX")}},props:{shortShow:{type:Number,default:function(){return 0}},reachBottom:{type:Number,default:function(){return 1}}},watch:{shortShow:{handler:function(e){this.cheatShow=t.getStorageSync("cheat"),this.versionShow=t.getStorageSync("version"),this.incomeActive=t.getStorageSync("localType")||0,this.getShortCate()},deep:!0,immediate:!0},reachBottom:{handler:function(t){"more"==this.more&&(this.more="loading",this.page++,this.getShortList())}}},onReachBottom:function(){"more"==this.more&&(this.more="loading",this.page++,this.getShortList())},methods:{getShortCate:function(){var e=this,i=t.getStorageSync("version");"0"==this.incomeActive||this.incomeActive;this.util.request({url:"api/local/theater_cate",data:{dif:2,version:i},success:function(a){var o;if(e.cateList=[],"0"==e.incomeActive){var c={},s=t.getStorageSync("cheat")||0;c.catename=s&&""==i?"全部服装":"全部短剧",c.id="0",e.cateList.push(c)}(o=e.cateList).push.apply(o,(0,n.default)(a.data.data)),e.cateActive=t.getStorageSync("localCate")||0,e.getReset()}})},getShortList:function(e){var i=this;"0"==this.incomeActive||this.incomeActive;this.util.request({url:"api/local/theater_list",data:{cateid:this.cateList[this.cateActive].id,type:"0"==this.incomeActive?this.tabData[this.active].id:"1"==this.incomeActive?this.novelTabData[this.active].id:this.movieTabData[this.active].id,page:this.page,pagesize:"20",dif:2,version:t.getStorageSync("version")},success:function(t){var a;e?i.shortList=t.data.data:(a=i.shortList).push.apply(a,(0,n.default)(t.data.data));i.more=20==t.data.data.length?"more":"no-more"}})},getReset:function(){this.page=1,this.more="loading",this.getShortList(1)},incomeTabTap:function(e){"0"==e?(this.active=0,t.setStorageSync("localType",e),t.setStorageSync("localCate",0),this.incomeActive=e,this.getShortCate()):t.showToast({title:"敬请期待",icon:"none"})},tabTap:function(t){this.active=t,this.getReset()},cateTap:function(e){t.setStorageSync("localCate",e),this.cateActive=e,this.getReset()},shortBoxTap:function(e){t.navigateTo({url:"/subcontract/pages/short/customDetail?id=".concat(e,"&index=").concat(this.incomeActive)})}}};e.default=o}).call(this,i("df3c")["default"])},"2a6f":function(t,e,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("af34")),o={data:function(){return{userDetail:0,authShow:!1,cheatShow:"",versionShow:"",incomeTab:[],incomeActive:0,tabData:[{icon:"../../static/icon/indexTab02.png",name:"快手",id:"0"},{icon:"../../static/icon/indexTab03.png",name:"微信",id:"1"},{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],novelTabData:[{icon:"../../static/icon/indexTab02.png",name:"快手",id:"0"},{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],movieTabData:[{icon:"../../static/icon/indexTab01.png",name:"抖音",id:"2"}],capTabData:[{icon:"../../static/icon/indexTab05.png",name:"CAP",id:"3"}],active:0,cateList:[],cateActive:0,shortList:[],page:1,more:"more",isiPhoneX:t.getStorageSync("iPhoneX"),scrollTop:.01}},props:{shortShow:{type:Number,default:function(){return 0}},reachBottom:{type:Number,default:function(){return 1}}},watch:{shortShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.cheatShow=t.getStorageSync("cheat"),this.versionShow=t.getStorageSync("version"),this.getShortTab(),console.log("走吗"),this.setToTop()},deep:!0,immediate:!0},reachBottom:{handler:function(t){"more"==this.more&&(this.more="loading",this.page++,this.getShortList())}}},methods:{setToTop:function(){this.scrollTop=this.scrollTop+.01},lower:function(){"more"==this.more&&(this.more="loading",this.page++,this.getShortList())},getShortTab:function(){var e=this;this.util.request({url:"api/index/tab",data:{type:"1"},success:function(i){e.incomeTab=i.data.data,e.incomeActive=t.getStorageSync("shortType")||0,e.getShortCate()}})},getShortCate:function(){var e=this,i=t.getStorageSync("version"),a="0"==this.incomeActive?"api/theater/theater_cate":"1"==this.incomeActive?"api/books/theater_cate":"api/movie/theater_cate";this.util.request({url:a,data:{dif:2,version:i},success:function(a){var o;if(e.cateList=[],"0"==e.incomeActive){var c={},s=t.getStorageSync("cheat")||0;c.catename=s&&""==i?"全部服装":"全部短剧",c.id="0",e.cateList.push(c)}(o=e.cateList).push.apply(o,(0,n.default)(a.data.data)),e.cateActive=t.getStorageSync("shortCate")||0,e.getReset()}})},getShortList:function(e){var i=this,a="0"==this.incomeActive?"api/theater/theater_list":"1"==this.incomeActive?"api/books/theater_list":"api/movie/theater_list";this.util.request({url:a,data:{cateid:this.cateList[this.cateActive].id,type:"0"==this.incomeActive?this.tabData[this.active].id:"1"==this.incomeActive?this.novelTabData[this.active].id:this.movieTabData[this.active].id,page:this.page,pagesize:"20",dif:2,version:t.getStorageSync("version")},success:function(t){var a;e?i.shortList=t.data.data:(a=i.shortList).push.apply(a,(0,n.default)(t.data.data));i.more=20==t.data.data.length?"more":"no-more"}})},getReset:function(){this.page=1,this.more="loading",this.getShortList(1)},incomeTabTap:function(e){this.shortList=[],this.active=0,this.cateActive=e,t.setStorageSync("shortType",e),t.setStorageSync("shortCate",0),this.incomeActive=e,this.getShortCate()},tabTap:function(t){this.shortList=[],this.active=t,this.getReset()},cateTap:function(e){this.shortList=[],t.setStorageSync("shortCate",e),this.cateActive=e,this.getReset()},shortBoxTap:function(e){"2"!=this.incomeActive||this.userDetail?t.navigateTo({url:e}):this.authShow=!0},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1}}};e.default=o}).call(this,i("df3c")["default"])},"2e68":function(t,e,i){"use strict";var a=i("88d5"),n=i.n(a);n.a},3720:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))}},n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.incomeData&&"2"!=t.typeActive?t.incomeData.theater_list&&t.incomeData.theater_list.length>0&&t.classType&&0!=t.userDetail:null),a=t.incomeData&&"2"!=t.typeActive?t.incomeData.theater_list_jc&&t.incomeData.theater_list_jc.length>0&&!t.classType&&0!=t.userDetail:null,n=t.incomeData&&"2"==t.typeActive?t.incomeData.theater_list&&t.incomeData.theater_list.length>0:null,o=t.incomeData?"2"!=t.typeActive&&t.incomeData.theater_list&&0==t.incomeData.theater_list.length&&0!=t.userDetail&&t.classType||"2"!=t.typeActive&&t.incomeData.theater_list_jc&&0==t.incomeData.theater_list_jc.length&&0!=t.userDetail&&!t.classType||"2"==t.typeActive&&t.incomeData.theater_list&&0==t.incomeData.theater_list.length&&0!=t.userDetail:null;t._isMounted||(t.e0=function(e){t.platformShow=!0},t.e1=function(e){t.classType=!t.classType},t.e2=function(e){t.platformShow=!1},t.e3=function(e){t.platformShow=!1},t.e4=function(e){t.tipsShow=!1},t.e5=function(e){t.tipsShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:i,g1:a,g2:n,g3:o}})},o=[]},"3c92":function(t,e,i){"use strict";i.r(e);var a=i("6c30"),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},"3ed5":function(t,e,i){"use strict";i.r(e);var a=i("9fbd"),n=i("3c92");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("438e");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"0a2de842",null,!1,a["a"],void 0);e["default"]=s.exports},"438e":function(t,e,i){"use strict";var a=i("d02d"),n=i.n(a);n.a},"4e3e":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{userDetail:0,authShow:!1,typeTabData:["推广计划","短剧","短剧广告","小说","影票","饿了么"],typeActive:0,tabId:"tabId0",timeTabData:["汇总","今天","昨天","近7天","近30天","本月"],timeActive:1,tabData:[],active:0,incomeData:{},platformShow:!1,classType:!0,tipsShow:!1}},props:{incomeShow:{type:Number,default:function(){return 0}}},watch:{incomeShow:{handler:function(e){t.getStorageSync("elmIncome")&&(this.typeActive=5,t.removeStorageSync("elmIncome")),this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.getCate()},deep:!0,immediate:!0}},methods:{getNewIncome:function(){var t=this;this.incomeData=[],this.util.request({url:"api/Newincome/spread_income_new",data:{userid:this.userDetail.userId,data_type:this.timeActive,list_type:this.tabData[this.active].id,source_type:this.typeActive},success:function(e){t.incomeData=e.data.data}})},getCate:function(){var t=this;this.util.request({url:"api/Newincome/shouyi_cate",data:{source_type:this.typeActive},success:function(e){t.tabData=e.data.data,t.getNewIncome()}})},typeTabTap:function(t){this.typeActive=t,this.active=0,this.tabId="tabId".concat(0==t?t:t-1),"2"!=t?this.getCate():this.getNewIncome()},timeTabTap:function(t){this.timeActive=t,this.getNewIncome()},tabTap:function(t){this.active=t,this.getNewIncome()},pfItemTap:function(t){this.platformShow=!1,this.active=t,this.getNewIncome()},shopBtnTap:function(e,i){t.navigateTo({url:"/subcontract/pages/short/balance?id=".concat(e,"&type=").concat(i,"&index=").concat(this.typeActive)})},loginTap:function(){this.authShow=!0},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1},incomeTipsTap:function(){"1"!=this.typeActive&&"3"!=this.typeActive||(this.tipsShow=!0)}}};e.default=i}).call(this,i("df3c")["default"])},"4f8e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(i.bind(null,"46d4"))}},n=function(){var t=this.$createElement;this._self._c},o=[]},"5cfe":function(t,e,i){},"674d":function(t,e,i){"use strict";i.r(e);var a=i("2a6f"),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},"6c30":function(t,e,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("af34")),o={data:function(){return{userDetail:0,authShow:!1,isiPhoneX:t.getStorageSync("iPhoneX"),incomeTab:[],incomeActive:0,topShow:!1,scrollTop:0,oldScrollTop:0}},props:{cashShow:{type:Number,default:function(){return 0}}},watch:{cashShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.getCashTab()},deep:!0,immediate:!0}},methods:{getCashTab:function(){var t=this;this.util.request({url:"api/Promotion/cate",success:function(e){t.incomeTab=e.data.data,t.getCashData()}})},getCashData:function(){var t=this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active];this.util.request({url:"api/Promotion/list",data:{type:this.incomeActive,keyword:this.incomeTab[this.incomeActive].keyword,page:t.page,pagesize:20,source_type:t.id,source:t.selectData[t.selectActive].source},success:function(e){var i;(i=t.cashData).push.apply(i,(0,n.default)(e.data.data)),t.more=20==e.data.data.length?"more":"no-more"}})},incomeTap:function(t){this.incomeActive=t},shortTabTap:function(t,e){this.topShow=!1,this.scrollTop=this.oldScrollTop=0,this.incomeTab[t].active=e;var i=this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active];0!=i.cashData.length&&i.keyword==this.incomeTab[this.incomeActive].keyword||(i.keyword=this.incomeTab[this.incomeActive].keyword,this.getReset())},selectTap:function(t,e){this.incomeTab[t].tabData[e].selectShow=!this.incomeTab[t].tabData[e].selectShow},selectItemTap:function(t,e,i){this.incomeTab[t].tabData[this.incomeTab[t].active].selectActive=e,this.incomeTab[t].tabData[this.incomeTab[t].active].selectShow=!1,this.getReset()},getReset:function(){var t=this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active];t.cashData=[],t.more="more",t.page=1,this.getCashData()},scrolltolower:function(){var t=this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active];"more"==t.more&&(t.more="loading",t.page++,this.getCashData())},swiperChange:function(t){this.incomeTap(t.detail.current),0==this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active].cashData.length&&this.getCashData()},scroll:function(t){this.topShow=!(t.detail.deltaY>0),this.oldScrollTop=t.detail.scrollTop},cashBoxTap:function(e,i){this.userDetail||!i?t.navigateTo({url:e}):this.authShow=!0},cashTopTap:function(){this.scrollTop=this.oldScrollTop,this.$nextTick((function(){this.scrollTop=0}))},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1},askBtnTap:function(){if(this.userDetail){var e=this.incomeTab[this.incomeActive].tabData[this.incomeTab[this.incomeActive].active];console.log(this.userDetail.userId,e.selectData[e.selectActive].agentid,e.selectData[e.selectActive].admin_id),t.navigateToMiniProgram({appId:"wx11266574b837c20b",extraData:{userid:this.userDetail.userId,id:e.selectData[e.selectActive].agentid,admin:e.selectData[e.selectActive].admin_id},success:function(t){console.log(t)},fail:function(t){console.log(t)}})}else this.authShow=!0}}};e.default=o}).call(this,i("df3c")["default"])},"795d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={tabBar:function(){return i.e("components/tabBar/tabBar").then(i.bind(null,"c58f"))}},n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.pageIndex.indexOf("index/index")),a=t.pageIndex.indexOf("index/alternate"),n=t.pageIndex.indexOf("short/short"),o=t.pageIndex.indexOf("short/custom"),c=t.pageIndex.indexOf("cash/cash"),s=t.pageIndex.indexOf("novel/novel"),r=t.pageIndex.indexOf("income/income"),u=t.pageIndex.indexOf("my/my");t.$mp.data=Object.assign({},{$root:{g0:i,g1:a,g2:n,g3:o,g4:c,g5:s,g6:r,g7:u}})},o=[]},"79d76":function(t,e,i){"use strict";i.r(e);var a=i("795d"),n=i("c561");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("1aa9");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"68898c25",null,!1,a["a"],void 0);e["default"]=s.exports},"7f86":function(t,e,i){"use strict";i.r(e);var a=i("2345"),n=i("674d");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("f372");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"5e7848ae",null,!1,a["a"],void 0);e["default"]=s.exports},"84b7":function(t,e,i){"use strict";i.r(e);var a=i("4e3e"),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},"88d5":function(t,e,i){},8973:function(t,e,i){"use strict";i.r(e);var a=i("d355"),n=i("d7ff");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("2e68");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"1088f4ec",null,!1,a["a"],void 0);e["default"]=s.exports},"905c":function(t,e,i){},"96ca":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{userDetail:0,authShow:!1,record:t.getStorageSync("appimg"),indexData:{},shortData:[],navImg:"",banShow:!1}},mounted:function(){this.getIndexData(),this.getAlternate()},props:{alternateShow:{type:Number,default:function(){return 0}}},watch:{alternateShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.banShow=!(t.getStorageSync("ban")>=2)},deep:!0,immediate:!0}},methods:{getIndexData:function(){var t=this;this.util.request({url:"api/index/pageset",data:{app_type:1},success:function(e){t.indexData=e.data.data}})},getAlternate:function(){var e=this;this.util.request({url:"api/theater/theater_indexnew",data:{version:t.getStorageSync("version")},success:function(t){e.shortData=t.data.data}})},searchTap:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/search/search"}):this.authShow=!0},jumpWebApp:function(e){this.userDetail||!e.is_login?(0==e.url_type&&t.navigateTo({url:e.url}),1==e.url_type&&t.navigateTo({url:"/pages/web/web?src=".concat(e.url)}),2==e.url_type&&t.reLaunch({url:e.url}),3==e.url_type&&t.navigateToMiniProgram({appId:e.xcx_appid,path:e.url,envVersion:"release",success:function(t){console.log(t)},fail:function(t){console.log(t)}})):this.authShow=!0},navTap:function(e){this.userDetail?""!=e.code_img?(this.navImg=e.code_img,this.$refs.popup.open("center")):t.navigateTo({url:e.url}):this.authShow=!0},shortMore:function(e){e.localtype?(t.setStorageSync("localCate",e.cate_id),t.setStorageSync("localType",e.type_id)):(t.setStorageSync("shortCate",e.cate_id),t.setStorageSync("shortType",e.type_id)),this.$emit("jumpClassify",e.duanju_key)},shortItemTap:function(e){t.navigateTo({url:e})},banBtnTap:function(){var e=t.getStorageSync("ban")||0;t.setStorageSync("ban",e+1),this.banShow=!1},recordTap:function(){t.navigateTo({url:"../web/web?src=https://beian.miit.gov.cn/"})},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1}}};e.default=i}).call(this,i("df3c")["default"])},"9b54":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(i.bind(null,"46d4"))},empower:function(){return i.e("components/empower/empower").then(i.bind(null,"f4ac"))},authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))}},n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.selectData.length);t._isMounted||(t.e0=function(e){t.platformShow=!0},t.e1=function(e){t.platformShow=!1},t.e2=function(e){t.platformShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]},"9fbd":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(i.bind(null,"46d4"))},authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))}},n=function(){var t=this.$createElement;this._self._c},o=[]},ad13:function(t,e,i){"use strict";var a=i("0147"),n=i.n(a);n.a},af51:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{userDetail:0,authShow:!1,cdShow:!1,myIncomeData:{},myNavData:[],inviteShow:!1,inviteCode:"",navImg:"",toolData:[],empowerShow:!1}},props:{myShow:{type:Number,default:function(){return 0}}},watch:{myShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.getTool(),this.getMyIncome(),this.getMyNav()},deep:!0,immediate:!0}},methods:{getMyIncome:function(){var t=this;this.util.request({url:"api/theater/withdrawal_new",data:{userid:this.userDetail.userId},success:function(e){t.myIncomeData=e.data.data}})},getMyNav:function(){var t=this;this.util.request({url:"api/index/uicon",data:{ios:!1,app_type:1},success:function(e){t.myNavData=e.data.data}})},getTool:function(){var t=this;this.util.request({url:"api/index/tool",success:function(e){t.toolData=e.data.data}})},goWal:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/income/income"}):this.authShow=!0},goRecords:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/short/records"}):this.authShow=!0},loginTap:function(){this.userDetail||(this.authShow=!0)},myNavTap:function(e){this.userDetail||!e.is_login?(0==e.url_type&&t.navigateTo({url:e.url}),1==e.url_type&&t.navigateTo({url:"/pages/web/web?src=".concat(e.url)}),2==e.url_type&&t.reLaunch({url:e.url}),3==e.url_type&&t.navigateToMiniProgram({appId:e.xcx_appid,path:e.url,envVersion:"release",success:function(t){console.log(t)},fail:function(t){console.log(t)}})):this.authShow=!0},inviteBtnTap:function(){var e=this;this.util.request({url:"api/upgrade/invite",data:{userid:this.userDetail.userId,code:this.inviteCode},success:function(i){i.data.code&&(e.inviteShow=!1),t.showToast({title:i.data.msg,icon:"none"})}})},empowerBtnTap:function(){this.empowerShow=!1},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0,this.getMyIncome()},cancel:function(){this.authShow=!1},logOutTap:function(){var e=this;t.showModal({title:"提示",content:"是否退出登录?",success:function(i){i.confirm&&(t.removeStorageSync("userInfo"),e.userDetail=0,e.getMyIncome(),"0"!=t.getStorageSync("loginType")&&t.navigateTo({url:"/subcontract/pages/login/passLogin"}))}})},cdSave:function(e){var i=t.getStorageSync("userInfo")||0;i.wxInfo.avatarUrl=e.avatar,i.wxInfo.nickName=e.nickname,this.userDetail.avatarUrl=e.avatar,this.userDetail.nickName=e.nickname,t.setStorageSync("userInfo",i),this.cdShow=!1},cdCancel:function(){this.cdShow=!1},toolTap:function(e){t.navigateToMiniProgram({appId:this.toolData[e].appid,path:this.toolData[e].wxapplink,envVersion:"release",success:function(t){console.log(t)},fail:function(t){console.log(t)}})}}};e.default=i}).call(this,i("df3c")["default"])},af52:function(t,e,i){"use strict";i.r(e);var a=i("2526"),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},b49b:function(t,e,i){},b633:function(t,e,i){"use strict";i.r(e);var a=i("c520"),n=i("249e");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("ad13");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"58dc2963",null,!1,a["a"],void 0);e["default"]=s.exports},bdfe:function(t,e,i){"use strict";(function(t,e){var a=i("47a9");i("68b9");a(i("3240"));var n=a(i("79d76"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(n.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},c520:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"a88c"))},ban:function(){return i.e("components/ban/ban").then(i.bind(null,"72dc"))},authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))}},n=function(){var t=this.$createElement;this._self._c},o=[]},c561:function(t,e,i){"use strict";i.r(e);var a=i("d1f6"),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},cd64:function(t,e,i){},cdc8:function(t,e,i){"use strict";i.r(e);var a=i("3720"),n=i("84b7");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("f261");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"6f4acada",null,!1,a["a"],void 0);e["default"]=s.exports},cf7a:function(t,e,i){"use strict";i.r(e);var a=i("9b54"),n=i("fcb7");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("17e4");var c=i("828b"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"99172bc2",null,!1,a["a"],void 0);e["default"]=s.exports},d02d:function(t,e,i){},d1f6:function(t,e,i){"use strict";(function(t,a){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("b633")),c=n(i("7f86")),s=n(i("2199")),r=n(i("3ed5")),u=n(i("cf7a")),h=n(i("cdc8")),l=n(i("8973")),d={components:{index:function(){i.e("pages/index/indexCommon").then(function(){return resolve(i("ae4d"))}.bind(null,i)).catch(i.oe)},alternate:o.default,short:c.default,custom:s.default,cash:r.default,novel:u.default,income:h.default,my:l.default},data:function(){return{userDetail:0,pageIndex:"",tabBarData:[],navTitle:[{title:"首页",url:"index/index"},{title:"首页",url:"index/alternate"},{title:"变现",url:"short/short"},{title:"变现",url:"short/custom"},{title:"推广变现",url:"cash/cash"},{title:"推广计划",url:"novel/novel"},{title:"收益",url:"income/income"},{title:"个人中心",url:"my/my"}],reachBottom:1,indexShow:0,alternateShow:0,incomeShow:0,shortShow:0,customShow:0,cashShow:0,novelShow:0,myShow:0,shareData:{},showPrivacy:!1,privacyData:""}},onShow:function(){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.pageIndex.indexOf("index/index")>-1&&(this.indexShow=Date.parse(new Date)),this.pageIndex.indexOf("index/alternate")>-1&&(this.alternateShow=Date.parse(new Date)),this.pageIndex.indexOf("short/short")>-1&&(this.shortShow=Date.parse(new Date)),this.pageIndex.indexOf("short/custom")>-1&&(this.customShow=Date.parse(new Date)),this.pageIndex.indexOf("cash/cash")>-1&&(this.cashShow=Date.parse(new Date)),this.pageIndex.indexOf("novel/novel")>-1&&(this.novelShow=Date.parse(new Date)),this.pageIndex.indexOf("income/income")>-1&&(this.incomeShow=Date.parse(new Date)),this.pageIndex.indexOf("my/my")>-1&&(this.myShow=Date.parse(new Date)),this.getPrivacy()},onLoad:function(e){var i=this;if(console.log(e),e.pid&&t.setStorageSync("pid",e.pid),e.scene){var a=this.options_data(e.scene);console.log(a);var n=a.p?a.p:"0";t.setStorageSync("pid",n)}Promise.all([this.util.GetTabBar((function(t){console.log(t),i.pageIndex=t[0].wxapplink,t.map((function(e){i.tabBarData.push(e.wxapplink),i.navTitle.map((function(t,i){e.wxapplink.indexOf(t.url)>-1&&(t.title=e.page_name)})),i.$nextTick((function(){this.getTitle(t[0].wxapplink)}))}))}))]),this.util.request({url:"api/index/share",success:function(t){i.shareData=t.data.data}})},onReachBottom:function(){(this.pageIndex.indexOf("short/short")>-1||this.pageIndex.indexOf("short/custom")>-1||this.pageIndex.indexOf("novel/novel")>-1)&&this.reachBottom++},onShareAppMessage:function(t){return{title:this.shareData.title,path:"/pages/index/index?pid=".concat(this.userDetail.userId||0),imageUrl:this.shareData.img_url}},onShareTimeline:function(){return{title:this.shareData.title,path:"/pages/index/index?pid=".concat(this.userDetail.userId||0),imageUrl:this.shareData.img_url}},methods:{changeTab:function(t){this.pageIndex=t.wxapplink,this.getTitle(t.wxapplink)},jumpClassify:function(e,i){if(console.log(e,this.tabBarData),e>-1){var a=this.tabBarData[e];this.pageIndex=a,this.urlIndex(a),this.getTitle(a)}else-1==e&&t.navigateTo({url:"/pages/short/short"}),-2==e&&t.navigateTo({url:"/pages/novel/novel"}),-3==e&&t.navigateTo({url:"/pages/short/custom"})},urlIndex:function(t){var e=this;console.log(t),this.tabBarData.map((function(i,a){var n=i.indexOf("?");i=n>-1?i.substring(0,n):i,t.indexOf(i)>-1&&(console.log(a),e.$refs.child.linkIndex=a)}))},getTitle:function(e){this.navTitle.map((function(i,a){var n=e.indexOf(i.url);n>-1&&t.setNavigationBarTitle({title:i.title})}))},options_data:function(t){t=decodeURIComponent(t).split("&");for(var e={},i=0;i<t.length;i++){var a=t[i].split("=");e[a[0]]=a[1]}return e},getAppMessageShare:function(){var t=this;this.util.request({url:"api/share/index",data:{url:window.location.href},success:function(e){t.util.jwxModule(e.data.data,t.shareData.title,t.shareData.subtitle,window.location.href,t.shareData.img_url)}})},getLoginType:function(){var e=this;this.util.request({url:"api/user/login_type",success:function(i){"0"!=i.data.data&&"0"==e.userDetail&&t.navigateTo({url:"/subcontract/pages/login/passLogin"})}})},textNavTap:function(){a.openPrivacyContract({success:function(){},fail:function(){},complete:function(){}})},getPrivacy:function(){var t=this;a.getPrivacySetting({success:function(e){console.log(e),t.privacyData=e.privacyContractName,e.needAuthorization?t.showPrivacy=!0:t.getLoginType()},fail:function(){},complete:function(){}})},handleAgreePrivacyAuthorization:function(){this.showPrivacy=!1,this.getLoginType()},exitTap:function(){t.exitMiniProgram({success:function(){console.log("退出小程序成功")},fail:function(t){console.log("退出小程序失败",t)}})}}};e.default=d}).call(this,i("df3c")["default"],i("3223")["default"])},d355:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={empower:function(){return i.e("components/empower/empower").then(i.bind(null,"f4ac"))},authorize:function(){return i.e("components/authorize/authorize").then(i.bind(null,"7929"))},changeData:function(){return i.e("components/changeData/changeData").then(i.bind(null,"deb4"))},uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"a88c"))}},n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.toolData.length),a=i>0?t.toolData.length:null,n=i>0&&a>1?t.toolData.slice(1):null;t._isMounted||(t.e0=function(e){t.cdShow=!0},t.e1=function(e,i){var a=arguments[arguments.length-1].currentTarget.dataset,n=a.eventParams||a["event-params"];i=n.index;return t.toolTap(i+1)},t.e2=function(e){t.inviteShow=!1},t.e3=function(e){t.inviteShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:i,g1:a,l0:n}})},o=[]},d7ff:function(t,e,i){"use strict";i.r(e);var a=i("af51"),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},f261:function(t,e,i){"use strict";var a=i("ffc0"),n=i.n(a);n.a},f372:function(t,e,i){"use strict";var a=i("b49b"),n=i.n(a);n.a},fcb7:function(t,e,i){"use strict";i.r(e);var a=i("22f9"),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},ffc0:function(t,e,i){}},[["bdfe","common/runtime","common/vendor"]]]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。