This commit is contained in:
zmj 2024-06-23 20:16:21 +08:00
parent dc37c653b4
commit 8bec0329ed
3 changed files with 17 additions and 15 deletions

View File

@ -1,8 +1,8 @@
let BASE_URL
import store from "@/store/user.js"
// 环境
// let env = "dev"
let env = "prod"
let env = "dev"
// let env = "prod"
// let env = "liu";
switch (env) {

View File

@ -155,18 +155,18 @@
<view style="display: flex;" v-if='item.batch > 0'>
<view style="color: red;">起批量: {{ item.batch }}{{ item.unit_name }}起卖</view>
</view>
<view style="display: flex;align-items: center;" v-if='userStore?.userInfo?.user_ship == 1'>
<!-- <view style="display: flex;align-items: center;" v-if='userStore?.userInfo?.user_ship == 1'>
<text class='price' style="font-size: 24rpx;">会员价</text>
<text class="price" style="margin-right: 10rpx;">{{ item.vip_price }}
</text>
<text class='price' style="font-size: 24rpx;">/{{ item.unit_name }}</text>
</view>
</view> -->
<view class="price-btn">
<view class="price" style="font-size: 24rpx;"
<!-- <view class="price" style="font-size: 24rpx;"
v-if='userStore?.userInfo?.user_ship == 1'>
{{ item.price }}/{{ item.unit_name }}
</view>
<view class="price" v-else>
</view> -->
<view class="price">
{{ item.price }}/{{ item.unit_name }}
</view>
<view class="btn">
@ -370,8 +370,8 @@
name: '',
order: '',
store_name: '',
// store_id: 23
store_id: 4
store_id: 23
// store_id: 4
})
const loading = ref(true);
@ -387,8 +387,8 @@
if (class_all) class_id = ""; //
if (loadmore) where.value.page_no++;
else where.value.page_no = 1;
// where.value.store_id = 23
where.value.store_id = 4
where.value.store_id = 23
// where.value.store_id = 4
goodListApi({
...where.value,
class_all: class_all,
@ -423,7 +423,9 @@
page_no: page_no,
page_size: 30,
level: three,
store_id: STORE_INFO.id // id
// store_id: STORE_INFO.id // id
store_id: 23 // id
// store_id: 4 // id
}).then(res => {
if (pid == 0) { //
if (!res.data?.lists?.length) return;
@ -612,8 +614,8 @@
if (opt.id) {
where.value.store_id = opt.id;
const info = await shopDetailApi({
store_id: 4
// store_id: 23
// store_id: 4
store_id: 23
});
//
if (opt.spread_uid) {

View File

@ -18,7 +18,7 @@
</view>
<view class="btn">
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
name="account-fill" color="#fff" size="28"></up-icon></up-button>
name="account-fill" color="#fff" size="28"></up-icon></up-button>
</view>
<!-- <view class="btn">
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"