Authored by hongyong.zhao

修改分享图

239 KB | W: | H:

239 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -172,27 +172,28 @@ Page({ @@ -172,27 +172,28 @@ Page({
172 } 172 }
173 }); 173 });
174 174
175 - pCtx.drawImage('./images/qg@2x.png', 107 * scale, 286 * scale, 160 * scale, 77 * scale); 175 + pCtx.drawImage('./images/Group@2x.png', 20 * scale, 286 * scale, 334 * scale, 136 * scale);
176 176
177 this.drawLongText(this.data.product_name, pCtx, 187.5 * scale, 412 * scale, '#444444', 20, 20); 177 this.drawLongText(this.data.product_name, pCtx, 187.5 * scale, 412 * scale, '#444444', 20, 20);
178 178
  179 + pCtx.drawImage('./images/y@2x.png', 128.5 * scale, 465 * scale, 60 * scale, 25 * scale);
  180 +
179 pCtx.setFillStyle('#b0b0b0'); 181 pCtx.setFillStyle('#b0b0b0');
180 - pCtx.setTextAlign('center'); 182 + // pCtx.setTextAlign('center');
181 const fontSize = 18; 183 const fontSize = 18;
182 pCtx.setFontSize(fontSize); 184 pCtx.setFontSize(fontSize);
183 -  
184 let text = `${this.data.product_price}`; 185 let text = `${this.data.product_price}`;
185 - pCtx.fillText(text, 137.5 * scale, 485 * scale); 186 + pCtx.fillText(text, (137.5 + 120) * scale, 485 * scale);
186 187
187 let textRect = {width: 70}; 188 let textRect = {width: 70};
188 if (pCtx.measureText) { 189 if (pCtx.measureText) {
189 textRect = pCtx.measureText(text); 190 textRect = pCtx.measureText(text);
190 } 191 }
191 192
192 - this.drawLine(pCtx, (137.5 * scale) - (30 * scale), (485 - 15/2) * scale, textRect.width);  
193 -  
194 - pCtx.drawImage('./images/y@2x.png', 128.5 * scale + textRect.width, 465 * scale, 60 * scale, 25 * scale);  
195 - 193 + this.drawLine(pCtx, ((137.5 + 120) * scale) - (30 * scale), (485 - 15/2) * scale, textRect.width);
  194 + pCtx.setFillStyle('black')
  195 + pCtx.fillRect(47 * scale, 562 * scale, 280 * scale, 90 * scale)
  196 + // this.drawRoundedRect(this.Rect(25 * scale, 562* scale, 280 * scale, 90 * scale), 0, pCtx);
