Commit d9a3d4622ebf8b6be234894da870697f7f40fa05

Authored by vking
1 parent 9a9baec4

taocan

... ... @@ -19,7 +19,7 @@
</view>
<view class="flex align-center">
<view class="bg-white label txt-20-h">套餐数量</view>
<view class="txt-28-h margin-left-lg">1</view>
<view class="txt-28-h margin-left-lg">1份</view>
</view>
<view class="flex align-center">
<view class="bg-white label txt-20-h">有效期限</view>
... ...
... ... @@ -126,13 +126,16 @@ Page({
})
}
},
createSaleIng:false,
createSale(){
this.createSaleIng=true
let pack=this.data.packs[this.activityId]
App.PayOnline.JsApiPay({
pay_type:1,
fid:this.activityId,
sid:pack.sid,
}).then(res=>{
this.createSaleIng=false
if(res.ret==200){
let order_id=res.data.order_id
res.data.timeStamp+=""
... ... @@ -150,6 +153,8 @@ Page({
}else{
util.toast(res.msg,'none')
}
}).catch(res=>{
this.createSaleIng=false
})
},
})
\ No newline at end of file
... ...
... ... @@ -77,11 +77,11 @@
<view class="text-gray txt-28-h">下单时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.pay_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="view padding-bottom padding-lr-lg flex justify-between" wx:if="{{order_info.status==3}}">
<view class="text-gray txt-28-h">使用时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.use_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="view padding-bottom padding-lr-lg flex justify-between" wx:if="{{order_info.status==5}}">
<view class="text-gray txt-28-h">退款时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.refund_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
... ...
... ... @@ -730,7 +730,7 @@
{
"name": "pages/taocan/order",
"pathName": "pages/taocan/order",
"query": "id=0000000011",
"query": "id=0000000039",
"scene": null
},
{
... ...