You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-address-list"],{"1af2":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.user-address-list .item-child[data-v-c62fbc32]{background:#fff;border-radius:%?30?%;padding:%?20?% %?30?%;margin:0 %?24?%;margin-top:%?20?%}.user-address-list .item-child .peopleInfo[data-v-c62fbc32]{display:flex;align-items:center}.user-address-list .item-child .peopleInfo uni-image[data-v-c62fbc32]{width:%?60?%;height:%?60?%}.user-address-list .item-child .peopleInfo .address-info[data-v-c62fbc32]{margin-left:%?20?%;flex:1;display:flex;align-items:center;justify-content:space-between}.user-address-list .item-child .peopleInfo .address-info .phoneText[data-v-c62fbc32]{display:flex;align-items:center}.user-address-list .item-child .peopleInfo .address-info .phoneText .moren[data-v-c62fbc32]{margin-left:%?22?%;background:#fff;border:1px solid #08bf77;border-radius:%?18?%;color:#08bf77;font-size:%?22?%;padding:%?5?% %?10?%}.user-address-list .item-child .peopleInfo .address-info .tooltip[data-v-c62fbc32]{display:flex;align-items:center}.user-address-list .item-child .peopleInfo .address-info .tooltip uni-image[data-v-c62fbc32]{width:%?40?%;height:%?40?%}.user-address-list .address-icon[data-v-c62fbc32]{width:%?64?%;height:%?64?%}.user-address-list .address-icon .iconfont[data-v-c62fbc32]{font-size:%?38?%}.user-address-list .username[data-v-c62fbc32]{font-size:%?30?%}.user-address-list .oper-info[data-v-c62fbc32]{height:%?80?%}',""]),t.exports=e},"1d4b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAB09JREFUaEPlW2uMXVUV/tbe+94502nL9MVMxJKgYgwxhiAEEaRWmlSQP/6oiJGkEeUZaoCSBsR4E5L6IgJRTP1hBG1MKYk/MJGUFkabSko0EP+QoIUYXunQJ22nc+bevdcy+97e6e19nH3uPndwkrn/ZvZ6fN/Z+6y91tr7EObqV4HCmkoZdnoIxpZGoAyz1TCkpFoi75bKNYEVVsq4KbCFNTWY4Rl8uTIDgswFtLrjgf12btBYPD6C4WRRYlUZysbZZyMp6RlUT07j1MEpfONZNyiMcYDavU9UElRPLU2UTqJJ9mLkybNLUV58AmsraVHixQh7opgaTZiHigLJo58qNQOMHC9CPI6wX7qrLlyWMEbyAB20TKowhUNvH4tZ6v0T3rV5ZBi8XAypQRPpxx5Z4Wmoo1j/6FRfev0IY8/dKxJKFvelM8fCqaSnsO7JI3nd5JvhSkXhmuqqhGaSvIY/SrlUhlLsKx9CpcIhv2HCUlHYdXwsKelyyNj/czytuSrWj06CsklnE/Yz+4X5T7b5oOuk949OZs10NuE93x9LyMzLZdxrNaViU6x7YrLXeG/C8zBA5X1lsgJZd8K7No8kRlbmdRCSc4SVWtT1oukqErpEgHGCDAnoNASTILxB4Jcd0wsarufshPy0jqeWDnfbsjoJ79ygh89b/bHB7LP0SVF6E4CvEWByALYCPE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vC01ko9NRBRMLGJAtuoI5HFi93isnfq2VDjxAOA7HYrKE6FoHQu0oSeHGbw2tvPhLdQTj6KpZZOEKHMjAcEiIpa0sNxDcH+O1a8TbqSWBVs7rQio9AhIbikCqofudrB9uKjdRvFQsDw8B4Swhi77FHJ9UXAt+rvhqncUadfWbc2Wh/6PAg2AdmKiuERS9m3arwyA9F+lxreR5mpRW2cbAN5S0RZPGxoxqkxMvwXoSwWA7hNXu5WIZgrYmFU9t8VTsInXDZCQTkjhdxC6KgLwKwy7UTGmI3Q7VTqaeF6kaJu2CzKfIyuD3wN0eV7gIvKqsOuac+e10S7X2ab1EoOM1i0ez5xGbCfQpSHAAvxL4L5dZK/t5qN7I75OuthRSy9CbMxSYvlj1hFM/UiF3c2K5MPQg+lnvPdRyxzOsjftyIwqwg4CPtMR2YE32NZu1qp3k68fkq2yrbPr/z83x6U90DmoFVqpHQBaOxYHnNhvasHhWFK99MLHpV5zoAfinVCc4Hyt9TMA+b7Ufx3LTYM69W/1lv9AvBGxB3rloZ22P4vSSv/CWrc56qwox1LIf+WhaWxBXWqZJR1/5pRjEuZEJP7akoez4C6medIL6uphc9EtqMulrW/aPAxkc3N9uJX0grog3iTuPwEY/9TywhfYIuN0PYM6eODoR/MJQCvIBfORR/vMLJjPeNqJL5gPtbq9i/P0U7z/AQnwdb7E9U1YAAAAAElFTkSuQmCC"},"25eb":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"user-address-list"},[t._l(t.list.data,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item-child fill-base",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toUpdateItem(n)}}},[a("v-uni-view",{staticClass:"peopleInfo"},[a("v-uni-view",{staticClass:"address-icon"},[a("v-uni-image",{attrs:{src:i("1d4b"),mode:""}})],1),a("v-uni-view",{staticClass:"flex-1"},[a("v-uni-view",{staticClass:"address-info"},[a("v-uni-view",{staticClass:"flex-y-baseline username c-title text-bold"},[t._v(t._s(e.user_name))]),a("v-uni-view",{staticClass:"phoneText"},[a("v-uni-view",{staticClass:"ml-md f-desc c-caption"},[t._v(t._s(e.mobile))]),1==e.status?a("v-uni-view",{staticClass:"moren"},[t._v("默认")]):t._e()],1),a("v-uni-view",{staticClass:"tooltip"},[a("v-uni-image",{attrs:{src:i("4c56"),mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goDetail(n)}}}),a("v-uni-image",{staticStyle:{"margin-left":"36rpx"},attrs:{src:i("8685"),mode:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toDel(n)}}})],1)],1),a("v-uni-view",{staticClass:"f-desc",staticStyle:{"margin-left":"10px","margin-top":"30rpx",color:"#999999","font-size":"28rpx"}},[t._v(t._s(e.address+" "+e.address_info))])],1)],1),a("v-uni-view",{staticClass:"oper-info f-paragraph c-caption flex-between"},[a("v-uni-view",{staticClass:"flex-y-center",style:{color:t.options.check&&e.id==t.check_id||!t.options.check&&1==e.status?t.primaryColor:""}},[a("i",{staticClass:"iconfont icon-xuanze mr-sm",class:[{"icon-xuanze-fill":t.options.check&&e.id==t.check_id||!t.options.check&&1==e.status}],style:{color:t.options.check&&e.id==t.check_id||!t.options.check&&1==e.status?t.primaryColor:""}}),t.options.check?[t._v(t._s(e.id==t.check_id?"当前选择地址":"点击选择"))]:[t._v(t._s(1==e.status?"默认地址":"设为默认"))]],2)],1)],1)})),t.loading?a("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?a("abnor",{attrs:{tip:[{text:"你还没有添加地址哦~",color:0}]}}):t._e(),a("fix-bottom-button",{attrs:{text:[{text:"添加地址+",type:"confirm"}],bgColor:"#fff"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/address/edit"})}}})],2)},n=[]},"4c56":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAsNJREFUSEvtl01IVFEUx//nvWnGGYsoJUiEwAbB9+6TWhQuWqRSStG2yGwbSBDUImoVFRRE0LayVhHURjRapKugoo/l3OfDEZfD0CKbSJsJp7knjs2A6fgx+qKNZ/e4557fvefe87/nEQC0trY2RqPRbgA75LtGmy0WiyPpdHpmpXme53nMPEREv4wxJ8hxnIO2bT9j5j1EZNUIBTMbAPd93z+/3FzZWCwWGwOwv+x/mjzPew+go1bgIv97WutL1WI4jhO1LOsxEfXLODO/M8b0CvgHgAQADeBKrQswxvy0bftjKpWSOEvM87yLAO4AiADIFIvF7omJiUkB5wHEmXnU9/3eWsEr+buu22VZ1giArQAKAPq01sMyZyF4zPf9nrDA7e3tzcaY10S0V86ViK5rrW9U4v8TcFNTU6KhoUF2dqQMGp6enj6TzWYlu/P2L8CW53m3AFyW+Mw8YYzpDILg88Jshg5WSp0koicAogC+ATimtZbK+ctCBTuOs8+27VEAuwCUAAxorQer3ZvQwK7r7iSiV0R04E+58sOyqMgCllgo4LJIPCKis2XCh0Kh0DM1NfV9uSoJBayUukBEdwFsAZCdm5vrSqfT6WWgIstmw2Cl1GEAL4hom4gEM/f7vj9UDeq6bqdlWXLbxzYETiaTzXV1dRWRkHO9OT4+fm259CqlXhLRcWaeWTc4mUzG4vG4iERFZodzuVxfJpMRaaxqSqlRIjoqmVk3uK2trSMSibwpi/8kEXWnUqnMSpIbCrilpWV7fX39UwC7S6XSQBAEn1bT+VDAApEyEoUKgmB2NaiMhwZeC2yhzya40oGE2ghUO4bNVP/3VIfeZS4+Z6WUvNfSUM5L5lf5dWHmL0T0Vh7xWutzjf7Sfx0iokYAOQE/AHBujZPDchsk0dxEInEbwCkiiocVuVocZpaX63k+n7/6G3uGuYx6UwD8AAAAAElFTkSuQmCC"},8685:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAgCAYAAADqgqNBAAAAAXNSR0IArs4c6QAAAplJREFUWEftVz1oFEEU/t4sNhbiD6JeCu3j4e4MeqUoiGBn0IBJKaQzGqwkFhIsxCIkwUYEC0VFSWolKhZ2cm/Gu5D0ikkURCsN0dt9Mscp614ud5dELbwp73vf+96bvfczhCZHa91LRIMA9ooINbNP4W+J6AYz32/EWdWZ1nqAiG62IVhnKiID1tpbK/loKG6M2SQi80S0E8ALEbkNQFoNhIjOAjgC4COAHDN/z3IbikdRlFNKzXtCpVLRpVLJtSrs7cIwDIMgqHKSJOlyzi20LG6M2QOgSkiSJHTOldoRj6LogFLqdY3jM1+sEy8UCluWl5f31wFEm5VST2u/98ZxXL2FVk8QBF0AHtWCPyYiX9NcIhLSWheJyLTqdCPtvPgkgB6idqpo/SGICKqKYRhujeP4r6oHQdBW01h/uhkPddn6WwiC4HqSJC+dc3fT9mEY7lNKXY3jeKJUKr1KY8aYgoicE5Fh59ybNKa1PgngcKVSGS6Xy19+YnXixpg+APcALDJzLuNklIiGROSxtfZEBntCRMcBjDLzxQzmm1WOiPqKxeKDVsQXmNmXy69jjBkDcB7ANDN7oTQ2DcCX1Ji1diiD+TL1ifSne/1qmXfEO9eOzh+uU2r/VZMZBzAoIs+stccymT8HcBTAODNf+BPt1Q+dOwBGmHkkMzyuENFlEem31j7ccHHvsLu7e/vs7OynlYZ7Pp/fNjMz8zmLGWPWP1jWuk38U3Gt9Tsi8uN59ZEaRdEZpZR/X31g5t1rzTbzzd8D2NVU3BiTB1CukSdE5Ld1qd1giOiQrxDPS5LkoHOu2HCT8YDWeoqIetoVamI/ycyn0zYrrsv+kQjgEoBTIrKjnQdiJgAiIv9QnFpaWro2Nzf3LY3/AOOSDtfhSh5MAAAAAElFTkSuQmCC"},ad7f:function(t,e,i){var a=i("1af2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("d15df7e6",a,!0,{sourceMap:!1,shadowMode:!1})},b512:function(t,e,i){"use strict";i.r(e);var a=i("25eb"),n=i("bf48");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("cc21d");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"c62fbc32",null,!1,a["a"],void 0);e["default"]=o.exports},bf48:function(t,e,i){"use strict";i.r(e);var a=i("c6c7"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},c6c7:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("a434");var n=a(i("3835")),s=a(i("c7eb")),r=a(i("1da1")),o=a(i("5530")),c=i("26cb"),d={components:{},data:function(){return{options:{},check_id:0,param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo},haveOperItem:function(t){return t.order.haveOperItem}}),onLoad:function(t){var e=t.check,i=void 0===e?0:e;if(this.options=t,i){var a=this.$util.getPage(-1).orderInfo.address_info,n=void 0===a?{id:0}:a,s=n.id;this.check_id=s}this.updateOrderItem({key:"haveOperItem",val:!1}),this.initIndex()},onUnload:function(){var t=this.options.check,e=void 0===t?0:t;this.list.data;e&&this.haveOperItem&&(this.$util.getPage(-1).orderInfo.address_info={},this.$util.back())},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)({},(0,c.mapMutations)(["updateUserItem","updateOrderItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,s.default)().mark((function i(){var a;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,r.default)((0,s.default)().mark((function e(){var i,a,n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.list,a=t.param,e.next=3,t.$api.mine.addressList(a);case 3:n=e.sent,1==t.param.page||(n.data=i.data.concat(n.data)),t.list=n,t.loading=!1,t.$util.hideAll();case 7:case"end":return e.stop()}}),e)})))()},toUpdateItem:function(t){var e=this;return(0,r.default)((0,s.default)().mark((function i(){var a,n,r;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=e.list.data[t],!e.options.check){i.next=7;break}e.$util.getPage(-1).orderInfo.address_info=a,e.$util.back(),e.$util.goUrl({url:1,openType:"navigateBack"}),i.next=11;break;case 7:return n=a.id,r=a.status,i.next=10,e.$api.mine.addressUpdate({id:n,status:0==r?1:0});case 10:e.initRefresh();case 11:case"end":return i.stop()}}),i)})))()},toDel:function(t){var e=this;return(0,r.default)((0,s.default)().mark((function i(){var a,r,o,c,d;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,uni.showModal({title:"提示",content:"请确认是否要删除此数据?"});case 2:if(a=i.sent,r=(0,n.default)(a,2),r[0],o=r[1].confirm,o){i.next=8;break}return i.abrupt("return");case 8:if(c=e.list.data[t].id,d=e.check_id,!e.lockTap){i.next=12;break}return i.abrupt("return");case 12:return e.lockTap=!0,e.$util.showLoading(),i.prev=14,i.next=17,e.$api.mine.addressDel({id:c});case 17:e.$util.hideAll(),e.$util.showToast({title:"删除成功"}),e.list.data.splice(t,1),e.lockTap=!1,c==d&&e.updateOrderItem({key:"haveOperItem",val:!0}),i.next=27;break;case 24:i.prev=24,i.t0=i["catch"](14),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 27:case"end":return i.stop()}}),i,null,[[14,24]])})))()},goDetail:function(t){var e=this.list.data[t].id,i="/user/pages/address/edit?id=".concat(e);this.$util.goUrl({url:i})}})};e.default=d},cc21d:function(t,e,i){"use strict";var a=i("ad7f"),n=i.n(a);n.a}}]); |