调整个人中心页面,会议中心页面,充值页面

This commit is contained in:
2025-09-26 17:57:14 +08:00
parent a39c9f4d72
commit 905d5404f6
20 changed files with 1397 additions and 230 deletions

View File

@@ -5,11 +5,11 @@
<view class="bild" style="background-image: url(/static/czzx_header_bg.png);">
<view class="bildLeft">
<text>我的余额</text>
<view>{{formData.info.amount||0}}</view>
<view>{{shopUserInfo.amount||0}}</view>
</view>
<view class="bildRight">
<text>我的积分</text>
<view>{{formData.info.accountPoints||0}}</view>
<view>{{shopUserInfo.accountPoints||0}}</view>
</view>
</view>
<view class="bottom">
@@ -92,16 +92,19 @@
reactive,
onMounted
} from 'vue'
import {
onReachBottom
onReachBottom,onLoad
} from '@dcloudio/uni-app'
import {
APIshopUsermoneyRecord,
APIshopUserpointsRecord
} from '@/common/api/member.js'
import {
APIusershopInfodetail,
APIshopUserInfo
} from '@/common/api/member.js'
function back(){
uni.navigateBack()
@@ -181,20 +184,27 @@
onReachBottom(() => {
getlist()
})
onMounted(() => {
// 获取当前页面栈
const pages = getCurrentPages();
// 获取当前页面实例
const currentPage = pages[pages.length - 1];
// 获取页面参数
const options = currentPage.options;
formData.info = JSON.parse(decodeURIComponent(options.shopInfo))
const shopUserInfo=reactive({})
async function getShopUserInfo(){
const res=await APIshopUserInfo({
shopId: options.shopId
})
if(res){
Object.assign(shopUserInfo,res)
}
}
const options=reactive({})
onLoad((opt)=>{
Object.assign(options,opt)
console.log('options',options);
formData.shopId = options.shopId
formData.active = options.type
console.log(formData.info)
getlist()
getShopUserInfo()
})
</script>
<style scoped lang="less">