12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{172:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(173));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},173:function(n,e,t){"use strict";t.r(e);var o=t(174),r=t(176);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t(181);var u,c=t(45),s=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"57280228",null,!1,o["components"],u);s.options.__file="pages/index/index.vue",e["default"]=s.exports},174:function(n,e,t){"use strict";t.r(e);var o=t(175);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},175:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));try{o={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,856))},uBadge:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-badge/u-badge")]).then(t.bind(null,864))},uSubsection:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-subsection/u-subsection")]).then(t.bind(null,872))},kjExpress:function(){return t.e("components/kj-express/kj-express").then(t.bind(null,880))},kjIndex:function(){return t.e("components/kj-index/kj-index").then(t.bind(null,887))},kjTabbar:function(){return Promise.all([t.e("common/vendor"),t.e("components/kj-tabbar/kj-tabbar")]).then(t.bind(null,894))}}}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 r=function(){var n=this,e=n.$createElement;n._self._c},i=!1,u=[];r._withStripped=!0},176:function(n,e,t){"use strict";t.r(e);var o=t(177),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},177:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(30),r=(t(178),{data:function(){return{recomlist:[],current:1,list1:[{name:"推荐"}],banner:["https://cdn.uviewui.com/uview/swiper/swiper1.png","https://cdn.uviewui.com/uview/swiper/swiper2.png","https://cdn.uviewui.com/uview/swiper/swiper3.png"],show:!0,timer:"",subsidylist:[],packlist:[],shippList:[],keyword:"",page:1,index:0,parent_id:"",last_page:"",configimage:"",url:"",unReadCount:0,type:"error",language:""}},computed:{i18n:function(){return this.$t("index")},list:function(){var n=[];return n=[this.i18n.border,this.i18n.shop],n}},onReachBottom:function(){},onLoad:function(n){},onShow:function(){this.$refs.express.express(),this.$refs.express.getexpress(),this.$refs.index.getlista(),this.getlist(),""!=n.getStorageSync("language")&&(this.language=n.getStorageSync("language")),this.HXlogin(),this.$refs.kjTabbar.getNumber()},methods:{swipertotabs:function(n){this.current=n.detail.current},sectionChange:function(n){this.current=n},HXlogin:function(){var e=this;if(n.getStorageSync("user_no")&&n.getStorageSync("pwd")){var t=n.getStorageSync("user_no"),r=n.getStorageSync("pwd");o.conn.open({user:t,pwd:r,appKey:o.conn.appkey}).then((function(){console.log("res"),e.getlist()})).catch((function(n){console.log("失败",n)}))}},getlist:function(){var n=this;this.unReadCount=0,o.conn.getServerConversations({pageSize:50,cursor:""}).then((function(e){console.log(e),e.data.conversations.forEach((function(e){n.unReadCount+=e.unReadCount})),console.log(n.unReadCount)}))},callphone:function(){n.$u.http.get("/api/config",{params:{module:"basic"}}).then((function(e){console.log(e),n.makePhoneCall({phoneNumber:e.service_mobile})})).catch((function(){}))},counter:function(){n.navigateTo({url:"/pageA/counter"})},tochat:function(){n.navigateTo({url:"/pageA/chat/news"})}}});e.default=r}).call(this,t(2)["default"])},181:function(n,e,t){"use strict";t.r(e);var o=t(182),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},182:function(n,e,t){}},[[172,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|