pages-list-oneFloorList.eefdd44d.js 8.84 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-oneFloorList"],{"0497":function(t,e,a){"use strict";a.r(e);var i=a("fa47"),n=a("d248");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("8901");var r=a("2877"),c=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"7a4d7f93",null);e["default"]=c.exports},"19b9":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".indexNav[data-v-7ae69da5]{height:%?77.89?%;line-height:%?77.89?%;text-align:center;background:#0069ff;position:fixed;font-size:%?33?%;color:#fff;width:100%;z-index:9}.blanks[data-v-7ae69da5]{height:%?77.89?%}.left[data-v-7ae69da5]{float:left;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-left:%?23.55?%}.right[data-v-7ae69da5]{position:absolute;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;right:%?21.73?%}.lImg[data-v-7ae69da5]{width:%?12.68?%;height:%?23.55?%;float:left;position:relative;top:%?27.17?%}.rImg[data-v-7ae69da5]{width:%?28.98?%;height:%?28.98?%;top:%?27.17?%;right:%?18.12?%;position:absolute}",""])},"1c03":function(t,e,a){"use strict";a.r(e);var i=a("3ad3"),n=a("8f98");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("4c32");var r=a("2877"),c=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"2d445e4a",null);e["default"]=c.exports},2205:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{navheight:0}},created:function(){var t=this;uni.getStorage({key:"statusBarH",success:function(e){e.data&&(t.navheight=e.data)}})},props:{leftText:{type:String,default:""},rightText:{type:String,default:""},leftImgSrc:{type:String,default:""},rightImgSrc:{type:String,default:""},title:{type:String,default:""}},methods:{rClick:function(){this.$emit("rightClick")},lClick:function(){this.$emit("leftClick")}}};e.default=i},"3ad3":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("headerComp",{attrs:{leftImgSrc:t.leftSrc,title:t.titleStr},on:{leftClick:function(e){e=t.$handleEvent(e),t.backClick(e)}}}),a("searchBox",{on:{handleEvent:function(e){e=t.$handleEvent(e),t.searchFun(e)}}}),a("v-uni-view",{staticClass:"list"},t._l(t.list,function(e){return a("v-uni-view",{staticClass:"listItem",on:{click:function(a){a=t.$handleEvent(a),t.itemFun(e)}}},[a("v-uni-text",[t._v(t._s(e.name))])],1)}))],1)},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},4407:function(t,e,a){"use strict";a.r(e);var i=a("2205"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},"4c32":function(t,e,a){"use strict";var i=a("85fc"),n=a.n(i);n.a},"85fc":function(t,e,a){var i=a("90c6");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("024e86d6",i,!0,{sourceMap:!1,shadowMode:!1})},8901:function(t,e,a){"use strict";var i=a("bd76"),n=a.n(i);n.a},"8f98":function(t,e,a){"use strict";a.r(e);var i=a("ab6d"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},"90c6":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".listItem[data-v-2d445e4a]{border-bottom:1px solid #979797;height:%?72.46?%;line-height:%?72.46?%;font-size:%?23.55?%;background:#fff;position:relative}.listItem>uni-image[data-v-2d445e4a]{width:%?28.98?%;height:%?28.98?%;position:absolute;top:%?23.55?%;left:%?25.36?%}.listItem uni-text[data-v-2d445e4a]{margin-left:%?77.89?%}",""])},a1bf:function(t,e,a){var i=a("19b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("afd4a560",i,!0,{sourceMap:!1,shadowMode:!1})},a846:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".searchDiv[data-v-7a4d7f93]{padding:%?12.68?% %?23.55?%;background:#f4f4f5;position:relative}.searchDiv uni-input[data-v-7a4d7f93]{height:%?54.34?%;background:#fff;padding:0 %?45.28?%}.searchDiv uni-image[data-v-7a4d7f93]{width:%?25.37?%;position:absolute;top:%?25.37?%;z-index:9;left:%?297.1?%}.searchDiv .focusClass[data-v-7a4d7f93]{left:%?32.6?%;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}",""])},ab5e:function(t,e,a){"use strict";var i=a("a1bf"),n=a.n(i);n.a},ab6d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s(a("ce42")),n=s(a("0497"));function s(t){return t&&t.__esModule?t:{default:t}}var r={data:function(){return{aa:"aa",leftSrc:"../../static/header/backArrow.png",titleStr:this.$t("index").storeSelect,id:"",atoken:"",list:[],allList:[],accountName:"",url:"",selectSrc:"../../static/list/select.png",unSelectSrc:"../../static/list/unselect.png",selectIdArr:[],selectNameArr:[],type:""}},onLoad:function(t){var e=this;this.url=t.url,this.type=t.type,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:i.default,searchBox:n.default},methods:{searchFun:function(t){var e=this;this.list=[],this.allList.forEach(function(a){-1!=a.name.indexOf(t)&&e.list.push(a)})},itemFun:function(t){this.selectIdArr=[],this.selectNameArr=[],this.selectNameArr.push(t.name),this.selectIdArr.push(t.id),this.confirmFun()},confirmFun:function(){uni.removeStorage({key:"selectStoreNameArr",success:function(t){console.log("success")}}),uni.setStorage({key:"selectFloorIdArr",data:JSON.stringify(this.selectIdArr)}),uni.setStorage({key:"selectFloorNameArr",data:JSON.stringify(this.selectNameArr)}),uni.reLaunch({url:this.url+"?type="+this.type})},getListData:function(){var t=this;uni.getStorage({key:"accountList",success:function(e){t.allList=JSON.parse(e.data),t.list=JSON.parse(e.data)}});var e="";uni.getStorage({key:"selectAccountIdArr",success:function(t){e=JSON.parse(t.data)[0]}}),uni.request({url:window.url+"/floors",data:{accountId:this.id,mallId:e,status:1,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(e){t.allList=JSON.parse(JSON.stringify(e.data.data)),t.allList.unshift({name:"全部",id:"all"}),t.list=JSON.parse(JSON.stringify(e.data.data)),t.list.unshift({name:"全部",id:"all"})}})},backClick:function(){uni.navigateBack({delta:1})}}};e.default=r},bd76:function(t,e,a){var i=a("a846");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("e25b0f06",i,!0,{sourceMap:!1,shadowMode:!1})},c6b2:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("div",{style:{height:t.navheight+"px",background:"#0069FF"}}),a("v-uni-view",{staticClass:"indexNav"},[a("v-uni-text",{staticClass:"left",on:{click:function(e){e=t.$handleEvent(e),t.lClick(e)}}},[t._v(t._s(t.leftText))]),a("v-uni-image",{staticClass:"lImg",attrs:{src:t.leftImgSrc},on:{click:function(e){e=t.$handleEvent(e),t.lClick(e)}}}),t._v(t._s(t.title)),a("span",{staticClass:"right",on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}},[t._v(t._s(t.rightText))]),a("v-uni-image",{staticClass:"rImg",attrs:{src:t.rightImgSrc},on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}})],1),a("v-uni-view",{staticClass:"blanks"})],1)},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})},ce42:function(t,e,a){"use strict";a.r(e);var i=a("c6b2"),n=a("4407");for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);a("ab5e");var r=a("2877"),c=Object(r["a"])(n["default"],i["a"],i["b"],!1,null,"7ae69da5",null);e["default"]=c.exports},d248:function(t,e,a){"use strict";a.r(e);var i=a("d686"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);e["default"]=n.a},d686:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{isFocus:!1,searchVal:""}},props:{},watch:{},methods:{itemChange:function(){var t=this;setTimeout(function(){t.$emit("handleEvent",t.searchVal),console.log("aaaa",t.searchVal)},300)},inputFocus:function(){this.isFocus=!0},inputBlur:function(){""==this.searchVal&&(this.isFocus=!1)}}};e.default=i},fa47:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("div",{staticClass:"searchDiv"},[a("v-uni-image",{class:{focusClass:t.isFocus},attrs:{src:"../../static/list/searchIcon.png",mode:"widthFix"}}),a("v-uni-input",{attrs:{type:"text",placeholder:"输入名称","placeholder-class":"centers","confirm-type":"搜索"},on:{focus:function(e){e=t.$handleEvent(e),t.inputFocus(e)},blur:function(e){e=t.$handleEvent(e),t.inputBlur(e)},input:function(e){e=t.$handleEvent(e),t.itemChange(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1)])},n=[];a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n})}}]);