diff --git a/api/store.js b/api/store.js
index 3945c17..55b0222 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
+ });
+}
+
/**
* 词条名查询
*/
@@ -269,4 +267,22 @@ export function getEntry(data) {
return request.get("/entryByName", data, {
login: false
});
+}
+
+/**
+ * 热门榜单
+ */
+export function getHotList(data) {
+ return request.get("/hotList", data, {
+ login: false
+ });
+}
+
+/**
+ * 热门榜单信息
+ */
+export function getHotListData() {
+ return request.get("/hotListData", {}, {
+ login: false
+ });
}
\ No newline at end of file
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}}
@@ -343,11 +343,11 @@ export default {
if (url) {
// 通过二维码进来
that.bargainId = url.bargainId
- that.bargainUid = url.partake
+ that.bargainUid = Number(url.partake);
} else {
// 正常途径进来
that.bargainId = that.$yroute.query.id
- that.bargainUid = that.$yroute.query.partake
+ that.bargainUid = Number(that.$yroute.query.partake);
}
if (this.bargainUid == 0 || !this.bargainUid) {
// url未携带用户uid,填上登录用户uid,跳转
diff --git a/pages/activity/DargainGoodsDetails/index.vue b/pages/activity/DargainGoodsDetails/index.vue
index 516f8d1..109b14d 100644
--- a/pages/activity/DargainGoodsDetails/index.vue
+++ b/pages/activity/DargainGoodsDetails/index.vue
@@ -41,13 +41,16 @@
-
-
+
+
- 满{{199}}包邮
+ {{tempName}}
-
-
+
+
+ {{item.content}}
+
+
@@ -71,7 +74,7 @@
-->
- 商品展示
+
@@ -136,10 +139,13 @@
goodsDetail: {
minPrice: 0,
price: 0,
+ stock: '',
+ unitName: '',
},
bargainId: 0,
bargainUid: 0,
imgUrls: [],
+ tempName: '',
styleAllStyle: 'width:30rpx;height:24rpx;background:#F5F6F8;border-radius:8rpx;font-size:20rpx;color:#3A3A3C;line-height:24rpx;',
timeTxtStyle: 'font-size:20rpx;color:#F5F6F8;line-height:24rpx;padding:0rpx 4rpx;',
entryInfo: {},
@@ -183,6 +189,7 @@
// console.log(this.goodsDetail);
this.goodsDetail.description = this.goodsDetail.description.replace(/\ {
uni.hideLoading()
uni.showToast({
@@ -388,7 +395,10 @@
padding: 18rpx 0rpx;
margin: 0rpx 32rpx 20rpx;
.safeguard-item {
- width: 226rpx;
+ flex: 1;
+ // width: 226rpx;
+ height: 84rpx;
+ border-right: 2rpx solid #979797;
font-size: 20rpx;
font-family: SourceHanSansSCVF;
font-weight: 600;
@@ -398,13 +408,17 @@
.img {
width: 46rpx;
height: 46rpx;
+ margin-top: 2rpx;
}
}
- .line {
- width: 2rpx;
- height: 84rpx;
- background-color: #979797;
+ .safeguard-item:last-child {
+ border-right: 0;
}
+ // .line {
+ // width: 2rpx;
+ // height: 84rpx;
+ // background-color: #979797;
+ // }
}
.tui-operation {
diff --git a/pages/activity/GroupDetails/index.vue b/pages/activity/GroupDetails/index.vue
index bb1f420..7b7db6e 100644
--- a/pages/activity/GroupDetails/index.vue
+++ b/pages/activity/GroupDetails/index.vue
@@ -86,13 +86,16 @@
-
-
+
+
- 满{{199}}包邮
+ {{tempName}}
-
-
+
+
+ {{item.content}}
+
+
@@ -187,7 +190,7 @@
- 商品展示
+
@@ -314,6 +317,7 @@ export default {
reply: [],
replyCount: 0,
replyChance: 0,
+ tempName: '',
imgUrls: [],
storeInfo: {},
itemNew: {},
@@ -358,7 +362,7 @@ export default {
}
},
},
- onShow: function() {
+ onLoad: function() {
this.mountedStart()
},
methods: {
@@ -422,6 +426,7 @@ export default {
that.$set(that, 'reply', [res.data.reply])
that.$set(that, 'replyCount', res.data.replyCount)
that.$set(that, 'replyChance', res.data.replyChance)
+ that.$set(that, 'tempName', res.data.tempName);
that.posterData.image = that.storeInfo.image
if (that.storeInfo.title.length > 30) {
that.posterData.title = that.storeInfo.title.substring(0, 30) + '...'
@@ -1669,7 +1674,10 @@ export default {
padding: 18rpx 0rpx;
margin: 0rpx 32rpx 20rpx;
.safeguard-item {
- width: 226rpx;
+ flex: 1;
+ // width: 226rpx;
+ height: 84rpx;
+ border-right: 2rpx solid #979797;
font-size: 20rpx;
font-family: SourceHanSansSCVF;
font-weight: 600;
@@ -1679,14 +1687,17 @@ export default {
.img {
width: 46rpx;
height: 46rpx;
- // background-color: #FFFFFF;
+ margin-top: 2rpx;
}
}
- .line {
- width: 2rpx;
- height: 84rpx;
- background-color: #979797;
+ .safeguard-item:last-child {
+ border-right: 0;
}
+ // .line {
+ // width: 2rpx;
+ // height: 84rpx;
+ // background-color: #979797;
+ // }
}
.userEvaluation .title .replyCount {
diff --git a/pages/activity/SeckillDetails/index.vue b/pages/activity/SeckillDetails/index.vue
index cb2e1cd..758f114 100644
--- a/pages/activity/SeckillDetails/index.vue
+++ b/pages/activity/SeckillDetails/index.vue
@@ -87,13 +87,16 @@
-
-
+
+
- 满{{199}}包邮
+ {{tempName}}
-
-
+
+
+ {{item.content}}
+
+
@@ -253,6 +256,7 @@ export default {
replyCount: 0,
// replyChance: '',
reply: [],
+ tempName: '',
cartNum: 1,
attrTxt: '请选择',
productValue: [],
@@ -275,7 +279,7 @@ export default {
}
}
},
- onShow: function() {
+ onLoad: function() {
this.mountedStart()
},
methods: {
@@ -348,6 +352,7 @@ export default {
that.$set(that, 'imgUrls', res.data.storeInfo.sliderImageArr)
that.$set(that, 'replyCount', res.data.replyCount)
that.$set(that, 'reply', res.data.reply)
+ that.$set(that, 'tempName', res.data.tempName)
that.posterData.image = that.storeInfo.image_base
that.updateTitle()
if (that.storeInfo.title.length > 30) {
@@ -1160,7 +1165,10 @@ export default {
padding: 18rpx 0rpx;
margin: 0rpx 32rpx 20rpx;
.safeguard-item {
- width: 226rpx;
+ flex: 1;
+ // width: 226rpx;
+ height: 84rpx;
+ border-right: 2rpx solid #979797;
font-size: 20rpx;
font-family: SourceHanSansSCVF;
font-weight: 600;
@@ -1170,14 +1178,17 @@ export default {
.img {
width: 46rpx;
height: 46rpx;
- // background-color: #FFFFFF;
+ margin-top: 2rpx;
}
}
- .line {
- width: 2rpx;
- height: 84rpx;
- background-color: #979797;
+ .safeguard-item:last-child {
+ border-right: 0;
}
+ // .line {
+ // width: 2rpx;
+ // height: 84rpx;
+ // background-color: #979797;
+ // }
}
.userEvaluation .title .replyCount {
diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue
index ae8ab88..44586a6 100644
--- a/pages/activity/activity/index.vue
+++ b/pages/activity/activity/index.vue
@@ -1,7 +1,7 @@
-
-
-
+
+
+
甄选商品
@@ -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/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index 7ee72a0..ab1f092 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -97,21 +97,22 @@
-
-
+
+
- 满{{199}}包邮
+ {{tempName}}
-
-
+
+
+ {{item.content}}
+
+
+
@@ -409,7 +410,7 @@
systemStore: {},
qqmapsdk: null,
productConClass: 'product-con',
- tempName: '全国包邮',
+ tempName: '',
isIntegral: false,
isUnfold: false, // 商品参数是否展开
entryInfo: {},
@@ -1164,7 +1165,10 @@
margin: 0rpx 32rpx 20rpx;
.safeguard-item {
- width: 226rpx;
+ flex: 1;
+ // width: 226rpx;
+ height: 84rpx;
+ border-right: 2rpx solid #979797;
font-size: 20rpx;
font-family: SourceHanSansSCVF;
font-weight: 600;
@@ -1175,15 +1179,18 @@
.img {
width: 46rpx;
height: 46rpx;
- // background-color: #FFFFFF;
+ margin-top: 2rpx;
}
}
-
- .line {
- width: 2rpx;
- height: 84rpx;
- background-color: #979797;
+ .safeguard-item:last-child {
+ border-right: 0;
}
+
+ // .line {
+ // width: 2rpx;
+ // height: 84rpx;
+ // background-color: #979797;
+ // }
}
.userEvaluation .title .replyCount {
diff --git a/pages/shop/HotNewGoods/index.vue b/pages/shop/HotNewGoods/index.vue
index 88b3766..b9f49d0 100644
--- a/pages/shop/HotNewGoods/index.vue
+++ b/pages/shop/HotNewGoods/index.vue
@@ -1,53 +1,274 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 全部
+
+ {{form.mouth}}
+
+
+
+ 价格
+
+
+
+
+ {{subclass.cateName}}
+
+
+
+
+
+
+
+
+
+ 榜单每月30号统计,下月1号左右更新
+
+
+
+
+
+
+
+
+
+ {{index+1}}
+ {{index===0?'ST':index===1?'ND':index===2?'RD':'TH'}}
+
+
+
+ {{item.storeName}}
+ {{ item.integral }}积分
+ ¥{{ item.price }}¥{{item.otPrice}}
+ {{ item.sales }}+人购买
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/shop/brands/brandDetail/index.vue b/pages/shop/brands/brandDetail/index.vue
index b356d8d..e425a52 100644
--- a/pages/shop/brands/brandDetail/index.vue
+++ b/pages/shop/brands/brandDetail/index.vue
@@ -259,9 +259,9 @@
}
}
.info {
- // height: 56rpx;
min-height: 58rpx;
max-height: 124rpx;
+ // padding-top: 6rpx;
padding-top: 14rpx;
font-size: 16rpx;
font-family: PingFang SC;
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 @@
+
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 @@
我的积分
-
+
diff --git a/pages/user/address/AddressManagement/index.vue b/pages/user/address/AddressManagement/index.vue
index da70cd8..c0b4d65 100644
--- a/pages/user/address/AddressManagement/index.vue
+++ b/pages/user/address/AddressManagement/index.vue
@@ -65,16 +65,14 @@
-
+
-
-
- 等我们也造火箭或许能寄到火星
- 赶快添加收货地址吧
- +
+
+ 等我们也造火箭或许能寄到火星
+ 赶快添加收货地址吧
+ +
-
diff --git a/pages/user/coupon/GetCoupon/index.vue b/pages/user/coupon/GetCoupon/index.vue
index bd277d1..f7c3a2d 100644
--- a/pages/user/coupon/GetCoupon/index.vue
+++ b/pages/user/coupon/GetCoupon/index.vue
@@ -158,23 +158,30 @@ export default {
},
getCoupon: function(id, index) {
let that = this
- let list = that.couponsList
- getCouponReceive(id)
- .then(function(res) {
- list[index].isUse = true
- uni.showToast({
- title: '领取成功',
- icon: 'success',
- duration: 2000,
- })
- })
- .catch(function(err) {
- uni.showToast({
- title: err.msg || err.response.data.msg || err.response.data.message,
- icon: 'none',
- duration: 2000,
- })
- })
+ let list = that.couponsList,
+ tmplIds = ['lOOnpYASRMKy81gh5tNMR7OXSHMKw05x-aosYjvhK-E', 'lejbsmRtheMLXEGNx_UhVHuq5P6Yjwfokc183n9oMek'];
+ uni.requestSubscribeMessage({
+ tmplIds,
+ fail(err) {
+ console.log("requestSubscribeMessage err", err)
+ },
+ complete() {
+ getCouponReceive(id).then(function(res) {
+ list[index].isUse = true
+ uni.showToast({
+ title: '领取成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ }).catch(function(err) {
+ uni.showToast({
+ title: err.msg || err.response.data.msg || err.response.data.message,
+ icon: 'none',
+ duration: 2000,
+ })
+ })
+ }
+ })
},
getUseCoupons() {
if (this.loading) return //阻止下次请求(false可以进行请求);
diff --git a/pages/user/coupon/UserCoupon/index.vue b/pages/user/coupon/UserCoupon/index.vue
index 6de1f05..3618b5d 100644
--- a/pages/user/coupon/UserCoupon/index.vue
+++ b/pages/user/coupon/UserCoupon/index.vue
@@ -14,7 +14,7 @@
-
+
待领取
@@ -150,23 +150,30 @@
})
return
}
- let list = that.couponsList
- getCouponReceive(id)
- .then(function(res) {
- list[index].isUse = true
- uni.showToast({
- title: '领取成功',
- icon: 'success',
- duration: 2000,
- })
- })
- .catch(function(err) {
- uni.showToast({
- title: err.msg || err.response.data.msg || err.response.data.message,
- icon: 'none',
- duration: 2000,
- })
- })
+ let list = that.couponsList,
+ tmplIds = ['lOOnpYASRMKy81gh5tNMR7OXSHMKw05x-aosYjvhK-E', 'lejbsmRtheMLXEGNx_UhVHuq5P6Yjwfokc183n9oMek'];
+ uni.requestSubscribeMessage({
+ tmplIds,
+ fail(err) {
+ console.log("requestSubscribeMessage err", err)
+ },
+ complete() {
+ getCouponReceive(id).then(function(res) {
+ list[index].isUse = true
+ uni.showToast({
+ title: '领取成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ }).catch(function(err) {
+ uni.showToast({
+ title: err.msg || err.response.data.msg || err.response.data.message,
+ icon: 'none',
+ duration: 2000,
+ })
+ })
+ }
+ })
},
getUseCoupons: function(i) {
@@ -191,14 +198,14 @@
})
}else if(i===0){
getCanReceive(q).then(res => {
- res.data.forEach(item=>{
- if(!item.isUse){
- this.couponsList.push(item)
- }
+ res.data.forEach(item=>{
+ if(!item.isUse){
+ this.couponsList.push(item)
+ }
+ })
+ this.loading = false
+ this.page = this.page + 1
})
- this.loading = false
- this.page = this.page + 1
- })
}else{
getUserFailure(type).then(res=>{
res.data.forEach(item=>{