commission--yt-commit
This commit is contained in:
@ -13,6 +13,10 @@ Page({
|
||||
currentQrcode: '',
|
||||
currentPromoLink: '',
|
||||
globalImgUrl,
|
||||
settlementDesc: '',
|
||||
projectDesc: '',
|
||||
projectFlow: '',
|
||||
projectDescription: '',
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@ -50,7 +54,11 @@ Page({
|
||||
projectDetail: detail,
|
||||
notificationList: detail.projectNotificationVOList || [],
|
||||
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 {
|
||||
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) {
|
||||
const idx = +e.currentTarget.dataset.index;
|
||||
this.setData({ activeTab: idx });
|
||||
|
@ -8,7 +8,7 @@
|
||||
<view class="flex-col flex-1 group_1 ml-20">
|
||||
<text class="self-start font text">{{projectDetail.projectName}}</text>
|
||||
<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 }}">
|
||||
<image
|
||||
class="shrink-0 image_2"
|
||||
@ -97,7 +97,7 @@
|
||||
class="image_5 pos_4"
|
||||
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 class="flex-col relative section_1 mt-21">
|
||||
<text class="self-start font_5 text_1">项目说明</text>
|
||||
@ -105,7 +105,7 @@
|
||||
class="image_5 pos_5"
|
||||
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 class="flex-col relative section_1 mt-21">
|
||||
<text class="self-start font_5 text_1">项目流程</text>
|
||||
@ -113,7 +113,7 @@
|
||||
class="image_5 pos_6"
|
||||
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>
|
||||
<!-- 我的推广码tab -->
|
||||
|
Reference in New Issue
Block a user