From 5df313e611a4459c8de026fafe68b7873ca010d7 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Thu, 11 Jun 2026 17:55:39 +0800
Subject: [PATCH] feat:星享购 新增会员价格
---
static/css/index.css | 5 +++--
pages/catesList/catesList.vue | 6 ++++++
static/css/carts.css | 2 +-
pages/ginfo/ginfo.vue | 4 ++++
static/css/order.css | 3 ++-
pages/login/login.vue | 3 ++-
static/css/search.css | 5 +++--
pages/search/search.vue | 6 ++++++
static/css/ginfo.css | 8 +++-----
pages/index/index.vue | 11 +++++++++++
10 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/pages/catesList/catesList.vue b/pages/catesList/catesList.vue
index 6e86750..fcddd1f 100644
--- a/pages/catesList/catesList.vue
+++ b/pages/catesList/catesList.vue
@@ -6,9 +6,15 @@
<image lazy-load class="goods-icon" :src="itm.icon" mode="widthFix"></image>
<view class="goods-title">{{itm.title}}</view>
<view class="goods-price">
+ <view>原价</view>
<view>¥</view>
<view class="red">{{itm.price}}</view>
</view>
+ <view class="goods-price">
+ <view>会员价</view>
+ <view>¥</view>
+ <view class="red">{{itm.vprice}}</view>
+ </view>
</view>
</view>
<view class="noData" v-else>
diff --git a/pages/ginfo/ginfo.vue b/pages/ginfo/ginfo.vue
index e8beb8c..755e124 100644
--- a/pages/ginfo/ginfo.vue
+++ b/pages/ginfo/ginfo.vue
@@ -12,8 +12,12 @@
<view class="gTitle">
<view class="">{{goodsData.title}}</view>
<view class="">
+ <text>原价</text>
<text>¥</text>
<text>{{goodsData.price}}</text>
+ <text>会员价</text>
+ <text>¥</text>
+ <text>{{goodsData.vprice}}</text>
<!-- <text>积分:{{goodsData.points}}</text> -->
<!-- <text>原价:¥{{goodsData.price}}</text> -->
</view>
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 63e91ea..505cc59 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -91,6 +91,7 @@
<image lazy-load class="goods-icon" :src="itm.icon" mode=""></image>
<view class="goods-title">{{itm.title}}</view>
<view class="goods-price">
+ <view>原价</view>
<view>¥</view>
<view class="red">{{itm.price}}</view>
<!-- <view class="hyj">
@@ -99,6 +100,16 @@
<!-- <view>¥</view>
<view class="red">{{itm.price}}</view> -->
</view>
+ <view class="goods-price">
+ <view>会员价</view>
+ <view>¥</view>
+ <view class="red">{{itm.vprice}}</view>
+ <!-- <view class="hyj">
+ <image src="@/static/imgs/hyj.png" mode=""></image>
+ </view> -->
+ <!-- <view>¥</view>
+ <view class="red">{{itm.price}}</view> -->
+ </view>
</view>
</view>
</view>
diff --git a/pages/login/login.vue b/pages/login/login.vue
index c90ccfd..c27a421 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -18,7 +18,7 @@
<input type="password" v-model="formData.pass" placeholder="请输入密码" />
</view>
<view class="login-item" v-if="formData.loginType == 2">
- <input type="tel" v-model="formData.code" maxlength="4" placeholder="请输入验证码" />
+ <input type="number" v-model="formData.code" maxlength="4" placeholder="请输入验证码" />
<text class="code2" v-if="leftTime < 60">{{leftTime}}S后获取</text>
<text class="code" @click="sendCode" v-else>获取验证码</text>
</view>
@@ -168,6 +168,7 @@
// 登录接口
const res = await t.$util.post('User/Login', this.formData)
+ console.log('res', res)
if (res.code == 1) {
diff --git a/pages/search/search.vue b/pages/search/search.vue
index 05dbaf8..9ee0920 100644
--- a/pages/search/search.vue
+++ b/pages/search/search.vue
@@ -26,9 +26,15 @@
<image lazy-load class="goods-icon" :src="itm.icon" mode="widthFix"></image>
<view class="goods-title">{{itm.title}}</view>
<view class="goods-price">
+ <view>原价</view>
<view>¥</view>
<view class="red">{{itm.price}}</view>
</view>
+ <view class="goods-price">
+ <view>会员价</view>
+ <view>¥</view>
+ <view class="red">{{itm.vprice}}</view>
+ </view>
</view>
</view>
</view>
diff --git a/static/css/carts.css b/static/css/carts.css
index b5d90df..79f232a 100644
--- a/static/css/carts.css
+++ b/static/css/carts.css
@@ -133,7 +133,7 @@
position: fixed;
left: 0;
/*top: 44px;*/
- top: var(--status-bar-height);
+ top: var(--status-bar-height);
z-index: 99;
width: 100%;
background-color: #ebebeb;
diff --git a/static/css/ginfo.css b/static/css/ginfo.css
index ff8f79d..c16dd63 100644
--- a/static/css/ginfo.css
+++ b/static/css/ginfo.css
@@ -56,14 +56,12 @@
display: flex;
align-items: center;
}
-.gTitle view text:nth-child(1), .gTitle view text:nth-child(2){
+.gTitle view text{
color: #F75451;
font-weight: 700;
+ margin-right: 10rpx;
}
-.gTitle view text:nth-child(2){
- font-size: 36upx;
- margin: 0 50upx 0 10upx;
-}
+
.gInfo-title{
width: 100%;
text-align: center;
diff --git a/static/css/index.css b/static/css/index.css
index edbc792..8b9fb78 100644
--- a/static/css/index.css
+++ b/static/css/index.css
@@ -145,6 +145,7 @@
border-radius: 18upx;
background-color: #fbf8f8;
margin-bottom: 30upx;
+ padding-bottom: 20rpx;
}
.goods-icon{
width: 100%;
@@ -152,13 +153,13 @@
margin-bottom: 20upx;
}
.goods-price{
- margin-top: 0upx;
+ margin-top: 10rpx;
display: flex;
align-items: center;
color: #F75451;
font-size: 26upx;
padding: 0 14upx;
- padding-bottom: 20upx;
+ padding-bottom: 0upx;
}
.goods-price .red{
margin-left: 10upx;
diff --git a/static/css/order.css b/static/css/order.css
index a9be0cc..a457fba 100644
--- a/static/css/order.css
+++ b/static/css/order.css
@@ -7,7 +7,8 @@
position: fixed;
left: 0;
/*top: 44px;*/
- top: var(--status-bar-height);
+ /*top: var(--status-bar-height);*/
+ top: 0;
z-index: 99;
display: flex;
height: 80upx;
diff --git a/static/css/search.css b/static/css/search.css
index 4c9b3ab..6d2884e 100644
--- a/static/css/search.css
+++ b/static/css/search.css
@@ -78,6 +78,7 @@
border-radius: 18upx;
background-color: #fbf8f8;
margin-bottom: 30upx;
+ padding-bottom: 20rpx;
}
.goods-icon{
width: 100%;
@@ -85,13 +86,13 @@
margin-bottom: 20upx;
}
.goods-price{
- margin-top: 16upx;
+ margin-top: 10upx;
display: flex;
align-items: center;
color: #F75451;
font-size: 26upx;
padding: 0 14upx;
- padding-bottom: 20upx;
+ padding-bottom: 0upx;
}
.goods-price .red{
margin-left: 10upx;
--
Gitblit v1.9.3