Commit 12ad9b6ba714038dfdf154571b3bcc06ecdac29c

Authored by vking
1 parent 3e875253

商家红包活动

@@ -22,8 +22,8 @@ Component({ @@ -22,8 +22,8 @@ Component({
22 show(){ 22 show(){
23 App.Customer.SetCardRel({ 23 App.Customer.SetCardRel({
24 sid:this.data.checkout.sid, 24 sid:this.data.checkout.sid,
25 - //price:3,  
26 - price:this.data.checkout.should_price, 25 + price:1,
  26 + //price:this.data.checkout.should_price,
27 receive_type:4,//任务领取 27 receive_type:4,//任务领取
28 }).then(res=>{ 28 }).then(res=>{
29 if(res.data){ 29 if(res.data){
1 <!--pack-checkout/components/xfCard.wxml--> 1 <!--pack-checkout/components/xfCard.wxml-->
  2 +<wxs src="../../utils/util.wxs" module="util" />
2 <view class="mask flex-vc" wx:if="{{display}}"> 3 <view class="mask flex-vc" wx:if="{{display}}">
3 - <view class="card"> 4 + <view class="card" style="text-align: center;">
4 <view class="close" bindtap="hide"></view> 5 <view class="close" bindtap="hide"></view>
  6 + <view class="title">买单返利</view>
  7 + <view class="name">陕西风味面馆</view>
  8 + <view class="tip">送您红包</view>
  9 + <view class="money flex-cc" style="align-items: flex-end;">
  10 + <view>{{util.toFixed(card.price,0)}}</view>
  11 + <view class="dot">元</view>
  12 + </view>
  13 + <view class="button" bindtap="hide">知道了</view>
5 </view> 14 </view>
6 </view> 15 </view>
1 /* pack-checkout/components/xfCard.wxss */ 1 /* pack-checkout/components/xfCard.wxss */
2 @import "/app.wxss"; 2 @import "/app.wxss";
3 .card{ 3 .card{
4 - width: 578rpx;  
5 - height: calc(686rpx - 60rpx);  
6 - background-image: url("http://nosqn.colorcun.com/sellerbaobao/baobao.png"); 4 + width: 602rpx;
  5 + height: 686rpx;
  6 + background-image: url("http://nosqn.colorcun.com/sellerbaobao/baobao2.png");
7 background-size: 100% 100%; 7 background-size: 100% 100%;
8 position: relative; 8 position: relative;
9 } 9 }
@@ -13,6 +13,62 @@ @@ -13,6 +13,62 @@
13 width:48rpx; 13 width:48rpx;
14 height:48rpx; 14 height:48rpx;
15 position: absolute; 15 position: absolute;
16 - top:-60rpx;  
17 - right:0;  
18 -}  
  16 + top:-36rpx;
  17 + right:-26rpx;
  18 +}
  19 +.title{
  20 + height:40rpx;
  21 + font-size:28rpx;
  22 + font-family:PingFangSC-Medium,PingFang SC;
  23 + font-weight:500;
  24 + color:rgba(255,255,255,1);
  25 + line-height:40rpx;
  26 + margin-top: 128rpx;
  27 +}
  28 +.name{
  29 + height:44rpx;
  30 + font-size:32rpx;
  31 + font-family:PingFangSC-Regular,PingFang SC;
  32 + font-weight:400;
  33 + color:rgba(187,113,50,1);
  34 + line-height:44rpx;
  35 + letter-spacing:1rpx;
  36 + margin-top: 36rpx;
  37 +}
  38 +.tip{
  39 + height:40rpx;
  40 + font-size:28rpx;
  41 + font-family:PingFangSC-Regular,PingFang SC;
  42 + font-weight:400;
  43 + color:rgba(187,113,50,1);
  44 + line-height:40rpx;
  45 + letter-spacing:1rpx;
  46 + margin-top: 20rpx;
  47 +}
  48 +.money{
  49 + height:134rpx;
  50 + font-size:96rpx;
  51 + font-family:PingFangSC-Semibold,PingFang SC;
  52 + font-weight:600;
  53 + color:rgba(204,17,17,1);
  54 + line-height:134rpx;
  55 +}
  56 +.dot{
  57 + height:48rpx;
  58 + font-size:34rpx;
  59 + font-family:PingFangSC-Semibold,PingFang SC;
  60 + font-weight:600;
  61 + color:rgba(204,17,17,1);
  62 + line-height:48rpx;
  63 + margin-bottom: 24rpx;
  64 + margin-left: 10rpx;
  65 +}
  66 +.button{
  67 + height:48rpx;
  68 + font-size:34rpx;
  69 + font-family:PingFangSC-Medium,PingFang SC;
  70 + font-weight:500;
  71 + color:rgba(187,80,50,1);
  72 + line-height:48rpx;
  73 + margin-top:118rpx;
  74 +}
@@ -159,8 +159,6 @@ Page({ @@ -159,8 +159,6 @@ Page({
159 App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid}) 159 App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid})
160 }, 160 },
161 pay(){ 161 pay(){
162 - this.selectComponent('#xfCard').show();  
163 - return;  
164 App.PayOnline.CombineTransactions({ 162 App.PayOnline.CombineTransactions({
165 rid:this.data.checkout.rid, 163 rid:this.data.checkout.rid,
166 }).then(res=>{ 164 }).then(res=>{