congzc 1 år sedan
förälder
incheckning
364eb9c7e8
2 ändrade filer med 4 tillägg och 8 borttagningar
  1. +2
    -6
      src/pages/createing/index.vue
  2. +2
    -2
      src/store/modules/userInfo.js

+ 2
- 6
src/pages/createing/index.vue Visa fil

@@ -35,12 +35,7 @@
<view class="mask" v-show="payMask"></view>
<image :src="qrCode" mode="scaleToFill" />
</view>
<text
v-show="
userInfoModulesPinia.token && !userInfoModulesPinia.createTimes == 0
"
>打开微信扫码登录小程序</text
>
<text v-show="!userInfoModulesPinia.token">打开微信扫码登录小程序</text>
<text
v-show="
userInfoModulesPinia.token && userInfoModulesPinia.createTimes == 0
@@ -163,6 +158,7 @@ async function getQRCode() {
try {
const data = {
sn: "112233",
// sn: window.android.getIMEI(),
type: 1,
};
const res = await getQRCodeApi(data);


+ 2
- 2
src/store/modules/userInfo.js Visa fil

@@ -25,7 +25,7 @@ export const userInfoModules = defineStore("userInfoStore", () => {
* @description:剩余次数
* @example
*/
const createTimes = ref(null)
const createTimes = ref(0)

/**
* @description:清除所有
@@ -36,7 +36,7 @@ export const userInfoModules = defineStore("userInfoStore", () => {
phone.value = null
createTimes.value = null
uni.setStorageSync("token", null);
uni.setStorageSync("createTimes", null);
uni.setStorageSync("createTimes", 0);
uni.setStorageSync("phone", null);
uni.setStorageSync("UserId", null);
}


Laddar…
Avbryt
Spara