Explorar o código

将拓客码写入缓存

LuoDLeo %!s(int64=2) %!d(string=hai) anos
pai
achega
1610ae674a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      pages/index/index.vue

+ 6 - 0
pages/index/index.vue

@@ -308,6 +308,12 @@ export default {
         })
       },5000)
 
+      // scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
+      // 小程序码方式
+      if (memberId){
+        //写入缓存
+        uni.setStorageSync('parent_member_id', memberId);
+      }
     },