1、消费者端 我的订单 金额出现很多小数位的问题修复

2、项目问题文档里,工圈子第三点
This commit is contained in:
donqi 2022-11-10 22:41:35 +08:00
parent 59e80b2a8f
commit 3a28bab00e
7 changed files with 58 additions and 46 deletions

View File

@ -11,9 +11,9 @@ export default {
title: '加载中' title: '加载中'
}) })
// request 触发前拼接 url // request 触发前拼接 url
args.url = 'https://www.opsoul.com:8881' + args.url; // args.url = 'https://www.opsoul.com:8881' + args.url;
// args.url = 'http://192.168.2.42:80' + args.url; // args.url = 'http://192.168.2.60:80' + args.url;
// args.url = 'http://127.0.0.1:80' + args.url; args.url = 'http://127.0.0.1:80' + args.url;
if (args.data && Object.prototype && Object.prototype.toString.call(args.data) === '[object Object]') { if (args.data && Object.prototype && Object.prototype.toString.call(args.data) === '[object Object]') {
args.data.deptId = globalData.deptId; args.data.deptId = globalData.deptId;
args.data.from = globalData.from; args.data.from = globalData.from;

View File

@ -52,6 +52,12 @@
this.$emit('getCurPageInfo', { this.$emit('getCurPageInfo', {
curPageCode: cur curPageCode: cur
}); });
},
navChangeByCode(curPageCode, isChangeFocus) {
this.curPageCode = isChangeFocus ? curPageCode : this.curPageCode;
this.$emit('getCurPageInfo', {
curPageCode: curPageCode
});
} }
} }
} }

View File

