Compare commits

...

9 Commits

Author SHA1 Message Date
zmj ecf2da62cf add 2024-07-06 13:51:24 +08:00
zmj c03a38e1bc add 2024-07-06 13:48:13 +08:00
zmj 8863dba81d add 2024-07-05 19:37:27 +08:00
zmj f15573e557 add 2024-07-05 18:18:02 +08:00
zmj 001fdd05d8 add 2024-07-05 12:00:21 +08:00
zmj 6a1bdddf37 add 2024-07-04 18:00:16 +08:00
zmj a14cf624da add 2024-07-04 11:26:44 +08:00
zmj e21a81ebd2 add 2024-07-03 17:37:41 +08:00
zmj eb885777f0 add 2024-07-03 16:50:12 +08:00
8 changed files with 894 additions and 793 deletions

View File

@ -158,3 +158,11 @@ export const getVipInfoByPhone = (data) => {
export const checkInventoryApi = (data) => { export const checkInventoryApi = (data) => {
return request.post('/order/order/checkInventory', data); return request.post('/order/order/checkInventory', data);
} }
export const isUserShipApi = (data) => {
return request.post('/user_ship/UserShip/is_user_ship', data);
}
export const getRechargeListApi = (data) => {
return request.get('/user/UserRecharge/recharge_list', data);
}

View File

@ -32,7 +32,7 @@
<view class="content" v-if='type==4'> <view class="content" v-if='type==4'>
<view class="li" v-for="(item,index) in lists" :key="index"> <view class="li" v-for="(item,index) in lists" :key="index">
<view class="li-top"> <view class="li-top">
<text>{{item.order_sn}}</text> <text>{{item.title}}</text>
<text style="font-weight: bold;" :style="{color:!item.status?'#50C758':'red' <text style="font-weight: bold;" :style="{color:!item.status?'#50C758':'red'
}">{{ !item.status?'+':'-' }}{{item.number}}</text> }">{{ !item.status?'+':'-' }}{{item.number}}</text>
</view> </view>

View File

@ -0,0 +1,11 @@
<template>
<image style="width: 100vw" mode='widthFix'
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/8d49820240705171635925.png">
</image>
</template>
<script>
</script>
<style>
</style>

File diff suppressed because it is too large Load Diff

View File

@ -235,6 +235,13 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{
"path": "vipUser/activePage",
"style": {
"navigationBarTitleText": "采购礼包",
"enablePullDownRefresh": false
}
},
{ {
"path": "asset/index", "path": "asset/index",
"style": { "style": {

View File

@ -23,9 +23,9 @@
<template #left> <template #left>
<view class="store-info"> <view class="store-info">
<view style="display: flex;font-size: 30rpx;font-weight: bold;"> <view style="display: flex;font-size: 30rpx;font-weight: bold;">
<text v-if="userStore.userInfo.user_ship == 1 || shareInfo.store_id" <text v-if=" vipList.includes(userStore.userInfo.user_ship) || shareInfo.store_id"
style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> style="max-width: 400rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
<text v-if="userStore.userInfo.user_ship == 1"> <text v-if="vipList.includes(userStore.userInfo.user_ship)">
{{ (userStore.userInfo.real_name || userStore.userInfo.nickname) + '的供销个人门店' }}</text> {{ (userStore.userInfo.real_name || userStore.userInfo.nickname) + '的供销个人门店' }}</text>
<text v-else> <text v-else>
{{(shareInfo.real_name || (userStore.userInfo.real_name || userStore.userInfo.nickname)) + '的供销个人门店' }}</text> {{(shareInfo.real_name || (userStore.userInfo.real_name || userStore.userInfo.nickname)) + '的供销个人门店' }}</text>
@ -162,8 +162,8 @@
{{ item.store_name }} {{ item.store_name }}
</view> </view>
<view class="shop-content-li" v-if="priceKey.off_activity==1"> <view class="shop-content-li" v-if="priceKey.off_activity==1">
<view class="shop-content-li-l" style="color: #FC452F;"> <view class="shop-content-li-l">
活动
</view> </view>
<view class="shop-content-li-r" style="color:#FC452F ;"><text <view class="shop-content-li-r" style="color:#FC452F ;"><text
style="font-size: 30rpx;">{{item[priceKey.price]}}</text>/{{ item.unit_name }} style="font-size: 30rpx;">{{item[priceKey.price]}}</text>/{{ item.unit_name }}
@ -173,10 +173,10 @@
赠10%品牌礼品券 赠10%品牌礼品券
</view> </view>
</view> </view>
<view class="shop-content-li" style="color: #999999;" v-if="priceKey.off_activity==1"> <!-- <view class="shop-content-li" style="color: #999999;" v-if="priceKey.off_activity==1">
<view class="shop-content-li-l">原价</view> <view class="shop-content-li-l">原价</view>
<view class="shop-content-li-r line-through">{{item[priceKey.op_price]}}</view> <view class="shop-content-li-r line-through">{{item[priceKey.op_price]}}</view>
</view> </view> -->
<view class="shop-content-li" v-else> <view class="shop-content-li" v-else>
<view class="shop-content-li-l">售价</view> <view class="shop-content-li-l">售价</view>
@ -293,14 +293,12 @@
} from "@/api/multipleShop.js"; } from "@/api/multipleShop.js";
import useUserStore from "@/store/user"; import useUserStore from "@/store/user";
const vipList = reactive([1, 2, 3, 5, 6, 7, 8])
const userStore = useUserStore(); const userStore = useUserStore();
const STORE_INFO = reactive({ const STORE_INFO = reactive({
id: '', id: '',
store_name: "" store_name: ""
}) })
const priceKey = reactive({ const priceKey = reactive({
off_activity: "", off_activity: "",
op_price: "", op_price: "",
@ -330,7 +328,7 @@
// //
onShareAppMessage(() => { onShareAppMessage(() => {
let shareStr = '?id=' + STORE_INFO.id; let shareStr = '?id=' + STORE_INFO.id;
if (userStore.userInfo.user_ship == 1) { if (vipList.includes(userStore.userInfo.user_ship)) {
shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo
.real_name || userStore.userInfo.nickname) .real_name || userStore.userInfo.nickname)
} }
@ -705,6 +703,7 @@
getShareInfo() getShareInfo()
onLoad(async (opt) => { onLoad(async (opt) => {
console.log('opt', opt)
if (opt.id) { if (opt.id) {
where.value.store_id = (opt.id == 'undefined' ? STORE_INFO.id : opt.id); where.value.store_id = (opt.id == 'undefined' ? STORE_INFO.id : opt.id);
} else { } else {

View File

@ -211,7 +211,7 @@
}).then(res => { }).then(res => {
// token // token
userStore.setUserInfo(res.data); userStore.setUserInfo(res.data);
userStore.setToken(res.data.token); res.data.token && userStore.setToken(res.data.token);
// //
if (res.is_staff == 1) { if (res.is_staff == 1) {
userStore.setUserInfo(res.data); userStore.setUserInfo(res.data);

View File

@ -37,7 +37,7 @@
style='display: flex;justify-content: space-between;width: 690rpx;align-items: center;'> style='display: flex;justify-content: space-between;width: 690rpx;align-items: center;'>
<view class="top" style="align-items: flex-start;"> <view class="top" style="align-items: flex-start;">
<view style="color: #333;width: 200rpx;"> <view style="color: #333;width: 200rpx;">
<view style="margin: 0 10rpx;color:#20B128;">推荐自提点</view> <view style="margin: 0 10rpx;color:#20B128;width: 150rpx;">推荐自提点</view>
<view class="isreser"> {{reservation?"次日可提":"当日可提" }} <view class="isreser"> {{reservation?"次日可提":"当日可提" }}
</view> </view>
</view> </view>