Commit f9ae7fc3d9dfb90765070639b06ef90d8e4789af

Authored by yvan.ni
2 parents 7a87c3db 7c3b287f

Merge branch 'work-1.1_20191010' of http://git.vipzhuang.cn/wxd/MShopWeApp into work-1.1_20191010

components/qr_code/qr_code.js
@@ -37,7 +37,9 @@ Component({ @@ -37,7 +37,9 @@ Component({
37 barcode('barcode'+this.data.index,val, 620, 160,this); 37 barcode('barcode'+this.data.index,val, 620, 160,this);
38 qrcode('qrcode'+this.data.index, val, 520, 520,this); 38 qrcode('qrcode'+this.data.index, val, 520, 520,this);
39 } 39 }
40 - } 40 + },
  41 +
  42 +
41 43
42 44
43 }) 45 })
44 \ No newline at end of file 46 \ No newline at end of file
components/qr_code/qr_code.wxml
  1 +
1 <view class="xc-pop-up" wx:if="{{q_show}}"> 2 <view class="xc-pop-up" wx:if="{{q_show}}">
2 - <view class="xc-obscuration" bindtap='close'></view> 3 +<!-- <scroll-view scroll-y="false" style=" height: 100%;"> -->
  4 + <view class="xc-obscuration" bindtap='close' catchtouchmove="ture"></view>
3 <view> 5 <view>
4 <view class="xc-qr-frame"> 6 <view class="xc-qr-frame">
  7 +
5 <view class="barqrcode"> 8 <view class="barqrcode">
6 <view class="barcode" wx:if="{{!is_fw}}"> 9 <view class="barcode" wx:if="{{!is_fw}}">
7 - <canvas canvas-id="barcode{{item.index}}" wx:for="{{barcode_canvas}}" /> 10 + <canvas canvas-id="barcode{{item.index}}" wx:for="{{barcode_canvas}}" />
8 <view class="q_code">{{object.val}}</view> 11 <view class="q_code">{{object.val}}</view>
9 </view> 12 </view>
10 <view class="qrcode_rim {{is_fw==1?'mt':''}}"> 13 <view class="qrcode_rim {{is_fw==1?'mt':''}}">
11 - <canvas class="qrcode" canvas-id="qrcode{{item.index}}" wx:for="{{barcode_canvas}}" /> 14 + <canvas class="qrcode" canvas-id="qrcode{{item.index}}" wx:for="{{barcode_canvas}}" />
12 <view class="r-code">{{object.content}}</view> 15 <view class="r-code">{{object.content}}</view>
13 <view class="r-code flex" wx:if="{{object.is_quan}}">有效时间:{{object.now}} 至 <view>{{object.validay}}</view></view> 16 <view class="r-code flex" wx:if="{{object.is_quan}}">有效时间:{{object.now}} 至 <view>{{object.validay}}</view></view>
14 <block wx:if="{{object.is_quan}}"> 17 <block wx:if="{{object.is_quan}}">
@@ -18,7 +21,9 @@ @@ -18,7 +21,9 @@
18 <view></view> 21 <view></view>
19 </view> 22 </view>
20 </view> 23 </view>
  24 +
21 </view> 25 </view>
22 <view class="shut" bindtap="close">ⅹ</view> 26 <view class="shut" bindtap="close">ⅹ</view>
23 </view> 27 </view>
  28 +<!-- </scroll-view> -->
24 </view> 29 </view>
25 \ No newline at end of file 30 \ No newline at end of file
components/qr_code/qr_code.wxss
@@ -6,7 +6,11 @@ @@ -6,7 +6,11 @@
6 display:flex; 6 display:flex;
7 justify-content:center; 7 justify-content:center;
8 align-items:center; 8 align-items:center;
  9 +
9 } 10 }
  11 +/* page{
  12 + overflow-y: hidden;
  13 +} */
10 14
11 .xc-obscuration{ 15 .xc-obscuration{
12 position: fixed; 16 position: fixed;
@@ -33,14 +37,16 @@ align-items:center; @@ -33,14 +37,16 @@ align-items:center;
33 height: auto; 37 height: auto;
34 padding-bottom:20rpx; 38 padding-bottom:20rpx;
35 left:35rpx; 39 left:35rpx;
  40 + overflow: hidden;
36 41
37 42
  43 +
38 } 44 }
39 45
40 /* 二维码和条形码的边框 */ 46 /* 二维码和条形码的边框 */
41 .barqrcode{ 47 .barqrcode{
42 width: 100%; 48 width: 100%;
43 - height: auto; 49 + height: 100%;
44 margin-top:30rpx; 50 margin-top:30rpx;
45 position: relative; 51 position: relative;
46 top: 0rpx; 52 top: 0rpx;
@@ -60,7 +66,7 @@ canvas{ @@ -60,7 +66,7 @@ canvas{
60 width:100%; 66 width:100%;
61 height:55px; 67 height:55px;
62 display:block; 68 display:block;
63 -position:relative; 69 +
64 } 70 }
65 .q_code{ 71 .q_code{
66 font-size:28rpx; 72 font-size:28rpx;
@@ -72,7 +78,7 @@ letter-spacing:6rpx; @@ -72,7 +78,7 @@ letter-spacing:6rpx;
72 /* 二维码边框*/ 78 /* 二维码边框*/
73 .qrcode_rim { 79 .qrcode_rim {
74 width: 550rpx; 80 width: 550rpx;
75 - height:580rpx; 81 + height:520rpx;
76 display:flex; 82 display:flex;
77 flex-direction:column; 83 flex-direction:column;
78 84