Selaa lähdekoodia

拼团分享二维码获取及处理样式大小

ZhangWenQiang 6 vuotta sitten
vanhempi
commit
dc1e5438e5
2 muutettua tiedostoa jossa 14 lisäystä ja 13 poistoa
  1. 10 9
      pages/pt-share/pt-share.js
  2. 4 4
      pages/pt-share/pt-share.wxss

+ 10 - 9
pages/pt-share/pt-share.js

@@ -134,7 +134,7 @@ Page({
             zIndex: 2,
           },
           {
-            x: 434,
+            x: 454,
             y: 786,
             baseLine: 'middle',
             text: '识别右侧二维码,',
@@ -143,7 +143,7 @@ Page({
             zIndex: 2,
           },
           {
-            x: 438,
+            x: 454,
             y: 812,
             baseLine: 'middle',
             text: '即可参与我发起的拼工!',
@@ -180,13 +180,13 @@ Page({
             zIndex: 2,
           },
           {
-            width: 120,
-            height: 120,
-            x: 280,
-            y: 744,
-            url: app.globalData.userInfo.avatarUrl, //二维码
+            width: 180,
+            height: 180,
+            x: 270,
+            y: 700,
+            url: this.data.qrcode, //二维码
             zIndex: 2,
-            borderRadius:6,
+            borderRadius: 6,
             borderWidth: 14,
             borderColor: '#fff',
           },
@@ -220,7 +220,8 @@ Page({
         console.log("groupDetail", data)
         var leftTime = data.data.position.groupEndTime
         that.setData({
-          postitionDetail: data.data
+          postitionDetail: data.data,
+          qrcode: data.data.qrcodeUrl,
         })
         resolve(true)
       }).catch(data => {

+ 4 - 4
pages/pt-share/pt-share.wxss

@@ -138,8 +138,8 @@ page {
 }
 
 .share .three .mid {
-  width: 134rpx;
-  height: 134rpx;
+  width: 190rpx;
+  height: 190rpx;
   background: rgba(255, 255, 255, 1);
   border-radius: 6rpx;
   display: flex;
@@ -148,8 +148,8 @@ page {
 }
 
 .share .three .mid image {
-  width: 120rpx;
-  height: 120rpx;
+  width: 180rpx;
+  height: 180rpx;
   border-radius: 6rpx;
 }