Prechádzať zdrojové kódy

feat:手机号绑定插件cookie取值调整

yangfeng 5 mesiacov pred
rodič
commit
7c3077cf2b

+ 1 - 1
apps/mobile/src/views/subscribe/Guide.vue

@@ -291,7 +291,7 @@ export default {
     await this.isCanEditArea()
     this.pushHistoryState()
     // 需求:进入页面时,如果没有绑定手机号,自动弹出绑定手机号弹窗,完成绑定返回订阅列表
-    const needPhoneBound = Cookies.get('EXPERIENCESIGN')
+    const needPhoneBound = Cookies.get('EXPERIENCESIGN') === 'experiencing'
     if (needPhoneBound) {
       this.$nextTick(() => {
         this.$bindPhoneDialog({

+ 1 - 1
plugins/bind-phone-mobile/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@jy/plugin-bind-phone",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "private": false,
   "description": "移动端绑定手机弹框插件",
   "files": [

+ 1 - 1
plugins/bind-phone-mobile/src/utils/directives/bind-phone.js

@@ -23,7 +23,7 @@ const BindPhoneDirective = {
       event.stopPropagation()
       event.preventDefault()
       // 从cookie中获取是否绑定过手机号
-      const needPhoneBound = Cookies.get('EXPERIENCESIGN')
+      const needPhoneBound = Cookies.get('EXPERIENCESIGN') === 'experiencing'
       // 无需绑定手机号
       if (typeof pass === 'function') {
         pass()