Commit 8b7dcae6 authored by Damon's avatar Damon

fix: 【ID1001714】【扳手会小程序-订单-收货地址】:修改了收货地址,物料申请页面的收件信息没有随之刷新。

parent c66094c2
......@@ -8,6 +8,7 @@
:is-back="isBack"
:is-fixed="isFixed"
:title-bold="true"
:custom-back="customBack"
:border-bottom="false">
</u-navbar>
</template>
......@@ -61,6 +62,9 @@
type: Boolean,
default: true
},
customBack: {
type: Function
}
},
data() {
return {
......
<template>
<view class="u-flex address-wrap">
<w-navbar title="收货地址"></w-navbar>
<w-navbar :customBack="customBack" title="收货地址"></w-navbar>
<view class="lists">
<view class="body" v-for="(item, index) in lists" :key="item.id">
<w-address @editSite="toEditSite(item)" @selectSite="selectSite(item)" @setDefault="setDefault(item, index)" @remove="remove(item)" :info="item" :is-default="item.enable === 1" :showRemove="true" />
......@@ -47,6 +47,14 @@ export default {
this.getData();
},
methods: {
customBack() {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]
prevPage.$vm.loadAddress()
this.$u.route({
type: 'back'
})
},
getData() {
this.getMineSite()
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment