修改地址中逻辑错误bug
parent
a78dca1a0c
commit
4c7663d671
|
@ -2,8 +2,8 @@
|
||||||
"name" : "lili商城",
|
"name" : "lili商城",
|
||||||
"appid" : "__UNI__C100675",
|
"appid" : "__UNI__C100675",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "4.0.41",
|
"versionName" : "4.0.42",
|
||||||
"versionCode" : 4000041,
|
"versionCode" : 4000042,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
|
|
|
@ -149,13 +149,7 @@ export default {
|
||||||
delete this.form.___path;
|
delete this.form.___path;
|
||||||
addAddress(this.form).then((res) => {
|
addAddress(this.form).then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
if (this.routerVal.type == "order") {
|
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
} else {
|
|
||||||
uni.redirectTo({
|
|
||||||
url: `/pages/mine/address/addressManage`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -75,7 +75,6 @@ export default {
|
||||||
this.routerVal = val;
|
this.routerVal = val;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log("onshow");
|
|
||||||
this.addressList = [];
|
this.addressList = [];
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,11 +77,16 @@ export default {
|
||||||
onLoad: function (val) {
|
onLoad: function (val) {
|
||||||
this.routerVal = val;
|
this.routerVal = val;
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
//下拉刷新
|
||||||
|
this.addressList = [];
|
||||||
|
this.getAddressList();
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 进入页面检测当前账户是否登录
|
* 进入页面检测当前账户是否登录
|
||||||
*/
|
*/
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this;
|
||||||
if (this.$options.filters.isLogin("auth")) {
|
if (this.$options.filters.isLogin("auth")) {
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
} else {
|
} else {
|
||||||
|
@ -168,5 +173,5 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import './address.scss';
|
@import "./address.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue