@@ -778,6 +778,7 @@ export default {
},
data() {
return {
+ newShareMember: false,
PAY_TYPE,
PAY_AUTH,
payList: {},
@@ -887,6 +888,7 @@ export default {
onShow() {
// 获取银行卡
// this.getBankList()
+ this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
},
methods: {
toUnBind() {
@@ -987,6 +989,7 @@ export default {
this.specialArea == 1 ||
this.specialArea == 7 ||
this.specialArea == 24
+ || this.specialArea == 41
) {
url = api.payRegOrder
} else {
@@ -1277,7 +1280,9 @@ export default {
if (navigator.userAgent.includes('MicroMessenger')) {
window.location.href = url
} else {
- window.open(url)
+ requestAnimationFrame(()=>{
+ window.open(url)
+ });
}
})
},
@@ -1366,10 +1371,30 @@ export default {
api.payConfig().then(res => {
this.payList = res.data
console.log(this.payList)
+ console.log(this.PAY_AUTH)
+ const firstPayType = this.getFirstTrueProperty(this.payList);
+ const payKeyName = this.getKeyByValue(PAY_AUTH, firstPayType)
+ if(this.newShareMember){
+ this.$set(this, 'activeNames', 2);
+ this.$set(this, 'whatPay', payKeyName);
+ }
resolve(res.data)
+ // payList[PAY_AUTH[PAY_TYPE.JING_DONG_H5]]
})
})
},
+ getKeyByValue(obj, value) {
+ const foundEntry = Object.entries(obj).find(([key, val]) => val === value);
+ return foundEntry ? foundEntry[0] : null;
+ },
+ getFirstTrueProperty(obj) {
+ for (const key in obj) {
+ if (obj.hasOwnProperty(key) && obj[key] === true) {
+ return key;
+ }
+ }
+ return null;
+ },
getBankList() {
api.jdBankList().then(res => {
this.jdList = res.data
@@ -1391,10 +1416,11 @@ export default {
.orderInfo({
specialArea: this.specialArea,
orderCode: this.orderCode,
- pkSettleCountry: this.pkCountry,
+ pkSettleCountry: this.pkCountry || 1,
})
.then(res => {
this.orderData = res.data
+ this.specialArea = res.data.specialArea
resolve(res.data)
this.downTime()
})
diff --git a/pages/regiest/shareRegister.vue b/pages/regiest/shareRegister.vue
new file mode 100644
index 0000000..4c1b6e2
--- /dev/null
+++ b/pages/regiest/shareRegister.vue
@@ -0,0 +1,1302 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '收货人信息' }}
+
+
+ {{ '添加' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '历史地址' }}
+
+
+
+
+
+
+
+ {{ item.recName }}
+ {{
+ '默认'
+ }}
+
+
+
+
+
+
+ {{ item.recPhone }}
+ {{ item.recArea }}{{ item.recAddress }}
+
+
+
+
+
+
+
+
+
+
+ {{ item.waresName }}
+
+ x{{ item.quantity }}
+
+
+
+ {{ item.price | numberToCurrency }}
+
+ 业绩: {{ item.achieve | numberToCurrency }}
+
+
+
+
+
+
+ {{ stem.productName }} {{ stem.skuInfo }}
+ x{{ stem.quantity }}
+
+
+
+
+ {{ '商品业绩' }}
+ {{
+ item.achieveAmount | numberToCurrency
+ }}
+
+
+ {{ '金额小计' }}
+ {{
+ item.priceAmount | numberToCurrency
+ }}
+
+
+
+
+
+
+
+ {{ '商品金额总计' }}:
+ {{
+ allGoodsData.priceAmount | numberToCurrency
+ }}
+
+
+ {{ '邮费' }}:
+ {{ form.postage | numberToCurrency }}
+
+
+ {{ '总价' }}:
+ {{ totalAmont | numberToCurrency }}
+
+
+ {{ '业绩' }}
+ {{
+ allGoodsData.achieveAmount | numberToCurrency
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/shareRegist/index.vue b/pages/shareRegist/index.vue
index beb499c..7e1b4be 100644
--- a/pages/shareRegist/index.vue
+++ b/pages/shareRegist/index.vue
@@ -10,55 +10,49 @@
+
欢迎注册
-
-
-
-
-
+
+
+
-
+
-
+
-
+
+ prop="loginPwd">
+ v-model="form.loginPwd">
+ prop="payPwd">
+ v-model="form.payPwd">
-->
-
+
+
+
+ 会员编号:
+ {{ successData.memberCode }}
+
+
+ 会员姓名:
+ {{ successData.memberName }}
+
+
+ 联系方式:
+ {{ successData.phone }}
+
+
+ 登录密码:
+ {{ successData.loginPassword }}
+
+
+ 支付密码:
+ {{ successData.payPassword }}
+
+
+ 登录地址:
+ {{ successData.urlAddress }}
+
+
+