|
@@ -94,7 +94,6 @@ Page({
|
|
|
"id": "20221018141802",
|
|
|
content
|
|
|
}).then(res => {
|
|
|
- console.log("添加地址", res)
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.data,
|
|
|
icon: "none"
|
|
@@ -106,7 +105,7 @@ Page({
|
|
|
setTimeout(() => {
|
|
|
getCurrentPages().forEach(v => {
|
|
|
//更新列表
|
|
|
- if (["packageA/setclient/detail", "packageA/setclient/modules/contacts/detail/index"].includes(v.__route__)) {
|
|
|
+ if (v.selectComponent("#Address")) {
|
|
|
let page = v.selectComponent("#Address"),
|
|
|
list = res.data.isdefault == 0 ? page.data.list : page.data.list.map(v => {
|
|
|
v.isdefault = 0;
|