pages-list-floorList.fb464ed3.js
3.94 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=c(n("ce42")),i=c(n("d8f1")),o=c(n("39d8"));function c(t){return t&&t.__esModule?t:{default:t}}var s={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=s},"6bf9":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})},"73ac":function(t,e,n){"use strict";var a=n("c75de"),i=n.n(a);i.a},"8af0":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".hearSwich[data-v-5cd12c98]{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-5cd12c98]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;padding:%?7.24?% 0}.active[data-v-5cd12c98]{background:#0069ff;color:#fff}",""])},c75de:function(t,e,n){var a=n("8af0");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("50221a6c",a,!0,{sourceMap:!1,shadowMode:!1})},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("6bf9"),i=n("c771");for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);n("73ac");var c=n("2877"),s=Object(c["a"])(i["default"],a["a"],a["b"],!1,null,"5cd12c98",null);e["default"]=s.exports}}]);