diff --git a/common/api/shop.js b/common/api/shop.js
index fa1017e..2b0d39d 100644
--- a/common/api/shop.js
+++ b/common/api/shop.js
@@ -205,10 +205,18 @@ export default {
getPinTuanDetails({ pintuan_id }) {
return vm.$u.post('Specialci/pintuanInfo', { pintuan_id: pintuan_id });
},
- // pintuanPush
+ // 推荐拼团
getPinTuanPush() {
return vm.$u.post('Specialci/pintuanPush');
},
+ // 开团/参团
+ withImmediate({ pintuan_id, pintuangroup_headid, pintuangroup_id}) {
+ return vm.$u.post('Specialci/withImmediate', {
+ pintuan_id: pintuan_id,
+ pintuangroup_headid: pintuangroup_headid,
+ pintuangroup_id: pintuangroup_id,
+ });
+ },
// 商品分类(拼团分类)
getGoodsClass() {
return vm.$u.post('Specialci/goodsClass');
diff --git a/common/api/user.js b/common/api/user.js
index 55234b2..68fef94 100644
--- a/common/api/user.js
+++ b/common/api/user.js
@@ -308,7 +308,6 @@ export default {
delMessage({ type }) {
return vm.$u.post('/message/readMessage', { type });
},
-
// 已读消息
refreshToken({ }) {
return vm.$u.post('/Auth/refreshToken', { });
@@ -321,6 +320,12 @@ export default {
articleDelShield({ id }) {
return vm.$u.post('article/articleDelShield', { member_id: id });
},
+ // 配置
+ getConfigInfo({ code }) {
+ return vm.$u.post('Document/getConfigInfo', {
+ code: code,
+ });
+ },
}
}
}
\ No newline at end of file
diff --git a/common/store/index.js b/common/store/index.js
index 2db9847..afce820 100644
--- a/common/store/index.js
+++ b/common/store/index.js
@@ -6,10 +6,17 @@ const store = new Vuex.Store({
state: {
cartInfo: {}, // 购物车数据
orderAddress: {}, // 下单时选择的地址
+ goodsDetails: {}, // 商品详情 1普通 2拼团 3秒杀 4优惠券
},
getters: {
getOrderAddress(state) {
return state.orderAddress;
+ },
+ getGoodsType(state) {
+ return state.goodsDetails.type;
+ },
+ getGoodsInfo(state) {
+ return state.goodsDetails.goods;
}
},
mutations: {
@@ -18,7 +25,10 @@ const store = new Vuex.Store({
},
updateAddress(state, address) {
state.orderAddress = address;
- }
+ },
+ setGoodsDetails(state, goods) {
+ state.goodsDetails = goods;
+ },
}
})
export default store;
\ No newline at end of file
diff --git a/components/index/daren-item/index.vue b/components/index/daren-item/index.vue
index 5a338c4..9be9405 100644
--- a/components/index/daren-item/index.vue
+++ b/components/index/daren-item/index.vue
@@ -4,7 +4,7 @@
{{ info.member_nickname }}
状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}
关注
- 未关注
+ 未关注
\ No newline at end of file
diff --git a/components/shop/youhq/index.vue b/components/shop/youhq/index.vue
index 113cf30..f6641d4 100644
--- a/components/shop/youhq/index.vue
+++ b/components/shop/youhq/index.vue
@@ -74,7 +74,10 @@ export default {
},
setViewHeight() {
// 一个优惠券的高度 97px, 下距离 10px
- const num = this.couponList.length;
+ let num = 0;
+ num = this.couponList.length
+ ? this.couponList.length > 4 ? 4 : this.couponList.length
+ : 1
this.swiperHeight = (97 + 10) * num - 10 + 'px';
},
toCouponPage() {
diff --git a/pageB/follow/index.vue b/pageB/follow/index.vue
index 58b2cd8..479d97c 100644
--- a/pageB/follow/index.vue
+++ b/pageB/follow/index.vue
@@ -5,7 +5,7 @@
输入达人名称
-
+
@@ -64,6 +64,16 @@ export default {
}
})
},
+ changeType(member_id){
+ console.log(member_id);
+ this.$emit("pChangeType")
+ this.$u.api.attentionMember({
+ member_id: member_id
+ }).then((res)=>{
+ console.log(res)
+ this.getRecommendList();
+ })
+ },
searchValue() {
uni.navigateTo({
url: '/pageB/search/index'
diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue
index 4b9b5f8..1c2d18f 100644
--- a/pageB/sdetails/index.vue
+++ b/pageB/sdetails/index.vue
@@ -1,9 +1,9 @@
-
+
-
- {{ goodsInfo.store_name }}{{ goodsInfo.goods_name }}
+
+ {{ goodsInfo.store_name }}{{ goodsInfo.goods_name }}
¥{{ goodsInfo.goods_price }}
@@ -15,6 +15,39 @@
+
+
+
+ {{ groupUser.length }}人正在拼团,可直接参与
+
+ 查看全部
+
+
+
+
+
+
+
+
+
+ 查看全部
+
+
+
+
+
+
+ {{ groupUser[0][0].member_nickname }}
+
+
+
+
+ {{ user[0].member_nickname }}
+
+
+
+
+
商品详情
@@ -23,22 +56,31 @@
-
+
+
+ 发起拼团
+ 参与拼团
+
+
+
@@ -128,6 +216,105 @@ export default {
height: 20rpx;
background-color: #ececec;
}
+ .group-user {
+ padding: 30rpx;
+ .top {
+ margin-bottom: 28rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ .title {
+ font-size: 30rpx;
+ color: rgba(51,51,51,1);
+ }
+ .view-more {
+ font-size: 24rpx;
+ color: rgba(153,153,153,1);
+ > image {
+ margin-left: 10rpx;
+ width: 8rpx;
+ height: 16rpx;
+ }
+ }
+ }
+ .bottom {
+ display: flex;
+ align-items: center;
+ font-size: 22rpx;
+ color: rgba(153,153,153,1);
+ .left {
+ margin-right: 40rpx;
+ .avatar {
+ width: 120rpx;
+ height: 60rpx;
+ margin-bottom: 16rpx;
+ position: relative;
+ @mixin avatar($left, $index) {
+ width: 60rpx;
+ height: 60rpx;
+ border-radius: 50%;
+ position: absolute;
+ top: 0;
+ left: $left;
+ z-index: $index;
+ }
+ > image {
+ &:first-child {
+ background-color: aliceblue;
+ @include avatar($left: 0rpx, $index: 7);
+ }
+ &:nth-child(2) {
+ background-color: aquamarine;
+ @include avatar($left: 30rpx, $index: 8);
+ }
+ &:nth-child(3) {
+ background-color: antiquewhite;
+ @include avatar($left: 60rpx, $index: 9);
+ }
+ }
+ }
+ .all {
+ > image {
+ margin-left: 10rpx;
+ width: 8rpx;
+ height: 16rpx;
+ }
+ }
+ }
+ .right {
+ display: flex;
+ image {
+ background-color: aquamarine;
+ width: 60rpx;
+ height: 60rpx;
+ margin-bottom: 15rpx;
+ border-radius: 50%;
+ }
+ .launch-user {
+ margin-right: 40rpx;
+ text-align: center;
+ > text {
+ width: 98rpx;
+ display: block;
+ }
+ }
+ .involvement-user {
+ display: flex;
+ align-items: center;
+ .item {
+ text-align: center;
+ > text {
+ display: block;
+ width: 72rpx;
+ }
+ &:not(:last-child) {
+ margin-right: 30rpx;
+ }
+ }
+ }
+ }
+ }
+ }
.xiangqing{
display: flex;
height: 85rpx;
@@ -149,5 +336,28 @@ export default {
.rich {
width: 100%;
}
+ .group-tool {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ height: 98rpx;
+ display: flex;
+ font-size: 32rpx;
+ color: rgba(255,255,255,1);
+ z-index: 99;
+ .launch {
+ flex: 1;
+ background: rgba(253,211,96,1);
+ line-height: 98rpx;
+ text-align: center;
+ }
+ .involvement {
+ flex: 1;
+ background: rgba(255,120,15,1);
+ line-height: 98rpx;
+ text-align: center;
+ }
+ }
}
\ No newline at end of file
diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue
index 23bfed1..2d7cb77 100644
--- a/pageC/cart/ConfirmOrder.vue
+++ b/pageC/cart/ConfirmOrder.vue
@@ -33,7 +33,7 @@
-
+
优惠券折扣
¥{{ item.coupon_price ? item.coupon_price : '0.00' }}
@@ -69,7 +69,7 @@
优惠券详情
使用优惠券
-
+
@@ -87,7 +87,7 @@