This commit is contained in:
zmj 2024-06-25 16:58:51 +08:00
parent 754bac1994
commit 0a97756fe6
2 changed files with 40 additions and 34 deletions

View File

@ -2,9 +2,9 @@ let BASE_URL
let WSS_URL let WSS_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) {
case 'dev': case 'dev':
@ -13,7 +13,7 @@ switch (env) {
// WSS_URL = 'ws://192.168.1.22:8787' // WSS_URL = 'ws://192.168.1.22:8787'
break; break;
case 'liu': case 'liu':
BASE_URL = 'http://192.168.1.201:8545'; BASE_URL = 'https:ceshi-multi-store.lihaink.cn';
WSS_URL = 'wss://test-multi-store.lihaink.cn/pull' WSS_URL = 'wss://test-multi-store.lihaink.cn/pull'
break; break;
default: default:

View File

@ -154,7 +154,32 @@
<view class="shop-img" <view class="shop-img"
:style="{ backgroundImage: `url(${item.image}?x-oss-process=image/format,webp)` }"> :style="{ backgroundImage: `url(${item.image}?x-oss-process=image/format,webp)` }">
</view> </view>
<view class="shop-content"> <view class="shop-content">
<view class="goods-name">
{{ item.store_name }}
</view>
<view class="shop-content-li">
<text class="shop-content-li-l">活动价</text>
<text class="shop-content-li-r">32.52</text>
</view>
<view class="shop-content-li">
<text class="shop-content-li-l">原价</text>
<text class="shop-content-li-r">32.52</text>
</view>
<view class="shop-content-li">
<text class="shop-content-li-l">规格</text>
<text class="shop-content-li-r">32.52</text>
</view>
<view class="shop-content-li">
<text class="shop-content-li-l">起批量</text>
<text class="shop-content-li-r">32.52</text>
</view>
</view>
<!-- <view class="shop-content">
<view class="title"> <view class="title">
<view class="name u-line-2">{{ item.store_name }}</view> <view class="name u-line-2">{{ item.store_name }}</view>
</view> </view>
@ -171,17 +196,19 @@
</view> </view>
</view> </view>
<view style="display: flex;" v-if='item.batch > 0'> <view style="display: flex;" v-if='item.batch > 0'>
<view style="color: red;">规格: {{ item.price }}/{{ item.unit_name }}</view> <view style="font-size: 22rpx;">&ensp;
&ensp;&nbsp;{{ item.price }}/{{ item.unit_name }}
</view>
</view> </view>
<view class="price-btn"> <view class="price-btn">
<view class="price"> <view style="font-size: 22rpx;">
起批量 {{ item.batch }}{{ item.unit_name }}起卖 起批量 {{ item.batch }}{{ item.unit_name }}起卖
</view> </view>
<view class="btn"> <view class="btn">
<u--icon name="plus-circle-fill" size="20" color="#20b128"></u--icon> <u--icon name="plus-circle-fill" size="20" color="#20b128"></u--icon>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
<view style="width: 100%;height: 470rpx;"></view> <view style="width: 100%;height: 470rpx;"></view>
</scroll-view> </scroll-view>
@ -1014,38 +1041,17 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
.title { .shop-content-li-l {
.name { font-size: 22rpx;
font-size: 28rpx; color: #333333;
} background-color: red;
.tip {
color: #999;
font-size: 24rpx;
margin: 2rpx 0;
}
} }
.price {
font-size: 30rpx;
font-weight: bold;
color: #F55726;
}
.price-btn {
display: flex;
justify-content: space-between;
.btn {
display: flex;
align-items: center;
.num {
width: 60rpx;
text-align: center;
}
}
}
} }
} }
} }