my.js 4.3 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{1819:function(n,t,e){"use strict";e.r(t);var a=e("e30f"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);t["default"]=i.a},5608:function(n,t,e){"use strict";e.r(t);var a=e("a788"),i=e("1819");for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);e("d621");var r=e("828b"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"1ebfdf4c",null,!1,a["a"],void 0);t["default"]=s.exports},"69f8":function(n,t,e){"use strict";(function(n,t){var a=e("47a9");e("9a91");a(e("3240"));var i=a(e("5608"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"91a0":function(n,t,e){},a788:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return a}));var a={tabbar:function(){return e.e("components/tabbar/tabbar").then(e.bind(null,"3789"))}},i=function(){var n=this,t=n.$createElement,e=(n._self._c,n.$imgUrl("/bg.png")),a=n.$imgUrl("/logo.png"),i=n.Islogin?n.$imgUrl("/img/head.jpg"):null,o=n.Islogin||n.user.avatar?null:n.$imgUrl("/img/head.jpg"),r=n.$imgUrl("/right1.png"),s=n.$imgUrl("/my-icon2.png"),c=n.$imgUrl("/right2.png"),g=n.$imgUrl("/my-icon2.png"),u=n.$imgUrl("/right2.png");n.$mp.data=Object.assign({},{$root:{m0:e,m1:a,m2:i,m3:o,m4:r,m5:s,m6:c,m7:g,m8:u}})},o=[]},d621:function(n,t,e){"use strict";var a=e("91a0"),i=e.n(a);i.a},e30f:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=e("79bf"),i={components:{tabbar:function(){e.e("components/tabbar/tabbar").then(function(){return resolve(e("3789"))}.bind(null,e)).catch(e.oe)}},data:function(){return{Islogin:!0,scrollTop:0,isHotline:!1,shopMsg:{},pageindex:{pageNumber:1,pageSize:10},tuiguang:"",tongji:{},activityNum:0,wenjuanNum:0,user:n.getStorageSync("user")}},onload:function(){},onShow:function(){var t=this,e=(n.getStorageSync("shopId"),n.getStorageSync("token"));if(""==e)n.navigateTo({url:"/pages/login/login"});else{this.$http.sendRequest("/business/getUser","POST").then((function(e){console.error(e),"200"==e.data.code?(t.user=e.data.data,t.Islogin=!1):n.navigateTo({url:"/pages/login/login"})}))}},onReady:function(){n.hideTabBar()},onPageScroll:function(n){this.scrollTop=n.scrollTop},mounted:function(){this.getALL()},methods:{gopath:function(t){n.navigateTo({url:t})},getALL:function(){var t=this;this.pageindex.createUser=n.getStorageSync("shopId"),this.$http.sendRequest("/cerePromotion/queryByPage","POST",this.pageindex,1).then((function(n){t.tuiguang=n.data.data.content.length})),this.$http.sendRequest("/cereActivityApplication/queryByPage","POST",this.pageindex,1).then((function(n){t.activityNum=n.data.data.content.length})),this.$http.sendRequest("/cereQuestionnaireTable/queryByPage","POST",this.pageindex,1).then((function(n){t.wenjuanNum=n.data.data.content.length}))},toPage:function(t){n.navigateTo({url:t})},recordService:function(){0==this.Islogin&&n.navigateTo({url:"/pages/recordService/recordService"})},complaint:function(){0==this.Islogin&&n.navigateTo({url:"/pages/complaint/complaint"})},repair:function(){0==this.Islogin&&n.navigateTo({url:"/pages/repair/repair"})},apply:function(){0==this.Islogin&&n.navigateTo({url:"/pages/record/record"})},myativity:function(){0==this.Islogin&&n.navigateTo({url:"/pages/mycreated/mycreated"})},questionnaire:function(){0==this.Islogin&&n.navigateTo({url:"/pages/questionnaire/questionnaire"})},shopjcMsg:function(){var t=JSON.stringify(this.shopMsg);0==this.Islogin&&n.navigateTo({url:"/pages/shopjcMsg/shopjcMsg?shopMsg=".concat(t)})},projectM:function(){0==this.Islogin&&n.navigateTo({url:"/pages/projectManagement/projectManagement"})},handleApplySettle:function(){var t=n.getStorageSync("token"),e=(0,a.Encrypt)(t),i=this.shopMsg.shopName;n.navigateTo({url:"../linkOthers/index?url=".concat("https://jy.scjysm.asia:18086/settled-merchant","&username=").concat(i,"&user=").concat(e)})},myMsg:function(){var t=n.getStorageSync("token");if(""==t)n.navigateTo({url:"/pages/login/login"});else{var e=JSON.stringify(this.shopMsg);0==this.Islogin&&n.navigateTo({url:"/pages/shopjcMsg/shopjcMsg?shopMsg=".concat(e)})}}}};t.default=i}).call(this,e("df3c")["default"])}},[["69f8","common/runtime","common/vendor"]]]);