Browse Source

fix:二维码

jiayubo 1 week ago
parent
commit
b26c6e9cbd
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/login.vue

+ 3 - 2
pages/login.vue

@@ -15,7 +15,7 @@
     <image src="/static/13779@1x.png" mode="widthFix" class="house-illustration"></image>
 
     <view class="actions-container">
-      <up-button @click="onLogin" :customStyle="WeChat">微信授权登录{{ scene }}</up-button>
+      <up-button @click="onLogin" :customStyle="WeChat">微信授权登录{{ sceneIfon }}</up-button>
       <view class="xieyi text-center">
         <up-checkbox-group v-model="checkboxValue">
           <up-checkbox label="我已认真阅读、理解并同意" name="agree" usedAlone @change="onCheckboxChange" class="text-grey1">
@@ -66,11 +66,12 @@ const globalData = ref({
 // const captchaEnabled = ref(true); // Not used in the new design
 
 const router = useRouter()
-
+const sceneIfon = ref('')
 // 获取小程序码参数
 onLoad((options) => {
   // 处理从二维码扫描进入的场景
   // debugger
+  sceneIfon.value = options.scene
   // if (options.scene) {
     console.log('options.scene:>>>>>>>123123s', options.scene)
     const scene = decodeURIComponent(options.scene)