|
|
@@ -128,7 +128,7 @@ async function createing2() { |
|
|
|
const res2 = await createPhotoApi(data); |
|
|
|
if (res2.data) { |
|
|
|
console.log(res2); |
|
|
|
userInfoModulesPinia.createTimes = userInfoModulesPinia.createTimes - 1; |
|
|
|
// userInfoModulesPinia.createTimes = userInfoModulesPinia.createTimes - 1; |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/created/index?id=${res2.data.id}`, |
|
|
|
}); |
|
|
@@ -218,17 +218,17 @@ async function getUser() { |
|
|
|
// 如果接口200就说明已登录 |
|
|
|
if (res.code == 200 && res.data) { |
|
|
|
// 查询支付状态 0:待支付,2:支付中,3:已支付 |
|
|
|
uni.setStorageSync("token", res.data.token); |
|
|
|
uni.setStorageSync("createTimes", res.data.createTimes); |
|
|
|
uni.setStorageSync("phone", res.data.phone); |
|
|
|
userInfoModulesPinia.token = res.data.token; |
|
|
|
userInfoModulesPinia.phone = res.data.phone; |
|
|
|
userInfoModulesPinia.createTimes = res.data.createTimes; |
|
|
|
if (res.data.payStatus == 3) { |
|
|
|
clearInterval(payCountTimer.value); |
|
|
|
payCountTimer.value = null; |
|
|
|
uni.hideLoading(); |
|
|
|
payMask.value = false; |
|
|
|
uni.setStorageSync("token", res.data.token); |
|
|
|
uni.setStorageSync("createTimes", res.data.createTimes); |
|
|
|
uni.setStorageSync("phone", res.data.phone); |
|
|
|
userInfoModulesPinia.token = res.data.token; |
|
|
|
userInfoModulesPinia.phone = res.data.phone; |
|
|
|
userInfoModulesPinia.createTimes = res.data.createTimes; |
|
|
|
showQrCode.value = false; |
|
|
|
uni.showToast({ |
|
|
|
title: "支付成功!", |
|
|
|