diff --git a/common/api/shop.js b/common/api/shop.js index 34364d7..9771263 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -81,6 +81,14 @@ export default { getGoodsClassRecommend() { return vm.$u.post('Goods/getGoodsClassRecommend'); }, + // goodsListByClassId + goodsListByClassId({ gc_id, page, order }) { + return vm.$u.post('goods/goodsListByClassId', { + gc_id: gc_id, + page: page, + order: order, + }); + }, // 商品推荐 getGoodsRecommend({page, gc_id}){ return vm.$u.post('Goods/getGoodsRecommend', { diff --git a/components/index/daren-item/index.vue b/components/index/daren-item/index.vue index 9be9405..98b26a2 100644 --- a/components/index/daren-item/index.vue +++ b/components/index/daren-item/index.vue @@ -3,8 +3,8 @@ {{ info.member_nickname }} 状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }} - 关注 - 未关注 + 已关注 + 未关注 @@ -227,8 +211,21 @@ .uni-padding-wrap{ // height: 400rpx; } + .btn-init { + z-index: 1000; + position: absolute; + bottom: 100rpx; + right: 30%; + width: 300rpx; + height: 80rpx; + line-height: 80rpx; + text-align: center; + color: #fff; + border-radius: 40rpx; + background-color: #007AFF; + } .welcome_jumpes { - z-index: 10; + z-index: 100; position: absolute; top: 80rpx; right: 60rpx; @@ -243,17 +240,12 @@ } #myVideo { - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - margin: auto; + width: 100%; } uni-video { width: 100%; - height: auto; + height: 100%; } .uni-video-container { diff --git a/components/shop/group/index.vue b/components/shop/group/index.vue index 062151c..5c69287 100644 --- a/components/shop/group/index.vue +++ b/components/shop/group/index.vue @@ -97,7 +97,11 @@ export default { box-sizing: border-box; padding: 0 30rpx; display: flex; - justify-content: space-between; + &:not(:nth-child(3n)) { + > view { + margin-right: 20rpx; + } + } } } \ No newline at end of file diff --git a/components/shop/list/index.vue b/components/shop/list/index.vue index 268be23..35f2e4f 100644 --- a/components/shop/list/index.vue +++ b/components/shop/list/index.vue @@ -4,7 +4,7 @@ - + @@ -93,7 +93,9 @@ export default { }, setSwiperHeight() { // height: 230px, margin-bottom: 13 - this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (230 + 13) + 'px'; + // const height = Math.ceil(this.goodsList.length / 2) * (510 + 26); + // this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx'; + this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (270 + 13) + 'px'; }, // tabs通知swiper切换 tabsChange(index) { @@ -128,11 +130,20 @@ export default { text-align: center; color: #333; } - .goods-item { - display: flex; - flex-wrap: wrap; - justify-content: space-between; - margin-top: 20rpx; - } + .swiper-box { + height: 100%; + margin-bottom: 10rpx; + .swiper-item { + height: 100%; + .goods-item { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + width: 100%; + height: 100%; + overflow-y: scroll; + } + } + } } \ No newline at end of file diff --git a/components/shop/list/item.vue b/components/shop/list/item.vue index c33e26c..be4ff0f 100644 --- a/components/shop/list/item.vue +++ b/components/shop/list/item.vue @@ -1,9 +1,9 @@ \ No newline at end of file + } + diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue index 1fde47b..de275a3 100644 --- a/pageC/cart/ConfirmOrder.vue +++ b/pageC/cart/ConfirmOrder.vue @@ -16,7 +16,7 @@ - + {{ item[0].store_name }} @@ -424,8 +424,8 @@ export default { width: 60rpx; height: 60rpx; border-radius: 50%; - border: 1rpx solid #000; margin-right: 15rpx; + background-color: aquamarine; } > view { font-size: 28rpx; diff --git a/pageC/classify/goods.vue b/pageC/classify/goods.vue new file mode 100644 index 0000000..4678187 --- /dev/null +++ b/pageC/classify/goods.vue @@ -0,0 +1,193 @@ + + + \ No newline at end of file diff --git a/pageC/classify/index.vue b/pageC/classify/index.vue index 04285c2..4e8b34f 100644 --- a/pageC/classify/index.vue +++ b/pageC/classify/index.vue @@ -15,7 +15,7 @@ {{item.gc_name}} - + {{item1.gc_name}} @@ -49,7 +49,18 @@ onReady() { this.getMenuItemTop() }, + onNavigationBarButtonTap(e) { + if(e.index == 0) this.$u.route('/pageB/search/index'); + }, + onNavigationBarSearchInputClicked() { + this.$u.route('/pageB/search/index'); + }, methods: { + toSearchPage() { + this.$u.route({ + url: "pageB/search/index" + }) + }, // 获取分类列表 getClassifyList() { this.$u.api.getGoodsClassifyList().then(res => { @@ -161,6 +172,12 @@ } } }, 10) + }, + toClassifyPage(id, name) { + this.$u.route('pageC/classify/goods', { + cid: id, + cname: name, + }); } } } diff --git a/pageD/notice/notice.vue b/pageD/notice/notice.vue index d4fb54a..aaa702b 100644 --- a/pageD/notice/notice.vue +++ b/pageD/notice/notice.vue @@ -32,6 +32,9 @@ \ No newline at end of file diff --git a/pageE/order/Details.vue b/pageE/order/Details.vue index 34f1f74..a770128 100644 --- a/pageE/order/Details.vue +++ b/pageE/order/Details.vue @@ -1,11 +1,11 @@ @@ -83,7 +84,7 @@ export default { data() { return { - state: '', // 1: 待收货 2: 待评价 3: 交易成功 4: 已取消 5: 已退款 6: 待支付 7: 待退款 8: 已退款 + orderstate: '', // 1: 待收货 2: 待评价 3: 交易成功 4: 已取消 5: 已退款 6: 待支付 7: 待退款 8: 已退款 s_object: { '1': { text: '待收货', @@ -113,6 +114,10 @@ export default { text: '待退款', image: '../static/mine/34.png', }, + '8': { + text: '拼团中', + image: '../static/mine/37.png', + }, }, orderInfo: {}, oid: '', @@ -155,10 +160,13 @@ export default { case 7: state = '5'; break; + case 9: + state = '8'; + break; default: break; } - this.state = state; + this.orderstate = state; }, setSpikeTime(time) { // console.log(time); @@ -167,7 +175,7 @@ export default { // console.log(spikeTime); if(spikeTime <= 0) { this.isSpike = true; - this.spikeTime = '00:00:00' + this.countdown = '00:00:00' clearInterval(this.timer); return false; }; @@ -196,9 +204,10 @@ export default { }).then(res => { if(res.errCode == 0) { this.orderInfo = res.data; - this.setSpikeTime(res.data.end_time); this.viewState(this.orderInfo.view_type); this.setTitle(this.orderInfo.view_type); + if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time); + else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime); } uni.stopPullDownRefresh(); // 结束刷新 }) @@ -243,6 +252,7 @@ export default { this.$u.route('/pageC/cart/cashier', { pay_sn: this.orderInfo.pay_sn, price: this.orderInfo.order_amount, + order_id: this.orderInfo.order_id, }); }, toOtherPage(url) { diff --git a/pageE/order/Index.vue b/pageE/order/Index.vue index cde9515..8e25b29 100644 --- a/pageE/order/Index.vue +++ b/pageE/order/Index.vue @@ -1,7 +1,7 @@