会员列表,详情,充值,订单列表

This commit is contained in:
wwz
2025-03-01 14:38:02 +08:00
parent 0ab9235f6c
commit 04a84aa17f
33 changed files with 5665 additions and 982 deletions

View File

@@ -165,7 +165,7 @@
} from "@/common/api/index/index.js"
import {
APIshopUserInfo
} from "@/common/api/product/product.js"
} from "@/common/api/member.js"
import {
useNavbarStore
} from '@/stores/navbarStore';
@@ -344,10 +344,7 @@
await proxy.$onLaunched;
if (uni.cache.get('shopId') && uni.cache.get('token')) {
showindex.value = 'shopIndex'
let res = await APIshopUserInfo({
"shopId": uni.cache.get('shopId'),
"userId": uni.getStorageSync('userInfo').id,
})
let res = await APIshopUserInfo()
if (res) {
//商家信息
uni.cache.set('ShopUser', res)

View File

@@ -10,7 +10,7 @@
<text class="contentboxitemlefttexttow">在线点不排队</text>
</view>
<view class="contentboxitemright">
<view class="contentboxitemright_item flex-between" @click="memberindex('member/memberdetails')">
<view class="contentboxitemright_item flex-between" @click="memberindex('user/member/memberdetails')">
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/Xvip.png" mode="aspectFill">
</image>
<view class="contentboxitemright_itembox flex-colum">
@@ -18,7 +18,7 @@
<text>入会享权益</text>
</view>
</view>
<view class="contentboxitemright_item flex-between" @click="memberindex('member/index')">
<view class="contentboxitemright_item flex-between" @click="memberindex('user/member/index')">
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/Xchong.png"
mode="aspectFill"></image>
<view class="contentboxitemright_itembox flex-colum">
@@ -38,26 +38,10 @@
onMounted,
reactive,
} from "vue";
import {
APIshopExtend
} from "@/common/api/index/index.js";
import {
productStore
} from '@/stores/user.js';
const shopExtend = reactive({
autokey: "index_bg",
createTime: "2024-08-27T06:59:35.000+00:00",
id: 17,
name: "首页",
shopId: 29,
type: "img",
updateTime: null,
value: ""
})
const userInfo = uni.cache.get('userInfo')
const shopUserInfo = uni.cache.get('ShopUser')
const shopExtend = uni.cache.get('shopTable').shopExtendMap.index_bg
const scanCodehandle = async (i) => {
const store = productStore();
await store.scanCodeactions()
@@ -76,13 +60,6 @@
}
return null;
}
onMounted(async () => {
let res = await APIshopExtend({
shopId: uni.cache.get('shopId'),
autokey: "index_bg" //index_bg my_bg member_bg shopInfo_bg
})
Object.assign(shopExtend, res)
})
</script>
<style scoped lang="scss">