add
This commit is contained in:
parent
dc37c653b4
commit
8bec0329ed
|
@ -1,8 +1,8 @@
|
||||||
let BASE_URL
|
let BASE_URL
|
||||||
import store from "@/store/user.js"
|
import store from "@/store/user.js"
|
||||||
// 环境
|
// 环境
|
||||||
// let env = "dev"
|
let env = "dev"
|
||||||
let env = "prod"
|
// let env = "prod"
|
||||||
// let env = "liu";
|
// let env = "liu";
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
|
|
|
@ -155,18 +155,18 @@
|
||||||
<view style="display: flex;" v-if='item.batch > 0'>
|
<view style="display: flex;" v-if='item.batch > 0'>
|
||||||
<view style="color: red;">起批量: {{ item.batch }}{{ item.unit_name }}起卖</view>
|
<view style="color: red;">起批量: {{ item.batch }}{{ item.unit_name }}起卖</view>
|
||||||
</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="font-size: 24rpx;">会员价¥</text>
|
||||||
<text class="price" style="margin-right: 10rpx;">{{ item.vip_price }}
|
<text class="price" style="margin-right: 10rpx;">{{ item.vip_price }}
|
||||||
</text>
|
</text>
|
||||||
<text class='price' style="font-size: 24rpx;">/{{ item.unit_name }}</text>
|
<text class='price' style="font-size: 24rpx;">/{{ item.unit_name }}</text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="price-btn">
|
<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'>
|
v-if='userStore?.userInfo?.user_ship == 1'>
|
||||||
¥{{ item.price }}/{{ item.unit_name }}
|
¥{{ item.price }}/{{ item.unit_name }}
|
||||||
</view>
|
</view> -->
|
||||||
<view class="price" v-else>
|
<view class="price">
|
||||||
¥{{ item.price }}/{{ item.unit_name }}
|
¥{{ item.price }}/{{ item.unit_name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
|
@ -370,8 +370,8 @@
|
||||||
name: '',
|
name: '',
|
||||||
order: '',
|
order: '',
|
||||||
store_name: '',
|
store_name: '',
|
||||||
// store_id: 23
|
store_id: 23
|
||||||
store_id: 4
|
// store_id: 4
|
||||||
})
|
})
|
||||||
|
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
|
@ -387,8 +387,8 @@
|
||||||
if (class_all) class_id = ""; //只能带其中一个
|
if (class_all) class_id = ""; //只能带其中一个
|
||||||
if (loadmore) where.value.page_no++;
|
if (loadmore) where.value.page_no++;
|
||||||
else where.value.page_no = 1;
|
else where.value.page_no = 1;
|
||||||
// where.value.store_id = 23
|
where.value.store_id = 23
|
||||||
where.value.store_id = 4
|
// where.value.store_id = 4
|
||||||
goodListApi({
|
goodListApi({
|
||||||
...where.value,
|
...where.value,
|
||||||
class_all: class_all,
|
class_all: class_all,
|
||||||
|
@ -423,7 +423,9 @@
|
||||||
page_no: page_no,
|
page_no: page_no,
|
||||||
page_size: 30,
|
page_size: 30,
|
||||||
level: three,
|
level: three,
|
||||||
store_id: STORE_INFO.id // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。
|
// store_id: STORE_INFO.id // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。
|
||||||
|
store_id: 23 // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。
|
||||||
|
// store_id: 4 // 店铺id,用于获取店铺分类列表,如果为空则获取全部分类列表,否则获取店铺分类列表。
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (pid == 0) { // 加载一级分类时设置全部分类
|
if (pid == 0) { // 加载一级分类时设置全部分类
|
||||||
if (!res.data?.lists?.length) return;
|
if (!res.data?.lists?.length) return;
|
||||||
|
@ -612,8 +614,8 @@
|
||||||
if (opt.id) {
|
if (opt.id) {
|
||||||
where.value.store_id = opt.id;
|
where.value.store_id = opt.id;
|
||||||
const info = await shopDetailApi({
|
const info = await shopDetailApi({
|
||||||
store_id: 4
|
// store_id: 4
|
||||||
// store_id: 23
|
store_id: 23
|
||||||
});
|
});
|
||||||
// 分享参数至当前用户参数
|
// 分享参数至当前用户参数
|
||||||
if (opt.spread_uid) {
|
if (opt.spread_uid) {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
|
<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>
|
||||||
<!-- <view class="btn">
|
<!-- <view class="btn">
|
||||||
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
|
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
|
||||||
|
|
Loading…
Reference in New Issue