@ -93,8 +93,15 @@
inParam: null inParam: null
} }
}, },
onLoad(option) { async onLoad(option) {
if (option && option.scene) { this.moduleBarInfos = await this.$api.data('moduleBarInfos');
if (option) {
//
if (option.menuCode) {
this.changeCurPageCode(option.menuCode);
return;
}
if (option.scene) {
let paraStr = decodeURIComponent(option.scene); let paraStr = decodeURIComponent(option.scene);
let kvStrArr = paraStr.split("&"); let kvStrArr = paraStr.split("&");
kvStrArr.forEach((kvStr) => { kvStrArr.forEach((kvStr) => {
@ -102,6 +109,7 @@
option[kvArr[0]] = kvArr[1]; option[kvArr[0]] = kvArr[1];
}); });
} }
}
this.inParam = option; this.inParam = option;
this.loadData(option); this.loadData(option);
}, },
@ -131,7 +139,6 @@
}, },
methods: { methods: {
async loadData(option) { async loadData(option) {
this.moduleBarInfos = await this.$api.data('moduleBarInfos');
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
// //
if (option && option.distributor) { if (option && option.distributor) {
@ -151,6 +158,13 @@
} }
} }
}, },
changeCurPageCode(targetPageCode) {
// #ifdef MP
this.$nextTick(() => {
this.$refs.moduleBar.navChangeByCode(targetPageCode, true);
})
// #endif
},
reloadForwardPage() { reloadForwardPage() {
if (this.inByShare) { if (this.inByShare) {
this.loadData(this.inParam); this.loadData(this.inParam);

View File

@ -393,56 +393,47 @@
url: '/pages/my/my-address' url: '/pages/my/my-address'
}); });
}, },
showApplyOperator() { async showApplyOperator() {
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
// //
if (this.curUserInfo.placeStatus == 0) { if (this.curUserInfo.placeStatus == 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/apply-operator' url: '/pages/my/apply-operator'
}) })
} else if (this.curUserInfo.placeStatus == 1) {
uni.showToast({
icon: 'none',
title: '申请审核中'
})
} else if (this.curUserInfo.placeStatus == 2) { } else if (this.curUserInfo.placeStatus == 2) {
//
let res = await this.$request.getBindBankCardByCustomerId({
customerId: this.curUserInfo.customerId
})
let bindBankCardInfo = res.data;
if (bindBankCardInfo && bindBankCardInfo.bankNum) {
//
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-team-member' url: '/pages/my/my-team-member'
}) })
} else { } else {
uni.showToast({ //
icon: 'none',
title: '申请审核中'
})
}
},
async showAppInviteQrcode() {
this.curUserInfo = this.$request.getCurUserInfo();
//
if (this.curUserInfo.placeStatus == 1) {
uni.showToast({
icon: 'none',
title: '申请审核中'
})
} else if (this.curUserInfo.placeStatus != 2) {
uni.navigateTo({
url: '/pages/my/apply-operator'
})
} else {
//
let res = await this.$request.getBindBankCardByCustomerId({
customerId: this.curUserInfo.customerId
});
let bindBankCardInfo = res.data;
if (bindBankCardInfo && bindBankCardInfo.bankNum) {
//
let res = await this.$request.getUnlimitedWxacode({
scene: "distributor=" + this.curUserInfo.customerId
});
this.appQrcode = res.data;
this.appShareQrcodeModal = true;
} else {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/withdraw' url: '/pages/my/withdraw'
}) })
} }
} }
}, },
async showAppInviteQrcode() {
this.curUserInfo = this.$request.getCurUserInfo();
let res = await this.$request.getUnlimitedWxacode({
scene: "distributor=" + this.curUserInfo.customerId,
//FIXME:
env_version: 'trial'
});
this.appQrcode = res.data;
this.appShareQrcodeModal = true;
},
showPage(pageUrl) { showPage(pageUrl) {
if (pageUrl) { if (pageUrl) {
uni.navigateTo({ uni.navigateTo({

View File

@ -46,7 +46,7 @@
<view class="text-lg" v-else-if="shopOrder.payStatus == 1"><text>实付款</text><text <view class="text-lg" v-else-if="shopOrder.payStatus == 1"><text>实付款</text><text
class="text-price text-red text-lg text-bold">{{shopOrder.payMoney}}</text></view> class="text-price text-red text-lg text-bold">{{shopOrder.payMoney}}</text></view>
<view class="text-lg" v-else-if="shopOrder.payStatus == 0"><text>需付款</text><text <view class="text-lg" v-else-if="shopOrder.payStatus == 0"><text>需付款</text><text
class="text-price text-red text-lg text-bold">{{shopOrder.payMoney + shopOrder.changeMoney}}</text></view> class="text-price text-red text-lg text-bold">{{Math.round((shopOrder.payMoney + shopOrder.changeMoney) * 100) / 100}}</text></view>
</view> </view>
<view class="padding-bottom-sm flex justify-end align-end text-red text-lg" v-if="shopOrder.payStatus == 1 && shopOrder.changeMoney">您有报价/加价申请待付款中......</view> <view class="padding-bottom-sm flex justify-end align-end text-red text-lg" v-if="shopOrder.payStatus == 1 && shopOrder.changeMoney">您有报价/加价申请待付款中......</view>
<view v-if="orderType === 0" class="padding-tb-sm"> <view v-if="orderType === 0" class="padding-tb-sm">

View File

@ -296,7 +296,7 @@
} else if (this.formInfo.payWay == '1') { } else if (this.formInfo.payWay == '1') {
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/order/pay-result?customTip=下单成功,待上门支付' url: '/pages/order/pay-result?customTip=您选择上门到付款,师傅/服务人员上门后会让您付款,请配合!可从对方出示的系统二维码或你订单中的“付款”键支付!'
}) })
return; return;
} }

View File

@ -80,7 +80,8 @@
} }
} }
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-order?tabInfo=' + encodeURIComponent(JSON.stringify(params)) // url: '/pages/my/my-order?tabInfo=' + encodeURIComponent(JSON.stringify(params))
url: '/pages/index/index?menuCode=myPage'
}) })
} }
}, },