-
+
@@ -19,12 +19,15 @@
- ¥{{item.price}}¥{{item.product_price}}
+ ¥{{item.price}}¥{{item.otPrice}}
去拼团
+
+ {{loadTitle}}
+
@@ -52,9 +55,13 @@
page: 1,
loading: false,
loadend: false,
+ returnShow: true,
+ loadTitle: ''
}
},
onLoad() {
+ var pages = getCurrentPages();
+ this.returnShow = pages.length===1?false:true;
uni.setNavigationBarTitle({
title:"拼团列表"
})
@@ -90,21 +97,24 @@
var that = this;
if (that.loadend) return;
if (that.loading) return;
+ that.loadTitle = '';
var data = {
page: that.page,
limit: that.limit
};
this.loading = true
getCombinationList(data).then(function(res) {
- var combinationList = that.combinationList;
- var limit = that.limit;
- that.page++;
- that.loadend = limit > res.data.length;
- that.combinationList = combinationList.concat(res.data);
- that.page = that.data.page;
+ let list = res.data.list;
+ let combinationList = that.$util.SplitArray(list, that.combinationList);
+ let loadend = list.length < that.limit;
+ that.loadend = loadend;
that.loading = false;
+ that.loadTitle = loadend ? '已全部加载' : '加载更多';
+ that.$set(that, 'combinationList', combinationList);
+ that.$set(that, 'page', that.page + 1);
}).catch(() => {
- that.loading = false
+ that.loading = false;
+ that.loadTitle = '加载更多';
})
},
},
diff --git a/pages/activity/goods_combination_details/index.vue b/pages/activity/goods_combination_details/index.vue
index 6946da00..1bfef03a 100644
--- a/pages/activity/goods_combination_details/index.vue
+++ b/pages/activity/goods_combination_details/index.vue
@@ -22,15 +22,15 @@
- ¥{{storeInfo.price}}¥{{storeInfo.product_price}}
+ ¥{{storeInfo.price || 0}}¥{{storeInfo.product_price || 0}}
{{storeInfo.title}}
- 类型:{{storeInfo.people}}人团
- 累计销量:{{storeInfo.total?storeInfo.total:0}}件
- 限购: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件
+ 类型:{{storeInfo.people || 0}}人团
+ 累计销量:{{storeInfo.total?storeInfo.total:0}} {{storeInfo.unit_name || ''}}
+ 限购: {{ storeInfo.quotaShow ? storeInfo.quotaShow : 0 }} {{storeInfo.unit_name || ''}}
@@ -40,14 +40,14 @@
- 已拼{{pink_ok_sum}}件|
+ 已拼{{pinkOkSum}}件|
- {{item}}
+ {{item.nickname}}拼团成功
@@ -64,7 +64,10 @@
还差{{item.count}}人成团
-
+
+
+
去拼单
@@ -72,8 +75,10 @@
-
+
+ 查看更多
+ 收起
+
@@ -104,7 +109,7 @@
用户评价({{replyCount}})
-
+
{{replyChance || 0}}%
好评率
@@ -129,7 +134,7 @@
-
+
客服
@@ -141,20 +146,20 @@
单独购买
-
+
立即开团
-
+
已售罄
-
+
-
-
+
+
+
-
+
@@ -183,37 +190,52 @@
长按图片可以保存到手机
-
-
+
+
+
+
+
+
+
+
+
-
+
-
diff --git a/pages/activity/goods_seckill/index.vue b/pages/activity/goods_seckill/index.vue
index 77f80c13..d03ef106 100644
--- a/pages/activity/goods_seckill/index.vue
+++ b/pages/activity/goods_seckill/index.vue
@@ -61,7 +61,7 @@
-
+
diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue
index b40a1930..f3dd534f 100644
--- a/pages/activity/goods_seckill_details/index.vue
+++ b/pages/activity/goods_seckill_details/index.vue
@@ -74,7 +74,7 @@
-
+
客服
@@ -106,6 +106,7 @@
+
@@ -115,7 +116,7 @@
-
+
发送给朋友
@@ -149,6 +150,10 @@
+
+
+
+
@@ -158,6 +163,7 @@
diff --git a/pages/index/components/b_combination.vue b/pages/index/components/b_combination.vue
new file mode 100644
index 00000000..f355c69f
--- /dev/null
+++ b/pages/index/components/b_combination.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+ 拼团惠享超值开团价
+
+ 超值精选
+
+
+
+
+
+
+
+
+
+ ¥{{item.price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/components/c_bargain.vue b/pages/index/components/c_bargain.vue
new file mode 100644
index 00000000..4a1549b5
--- /dev/null
+++ b/pages/index/components/c_bargain.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+ 砍价活动呼朋唤友来砍价
+
+ 品质好货
+
+
+
+
+
+
+
+
+
+ ¥{{item.minPrice}}
+ ¥{{item.price}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 46255287..4c92ab01 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -141,6 +141,9 @@
+
+
+
@@ -177,40 +180,6 @@
-
-
-
-
-
-
-
- 限时秒杀
-
-
-
- 更多
-
-
-
-
-
-
- {{item.discountNum}}折起
-
-
- {{item.title}}
-
- 抢
- ¥{{item.price}}
-
-
-
-
-
-
@@ -230,7 +199,7 @@
¥{{item.vipPrice}}
- 已售{{Number(item.sales) + Number(item.ficti) || 0}}{{item.unitName}
+ 已售{{Number(item.sales) + Number(item.ficti) || 0 }}{{item.unitName}}
@@ -242,11 +211,10 @@
-
+
-
@@ -265,10 +233,6 @@
getIndexData,
getCoupons
} from '@/api/api.js';
- import {
- getSeckillHeaderApi,
- getSeckillList
- } from '@/api/activity.js';
// #ifdef MP-WEIXIN
import {
getTemlIds
@@ -287,6 +251,9 @@
import {
getShare
} from '@/api/public.js';
+ import a_seckill from './components/a_seckill';
+ import b_combination from './components/b_combination';
+ import c_bargain from './components/c_bargain';
import goodList from '@/components/goodList';
import promotionGood from '@/components/promotionGood';
import couponWindow from '@/components/couponWindow';
@@ -328,6 +295,9 @@
promotionGood,
couponWindow,
countDown,
+ a_seckill,
+ b_combination,
+ c_bargain,
recommend,
// #ifdef MP
authorize
@@ -380,7 +350,6 @@
}],
ProductNavindex: 0,
marTop: 0,
- datatime: 0,
childID: 0,
loadend: false,
loading: false,
@@ -412,6 +381,7 @@
iSshowH: false,
configApi: {} ,//分享类容配置
spikeList: [], // 秒杀
+ point: ''
}
},
onLoad() {
@@ -424,7 +394,6 @@
} catch {}
}
});
- this.getSeckillIndexTime();
let self = this
// #ifdef MP
// 获取小程序头部高度
@@ -453,30 +422,6 @@
})
},
methods: {
- getSeckillIndexTime() {
- let limit = this.$config.LIMIT;
- let params = {
- page: 1,
- limit: limit,
- type: 'index'
- }
- getSeckillHeaderApi().then(res => {
- this.datatime = res.data.seckillTime[res.data.seckillTimeIndex].timeSwap
- let id = res.data.seckillTime[res.data.seckillTimeIndex].id
- getSeckillList(id, params).then(({
- data
- }) => {
- console.log(data)
- data.list.forEach((item) => {
- let num = 0
- if (item.price > 0 && item.otPrice > 0) num = ((parseFloat(item.price) / parseFloat(item.otPrice)).toFixed(
- 2))
- item.discountNum = this.$util.$h.Mul(num, 10)
- })
- this.spikeList = data
- })
- })
- },
// #ifdef MP
getTemlIds() {
for (var i in arrTemp) {
@@ -888,16 +833,6 @@
}