pages-list-floorList.b8902ab3.js 3.93 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-floorList"],{"0037":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s(n("ce42")),i=s(n("d8f1")),o=s(n("39d8"));function s(t){return t&&t.__esModule?t:{default:t}}var c={data:function(){return{leftSrc:"../../static/header/backArrow.png",titleStr:this.$t("index").areaSelect,accountId:"",atoken:"",mallId:"",floorList:[],zoneList:[],selectFloor:!0,selectZone:!1}},onLoad:function(t){this.atoken=t.atoken,this.accountId=t.accountId,this.mallId=t.mallId,this.getListData()},computed:{i18n:function(){return this.$t("index")}},components:{headerComp:a.default,uniList:i.default,uniListItem:o.default},methods:{tapFloor:function(){this.selectFloor=!0,this.selectZone=!1},tapZone:function(){this.selectFloor=!1,this.selectZone=!0},selectItem:function(t,e){uni.setStorage({key:"orgIds",data:t}),uni.setStorage({key:"orgName",data:e}),this.selectFloor?uni.setStorage({key:"type",data:"floor"}):uni.setStorage({key:"type",data:"zone"}),uni.reLaunch({url:"../index/index"})},getListData:function(){var t=this;uni.request({url:window.url+"/floors",data:{accountId:this.accountId,mallId:this.mallId,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(e){t.floorList=e.data.data}}),uni.request({url:window.url+"/zones",data:{accountId:this.accountId,mallId:this.mallId,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(e){t.zoneList=e.data.data}})},backClick:function(){uni.navigateBack({delta:1})}}};e.default=c},4557:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".hearSwich[data-v-a31bd244]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;border:1px solid #0069ff;border-radius:%?10.86?%;font-size:%?21.73?%;margin-top:%?7.24?%}.swichButton[data-v-a31bd244]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;padding:%?7.24?% 0}.active[data-v-a31bd244]{background:#0069ff;color:#fff}",""])},"90b7":function(t,e,n){"use strict";var a=n("ceae"),i=n.n(a);i.a},c771:function(t,e,n){"use strict";n.r(e);var a=n("0037"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,function(){return a[t]})}(o);e["default"]=i.a},cd6c:function(t,e,n){"use strict";n.r(e);var a=n("ebb0"),i=n("c771");for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);n("90b7");var s=n("2877"),c=Object(s["a"])(i["default"],a["a"],a["b"],!1,null,"a31bd244",null);e["default"]=c.exports},ceae:function(t,e,n){var a=n("4557");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("2c37de92",a,!0,{sourceMap:!1,shadowMode:!1})},ebb0: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("v-uni-view",{staticClass:"hearSwich"},[n("span",{staticClass:"swichButton",class:{active:t.selectFloor},on:{click:function(e){e=t.$handleEvent(e),t.tapFloor(e)}}},[t._v("楼层")]),n("span",{staticClass:"swichButton",class:{active:t.selectZone},on:{click:function(e){e=t.$handleEvent(e),t.tapZone(e)}}},[t._v(t._s(t.i18n.area))])]),n("uni-list",{directives:[{name:"show",rawName:"v-show",value:t.selectFloor,expression:"selectFloor"}]},t._l(t.floorList,function(e){return n("uni-list-item",{attrs:{title:e.name},on:{click:function(n){n=t.$handleEvent(n),t.selectItem(e.id,e.name)}}})})),n("uni-list",{directives:[{name:"show",rawName:"v-show",value:t.selectZone,expression:"selectZone"}]},t._l(t.zoneList,function(e){return n("uni-list-item",{attrs:{title:e.name},on:{click:function(n){n=t.$handleEvent(n),t.selectItem(e.id,e.name)}}})}))],1)},i=[];n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i})}}]);