add
This commit is contained in:
commit
ecf2da62cf
|
@ -157,4 +157,12 @@ 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);
|
||||||
}
|
}
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
@ -235,6 +235,13 @@
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "vipUser/activePage",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "采购礼包",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "asset/index",
|
"path": "asset/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue