Commit 4ff187586897960acea04257cbb7a775126fec5e

Authored by vking
1 parent 5a81423d

taocan

@@ -35,6 +35,7 @@ Component({ @@ -35,6 +35,7 @@ Component({
35 }); 35 });
36 }, 36 },
37 initListOrder(){ 37 initListOrder(){
  38 + if(!this.data.listOrder) return;
38 let orderStatusStr={ 39 let orderStatusStr={
39 1:{status:'未支付',info:''}, 40 1:{status:'未支付',info:''},
40 2:{status:'待使用',info:'感谢您的支持,请您按尽快来店就餐呦'}, 41 2:{status:'待使用',info:'感谢您的支持,请您按尽快来店就餐呦'},
@@ -3,13 +3,13 @@ import util from '../../utils/util'; @@ -3,13 +3,13 @@ import util from '../../utils/util';
3 import App from '../../utils/api'; 3 import App from '../../utils/api';
4 //账单状态 1=初始化 2=交易成功(待使用) 3=已使用 4=退款中 5=已退款 6=已过期 7=支付失败 4 //账单状态 1=初始化 2=交易成功(待使用) 3=已使用 4=退款中 5=已退款 6=已过期 7=支付失败
5 const orderStatusStr={ 5 const orderStatusStr={
6 - 1:{status:'未支付',info:''},  
7 - 2:{status:'待使用',info:'感谢您的支持,请您按尽快来店就餐呦'},  
8 - 3:{status:'已使用',info:'感谢您的支持,满意的话记得常来呦'},  
9 - 4:{status:'退款中',info:''},  
10 - 5:{status:'已退款',info:'钱款已原路退还,请在微信账单查看呦'},  
11 - 6:{status:'已过期',info:'您可以随时申请退款呦'},  
12 - 7:{status:'支付失败',info:''}, 6 + 1:{status:'未支付',info:'',optbut:''},
  7 + 2:{status:'待使用',info:'感谢您的支持,请您按尽快来店就餐呦',optbut:'申请退款'},
  8 + 3:{status:'已使用',info:'感谢您的支持,满意的话记得常来呦',optbut:''},
  9 + 4:{status:'退款中',info:'',optbut:'退款进度'},
  10 + 5:{status:'已退款',info:'钱款已原路退还,请在微信账单查看呦',optbut:'退款进度'},
  11 + 6:{status:'已过期',info:'您可以随时申请退款呦',optbut:'申请退款'},
  12 + 7:{status:'支付失败',info:'',optbut:''},
13 } 13 }
14 Page({ 14 Page({
15 15
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <view class="view padding-lr padding-bottom-lg" style="position: relative"> 5 <view class="view padding-lr padding-bottom-lg" style="position: relative">
6 <view class="text-white txt-40-h text-bold margin-top-sm">{{order_tips.status}}</view> 6 <view class="text-white txt-40-h text-bold margin-top-sm">{{order_tips.status}}</view>
7 <view class="text-white txt-28-h text-bold margin-bottom-lg" style="margin-top: 6rpx;">{{order_tips.info}}</view> 7 <view class="text-white txt-28-h text-bold margin-bottom-lg" style="margin-top: 6rpx;">{{order_tips.info}}</view>
8 - <subject foods_info="{{foods_info}}" order_info="{{order_info}}"> 8 + <subject foods_info="{{foods_info}}" order_info="{{order_info}}" wx:if="{{order_info}}">
9 <view class="view flex flex-direction justify-center align-center margin-top-lg"> 9 <view class="view flex flex-direction justify-center align-center margin-top-lg">
10 <view class="Medium txt-28-h {{order_info.status==2?'':'overline'}}">券码:{{order_info.id}}</view> 10 <view class="Medium txt-28-h {{order_info.status==2?'':'overline'}}">券码:{{order_info.id}}</view>
11 <image src="{{qrcode?qrcode:'http://nosqn.colorcun.com/taocan/1%20%2813%29.png'}}" mode="heightFix" style="height: 340rpx;"></image> 11 <image src="{{qrcode?qrcode:'http://nosqn.colorcun.com/taocan/1%20%2813%29.png'}}" mode="heightFix" style="height: 340rpx;"></image>
@@ -50,7 +50,9 @@ @@ -50,7 +50,9 @@
50 <view class="view card margin-top-sm padding-bottom-xs"> 50 <view class="view card margin-top-sm padding-bottom-xs">
51 <view class="padding solid-bottom flex justify-between"> 51 <view class="padding solid-bottom flex justify-between">
52 <view class="txt-30-h text-bold">订单信息</view> 52 <view class="txt-30-h text-bold">订单信息</view>
53 - <view class="text-gray">退款进度</view> 53 + <view class="text-df order-opt-but order-opt-but{{order_info.status}} flex align-center justify-center" wx:if="{{order_tips.optbut}}">
  54 + {{order_tips.optbut}}
  55 + </view>
54 </view> 56 </view>
55 <view class="view padding padding-lr-lg flex justify-between"> 57 <view class="view padding padding-lr-lg flex justify-between">
56 <view class="text-gray txt-28-h">商品总价</view> 58 <view class="text-gray txt-28-h">商品总价</view>
@@ -31,4 +31,14 @@ @@ -31,4 +31,14 @@
31 } 31 }
32 .overline{ 32 .overline{
33 text-decoration: line-through; 33 text-decoration: line-through;
  34 +}
  35 +.order-opt-but{
  36 + width: 136rpx;
  37 + height: 48rpx;
  38 + border: 2rpx solid #CCCCCC;
  39 + color:#999999;
  40 +}
  41 +.order-opt-but6{
  42 + border: 2rpx solid #42A5FF;
  43 + color:#42A5FF;
34 } 44 }