fix: 调整充值页面生命周期

pull/16/head
TianYu 2023-05-24 18:34:43 +08:00
parent fee16f8471
commit 66e4d6ee54
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
let domain = 'http://api.cyywl.top' let domain = 'http://api.cyywl.top'
// let domain = 'http://192.168.1.188:48080' // let domain = 'http://192.168.1.147:48080'
module.exports = { module.exports = {
// 请求域名 格式: https://您的域名 // 请求域名 格式: https://您的域名
@ -8,7 +8,7 @@ module.exports = {
HTTP_REQUEST_URL: domain, HTTP_REQUEST_URL: domain,
// #endif // #endif
HTTP_ADMIN_URL:'http://api.cyywl.top', //PC后台的API请求地址上传图片用 HTTP_ADMIN_URL:'http://api.cyywl.top', //PC后台的API请求地址上传图片用
// HTTP_ADMIN_URL:'http://192.168.1.188:48080', //PC后台的API请求地址上传图片用 // HTTP_ADMIN_URL:'http://192.168.1.147:48080', //PC后台的API请求地址上传图片用
// #ifdef H5 // #ifdef H5
//H5接口是浏览器地址 //H5接口是浏览器地址
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host, // HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,

View File

@ -97,7 +97,7 @@
}; };
}, },
async onLoad() { async onShow() {
try{ try{
uni.showLoading({ uni.showLoading({
title: '加载中', title: '加载中',

View File

@ -99,7 +99,7 @@
}; };
}, },
computed: mapGetters(['userInfo']), computed: mapGetters(['userInfo']),
async onLoad() { async onShow() {
const resful = await memberGradeInfo() const resful = await memberGradeInfo()
if(resful.data.some((item) => !!parseInt(item.isExist))){ if(resful.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({ uni.setTabBarItem({

View File

@ -77,6 +77,7 @@
quality: 0.95, quality: 0.95,
cacheBust: true cacheBust: true
}); });
console.log('i', i)
} }
htmlToImage.toPng(document.getElementById('poster-wrap'), { htmlToImage.toPng(document.getElementById('poster-wrap'), {
quality: 0.95, quality: 0.95,