| @@ -35,12 +35,7 @@ | |||||
| <view class="mask" v-show="payMask"></view> | <view class="mask" v-show="payMask"></view> | ||||
| <image :src="qrCode" mode="scaleToFill" /> | <image :src="qrCode" mode="scaleToFill" /> | ||||
| </view> | </view> | ||||
| <text | |||||
| v-show=" | |||||
| userInfoModulesPinia.token && !userInfoModulesPinia.createTimes == 0 | |||||
| " | |||||
| >打开微信扫码登录小程序</text | |||||
| > | |||||
| <text v-show="!userInfoModulesPinia.token">打开微信扫码登录小程序</text> | |||||
| <text | <text | ||||
| v-show=" | v-show=" | ||||
| userInfoModulesPinia.token && userInfoModulesPinia.createTimes == 0 | userInfoModulesPinia.token && userInfoModulesPinia.createTimes == 0 | ||||
| @@ -163,6 +158,7 @@ async function getQRCode() { | |||||
| try { | try { | ||||
| const data = { | const data = { | ||||
| sn: "112233", | sn: "112233", | ||||
| // sn: window.android.getIMEI(), | |||||
| type: 1, | type: 1, | ||||
| }; | }; | ||||
| const res = await getQRCodeApi(data); | const res = await getQRCodeApi(data); | ||||
| @@ -25,7 +25,7 @@ export const userInfoModules = defineStore("userInfoStore", () => { | |||||
| * @description:剩余次数 | * @description:剩余次数 | ||||
| * @example | * @example | ||||
| */ | */ | ||||
| const createTimes = ref(null) | |||||
| const createTimes = ref(0) | |||||
| /** | /** | ||||
| * @description:清除所有 | * @description:清除所有 | ||||
| @@ -36,7 +36,7 @@ export const userInfoModules = defineStore("userInfoStore", () => { | |||||
| phone.value = null | phone.value = null | ||||
| createTimes.value = null | createTimes.value = null | ||||
| uni.setStorageSync("token", null); | uni.setStorageSync("token", null); | ||||
| uni.setStorageSync("createTimes", null); | |||||
| uni.setStorageSync("createTimes", 0); | |||||
| uni.setStorageSync("phone", null); | uni.setStorageSync("phone", null); | ||||
| uni.setStorageSync("UserId", null); | uni.setStorageSync("UserId", null); | ||||
| } | } | ||||