From 4c7663d671a98acd07cfd1a8d83e933fbf432dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 9 Sep 2021 15:02:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80=E4=B8=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 ++-- pages/mine/address/add.vue | 8 +------- pages/mine/address/address.vue | 1 - pages/mine/address/addressManage.vue | 11 ++++++++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/manifest.json b/manifest.json index 9b68169..c25675b 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "lili商城", "appid" : "__UNI__C100675", "description" : "", - "versionName" : "4.0.41", - "versionCode" : 4000041, + "versionName" : "4.0.42", + "versionCode" : 4000042, "transformPx" : false, "app-plus" : { "compatible" : { diff --git a/pages/mine/address/add.vue b/pages/mine/address/add.vue index 386ded8..b95bd6e 100644 --- a/pages/mine/address/add.vue +++ b/pages/mine/address/add.vue @@ -149,13 +149,7 @@ export default { delete this.form.___path; addAddress(this.form).then((res) => { if (res.data.success) { - if (this.routerVal.type == "order") { - uni.navigateBack(); - } else { - uni.redirectTo({ - url: `/pages/mine/address/addressManage`, - }); - } + uni.navigateBack(); } }); } else { diff --git a/pages/mine/address/address.vue b/pages/mine/address/address.vue index 1b50987..e025746 100644 --- a/pages/mine/address/address.vue +++ b/pages/mine/address/address.vue @@ -75,7 +75,6 @@ export default { this.routerVal = val; }, onShow() { - console.log("onshow"); this.addressList = []; this.getAddressList(); }, diff --git a/pages/mine/address/addressManage.vue b/pages/mine/address/addressManage.vue index d7fe58f..8b06023 100644 --- a/pages/mine/address/addressManage.vue +++ b/pages/mine/address/addressManage.vue @@ -60,7 +60,7 @@ export default { text: "确定要删除该收货人信息吗?", }, removeId: "", //删除的地址id - routerVal: "", + routerVal: "", params: { pageNumber: 1, pageSize: 1000, @@ -77,11 +77,16 @@ export default { onLoad: function (val) { this.routerVal = val; }, + onPullDownRefresh() { + //下拉刷新 + this.addressList = []; + this.getAddressList(); + }, /** * 进入页面检测当前账户是否登录 */ onShow() { - let that = this + let that = this; if (this.$options.filters.isLogin("auth")) { this.getAddressList(); } else { @@ -168,5 +173,5 @@ export default {