196 wx.getImageInfo({ 197 wx.getImageInfo({
197 src: this.data.product_qrCode, 198 src: this.data.product_qrCode,
198 success: function(res) { 199 success: function(res) {
@@ -201,9 +202,9 @@ Page({ @@ -201,9 +202,9 @@ Page({
201 } 202 }
202 }); 203 });
203 204
204 - this.drawLongText(`${this.data.user_name}邀请你参与YO!LUCK`, pCtx, 137.5 * scale, 585.5 * scale, '#444444', 14, 20, 'left'); 205 + this.drawLongText(`${this.data.user_name}邀请你参与0元抽奖`, pCtx, 137.5 * scale, 585.5 * scale, '#ffffff', 14, 20, 'left');
205 206
206 - pCtx.setFillStyle('#b0b0b0'); 207 + pCtx.setFillStyle('#ffffff');
207 pCtx.setFontSize(10); 208 pCtx.setFontSize(10);
208 pCtx.fillText('长按图片识别小程序码抢限定', 137.5 * scale, 612.5 * scale); 209 pCtx.fillText('长按图片识别小程序码抢限定', 137.5 * scale, 612.5 * scale);
209 pCtx.draw(); 210 pCtx.draw();
@@ -9,14 +9,14 @@ @@ -9,14 +9,14 @@
9 <image class="product-defaultImage" src="{{default_image}}"> </image> 9 <image class="product-defaultImage" src="{{default_image}}"> </image>
10 10
11 <view class="center"> 11 <view class="center">
12 - <image class="product-0price-logo" src="./images/qg@2x.png"></image> 12 + <image class="product-0price-logo" src="./images/Group@2x.png"></image>
13 </view> 13 </view>
14 14
15 <view class="product-name">{{product_name}}</view> 15 <view class="product-name">{{product_name}}</view>
16 16
17 <view class="product-price"> 17 <view class="product-price">
18 - <view class="price">{{product_price}}</view>  
19 <image class="price0" src="./images/y@2x.png"></image> 18 <image class="price0" src="./images/y@2x.png"></image>
  19 + <view class="price">{{product_price}}</view>
20 </view> 20 </view>
21 </view> 21 </view>
22 22
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <view class="product-miniqr"> 24 <view class="product-miniqr">
25 <image class="product-qrcode" src="{{product_qrCode}}"></image> 25 <image class="product-qrcode" src="{{product_qrCode}}"></image>
26 <view class="product-tips"> 26 <view class="product-tips">
27 - <view class="product-tips-user">{{user_name}}邀请你参与YO!LUCK</view> 27 + <view class="product-tips-user">{{user_name}}邀请你参与0元抽奖</view>
28 <view class="product-tips-text">长按图片识别小程序码抢限定</view> 28 <view class="product-tips-text">长按图片识别小程序码抢限定</view>
29 </view> 29 </view>
30 </view> 30 </view>
@@ -49,9 +49,11 @@ @@ -49,9 +49,11 @@
49 } 49 }
50 50
51 .center { 51 .center {
52 - width: 100%; 52 + width: 530rpx;
53 text-align: center; 53 text-align: center;
54 font-size: 0; 54 font-size: 0;
  55 + position: relative;
  56 + left: -15rpx;
55 } 57 }
56 58
57 .product-qrcode { 59 .product-qrcode {
@@ -66,8 +68,8 @@ @@ -66,8 +68,8 @@
66 } 68 }
67 69
68 .product-0price-logo { 70 .product-0price-logo {
69 - width: 250rpx;  
70 - height: 122rpx; 71 + width: 100%;
  72 + height: 136rpx;
71 } 73 }
72 74
73 .product-name { 75 .product-name {
@@ -105,11 +107,12 @@ @@ -105,11 +107,12 @@
105 width: 100rpx; 107 width: 100rpx;
106 height: 42rpx; 108 height: 42rpx;
107 margin-left: 10rpx; 109 margin-left: 10rpx;
  110 + margin-right: 10rpx;
108 } 111 }
109 112
110 .product-tips { 113 .product-tips {
111 display: inline-block; 114 display: inline-block;
112 - width: 300rpx; 115 + width: 250rpx;
113 margin-left: 30rpx; 116 margin-left: 30rpx;
114 position: absolute; 117 position: absolute;
115 top: 50%; 118 top: 50%;
@@ -117,22 +120,24 @@ @@ -117,22 +120,24 @@
117 } 120 }
118 121
119 .product-tips-user { 122 .product-tips-user {
120 - font-size: 25rpx;  
121 - margin-bottom: 20rpx 123 + font-size: 23rpx;
  124 + margin-bottom: 20rpx;
  125 + color:white;
122 } 126 }
123 127
124 .product-tips-text { 128 .product-tips-text {
125 - font-size: 16rpx;  
126 - color: #b0b0b0; 129 + font-size: 20rpx;
  130 + color: white;
127 } 131 }
128 132
129 .product-miniqr { 133 .product-miniqr {
130 - width: 500rpx; 134 + width: 450rpx;
131 margin-left: 20rpx; 135 margin-left: 20rpx;
132 margin-right: 20rpx; 136 margin-right: 20rpx;
133 position: relative; 137 position: relative;
134 top: 50%; 138 top: 50%;
135 - transform: translateY(-50%) 139 + transform: translateY(-50%);
  140 + background-color: black;
136 } 141 }
137 142
138 .snapshoot-bottom { 143 .snapshoot-bottom {
@@ -196,4 +201,5 @@ @@ -196,4 +201,5 @@
196 .desc { 201 .desc {
197 height: 260rpx; 202 height: 260rpx;
198 position: relative; 203 position: relative;
  204 +
199 } 205 }