pages-list-mallList.eff90261.js
2.45 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-mallList"],{"817d":function(t,e,n){"use strict";n.r(e);var a=n("ae97"),i=n.n(a);for(var u in a)"default"!==u&&function(t){n.d(e,t,function(){return a[t]})}(u);e["default"]=i.a},9199:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("headerComp",{attrs:{leftImgSrc:t.leftSrc,title:t.titleStr},on:{leftClick:function(e){e=t.$handleEvent(e),t.backClick(e)}}}),n("uni-list",[n("uni-list-item",{attrs:{title:this.$t("index").allStore},on:{click:function(e){e=t.$handleEvent(e),t.selectStore(t.id)}}}),t._l(t.list,function(e){return n("uni-list-item",{attrs:{title:e.name},on:{click:function(n){n=t.$handleEvent(n),t.selectStore(e.id,e.name)}}})})],2)],1)},i=[];n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i})},ae97:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=c(n("ce42")),i=c(n("d8f1")),u=c(n("39d8"));function c(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{aa:"aa",leftSrc:"../../static/header/backArrow.png",titleStr:this.$t("index").storeSelect,id:"",atoken:"",list:[],accountName:"",url:""}},onLoad:function(t){var e=this;this.url=t.url,uni.getStorage({key:"accountName",success:function(t){e.accountName=t.data}}),uni.getStorage({key:"accountId",success:function(t){e.id=t.data}}),uni.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),this.getListData()},computed:{i18n:function(){return this.$t("index")}},components:{headerComp:a.default,uniList:i.default,uniListItem:u.default},methods:{search:function(t,e){console.log(t)},selectStore:function(t,e){uni.setStorage({key:"orgIds",data:t}),t==this.id?(uni.setStorage({key:"type",data:"account"}),uni.setStorage({key:"orgName",data:this.accountName})):(uni.setStorage({key:"type",data:"mall"}),uni.setStorage({key:"orgName",data:e})),uni.reLaunch({url:this.url})},getListData:function(){var t=this;uni.request({url:window.url+"/malls",data:{accountId:this.id,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(e){t.list=e.data.data}})},backClick:function(){uni.navigateBack({delta:1})}}};e.default=o},ea11:function(t,e,n){"use strict";n.r(e);var a=n("9199"),i=n("817d");for(var u in i)"default"!==u&&function(t){n.d(e,t,function(){return i[t]})}(u);var c=n("2877"),o=Object(c["a"])(i["default"],a["a"],a["b"],!1,null,"c7b66c40",null);e["default"]=o.exports}}]);