pages-list-moreMallList.7a2b9f17.js 6.99 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-moreMallList"],{2205:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={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=n},"2a34":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("div",{style:{height:t.navheight+"px",background:"#0069FF"}}),i("v-uni-view",{staticClass:"indexNav"},[i("v-uni-text",{staticClass:"left",on:{click:function(e){e=t.$handleEvent(e),t.lClick(e)}}},[t._v(t._s(t.leftText))]),i("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)),i("span",{staticClass:"right",on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}},[t._v(t._s(t.rightText))]),i("v-uni-image",{staticClass:"rImg",attrs:{src:t.rightImgSrc},on:{click:function(e){e=t.$handleEvent(e),t.rClick(e)}}})],1),i("v-uni-view",{staticClass:"blanks"})],1)},a=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return a})},"2b7b":function(t,e,i){"use strict";var n=i("eeba"),a=i.n(n);a.a},3600:function(t,e,i){var n=i("b813");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7460085d",n,!0,{sourceMap:!1,shadowMode:!1})},4407:function(t,e,i){"use strict";i.r(e);var n=i("2205"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,function(){return n[t]})}(s);e["default"]=a.a},5745:function(t,e,i){"use strict";var n=i("3600"),a=i.n(n);a.a},"71c8":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,".listItem[data-v-1318060a]{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-1318060a]{width:%?28.98?%;height:%?28.98?%;position:absolute;top:%?23.55?%;left:%?25.36?%}.listItem uni-text[data-v-1318060a]{margin-left:%?77.89?%}",""])},"79b3":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("ce42"));function a(t){return t&&t.__esModule?t:{default:t}}var s={data:function(){return{aa:"aa",leftSrc:"../../static/header/backArrow.png",titleStr:this.$t("index").storeSelect,id:"",atoken:"",list:[],accountName:"",url:"",selectSrc:"../../static/list/select.png",unSelectSrc:"../../static/list/unselect.png",selectIdArr:[],selectNameArr:[]}},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:n.default},methods:{itemFun:function(t){var e=this;if(t.select=!t.select,"all"==t.id)this.selectIdArr=[],this.selectNameArr=[],t.select?(this.selectNameArr.push("全部"),this.list.forEach(function(t){t.select=!0,"all"!=t.id&&e.selectIdArr.push(t.id)})):this.list.forEach(function(t){t.select=!1});else if(t.select)this.selectIdArr.push(t.id),this.selectNameArr.push(t.name);else{var i=this.selectIdArr.indexOf(t.id);this.selectIdArr.splice(i,1),this.selectNameArr.splice(i,1)}this.$forceUpdate()},search:function(t,e){console.log(t)},confirmFun:function(){0!=this.selectIdArr.length?(uni.setStorage({key:"selectAccountIdArr",data:JSON.stringify(this.selectIdArr)}),uni.setStorage({key:"selectAccountNameArr",data:JSON.stringify(this.selectNameArr)}),uni.reLaunch({url:this.url})):uni.showToast({icon:"none",title:"请至少选择一项"})},getListData:function(){var t=this;uni.getStorage({key:"accountList",success:function(e){t.list=JSON.parse(e.data),t.list.unshift({name:"全部",id:"all"}),uni.getStorage({key:"selectAccountIdArr",success:function(e){t.selectIdArr=JSON.parse(e.data)}}),uni.getStorage({key:"selectAccountNameArr",success:function(e){t.selectNameArr=JSON.parse(e.data)}}),t.selectNameArr.length>0?"全部"==t.selectNameArr[0]?t.list.forEach(function(t,e){t.select=!0}):t.list.forEach(function(e){-1!=t.selectIdArr.indexOf(e.id)&&(e.select=!0)}):t.list.forEach(function(t,e){t.select=1==e})}})},backClick:function(){uni.navigateBack({delta:1})}}};e.default=s},"90f5":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("headerComp",{attrs:{leftImgSrc:t.leftSrc,title:t.titleStr,rightText:"完成"},on:{leftClick:function(e){e=t.$handleEvent(e),t.backClick(e)},rightClick:function(e){e=t.$handleEvent(e),t.confirmFun(e)}}}),i("v-uni-view",{staticClass:"list"},t._l(t.list,function(e){return i("v-uni-view",{staticClass:"listItem",on:{click:function(i){i=t.$handleEvent(i),t.itemFun(e)}}},[i("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:e.select,expression:"item.select"}],attrs:{src:t.selectSrc,mode:""}}),i("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:!e.select,expression:"!item.select"}],attrs:{src:t.unSelectSrc,mode:""}}),i("v-uni-text",[t._v(t._s(e.name))])],1)}))],1)},a=[];i.d(e,"a",function(){return n}),i.d(e,"b",function(){return a})},aae4:function(t,e,i){"use strict";i.r(e);var n=i("79b3"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,function(){return n[t]})}(s);e["default"]=a.a},b813:function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,".indexNav[data-v-39e8dde9]{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-39e8dde9]{height:%?77.89?%}.left[data-v-39e8dde9]{float:left;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-left:%?23.55?%}.right[data-v-39e8dde9]{float:right;font-size:%?25.36?%;display:inline-block;height:%?77.89?%;line-height:%?77.89?%;padding-right:%?23.55?%}.lImg[data-v-39e8dde9]{width:%?12.68?%;height:%?23.55?%;float:left;position:relative;top:%?27.17?%}.rImg[data-v-39e8dde9]{width:%?28.98?%;height:%?28.98?%;float:right;position:relative;top:%?27.17?%}",""])},ce42:function(t,e,i){"use strict";i.r(e);var n=i("2a34"),a=i("4407");for(var s in a)"default"!==s&&function(t){i.d(e,t,function(){return a[t]})}(s);i("5745");var c=i("2877"),r=Object(c["a"])(a["default"],n["a"],n["b"],!1,null,"39e8dde9",null);e["default"]=r.exports},eeba:function(t,e,i){var n=i("71c8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("13caf92a",n,!0,{sourceMap:!1,shadowMode:!1})},f141:function(t,e,i){"use strict";i.r(e);var n=i("90f5"),a=i("aae4");for(var s in a)"default"!==s&&function(t){i.d(e,t,function(){return a[t]})}(s);i("2b7b");var c=i("2877"),r=Object(c["a"])(a["default"],n["a"],n["b"],!1,null,"1318060a",null);e["default"]=r.exports}}]);