commission--yt-commit
This commit is contained in:
@ -154,11 +154,11 @@ Page({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查银行卡号是否为 16 位且只包含数字
|
// 检查银行卡号是否为 16 - 19 位且只包含数字
|
||||||
const bankCardPattern = /^[0-9]{16}$/;
|
const bankCardPattern = /^[0-9]{16,19}$/;
|
||||||
if (!bankCardPattern.test(bankCardNumber)) {
|
if (!bankCardPattern.test(bankCardNumber)) {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '银行卡号必须是 16 位数字',
|
title: '银行卡号必须是 16 - 19 位数字',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
height: 100%;
|
height: calc(100vh - 1rpx);
|
||||||
}
|
}
|
||||||
.section {
|
.section {
|
||||||
padding: 28.13rpx 26.25rpx;
|
padding: 28.13rpx 26.25rpx;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
height: 100%;
|
height: calc(100vh - 1rpx);
|
||||||
}
|
}
|
||||||
.font {
|
.font {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
@ -13,6 +13,10 @@ Page({
|
|||||||
currentQrcode: '',
|
currentQrcode: '',
|
||||||
currentPromoLink: '',
|
currentPromoLink: '',
|
||||||
globalImgUrl,
|
globalImgUrl,
|
||||||
|
settlementDesc: '',
|
||||||
|
projectDesc: '',
|
||||||
|
projectFlow: '',
|
||||||
|
projectDescription: '',
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -50,7 +54,11 @@ Page({
|
|||||||
projectDetail: detail,
|
projectDetail: detail,
|
||||||
notificationList: detail.projectNotificationVOList || [],
|
notificationList: detail.projectNotificationVOList || [],
|
||||||
settlementDetailList: detail.projectAllDetailVOList || [],
|
settlementDetailList: detail.projectAllDetailVOList || [],
|
||||||
promoCodeList: detail.promoCodeApplyVOList || []
|
promoCodeList: detail.promoCodeApplyVOList || [],
|
||||||
|
settlementDesc: this.decode64(detail.settlementDesc),
|
||||||
|
projectDesc: this.decode64(detail.projectDesc),
|
||||||
|
projectFlow: this.decode64(detail.projectFlow),
|
||||||
|
projectDescription: this.decode64(detail.projectDescription)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
@ -68,6 +76,13 @@ Page({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// base64转为字符串
|
||||||
|
decode64(text) {
|
||||||
|
var decoder = new TextDecoder();
|
||||||
|
return new TextDecoder().decode(Uint8Array.from(atob(text), (c) => c.charCodeAt(0)));
|
||||||
|
// return decodeURIComponent(escape(String.fromCharCode(...[text])));
|
||||||
|
},
|
||||||
|
|
||||||
switchTab(e) {
|
switchTab(e) {
|
||||||
const idx = +e.currentTarget.dataset.index;
|
const idx = +e.currentTarget.dataset.index;
|
||||||
this.setData({ activeTab: idx });
|
this.setData({ activeTab: idx });
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<view class="flex-col flex-1 group_1 ml-20">
|
<view class="flex-col flex-1 group_1 ml-20">
|
||||||
<text class="self-start font text">{{projectDetail.projectName}}</text>
|
<text class="self-start font text">{{projectDetail.projectName}}</text>
|
||||||
<view class="flex-row items-center self-stretch mt-7">
|
<view class="flex-row items-center self-stretch mt-7">
|
||||||
<text class="flex-1 font_2 text_2">{{projectDetail.projectDescription}}</text>
|
<text class="flex-1 font_2 text_2">{{ projectDescription }}</text>
|
||||||
<view class="flex-row items-center shrink-0 section ml-13" bindtap="gotoSettlement" data-id="{{ projectDetail.id }}" data-url="{{ projectDetail.projectImage }}" data-name="{{ projectDetail.projectName }}">
|
<view class="flex-row items-center shrink-0 section ml-13" bindtap="gotoSettlement" data-id="{{ projectDetail.id }}" data-url="{{ projectDetail.projectImage }}" data-name="{{ projectDetail.projectName }}">
|
||||||
<image
|
<image
|
||||||
class="shrink-0 image_2"
|
class="shrink-0 image_2"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
class="image_5 pos_4"
|
class="image_5 pos_4"
|
||||||
src="./images/sm.png"
|
src="./images/sm.png"
|
||||||
/>
|
/>
|
||||||
<rich-text class="self-stretch section_8 view_2" nodes="{{projectDetail.settlementDesc}}"></rich-text>
|
<rich-text class="self-stretch section_8 view_2" nodes="{{ settlementDesc }}"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-col relative section_1 mt-21">
|
<view class="flex-col relative section_1 mt-21">
|
||||||
<text class="self-start font_5 text_1">项目说明</text>
|
<text class="self-start font_5 text_1">项目说明</text>
|
||||||
@ -105,7 +105,7 @@
|
|||||||
class="image_5 pos_5"
|
class="image_5 pos_5"
|
||||||
src="./images/sm.png"
|
src="./images/sm.png"
|
||||||
/>
|
/>
|
||||||
<rich-text class="self-stretch section_8" nodes="{{projectDetail.projectDesc}}"></rich-text>
|
<rich-text class="self-stretch section_8" nodes="{{ projectDesc }}"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-col relative section_1 mt-21">
|
<view class="flex-col relative section_1 mt-21">
|
||||||
<text class="self-start font_5 text_1">项目流程</text>
|
<text class="self-start font_5 text_1">项目流程</text>
|
||||||
@ -113,7 +113,7 @@
|
|||||||
class="image_5 pos_6"
|
class="image_5 pos_6"
|
||||||
src="./images/sm.png"
|
src="./images/sm.png"
|
||||||
/>
|
/>
|
||||||
<rich-text class="self-stretch section_8" nodes="{{projectDetail.projectFlow}}"></rich-text>
|
<rich-text class="self-stretch section_8" nodes="{{ projectFlow }}"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 我的推广码tab -->
|
<!-- 我的推广码tab -->
|
||||||
|
Reference in New Issue
Block a user