优化拼团时选择地址bug,优化其他问题
parent
8f5f44022b
commit
25fb26b7d0
|
@ -156,20 +156,23 @@ export function cash(params) {
|
||||||
/**
|
/**
|
||||||
* 分销商提现历史
|
* 分销商提现历史
|
||||||
*/
|
*/
|
||||||
export function cashLog() {
|
export function cashLog(params) {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: `/distribution/cash`,
|
url: `/distribution/cash`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
|
params
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取分销商分页订单列表
|
* 获取分销商分页订单列表
|
||||||
*/
|
*/
|
||||||
export function distributionOrderList() {
|
export function distributionOrderList(params) {
|
||||||
return http.request({
|
return http.request({
|
||||||
url: `/distribution/distributionOrder`,
|
url: `/distribution/distributionOrder`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
|
params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "lili商城",
|
"name" : "lili商城",
|
||||||
"appid" : "__UNI__C100675",
|
"appid" : "__UNI__C100675",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "4.0.31",
|
"versionName" : "4.0.32",
|
||||||
"versionCode" : 4000031,
|
"versionCode" : 4000032,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
|
|
|
@ -161,11 +161,6 @@
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
if(this.routerVal.recharge_sn){
|
if(this.routerVal.recharge_sn){
|
||||||
this.payList = res.data.result.support.filter((item) => {
|
this.payList = res.data.result.support.filter((item) => {
|
||||||
|
|
|
@ -150,9 +150,7 @@ export default {
|
||||||
addAddress(this.form).then((res) => {
|
addAddress(this.form).then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
if (this.routerVal.type == "order") {
|
if (this.routerVal.type == "order") {
|
||||||
uni.redirectTo({
|
uni.navigateBack();
|
||||||
url: `/pages/mine/address/address?way=${this.routerVal.way}`,
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/pages/mine/address/addressManage`,
|
url: `/pages/mine/address/addressManage`,
|
||||||
|
|
|
@ -76,19 +76,12 @@ export default {
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
},
|
},
|
||||||
onHide() {},
|
onHide() {},
|
||||||
onBackPress(e) {
|
|
||||||
uni.redirectTo({
|
|
||||||
url: "/pages/order/fillorder?way=" + this.routerVal.way,
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async selectAddressData(val) {
|
async selectAddressData(val) {
|
||||||
await API_Trade.setAddressId(val.id, this.routerVal.way);
|
await API_Trade.setAddressId(val.id, this.routerVal.way);
|
||||||
|
|
||||||
uni.redirectTo({
|
uni.navigateBack({
|
||||||
url: `/pages/order/fillorder?way=${this.routerVal.way}`,
|
delta: 1,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取地址列表
|
//获取地址列表
|
||||||
|
@ -99,7 +92,6 @@ export default {
|
||||||
this.params.pageNumber,
|
this.params.pageNumber,
|
||||||
this.params.pageSize
|
this.params.pageSize
|
||||||
).then((res) => {
|
).then((res) => {
|
||||||
|
|
||||||
if (res.data.result.records.length == 0) {
|
if (res.data.result.records.length == 0) {
|
||||||
this.empty = true;
|
this.empty = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -108,8 +100,6 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$set(this, "addressList", res.data.result.records);
|
this.$set(this, "addressList", res.data.result.records);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
@ -139,7 +129,6 @@ export default {
|
||||||
},
|
},
|
||||||
//新建。编辑地址
|
//新建。编辑地址
|
||||||
addAddress(id) {
|
addAddress(id) {
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:
|
url:
|
||||||
|
@ -177,5 +166,5 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import './address.scss';
|
@import "./address.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -56,9 +56,6 @@ export default {
|
||||||
type: 0,
|
type: 0,
|
||||||
routers: "",
|
routers: "",
|
||||||
achParams: {
|
achParams: {
|
||||||
distributionId: (this.routers && this.routers.id) || "", //分销商id
|
|
||||||
distributionName: (this.routers && this.routers.name) || "", //分销商名称
|
|
||||||
distributionOrderStatus: "", //分销商订单状态
|
|
||||||
pageNumber: 1,
|
pageNumber: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
|
@ -72,15 +69,14 @@ export default {
|
||||||
title: title, //这是修改后的导航栏文字
|
title: title, //这是修改后的导航栏文字
|
||||||
});
|
});
|
||||||
this.routers = option;
|
this.routers = option;
|
||||||
|
this.type = option.type;
|
||||||
option.type == 0 ? this.achievement() : this.history();
|
option.type == 0 ? this.achievement() : this.history();
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.status = "loading";
|
this.status = "loading";
|
||||||
this.params.pageNumber++;
|
this.type == 0 ? this.achParams.pageNumber++ : this.params.pageNumber++;
|
||||||
|
this.type == 0 ? this.achievement() : this.history();
|
||||||
this.type == 1 ? this.history() : this.achievement();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 业绩
|
// 业绩
|
||||||
|
|
Loading…
Reference in New Issue