优化拼团时选择地址bug,优化其他问题

This commit is contained in:
lemon橪
2021-08-26 09:31:57 +08:00
parent 8f5f44022b
commit 25fb26b7d0
6 changed files with 14 additions and 33 deletions

View File

@@ -161,11 +161,6 @@
});
// #endif
// #ifndef MP-WEIXIN
if(this.routerVal.recharge_sn){
this.payList = res.data.result.support.filter((item) => {

View File

@@ -150,9 +150,7 @@ export default {
addAddress(this.form).then((res) => {
if (res.data.success) {
if (this.routerVal.type == "order") {
uni.redirectTo({
url: `/pages/mine/address/address?way=${this.routerVal.way}`,
});
uni.navigateBack();
} else {
uni.redirectTo({
url: `/pages/mine/address/addressManage`,

View File

@@ -76,19 +76,12 @@ export default {
this.getAddressList();
},
onHide() {},
onBackPress(e) {
uni.redirectTo({
url: "/pages/order/fillorder?way=" + this.routerVal.way,
});
return true;
},
methods: {
async selectAddressData(val) {
await API_Trade.setAddressId(val.id, this.routerVal.way);
uni.redirectTo({
url: `/pages/order/fillorder?way=${this.routerVal.way}`,
uni.navigateBack({
delta: 1,
});
},
//获取地址列表
@@ -99,7 +92,6 @@ export default {
this.params.pageNumber,
this.params.pageSize
).then((res) => {
if (res.data.result.records.length == 0) {
this.empty = true;
} else {
@@ -108,8 +100,6 @@ export default {
});
this.$set(this, "addressList", res.data.result.records);
}
uni.hideLoading();
@@ -139,7 +129,6 @@ export default {
},
//新建。编辑地址
addAddress(id) {
if (id) {
uni.navigateTo({
url:
@@ -177,5 +166,5 @@ export default {
</script>
<style lang="scss" scoped>
@import './address.scss';
@import "./address.scss";
</style>

View File

@@ -56,9 +56,6 @@ export default {
type: 0,
routers: "",
achParams: {
distributionId: (this.routers && this.routers.id) || "", //分销商id
distributionName: (this.routers && this.routers.name) || "", //分销商名称
distributionOrderStatus: "", //分销商订单状态
pageNumber: 1,
pageSize: 10,
},
@@ -72,15 +69,14 @@ export default {
title: title, //这是修改后的导航栏文字
});
this.routers = option;
this.type = option.type;
option.type == 0 ? this.achievement() : this.history();
},
mounted() {},
onReachBottom() {
this.status = "loading";
this.params.pageNumber++;
this.type == 1 ? this.history() : this.achievement();
this.type == 0 ? this.achParams.pageNumber++ : this.params.pageNumber++;
this.type == 0 ? this.achievement() : this.history();
},
methods: {
// 业绩