app-shipping-address.js 2.6 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-shipping-address/app-shipping-address"],{"051f":function(e,t,n){"use strict";var i=n("0a1e"),a=n.n(i);a.a},"0a1e":function(e,t,n){},"1ef6":function(e,t,n){"use strict";n.r(t);var i=n("31c4"),a=n.n(i);for(var d in i)"default"!==d&&function(e){n.d(t,e,(function(){return i[e]}))}(d);t["default"]=a.a},"31c4":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){n.e("components/basic-component/app-radio/app-radio").then(function(){return resolve(n("b935"))}.bind(null,n)).catch(n.oe)},a={name:"app-shipping-address",components:{appRadio:i},props:{item:{type:Object},is_hide_default_btn:{type:Boolean,default:!1},destroy_url:{type:String,default:""},is_refund_address:{type:Number,default:0}},methods:{changeDefault:function(){var t=this;t.$request({url:t.$api.user.address_default,method:"POST",data:{id:t.item.id,is_default:1==t.item.is_default?0:1}}).then((function(n){0===n.code?t.$emit("handleAddress","price-sort-default.png"):e.showToast({title:n.msg,icon:"none"})})).catch((function(){}))},edit:function(){e.navigateTo({url:"/pages/address/address-edit?id="+this.item.id+"&is_refund_address="+this.is_refund_address})},editStop:function(){this.$emit("handleStop","editStop")},destroy:function(){var t=this;e.showModal({content:"确定删除收货地址",success:function(n){n.confirm?t.$request({url:t.destroy_url,method:"POST",data:{id:t.item.id}}).then((function(n){0===n.code?t.$emit("handleAddress","delete"):e.showToast({title:n.msg,icon:"none"})})).catch((function(){})):n.cancel}})}}};t.default=a}).call(this,n("543d")["default"])},"650f":function(e,t,n){"use strict";var i,a=function(){var e=this,t=e.$createElement;e._self._c},d=[];n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return i}))},7848:function(e,t,n){"use strict";n.r(t);var i=n("650f"),a=n("1ef6");for(var d in a)"default"!==d&&function(e){n.d(t,e,(function(){return a[e]}))}(d);n("051f");var o,s=n("f0c5"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"13a66b92",null,!1,i["a"],o);t["default"]=u.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/page-component/app-shipping-address/app-shipping-address-create-component',
  4. {
  5. 'components/page-component/app-shipping-address/app-shipping-address-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("7848"))
  7. })
  8. },
  9. [['components/page-component/app-shipping-address/app-shipping-address-create-component']]
  10. ]);