index.js 5.3 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_manage/index"],{277:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var o=a(t(278));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},278:function(e,n,t){"use strict";t.r(n);var a=t(279),o=t(281);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(293);var s,c=t(34),r=Object(c["default"])(o["default"],a["render"],a["staticRenderFns"],!1,null,"4c91ccd1",null,!1,a["components"],s);r.options.__file="pages_manage/index.vue",n["default"]=r.exports},279:function(e,n,t){"use strict";t.r(n);var a=t(280);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},280:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return s})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return a}));try{a={uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,561))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},i=!1,s=[];o._withStripped=!0},281:function(e,n,t){"use strict";t.r(n);var a=t(282),o=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);n["default"]=o.a},282:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(274),o=function(){t.e("pages_manage/components/dataIndex").then(function(){return resolve(t(569))}.bind(null,t)).catch(t.oe)},i=function(){Promise.all([t.e("common/vendor"),t.e("pages_manage/components/courseIndex")]).then(function(){return resolve(t(576))}.bind(null,t)).catch(t.oe)},s=function(){t.e("pages_manage/components/memberIndex").then(function(){return resolve(t(583))}.bind(null,t)).catch(t.oe)},c=function(){t.e("pages_manage/components/UrgeIndex").then(function(){return resolve(t(590))}.bind(null,t)).catch(t.oe)},r=function(){t.e("pages_manage/components/manageIndex").then(function(){return resolve(t(597))}.bind(null,t)).catch(t.oe)},u={components:{dataIndex:o,courseIndex:i,memberIndex:s,UrgeIndex:c,manageIndex:r},data:function(){return{showShare:!1,tabact:1,childdata:[],vipPages:"",salsepages:"",listtab:[{name:"数据",value:0,tab:t(283),tabsel:t(284)},{name:"课程库",value:1,tab:t(285),tabsel:t(286)},{name:"会员",value:2,tab:t(287),tabsel:t(288)},{name:"催课",value:3,tab:t(289),tabsel:t(290)},{name:"管理",value:4,tab:t(291),tabsel:t(292)}],companyUserInfo:JSON.parse(e.getStorageSync("companyUserInfo"))}},computed:{appid:function(){return this.$store.state.appid},imgPath:function(){return this.$store.state.imgpath}},onShareAppMessage:function(){return 1==this.tabact?{title:this.childdata.title,path:this.childdata.path+"?course="+JSON.stringify(this.childdata.params),imageUrl:this.childdata.img,success:function(e){console.log("分享成功",e)},fail:function(e){console.log("分享失败",e)}}:2==this.tabact?{title:this.$store.state.logoname+"小程序的"+this.companyUserInfo.nickName+"邀请您成为会员!",path:this.vipPages,imageUrl:this.imgPath+"/app/image/logoshare.png"}:4==this.tabact?{title:this.$store.state.logoname+"小程序的"+this.companyUserInfo.nickName+"邀请您成为销售!",path:this.salsepages,imageUrl:this.imgPath+"/app/image/logoshare.png"}:void 0},onLoad:function(e){this.tabact=e.act?e.act:1},methods:{copy:function(){console.log("hhh"),e.showLoading({title:"处理中..."});var n={appid:this.appid,linkStr:this.childdata.path+"?course="+JSON.stringify(this.childdata.params)};(0,a.copyuniLink)(n).then((function(n){200==n.code?(e.hideLoading(),setTimeout((function(){e.setClipboardData({data:n.data,success:function(){e.showToast({title:"链接已复制",icon:"none",duration:2e3})},fail:function(){e.showToast({title:"复制失败",icon:"none"})}})}),200)):(e.hideLoading(),e.showToast({title:n.msg,icon:"none"}))}))},chlidpages:function(e){this.vipPages=e},chlidSalsepages:function(e){console.log("父组件",e),this.salsepages=e},closeShare:function(){this.showShare=!1},handleParentMethod:function(){},onChildDataUpdate:function(e){this.childdata=e,this.showShare=this.childdata.onshow,console.log(this.childdata),console.log("父组件",this.childdata.path+"?course="+JSON.stringify(this.childdata.params))},tabclick:function(n){this.tabact=n.value,e.setNavigationBarTitle({title:n.name})}}};n.default=u}).call(this,t(2)["default"])},293:function(e,n,t){"use strict";t.r(n);var a=t(294),o=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);n["default"]=o.a},294:function(e,n,t){}},[[277,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_manage/index.js.map