mallList.js 2.55 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/list/mallList"],{"443d":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(a("c09e")),i=o(a("af25")),c=o(a("26f3"));function o(t){return t&&t.__esModule?t:{default:t}}var u={data:function(){return{leftSrc:"../../static/header/backArrow.png",titleStr:"商场选择",id:"",atoken:"",list:[],accountName:""}},onLoad:function(e){var a=this;this.atoken=e.atoken,this.id=e.accountId,t.getStorage({key:"accountName",success:function(t){a.accountName=t.data}}),this.getListData()},components:{headerComp:n.default,uniList:i.default,uniListItem:c.default},methods:{selectStore:function(e,a){t.setStorage({key:"orgIds",data:e}),e==this.id?(t.setStorage({key:"type",data:"account"}),t.setStorage({key:"orgName",data:this.accountName})):(t.setStorage({key:"type",data:"mall"}),t.setStorage({key:"orgName",data:a})),t.reLaunch({url:"../index/index"})},getListData:function(){var e=this;t.request({url:"https://store.keliuyun.com/report/malls",data:{accountId:this.id,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(t){e.list=t.data.data}})},backClick:function(){t.navigateBack({delta:1})}}};e.default=u}).call(this,a("649d")["default"])},8772:function(t,e,a){"use strict";a("eb2b");var n=c(a("b0ce")),i=c(a("f919"));function c(t){return t&&t.__esModule?t:{default:t}}Page((0,n.default)(i.default))},"95e5":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("headerComp",{attrs:{leftImgSrc:t.leftSrc,title:t.titleStr,eventid:"2be8c3e9-0",mpcomid:"2be8c3e9-0"},on:{leftClick:t.backClick}}),a("uni-list",{attrs:{mpcomid:"2be8c3e9-3"}},[a("uni-list-item",{attrs:{title:"全部门店",eventid:"2be8c3e9-1",mpcomid:"2be8c3e9-1"},on:{click:function(e){t.selectStore(t.id)}}}),t._l(t.list,function(e,n){return a("uni-list-item",{attrs:{title:e.name,eventid:"2be8c3e9-2-"+n,mpcomid:"2be8c3e9-2-"+n},on:{click:function(a){t.selectStore(e.id,e.name)}}})})],2)],1)},i=[];a.d(e,"a",function(){return n}),a.d(e,"b",function(){return i})},a0b4:function(t,e,a){"use strict";a.r(e);var n=a("443d"),i=a.n(n);for(var c in n)"default"!==c&&function(t){a.d(e,t,function(){return n[t]})}(c);e["default"]=i.a},f919:function(t,e,a){"use strict";a.r(e);var n=a("95e5"),i=a("a0b4");for(var c in i)"default"!==c&&function(t){a.d(e,t,function(){return i[t]})}(c);var o=a("2877"),u=Object(o["a"])(i["default"],n["a"],n["b"],!1,null,null,null);e["default"]=u.exports}},[["8772","common/runtime","common/vendor"]]]);