Explorar el Código

扫码登录页按钮文字调整

Xiao_123 hace 2 semanas
padre
commit
6635d9db81
Se han modificado 2 ficheros con 3 adiciones y 8 borrados
  1. 3 3
      pagesB/websiteLoginVerification/index.vue
  2. 0 5
      store/user.js

+ 3 - 3
pagesB/websiteLoginVerification/index.vue

@@ -5,8 +5,8 @@
 				<image src="https://minio.menduner.com/dev/19cce88e87fb8e895fbbe4418a937d610b2c20b8f87c6705569a096aca0a91b0.png"></image>
 			</view>
 
-			<button v-if="useUserStore.isLogin" class="recomm-button MiSans-Medium" @click="handleTokenLogin">一键登录(有token)</button>
-			<button v-else class="recomm-button MiSans-Medium" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">一键登录(无token)</button>
+			<button v-if="useUserStore.isLogin" class="recomm-button MiSans-Medium" @click="handleTokenLogin">一键登录</button>
+			<button v-else class="recomm-button MiSans-Medium" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">一键登录</button>
 			
 			<view class="agreement-box ss-flex ss-row-center">
 				<uni-icons size="20" :type="protocol ? 'checkbox-filled' : 'circle'" :color="protocol ? '#00B760' : '#ccc'" @tap="protocol = !protocol"></uni-icons>
@@ -35,7 +35,7 @@ import { checkPersonBaseInfo } from '@/utils/check'
 import { showAuthModal, closeAuthModal } from '@/hooks/useModal'
 
 const useUserStore = userStore()
-const protocol = ref(true)
+const protocol = ref(false)
 
 onLoad((options) => {
 	if (!useUserStore.isLogin) {

+ 0 - 5
store/user.js

@@ -25,11 +25,6 @@ const defaultAccountInfo = {
   userId: ''
 }
 
-const tabUrl = [
-  'pages/index/position',
-  'pages/index/communicate',
-  'pages/index/my'
-]
 export const userStore = defineStore('user', {
   state: () => {
     const userLocal = uni.getStorageSync('user')