guhongwei há 4 anos atrás
pai
commit
af50d7481a
2 ficheiros alterados com 48 adições e 9 exclusões
  1. 38 0
      pages/setting/setting.js
  2. 10 9
      pages/setting/setting.wxss

+ 38 - 0
pages/setting/setting.js

@@ -49,12 +49,50 @@ Page({
     // 模板默认选择
     this.imageChange();
     let data = app.globalData.userInfo;
+    // let data = {
+    //   avatarUrl: "https://thirdwx.qlogo.cn/mmopen/vi_32/ibzXIKnSribia9qZzSkEokEVfLuxOUEJ8xPAMibU29vB3KS8Pic5fUwUricWsXAEfL8zibZSGjUvPUm6PibxiadY8RAdv1w/132",
+    //   car_show: false,
+    //   city: "220100",
+    //   create_time: "2021-01-07 10:40:40",
+    //   id: "5ff676d06af583470e44c4c6",
+    //   id_card: "220182199603257019",
+    //   level: 1,
+    //   mobile: "17319450324",
+    //   name: "顾红伟",
+    //   points: 600,
+    //   province: "220000",
+    //   r_mobile: "13089419810",
+    //   recommend: "刘睿峰",
+    //   set: "5ff6710f7fa08b4500e61e5f",
+    //   stockholder: false,
+    //   wxaccount: "guhongwei324",
+    //   _id: "5ff676d06af583470e44c4c6",
+    // }
     this.setData({ userInfo: data });
     // 生成二维码
     this.makeQRCode();
   },
   makeQRCode(template = 0) {
     let data = app.globalData.userInfo;
+    // let data = {
+    //   avatarUrl: "https://thirdwx.qlogo.cn/mmopen/vi_32/ibzXIKnSribia9qZzSkEokEVfLuxOUEJ8xPAMibU29vB3KS8Pic5fUwUricWsXAEfL8zibZSGjUvPUm6PibxiadY8RAdv1w/132",
+    //   car_show: false,
+    //   city: "220100",
+    //   create_time: "2021-01-07 10:40:40",
+    //   id: "5ff676d06af583470e44c4c6",
+    //   id_card: "220182199603257019",
+    //   level: 1,
+    //   mobile: "17319450324",
+    //   name: "顾红伟",
+    //   points: 600,
+    //   province: "220000",
+    //   r_mobile: "13089419810",
+    //   recommend: "刘睿峰",
+    //   set: "5ff6710f7fa08b4500e61e5f",
+    //   stockholder: false,
+    //   wxaccount: "guhongwei324",
+    //   _id: "5ff676d06af583470e44c4c6",
+    // }
     const url = `${app.globalData.publicUrl}/htyd/wxcard?name=${data.name}&mobile=${data.mobile}`;
     drawQrcode({
       width: 125,

+ 10 - 9
pages/setting/setting.wxss

@@ -76,7 +76,8 @@
 .temOne .qrcode {
   width: 250rpx;
   height: 250rpx;
-  left: 35%;
+  left: 33.5%;
+  z-index: 1;
 }
 
 .temOne .avatarUrl {
@@ -106,8 +107,8 @@
 .temTwo .qrcode {
   width: 280rpx;
   height: 250rpx;
-  margin: 15rpx 0 0 0;
-  left: 13%;
+  margin: 15rpx 0;
+  left: 8%;
   top: 2%;
 }
 
@@ -139,7 +140,7 @@
 .temThr .qrcode {
   width: 240rpx;
   height: 240rpx;
-  left: 35%;
+  left: 34%;
 }
 
 .temThr .avatarUrl {
@@ -172,13 +173,13 @@
 .temFour .temFourImg {
   float: right;
   height: 228rpx;
-  width: 138px;
+  width: 120px;
   border: 3px solid #032eae;
 }
 
 .temFour .qrcode {
-  width: 100%;
-  height: 250rpx;
+  width: 250rpx;
+  height: 230rpx;
 }
 
 .temFour .avatarUrl {
@@ -186,7 +187,7 @@
   height: 80rpx;
   position: absolute;
   left: 43%;
-  top: 44px;
+  top: 38px;
   border: 3px solid #ffffff;
   border-radius: 10rpx;
   z-index: 999;
@@ -215,7 +216,7 @@
 }
 
 .temFive .qrcode {
-  width: 220rpx;
+  width: 230rpx;
   height: 220rpx;
   left: 35%;
 }