@@ -132,10 +132,10 @@ | |||||
<view> | <view> | ||||
<text>购买须知</text> | <text>购买须知</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml==''}}"> | |||||
<view wx:if="{{data.contentType==0}}"> | |||||
<text><text class='spot'></text>{{data.remark}}</text> | <text><text class='spot'></text>{{data.remark}}</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml!=''}}"> | |||||
<view wx:if="{{data.contentType==1}}"> | |||||
<rich-text nodes="{{curHtml}}"></rich-text> | <rich-text nodes="{{curHtml}}"></rich-text> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -133,10 +133,10 @@ | |||||
<view> | <view> | ||||
<text>购买须知</text> | <text>购买须知</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml==''}}"> | |||||
<view wx:if="{{data.contentType==0}}"> | |||||
<text><text class='spot'></text>{{data.remark}}</text> | <text><text class='spot'></text>{{data.remark}}</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml!=''}}"> | |||||
<view wx:if="{{data.contentType==1}}"> | |||||
<rich-text nodes="{{curHtml}}"></rich-text> | <rich-text nodes="{{curHtml}}"></rich-text> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -311,9 +311,8 @@ Page({ | |||||
}).then(res => { | }).then(res => { | ||||
if (res.code == 200 && res.data.html) { | if (res.code == 200 && res.data.html) { | ||||
this.setData({ | this.setData({ | ||||
curHtml: decodeURI(res.data.html) | |||||
curHtml: decodeURI(res.data.html), | |||||
}) | }) | ||||
console.log(this.data.curHtml, 'curhtml'); | |||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
@@ -119,10 +119,10 @@ | |||||
<view> | <view> | ||||
<text>购买须知</text> | <text>购买须知</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml==''}}"> | |||||
<view wx:if="{{data.contentType==0}}"> | |||||
<text><text class='spot'></text>{{data.remark}}</text> | <text><text class='spot'></text>{{data.remark}}</text> | ||||
</view> | </view> | ||||
<view wx:if="{{curHtml!==''}}"> | |||||
<view wx:if="{{data.contentType==1}}"> | |||||
<rich-text nodes="{{curHtml}}"></rich-text> | <rich-text nodes="{{curHtml}}"></rich-text> | ||||
</view> | </view> | ||||
</view> | </view> | ||||