From 7720d11dd41c5b1acc1640f95d346d1f4d0a682e Mon Sep 17 00:00:00 2001
From: 77 <270260644@qq.com>
Date: Thu, 24 Oct 2024 18:04:16 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E3=80=81=E9=A2=84=E7=BA=A6?=
=?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/goods/index.vue | 4 +-
pages/goods/list.vue | 14 +-
pages/goods/point.vue | 2 +-
pages/goods/seckill.vue | 5 +-
pages/subscribe/subscribe.vue | 34 ++--
pages/user/user_vip/list.vue | 157 ++++++++++--------
.../components/s-block-item/s-block-item.vue | 4 +-
sheep/components/s-user-card/s-user-card.vue | 54 ++++--
8 files changed, 167 insertions(+), 107 deletions(-)
diff --git a/pages/goods/index.vue b/pages/goods/index.vue
index 27eb4bc..23946f6 100644
--- a/pages/goods/index.vue
+++ b/pages/goods/index.vue
@@ -101,10 +101,10 @@
/>
-
+ /> -->
diff --git a/pages/goods/list.vue b/pages/goods/list.vue
index 63c32ba..2c1cbff 100644
--- a/pages/goods/list.vue
+++ b/pages/goods/list.vue
@@ -1,11 +1,15 @@
+
diff --git a/pages/goods/point.vue b/pages/goods/point.vue
index a105d6d..e526ef1 100644
--- a/pages/goods/point.vue
+++ b/pages/goods/point.vue
@@ -388,7 +388,7 @@
font-size: 24rpx;
font-weight: 600;
margin-left: -36rpx;
- background-image: v-bind(disabledBtnBg);
+ background-image: url('@/static/images/activity-btn-disabled.png');
background-repeat: no-repeat;
background-size: 100% 100%;
color: #999999;
diff --git a/pages/goods/seckill.vue b/pages/goods/seckill.vue
index 87a8f4f..42d7b02 100644
--- a/pages/goods/seckill.vue
+++ b/pages/goods/seckill.vue
@@ -101,13 +101,14 @@
@@ -95,7 +99,7 @@
apiPath
} from '@/sheep/config';
import sheep from '@/sheep';
- const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
+ const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
const userInfo = computed(() => sheep.$store('user').userInfo);
const vipList = ref([]);
const vipList2 = ref([]);
@@ -106,30 +110,30 @@
request({
url: `${baseUrl}${apiPath}/member/card/type/list`,
method: 'GET',
- params: {
- },
+ params: {},
custom: {
showLoading: false,
},
}).then((res) => {
- console.log(res,"sss")
+ console.log(res, "sss")
vipList.value = res.data;
});
}
-
+
// vipFun
let data = {
- cardName:nameVip.value
+ cardName: nameVip.value
}
- function vipFun(index,name) {
+
+ function vipFun(index, name) {
valVip.value = index
data.cardName = name
- console.log(index,name,"name")
+ console.log(index, name, "name")
}
-
+
// beclick
function beclick() {
- console.log(data.cardName,"nameVip.value")
+ console.log(data.cardName, "nameVip.value")
request({
url: `${baseUrl}${apiPath}/pay/member/create`,
method: 'post',
@@ -138,34 +142,38 @@
showLoading: false,
},
}).then((res) => {
- console.log(res,"-----------试用---------------")
- if(res.code == 0){
- if(data.cardName == "试用"){
+ console.log(res, "-----------试用---------------")
+ if (res.code == 0) {
+ if (data.cardName == "试用") {
sheep.$helper.toast('试用开通成功');
sheep.$router.go('/pages/index/user')
- }else{
- sheep.$router.go('/pages/pay/index', { id: res.data.payOrderId,type:'vip',vipid: res.data.id,cardName: data.cardName })
+ } else {
+ sheep.$router.go('/pages/pay/index', {
+ id: res.data.payOrderId,
+ type: 'vip',
+ vipid: res.data.id,
+ cardName: data.cardName
+ })
}
-
- }else{
+
+ } else {
sheep.$helper.toast(res.msg);
}
-
+
});
}
-
+
// 定义方法2
function getList2() {
request({
url: `${baseUrl}${apiPath}/member/benefit/list`,
method: 'GET',
- params: {
- },
+ params: {},
custom: {
showLoading: false,
},
}).then((res) => {
- console.log(res,"sss")
+ console.log(res, "sss")
vipList2.value = res.data;
});
}
@@ -184,12 +192,14 @@
height: 200px;
// background: rgba(57, 55, 54);
position: relative;
- .vipLv{
- position:absolute;
+
+ .vipLv {
+ position: absolute;
bottom: 93px;
right: 10%;
color: #8a745c;
}
+
.img {
width: 100%;
height: 100%;
@@ -220,7 +230,7 @@
.text {
.t {
- font-size: 18px;
+ font-size: 16px;
font-weight: 700;
.img {
@@ -236,7 +246,7 @@
.b {
color: rgba(201, 141, 99);
- font-size: 13px;
+ font-size: 12px;
margin-top: 7px;
}
}
@@ -244,18 +254,21 @@
.r {
color: #8a745c;
- font-size: 15px;
- padding: 5px 15px;
+ font-size: 12px;
+ padding: 5px 10px;
background: white;
- border-radius: 15px;
+ border-radius: 0 11px 0 11px;
+ position: absolute;
+ right: 7px;
+ bottom: 64px;
}
}
}
.vip-zxq {
.img {
- width: 77%;
- height: 89px;
+ width: 63%;
+ height: 68px;
margin: 0 auto;
display: block;
margin-top: 20px;
@@ -280,8 +293,8 @@
align-items: center;
.l-img {
- width: 50px;
- height: 50px;
+ width: 40px;
+ height: 40px;
margin-right: 10px;
}
}
@@ -322,43 +335,52 @@
color: rgba(174, 90, 42);
}
}
+
.scroll-view_H {
white-space: nowrap;
width: 100%;
+
.scroll-view-item_H {
- width: 113px;
display: inline-block;
background-color: white;
- border: 1px solid rgba(214,214,214);
- margin-right:15px;
+ border: 1px solid rgba(214, 214, 214);
+ margin-right: 15px;
border-radius: 10px;
- margin-top:15px;
- padding:15px 0;
- &.on{
- background-color: rgba(254,247,236);
- border: 1px solid rgba(252,194,130);
+ margin-top: 15px;
+ padding: 10px 3px;
+ width: 100px;
+
+ &.on {
+ background-color: rgba(254, 247, 236);
+ border: 1px solid rgba(252, 194, 130);
}
- .t{
- color:rgba(117,78,25);
+
+ .t {
+ color: rgba(117, 78, 25);
font-weight: 700;
- font-size:20px;
+ font-size: 15px;
text-align: center;
}
- .c{
- color:rgba(117,78,25);
+
+ .c {
+ color: rgba(117, 78, 25);
+ // color: rgba(117, 78, 25);
font-weight: 700;
- font-size:15px;
+ font-size: 15px;
text-align: center;
- padding:10px 0;
- .tx{
- font-size:27px;
+ padding: 10px 0;
+
+ .tx {
+ font-size: 20px;
}
}
- .b{
- color:rgba(173,173,173);
- font-size:16px;
+
+ .b {
+ color: rgba(173, 173, 173);
+ font-size: 14px;
text-align: center;
- &.sc{
+
+ &.sc {
text-decoration: line-through;
}
}
@@ -370,6 +392,7 @@
text-align: center;
color: rgba(157, 157, 157);
margin: 15px 0;
+ font-size: 13px;
.ts {
color: rgba(174, 90, 42);
@@ -381,9 +404,9 @@
background: rgba(254, 220, 137);
text-align: center;
margin: 0 15px;
- border-radius: 20px;
+ border-radius: 9px;
color: rgba(95, 53, 38);
}
-
+
}
\ No newline at end of file
diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue
index 52e9137..78a68dd 100644
--- a/sheep/components/s-block-item/s-block-item.vue
+++ b/sheep/components/s-block-item/s-block-item.vue
@@ -68,9 +68,7 @@
- 正在试用
- 立即查看
- 永久
+ 已开通
立即开通
diff --git a/sheep/components/s-user-card/s-user-card.vue b/sheep/components/s-user-card/s-user-card.vue
index c60d44e..9fe3c9f 100644
--- a/sheep/components/s-user-card/s-user-card.vue
+++ b/sheep/components/s-user-card/s-user-card.vue
@@ -6,14 +6,21 @@
+ isLogin
+ ? sheep.$url.cdn(userInfo.avatar)
+ : defaultAvatar
+ " mode="aspectFill" @tap="sheep.$router.go('/pages/user/info')">
+
+
-
+
{{ userInfo?.nickname || nickname }}
+
+
+
{{ userInfo?.mobile || mobile }}
@@ -108,7 +115,17 @@
\ No newline at end of file