glhcp/server/public/_nuxt/89331ba.js

1 line
6.4 KiB
JavaScript
Raw Normal View History

2023-09-28 03:22:06 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{590:function(t,e,r){var content=r(671);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("6441744b",content,!0,{sourceMap:!1})},668:function(t,e,r){t.exports=r.p+"img/logistics_success.1ee3409.png"},669:function(t,e,r){t.exports=r.p+"img/address_null.88aa54d.png"},670:function(t,e,r){"use strict";r(590)},671:function(t,e,r){var d=r(17)((function(i){return i[1]}));d.push([t.i,".address-list[data-v-3247fc2e]{padding:10px;width:980px}.address-list .address-header[data-v-3247fc2e]{border-bottom:1px solid #e5e5e5;padding:10px 5px}.address-list .address-content[data-v-3247fc2e]{margin-top:15px}.address-list .address-content .default-border[data-v-3247fc2e]{border:1px solid #e5e5e5;border-radius:60px}.address-list .address-content[data-v-3247fc2e] .el-table{color:#222}.address-list .address-content[data-v-3247fc2e] .el-table .el-button--text{color:#222;font-weight:400}.address-list .address-content[data-v-3247fc2e] .el-table th{background-color:#f2f2f2}.address-list .address-content[data-v-3247fc2e] .el-table thead{color:#555}.address-list .address-content .add-address-btn[data-v-3247fc2e]{margin-top:18px}.address-list .data-null[data-v-3247fc2e]{padding-top:150px;text-align:center}",""]),d.locals={},t.exports=d},731:function(t,e,r){"use strict";r.r(e);var d=r(8),n=(r(56),r(12),r(21),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user",asyncData:function(t){return Object(d.a)(regeneratorRuntime.mark((function e(){var r,d,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.$get,t.$post,d=[],n=!0,e.next=5,r("user_address/lists");case 5:return 1==(o=e.sent).code&&((d=o.data).forEach((function(t){t.addressDetail=t.province+" "+t.city+" "+t.district+" "+t.address})),n=d.length<=0),e.abrupt("return",{addressList:d,isDataNull:n});case 8:case"end":return e.stop()}}),e)})))()},data:function(){return{addressPop:!1,editId:-1,isDataNull:!1}},mounted:function(){},methods:{modifyRow:function(t){this.editId=t.id,this.addressPop=!0},setDefault:function(t){var e=this;return Object(d.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.$post("user_address/setdefault",{id:t.id});case 2:if(1!=r.sent.code){r.next=7;break}return r.next=6,e.getAddressList();case 6:e.$message({message:"设置成功",type:"success"});case 7:case"end":return r.stop()}}),r)})))()},getAddressList:function(){var t=this;return Object(d.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("user_address/lists");case 2:1==(r=e.sent).code&&(t.addressList=r.data,t.addressList.forEach((function(t){t.addressDetail=t.province+" "+t.city+" "+t.district+" "+t.address})),t.addressList.length<=0?t.isDataNull=!0:t.isDataNull=!1);case 4:case"end":return e.stop()}}),e)})))()},deleteAddress:function(t){var e=this;return Object(d.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.$post("user_address/del",{id:t.id});case 2:if(1!=r.sent.code){r.next=7;break}return r.next=6,e.getAddressList();case 6:e.$message({message:"删除成功",type:"success"});case 7:case"end":return r.stop()}}),r)})))()},showAddressPop:function(){this.addressPop=!0,this.editId=-1}}}),o=(r(670),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"address-list"},[e("div",{staticClass:"address-header lg"},[t._v("收货地址")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isDataNull,expression:"!isDataNull"}],staticClass:"address-content"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.addressList}},[e("el-table-column",{attrs:{prop:"contact",label:"收货人",width:"200"}}),t