From ade8c79e8ee599c4686e77c933e6a0db14d768d7 Mon Sep 17 00:00:00 2001
From: whyneedname <542399163@qq.com>
Date: Tue, 1 Nov 2022 14:31:42 +0800
Subject: [PATCH 01/10] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/index.js | 8 +--
pages/activity/GroupDetails/index.vue | 2 +-
pages/activity/SeckillDetails/index.vue | 2 +-
pages/activity/activity/index.vue | 67 +++++++++++++------
.../Evaluations/EvaluationDetail/index.vue | 5 --
5 files changed, 54 insertions(+), 30 deletions(-)
diff --git a/config/index.js b/config/index.js
index c081c7e..e2ada4c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,8 +1,8 @@
// export const VUE_APP_API_URL = 'http://192.168.10.129:48080/bxgApp'
-export const VUE_APP_API_URL = 'http://192.168.10.113:48080/bxgApp'
-// export const VUE_APP_API_URL = 'https://farm.lotus-wallet.com/bxgApp'
+// export const VUE_APP_API_URL = 'http://192.168.10.113:48080/bxgApp'
+export const VUE_APP_API_URL = 'https://farm.lotus-wallet.com/bxgApp'
// export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp'
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'
-// export const BXG_TENANT_ID = 129
-export const BXG_TENANT_ID = 138
+export const BXG_TENANT_ID = 129
+// export const BXG_TENANT_ID = 138
// export const BXG_TENANT_ID = 128
\ No newline at end of file
diff --git a/pages/activity/GroupDetails/index.vue b/pages/activity/GroupDetails/index.vue
index bb1f420..1ef85c1 100644
--- a/pages/activity/GroupDetails/index.vue
+++ b/pages/activity/GroupDetails/index.vue
@@ -358,7 +358,7 @@ export default {
}
},
},
- onShow: function() {
+ onLoad: function() {
this.mountedStart()
},
methods: {
diff --git a/pages/activity/SeckillDetails/index.vue b/pages/activity/SeckillDetails/index.vue
index 5f199ce..e6a4122 100644
--- a/pages/activity/SeckillDetails/index.vue
+++ b/pages/activity/SeckillDetails/index.vue
@@ -275,7 +275,7 @@ export default {
}
}
},
- onShow: function() {
+ onLoad: function() {
this.mountedStart()
},
methods: {
diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue
index 99b0433..567fa15 100644
--- a/pages/activity/activity/index.vue
+++ b/pages/activity/activity/index.vue
@@ -1,7 +1,7 @@
+
From 6c2e4c53e97e9de4b2b0604b230301a209470efd Mon Sep 17 00:00:00 2001
From: whyneedname <542399163@qq.com>
Date: Thu, 3 Nov 2022 18:25:32 +0800
Subject: [PATCH 07/10] =?UTF-8?q?=E5=93=81=E7=89=8C=E9=A6=86=E6=BB=9A?=
=?UTF-8?q?=E5=8A=A8=E6=9D=A1=E4=BF=A1=E6=81=AF;=E6=94=B6=E8=97=8F?=
=?UTF-8?q?=E9=A1=B5=E5=B8=83=E5=B1=80=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?=
=?UTF-8?q?;=E6=B4=BB=E5=8A=A8=E4=B8=93=E5=8C=BA=E8=BD=AE=E6=92=AD?=
=?UTF-8?q?=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/store.js | 22 ++-
pages/activity/activity/index.vue | 3 +-
pages/shop/GoodsCollection/index.vue | 198 ++++++++++---------------
pages/shop/brands/index.vue | 24 +--
pages/user/coupon/UserCoupon/index.vue | 2 +-
5 files changed, 109 insertions(+), 140 deletions(-)
diff --git a/api/store.js b/api/store.js
index 3945c17..7145105 100644
--- a/api/store.js
+++ b/api/store.js
@@ -226,24 +226,13 @@ export function getBrandByName() {
login: false
});
}
-// <<<<<<< HEAD
-// /**
-// * 添加收藏
-// *
-// */
-// export function getUserCollection(data) {
-// console.log(9999999966);
-// return request.post("/collectEvaluation/add", data, {
-// login: true
-// });
-// =======
+
/**
* 添加收藏
*
*/
export function getUserCollection(data) {
return request.post("/collectEvaluation/add",data);
-// >>>>>>> sxx
}
/**
*
@@ -262,6 +251,15 @@ export function getBrandDetail(id) {
});
}
+/**
+ * 品牌馆滚动条信息
+ */
+export function getBrandNoticeInfo() {
+ return request.get("/brandInfo", {}, {
+ login: false
+ });
+}
+
/**
* 词条名查询
*/
diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue
index 567fa15..44586a6 100644
--- a/pages/activity/activity/index.vue
+++ b/pages/activity/activity/index.vue
@@ -16,7 +16,7 @@
-
+
@@ -358,6 +358,7 @@
}
.banner-box {
+ position: relative;
width: 750rpx;
height: 488rpx;
.swiper {
diff --git a/pages/shop/GoodsCollection/index.vue b/pages/shop/GoodsCollection/index.vue
index df680db..95525b1 100644
--- a/pages/shop/GoodsCollection/index.vue
+++ b/pages/shop/GoodsCollection/index.vue
@@ -13,9 +13,9 @@
-
-
-
+
+
+
甄选商品
@@ -23,56 +23,50 @@
甄选评测
+
-
-
-
-
-
-
-
- {{ item.storeName }}
-
-
- {{ item.productInfo.attrInfo.sku }}
-
- {{ item.costPrice }}积分
- ¥{{ item.price }}
-
+
+
+
+
+
-
-
-
-
-
+ {{ item.costPrice }}积分
+ ¥{{ item.price }}
- 删除
+
+
+
+
+
+ 删除
-
-
+
+
+
+
+
+
+
+ 什么都没有,大概被外星人带走了
+
+
+
@@ -283,70 +277,7 @@
}
diff --git a/pages/shop/brands/index.vue b/pages/shop/brands/index.vue
index a09b298..47488c3 100644
--- a/pages/shop/brands/index.vue
+++ b/pages/shop/brands/index.vue
@@ -30,16 +30,16 @@
-
+
- 选品标准
+ {{noticeInfo.title}}
-
+
@@ -97,7 +97,7 @@
@@ -280,7 +353,7 @@ export default {
background: #FFFFFF;
box-shadow: 0rpx -4rpx 38rpx 0rpx rgba(0,0,0,0.1);
border-radius: 28rpx 28rpx 0rpx 0rpx;
- scroll-view {
+ .classify-scroll {
position: relative;
top: -60rpx;
margin-bottom: -60rpx;
@@ -296,22 +369,41 @@ export default {
.classify-item {
width: 176rpx;
height: 96rpx;
+ text-align: center;
margin-right: 20rpx;
- border-radius: 16rpx;
- background: linear-gradient(135deg, #39D396 0%, #2DB7AD 43%, #1B8DCC 100%);
+ image {
+ width: 176rpx;
+ height: 96rpx;
+ border-radius: 16rpx;
+ transition: all .3s linear;
+ // background: linear-gradient(135deg, #39D396 0%, #2DB7AD 43%, #1B8DCC 100%);
+ }
+ transition: width .3s linear;
}
.classify-item.on {
width: 220rpx;
- height: 120upx;
+ height: 120rpx;
+ transition: width .3s linear;
+ image {
+ width: 220rpx;
+ height: 120rpx;
+ transition: all .3s linear;
+ }
}
}
}
}
+ .content-box .nav-scroll {
+ overflow:hidden;
+ white-space:nowrap;
+ }
.content-box .nav-box {
+ display: flex;
+ flex-wrap: nowrap;
padding: 20rpx 32rpx;
+ margin-right: 32rpx;
.item {
- // width: 87px;
height: 40rpx;
border-radius: 16rpx;
border: 2rpx solid #2EB5AE;
@@ -322,6 +414,12 @@ export default {
color: #2DB5AE;
line-height: 36rpx;
margin-right: 20rpx;
+ .nav-name,.jiantou-down {
+ display: inline-block;
+ }
+ .jiantou-down {
+ margin-bottom: 4rpx;
+ }
}
.item.on {
width: 124rpx;
@@ -331,6 +429,16 @@ export default {
}
}
+ .jiantou-down {
+ width: 0;
+ height: 0;
+ border-top: 10rpx solid #2EB5AE;
+ border-bottom: 0rpx;
+ border-left: 6rpx solid transparent;
+ border-right: 6rpx solid transparent;
+ margin-left: 2rpx;
+ }
+
.notice-box {
margin: 0rpx 32rpx 18rpx;
padding: 0rpx 16rpx;
@@ -352,7 +460,7 @@ export default {
}
.list-box {
- height: calc(100% - 196rpx);
+ height: calc(100% - 200rpx);
overflow-y: scroll;
.top-box {
padding: 0rpx 32rpx 12rpx;
@@ -490,13 +598,4 @@ export default {
}
}
- .jiantou-down {
- width: 0;
- height: 0;
- border-top: 10rpx solid #2EB5AE;
- border-bottom: 0rpx;
- border-left: 6rpx solid transparent;
- border-right: 6rpx solid transparent;
- margin-left: 2rpx;
- }
\ No newline at end of file
diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue
index bf59558..cc66b24 100644
--- a/pages/user/User/index.vue
+++ b/pages/user/User/index.vue
@@ -71,7 +71,7 @@
我的券包
-
+
@@ -86,7 +86,7 @@
我的积分
-
+
From c2cfef9da42d2137be931c5371ed4dad2ce37971 Mon Sep 17 00:00:00 2001
From: whyneedname <542399163@qq.com>
Date: Sat, 5 Nov 2022 10:39:02 +0800
Subject: [PATCH 10/10] =?UTF-8?q?=E7=83=AD=E9=97=A8=E6=A6=9C=E5=8D=95?=
=?UTF-8?q?=E8=B0=83=E6=95=B4=E3=80=81=E4=BB=B7=E6=A0=BC=E6=8E=92=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/uni-notice-bar/uni-notice-bar.vue | 7 +-
pages/shop/HotNewGoods/index.vue | 69 ++++++++++++++------
2 files changed, 55 insertions(+), 21 deletions(-)
diff --git a/components/uni-notice-bar/uni-notice-bar.vue b/components/uni-notice-bar/uni-notice-bar.vue
index a429e3d..d006242 100644
--- a/components/uni-notice-bar/uni-notice-bar.vue
+++ b/components/uni-notice-bar/uni-notice-bar.vue
@@ -17,7 +17,7 @@
{{text}}
+ :style="{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay, 'font-size':fontSize}">{{text}}
@@ -44,9 +43,10 @@
{{form.mouth}}
-
+
价格
-
+
+
{{subclass.cateName}}
@@ -60,13 +60,14 @@
榜单每月30号统计,下月1号左右更新
-
+
-
+
+
{{index+1}}
{{index===0?'ST':index===1?'ND':index===2?'RD':'TH'}}
@@ -80,7 +81,7 @@
-
+
@@ -134,11 +135,11 @@ export default {
hotListId: null, // 榜单ID
cateId: null, // 商品分类ID
page: 1,
- limit: 20,
+ limit: 30,
priceOrder: '', // desc降序/asc升序
salesOrder: '',
},
- topList: [],
+ // topList: [],
goodsList: [],
// name: "",
// icon: "",
@@ -181,25 +182,29 @@ export default {
this.mouthList = res.data.mouthList;
this.form.mouth = this.mouthList[0];
this.classifyList = this.hotListData[this.form.mouth].hotListDTOS;
- this.subclassList = this.hotListData[this.form.mouth].cateDtos;
this.form.hotListId = this.classifyList[this.classifyType].id;
+ this.subclassList = this.classifyList[this.classifyType].cateDtos;
this.subclass = this.subclassList[0];
this.form.cateId = this.subclass.cateId;
this.getHotList();
})
},
+ // 月份
bindPickerChange(e) {
+ if(this.mouthIndex == e.detail.value) return;
this.mouthIndex = e.detail.value;
this.form.mouth = this.mouthList[this.mouthIndex];
- this.classifyList = this.hotListData[this.form.mouth].hotListDTOS;
- this.subclassList = this.hotListData[this.form.mouth].cateDtos;
- this.form.hotListId = this.classifyList[this.classifyType].id;
- this.subclass = this.subclassList[0];
-
- this.form.cateId = this.subclass.cateId;
this.goodsList = [];
- this.getHotList();
+ this.classifyList = this.hotListData[this.form.mouth].hotListDTOS;
+ if(this.classifyList[this.classifyType]) {
+ this.form.hotListId = this.classifyList[this.classifyType].id;
+ this.subclassList = this.classifyList[this.classifyType].cateDtos;
+ this.subclass = this.subclassList[0];
+ this.form.cateId = this.subclass.cateId;
+ this.getHotList();
+ }
},
+ // 榜单
changeClassify(i) {
if(this.classifyType == i) return
this.classifyType = i;
@@ -207,7 +212,9 @@ export default {
this.goodsList = [];
this.getHotList();
},
+ // 子分类
bindPickerSubclassChange(e) {
+ if(this.subclassIndex == e.detail.value) return;
this.subclassIndex = e.detail.value;
this.subclass = this.subclassList[this.subclassIndex];
this.form.cateId = this.subclass.cateId;
@@ -215,8 +222,13 @@ export default {
this.getHotList();
},
getHotList() {
+ uni.showLoading({
+ title: ''
+ })
getHotList(this.form).then(res => {
- this.goodsList = this.sortData(res.data, 5);
+ this.goodsList = res.data;
+ uni.hideLoading();
+ // this.goodsList = this.sortData(res.data, 5);
})
},
// 数据分层
@@ -231,6 +243,13 @@ export default {
}
return arr;
},
+ setSort() {
+ if (this.form.priceOrder == '') this.form.priceOrder = 'asc'
+ else if (this.form.priceOrder == 'asc') this.form.priceOrder = 'desc'
+ else if (this.form.priceOrder == 'desc') this.form.priceOrder = ''
+ this.goodsList = [];
+ this.getHotList();
+ },
goGoodsCon(item) {
if(item.isIntegral === 1) {
this.$yrouter.push({
@@ -414,10 +433,10 @@ export default {
color: #2DB5AE;
line-height: 36rpx;
margin-right: 20rpx;
- .nav-name,.jiantou-down {
+ .nav-name,.jiantou-down,.jiantou-up {
display: inline-block;
}
- .jiantou-down {
+ .jiantou-down,.jiantou-up {
margin-bottom: 4rpx;
}
}
@@ -438,6 +457,15 @@ export default {
border-right: 6rpx solid transparent;
margin-left: 2rpx;
}
+ .jiantou-up {
+ width: 0;
+ height: 0;
+ border-bottom: 10rpx solid #2EB5AE;
+ border-top: 0rpx;
+ border-left: 6rpx solid transparent;
+ border-right: 6rpx solid transparent;
+ margin-left: 2rpx;
+ }
.notice-box {
margin: 0rpx 32rpx 18rpx;
@@ -450,6 +478,7 @@ export default {
height: 26rpx;
}
.uni-notice-bar-box {
+ width: 628rpx;
padding-left: 8rpx;
font-size: 20rpx;
font-family: PingFang SC;