Commit 12ad9b6ba714038dfdf154571b3bcc06ecdac29c

Authored by vking
1 parent 3e875253

商家红包活动

... ... @@ -22,8 +22,8 @@ Component({
show(){
App.Customer.SetCardRel({
sid:this.data.checkout.sid,
//price:3,
price:this.data.checkout.should_price,
price:1,
//price:this.data.checkout.should_price,
receive_type:4,//任务领取
}).then(res=>{
if(res.data){
... ...
<!--pack-checkout/components/xfCard.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<view class="mask flex-vc" wx:if="{{display}}">
<view class="card">
<view class="card" style="text-align: center;">
<view class="close" bindtap="hide"></view>
<view class="title">买单返利</view>
<view class="name">陕西风味面馆</view>
<view class="tip">送您红包</view>
<view class="money flex-cc" style="align-items: flex-end;">
<view>{{util.toFixed(card.price,0)}}</view>
<view class="dot">元</view>
</view>
<view class="button" bindtap="hide">知道了</view>
</view>
</view>
... ...
/* pack-checkout/components/xfCard.wxss */
@import "/app.wxss";
.card{
width: 578rpx;
height: calc(686rpx - 60rpx);
background-image: url("http://nosqn.colorcun.com/sellerbaobao/baobao.png");
width: 602rpx;
height: 686rpx;
background-image: url("http://nosqn.colorcun.com/sellerbaobao/baobao2.png");
background-size: 100% 100%;
position: relative;
}
... ... @@ -13,6 +13,62 @@
width:48rpx;
height:48rpx;
position: absolute;
top:-60rpx;
right:0;
}
\ No newline at end of file
top:-36rpx;
right:-26rpx;
}
.title{
height:40rpx;
font-size:28rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
line-height:40rpx;
margin-top: 128rpx;
}
.name{
height:44rpx;
font-size:32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(187,113,50,1);
line-height:44rpx;
letter-spacing:1rpx;
margin-top: 36rpx;
}
.tip{
height:40rpx;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(187,113,50,1);
line-height:40rpx;
letter-spacing:1rpx;
margin-top: 20rpx;
}
.money{
height:134rpx;
font-size:96rpx;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(204,17,17,1);
line-height:134rpx;
}
.dot{
height:48rpx;
font-size:34rpx;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(204,17,17,1);
line-height:48rpx;
margin-bottom: 24rpx;
margin-left: 10rpx;
}
.button{
height:48rpx;
font-size:34rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(187,80,50,1);
line-height:48rpx;
margin-top:118rpx;
}
... ...
... ... @@ -159,8 +159,6 @@ Page({
App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid})
},
pay(){
this.selectComponent('#xfCard').show();
return;
App.PayOnline.CombineTransactions({
rid:this.data.checkout.rid,
}).then(res=>{
... ...