From df1f4631abc4c6f929abe4abc548f316c48ecb95 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期五, 28 二月 2025 18:01:36 +0800
Subject: [PATCH] 咸宁新增迭代

---
 pages/home/home.js |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index a09bf4b..6a3184a 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -106,10 +106,10 @@
         name: "我的订单",
         imgSrc: "../../img/icon_me_order.png",
       },
-      // {
-      //   name: "优惠券",
-      //   imgSrc: "../../img/icon_me_coupons.png",
-      // },
+      {
+        name: "优惠券",
+        imgSrc: "../../img/icon_me_coupons.png",
+      },
       {
         name: "安全",
         imgSrc: "../../img/icon_me_safety.png",
@@ -209,6 +209,14 @@
     this.setData({
       payModel: this.data.changeModel,
       showModel: false,
+    })
+  },
+
+
+//邀请有礼跳转
+  shareGift(){
+    wx.navigateTo({
+      url: '/pages/invite/invite',
     })
   },
 
@@ -809,6 +817,7 @@
       showSwiperTop: false
     })
   },
+ 
   //获取广告
   getadver(adcode) {
     if (wx.getStorageSync('adcode') !== "") {
@@ -1008,6 +1017,19 @@
     //swiper
     //  app.getFloatStr(5)
     // this.show()
+
+    console.log('shuju1111111111',options);
+
+    if(options.scene){
+      console.log(1111111111,);
+      const uidMatch = options.scene.match(/uid%3D(\d+)/);
+      const userTypeMatch = options.scene.match(/userType%3D(\d+)/);
+      // 提取匹配到的值
+      const uid = uidMatch ? uidMatch[1] : null;
+      const userType = userTypeMatch ? userTypeMatch[1] : null;
+      wx.setStorageSync('uid', uid)
+      wx.setStorageSync('userType', userType)
+    }
 
 
 
@@ -1943,6 +1965,7 @@
             userInfo: res.data.data,
           })
           wx.setStorageSync('myPhone', res.data.data.phone)
+          wx.setStorageSync('userInfo', res.data.data)
           if (res.data.data.emergencyContactNumber !== '') {
             wx.setStorageSync('stepName', {
               emergencyContact: res.data.data.emergencyContact,

--
Gitblit v1.7.1