Commit 9045573181ed66a326cfaa8d40bc13bc45c0aa16

Authored by yvan.ni
1 parent f279f4c0

1、券领取的样式优化

2、券二维码的功能优化
packageA/pages/quan_pro/quan_pro.js
... ... @@ -35,7 +35,12 @@ Page({
35 35 }
36 36  
37 37 var id=t.id;
  38 + //如果二维码分享过来的
  39 + if(!id){
  40 + id = decodeURIComponent(t.scene);
  41 + }
38 42 this.data.id=id;
  43 +
39 44 var goods_list = this.selectComponent("#goods_list"); //组件的id
40 45 goods_list.init();
41 46 setTimeout(function() {
... ...
packageA/pages/quan_pro/quan_pro.wxml
... ... @@ -79,7 +79,7 @@
79 79 <view class="up flex jc-center">
80 80 <view class="t-c">
81 81 <image src="{{iurl}}/miniapp/images/coupon_img/success.png"></image>
82   - <view style="margin-top:32rpx;color:#4e220b" class="fs36 ellipsis-1">恭喜您获得【{{q_data.name}}】优惠券</view>
  82 + <view class="q_title fs36">恭喜您获得【{{q_data.name}}】优惠券</view>
83 83 </view>
84 84 </view>
85 85 <view class="down co-w t-c fs35" bindtap="go_quan">查看我的优惠券</view>
... ...
packageA/pages/quan_pro/quan_pro.wxss
... ... @@ -19,7 +19,7 @@ page{background-color: #f8f8f8;}
19 19 top:50%; margin-top: -150rpx;background-color: #fff; z-index: 999999;
20 20 }
21 21  
22   -.suc_content .up{ height:200rpx;}
  22 +.suc_content .up{ min-height:200rpx;}
23 23 .suc_content .up image{ width: 280rpx; height: 220rpx; margin-top: -130rpx}
24 24 .suc_content .down{ background-color: #c4182e; height:106rpx; line-height: 106rpx;
25 25 border-bottom-right-radius:25rpx;
... ... @@ -29,3 +29,6 @@ page{background-color: #f8f8f8;}
29 29 .btn.gray{background-color: #dcdcdc; color: #adb3be;}
30 30 .coupon_remark{padding: 30rpx 0 10rpx 0; box-sizing: border-box; overflow: hidden;}
31 31  
  32 +.q_title{
  33 + margin-top:30rpx;color:#4e220b; padding: 0 10rpx; padding-bottom: 10rpx;
  34 +}
32 35 \ No newline at end of file
... ...