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

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

@@ -14,16 +14,16 @@
<!-- 余额<text class="towcontentitemtheretext">{{userInfo.amount || '0.00'}}</text> -->
</view>
<view class="towcontentitemtow flex-between">
<text class="towcontentitemtowetext" style="color:#333333;">余额:{{item.amount}}</text>
<text></text>
<!-- <text class="towcontentitemtowetext" style="color:#333333;">余额:{{item.amount}}</text> -->
<text>{{item.shopName}}</text>
</view>
</view>
</view>
<view v-if="orderForm.list.length <= 0 && orderForm.is_end" class="flex-colum">
<view v-if="orderForm.list.length <= 0 " class="flex-colum">
<image style="width: 402rpx;height: 442rpx;margin:240rpx auto 32rpx;"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/nomore.png" mode="aspectFill"></image>
</view>
<up-loadmore :status="orderForm.form.status" iconSize='12' fontSize='12' height='20' />
</view>
</template>
@@ -41,6 +41,8 @@
import {
APIusershopUservipCard
} from '@/common/api/member.js'
import * as vipApi from '@/common/api/market/vip.js'
const orderForm = reactive({
type: '', //类型
@@ -55,58 +57,21 @@
const paygetShopByMember = async () => {
let res = await APIusershopUservipCard({
let res = await vipApi.list({
page: orderForm.form.page,
pageSize: orderForm.form.size,
})
if (res.totalPage == 1 && res.totalRow <= 10) {
orderForm.form.status = 'nomore'
orderForm.list = res.records
if (orderForm.form.page == 1 && res.records.length == 0) {
orderForm.records = []
orderForm.is_end = true
}
return false;
} else {
orderForm.form.status = 'loading';
orderForm.list = [...orderForm.list, ...res.records];
orderForm.form.page = ++orderForm.form.page;
if (orderForm.form.page > res.totalPage) {
orderForm.form.status = 'nomore';
} else {
orderForm.form.status = 'loading';
}
}
orderForm.list = res;
}
const eeInfo = async (item) => {
// if (res.code == 0) {
// uni.cache.set('shopUserInfo', res)
// uni.cache.set('shopId', item.shopId)
if (orderForm.type && orderForm.type == 'user_payCode') {
uni.navigateTo({
url: '/pages/pay_code/pay_code?shopInfo=' + JSON.stringify(item)
})
} else if (orderForm.type && orderForm.type == 'user_recharge') {
uni.pro.navigateTo('member/index', {
shopId: item.shopId,
type: 'index',
})
} else if (orderForm.type && orderForm.type == 'user_points') {
uni.pro.navigateTo('/pagesPoints/index/index', {
shopId: item.shopId,
type: 'member_list',
})
} else {
uni.pro.navigateTo('user/member/memberdetails', {
shopId: item.shopId
})
}
uni.navigateTo({
url:'/user/vip/vip?shopId='+item.shopId
})
}
onReachBottom(() => {
paygetShopByMember()
// paygetShopByMember()
})
onMounted((e) => {
paygetShopByMember()