Commit ba92aad5 by 杨北旺

权益

1 parent 406da64a
Page({ Page({
data: {}, data: {},
onLoad: function (options) { onLoad: function (options) {
setTimeout(()=>{
this.getOrderInfo(options.orderCode) this.getOrderInfo(options.orderCode)
},2*1000)
}, },
getOrderInfo(orderCode) { getOrderInfo(orderCode) {
wx.p.wxApi.showLoading()
wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => { wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => {
wx.hideLoading();
let richText = res.useNotes let richText = res.useNotes
res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : '' res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : ''
if (richText) { if (richText) {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<view class="card_btn" data-item="{{order.cardPwd}}" bind:tap="setCopyData">复制</view> <view class="card_btn" data-item="{{order.cardPwd}}" bind:tap="setCopyData">复制</view>
</view> </view>
</view> </view>
<view style="padding: 0 40rpx;"> <view wx:if="{{richText}}" style="padding: 0 40rpx;">
<view style="text-align: center;margin-bottom: 20rpx;"> <view style="text-align: center;margin-bottom: 20rpx;">
<text class="title">使用须知</text> <text class="title">使用须知</text>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!