pages-list-moreMallList.eefbf1e4.js 10.2 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-moreMallList"],{"0497":function(t,e,i){"use strict";i.r(e);var a=i("fa47"),n=i("d248");for(var s in n)"default"!==s&&function(t){i.d(e,t,function(){return n[t]})}(s);i("8901");var c=i("2877"),r=Object(c["a"])(n["default"],a["a"],a["b"],!1,null,"7a4d7f93",null);e["default"]=r.exports},"19b9":function(t,e,i){e=t.exports=i("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}",""])},"1bd0":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,".listItem[data-v-da031b72]{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-da031b72]{width:%?28.98?%;height:%?28.98?%;position:absolute;top:%?23.55?%;left:%?25.36?%}.listItem uni-text[data-v-da031b72]{margin-left:%?77.89?%}",""])},2205:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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=a},4002:function(t,e,i){var a=i("1bd0");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3a5e41bf",a,!0,{sourceMap:!1,shadowMode:!1})},4407:function(t,e,i){"use strict";i.r(e);var a=i("2205"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,function(){return a[t]})}(s);e["default"]=n.a},"79b3":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s(i("ce42")),n=s(i("0497"));function s(t){return t&&t.__esModule?t:{default:t}}var c={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.type=t.type,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:a.default,searchBox:n.default},methods:{searchFun:function(t){var e=this;this.list=[],this.allList.forEach(function(i){-1!=i.name.indexOf(t)&&e.list.push(i)}),-1!=this.selectNameArr.indexOf("全部")?this.list.forEach(function(t){t.select=!0}):this.list.forEach(function(t){-1!=e.selectIdArr.indexOf(t.id)?t.select=!0:t.select=!1})},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),this.selectIdArr.length==this.allList.length-1&&(this.selectIdArr=[],this.selectNameArr=[],this.selectNameArr.push("全部"),this.list.forEach(function(t){t.select=!0,"all"!=t.id&&e.selectIdArr.push(t.id)}));else{var i=this.selectNameArr.indexOf("全部");-1!=i&&(this.selectNameArr=[],this.list.forEach(function(t){"all"==t.id&&(t.select=!1)}),this.list.forEach(function(t){"all"!=t.id&&e.selectNameArr.push(t.name)}));var a=this.selectIdArr.indexOf(t.id);this.selectIdArr.splice(a,1),this.selectNameArr.splice(a,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+"?type="+this.type})):uni.showToast({icon:"none",title:"请至少选择一项"})},getListData:function(){var t=this;uni.getStorage({key:"accountList",success:function(e){t.allList=JSON.parse(e.data),t.allList.unshift({name:"全部",id:"all"}),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(e,i){1==i?(e.select=!0,t.selectIdArr.push(e.id)):e.select=!1})}})},backClick:function(){uni.navigateBack({delta:1})}}};e.default=c},"841f":function(t,e,i){"use strict";var a=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("searchBox",{on:{handleEvent:function(e){e=t.$handleEvent(e),t.searchFun(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)},n=[];i.d(e,"a",function(){return a}),i.d(e,"b",function(){return n})},8901:function(t,e,i){"use strict";var a=i("bd76"),n=i.n(a);n.a},a0de:function(t,e,i){"use strict";var a=i("4002"),n=i.n(a);n.a},a1bf:function(t,e,i){var a=i("19b9");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("afd4a560",a,!0,{sourceMap:!1,shadowMode:!1})},a846:function(t,e,i){e=t.exports=i("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}",""])},aae4:function(t,e,i){"use strict";i.r(e);var a=i("79b3"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,function(){return a[t]})}(s);e["default"]=n.a},ab5e:function(t,e,i){"use strict";var a=i("a1bf"),n=i.n(a);n.a},bd76:function(t,e,i){var a=i("a846");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("e25b0f06",a,!0,{sourceMap:!1,shadowMode:!1})},c6b2:function(t,e,i){"use strict";var a=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)},n=[];i.d(e,"a",function(){return a}),i.d(e,"b",function(){return n})},ce42:function(t,e,i){"use strict";i.r(e);var a=i("c6b2"),n=i("4407");for(var s in n)"default"!==s&&function(t){i.d(e,t,function(){return n[t]})}(s);i("ab5e");var c=i("2877"),r=Object(c["a"])(n["default"],a["a"],a["b"],!1,null,"7ae69da5",null);e["default"]=r.exports},d248:function(t,e,i){"use strict";i.r(e);var a=i("d686"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,function(){return a[t]})}(s);e["default"]=n.a},d686:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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=a},f141:function(t,e,i){"use strict";i.r(e);var a=i("841f"),n=i("aae4");for(var s in n)"default"!==s&&function(t){i.d(e,t,function(){return n[t]})}(s);i("a0de");var c=i("2877"),r=Object(c["a"])(n["default"],a["a"],a["b"],!1,null,"da031b72",null);e["default"]=r.exports},fa47:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("div",{staticClass:"searchDiv"},[i("v-uni-image",{class:{focusClass:t.isFocus},attrs:{src:"../../static/list/searchIcon.png",mode:"widthFix"}}),i("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=[];i.d(e,"a",function(){return a}),i.d(e,"b",function(){return n})}}]);