parent
59e80b2a8f
commit
3a28bab00e
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,14 +93,22 @@
|
||||||
inParam: null
|
inParam: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
async onLoad(option) {
|
||||||
if (option && option.scene) {
|
this.moduleBarInfos = await this.$api.data('moduleBarInfos');
|
||||||
let paraStr = decodeURIComponent(option.scene);
|
if (option) {
|
||||||
let kvStrArr = paraStr.split("&");
|
// 跳转逻辑
|
||||||
kvStrArr.forEach((kvStr) => {
|
if (option.menuCode) {
|
||||||
let kvArr = kvStr.split("=");
|
this.changeCurPageCode(option.menuCode);
|
||||||
option[kvArr[0]] = kvArr[1];
|
return;
|
||||||
});
|
}
|
||||||
|
if (option.scene) {
|
||||||
|
let paraStr = decodeURIComponent(option.scene);
|
||||||
|
let kvStrArr = paraStr.split("&");
|
||||||
|
kvStrArr.forEach((kvStr) => {
|
||||||
|
let kvArr = kvStr.split("=");
|
||||||
|
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) {
|
||||||
|
|
@ -150,6 +157,13 @@
|
||||||
this.inParam = null;
|
this.inParam = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
changeCurPageCode(targetPageCode) {
|
||||||
|
// #ifdef MP
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.moduleBar.navChangeByCode(targetPageCode, true);
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
},
|
},
|
||||||
reloadForwardPage() {
|
reloadForwardPage() {
|
||||||
if (this.inByShare) {
|
if (this.inByShare) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/my/my-team-member'
|
|
||||||
})
|
|
||||||
} 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({
|
let res = await this.$request.getBindBankCardByCustomerId({
|
||||||
customerId: this.curUserInfo.customerId
|
customerId: this.curUserInfo.customerId
|
||||||
});
|
})
|
||||||
let bindBankCardInfo = res.data;
|
let bindBankCardInfo = res.data;
|
||||||
if (bindBankCardInfo && bindBankCardInfo.bankNum) {
|
if (bindBankCardInfo && bindBankCardInfo.bankNum) {
|
||||||
// 分销资格审核通过,可进行二维码分享
|
// 分销资格审核通过
|
||||||
let res = await this.$request.getUnlimitedWxacode({
|
uni.navigateTo({
|
||||||
scene: "distributor=" + this.curUserInfo.customerId
|
url: '/pages/my/my-team-member'
|
||||||
});
|
})
|
||||||
this.appQrcode = res.data;
|
|
||||||
this.appShareQrcodeModal = true;
|
|
||||||
} else {
|
} 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({
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue