diff --git a/components/CountDown.vue b/components/CountDown.vue index 33093e0..2a235db 100644 --- a/components/CountDown.vue +++ b/components/CountDown.vue @@ -12,93 +12,109 @@ diff --git a/pages/Loading/index.vue b/pages/Loading/index.vue index 91060de..207912f 100644 --- a/pages/Loading/index.vue +++ b/pages/Loading/index.vue @@ -1,7 +1,7 @@ @@ -61,11 +61,11 @@ export default { console.log('loading home') this.changeAuthorization(false) let redirect = cookie.get('redirect').replace(/\ /g, '') + cookie.remove('redirect') if (redirect && redirect.indexOf('/pages') != -1) { this.$yrouter.replace({ path: '/pages' + redirect.split('/pages')[1], }) - cookie.remove('redirect') } else { this.$yrouter.switchTab({ path: '/pages/home/index', diff --git a/pages/activity/BargainRecord/index.vue b/pages/activity/BargainRecord/index.vue index c0b6bc8..4991a0b 100644 --- a/pages/activity/BargainRecord/index.vue +++ b/pages/activity/BargainRecord/index.vue @@ -14,7 +14,7 @@ :hourText="' 时 '" :minuteText="' 分 '" :secondText="' 秒'" - :datatime="item.datatime/1000" + :datatime="item.datatime" > 已砍至 diff --git a/pages/activity/DargainDetails/index.vue b/pages/activity/DargainDetails/index.vue index f55180f..c1930d0 100644 --- a/pages/activity/DargainDetails/index.vue +++ b/pages/activity/DargainDetails/index.vue @@ -7,9 +7,9 @@ {{ bargainShare.lookCount }}人查看 丨 {{ bargainShare.shareCount }}人分享 丨 {{ bargainShare.userCount }}人参与 --> - +
- + {{ bargainUserInfo.nickname }} 邀请您帮忙砍价 @@ -18,7 +18,7 @@ -
+
@@ -92,14 +92,14 @@ - + 砍价帮 - + - + @@ -116,18 +116,18 @@ - + 商品详情 - + - + 活动规则 - + @@ -163,7 +163,7 @@ export default { CountDown, }, props: {}, - data: function() { + data: function () { return { bargainId: 0, //砍价编号 bargainSumCount: 0, //砍价成功人数 @@ -190,12 +190,12 @@ export default { } }, computed: mapGetters(['userInfo', 'isLogin']), - mounted: function() { + mounted: function () { this.mountedStart() }, methods: { // 开始处理砍价逻辑 - mountedStart: function() { + mountedStart: function () { var that = this let url = handleQrCode() // bargainId 砍价商品id @@ -213,8 +213,6 @@ export default { // url未携带用户uid,填上登录用户uid,跳转 that.bargainUid = that.userInfo.uid } - console.log(this) - // 获取商品详情 that.getBargainDetail() // 砍价数据统计 @@ -236,7 +234,7 @@ export default { this.getBargainHelpCount() }, // 查看商品 - openAlone: function() { + openAlone: function () { this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { @@ -245,7 +243,7 @@ export default { }) }, // 砍价完成,去支付 - goPay: function() { + goPay: function () { var data = {} var that = this data.productId = that.goodsDetail.productId @@ -271,7 +269,7 @@ export default { }) }, // 生成海报 - goPoster: function() { + goPoster: function () { var that = this that.getBargainShare(that.bargainId) this.$yrouter.push({ @@ -283,7 +281,7 @@ export default { }) }, // 跳转砍价商品列表 - goList: function() { + goList: function () { this.$yrouter.push({ path: '/pages/activity/GoodsBargain/index', }) @@ -291,7 +289,7 @@ export default { //砍价分享 //bargainId 0 获取 查看人数 分享人数 参与人数 //bargainId 砍价产品编号 添加分享次数 获取 查看人数 分享人数 参与人数 - getBargainShare: function(bargainId) { + getBargainShare: function (bargainId) { var that = this getBargainShare({ bargainId: bargainId, @@ -300,7 +298,7 @@ export default { }) }, // 获取产品详情 - getBargainDetail: function() { + getBargainDetail: function () { var that = this uni.showLoading({ title: '加载中', @@ -310,9 +308,9 @@ export default { .then(res => { uni.hideLoading() that.goodsDetail = res.data.bargain + console.log(that.goodsDetail) that.goodsDetail.description = that.goodsDetail.description.replace(/\ { @@ -325,7 +323,7 @@ export default { }) }, // 开启砍价-发起人与当前用户非同一人 - getBargainStart: function() { + getBargainStart: function () { var that = this getBargainStart({ bargainId: that.bargainId, @@ -344,7 +342,7 @@ export default { }) }, // 参与砍价 - getBargainHelp: function() { + getBargainHelp: function () { var that = this if (this.bargainHelpCount.price === 0 && that.bargainUid !== that.userInfo.uid) { return uni.showToast({ @@ -382,7 +380,7 @@ export default { }) }, //获取砍掉的金额 - getBargainHelpPrice: function() { + getBargainHelpPrice: function () { var that = this getBargainHelpPrice({ bargainId: that.bargainId, @@ -409,7 +407,7 @@ export default { }) }, // 砍价帮助列表 - getBargainHelpList: function() { + getBargainHelpList: function () { var that = this if (that.helpListStatus === true) return getBargainHelpList({ @@ -440,7 +438,7 @@ export default { }) }, // 砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格 - getBargainHelpCount: function() { + getBargainHelpCount: function () { getBargainHelpCount({ bargainId: this.bargainId, bargainUserUid: this.bargainUid, @@ -515,7 +513,7 @@ export default { }, // 获取开启砍价用户信息 // 参与砍价,为同一人发起砍价后 - getBargainStartUser: function() { + getBargainStartUser: function () { var that = this getBargainStartUser({ bargainId: that.bargainId, @@ -534,11 +532,11 @@ export default { }) }, // 关闭弹窗 - close: function() { + close: function () { this.active = false }, // 设置微信分享 - onShareAppMessage: function() { + onShareAppMessage: function () { return { title: this.storeInfo.title, imageUrl: this.storeInfo.image, diff --git a/pages/activity/GroupDetails/index.vue b/pages/activity/GroupDetails/index.vue index 35d473e..5cfd5c1 100644 --- a/pages/activity/GroupDetails/index.vue +++ b/pages/activity/GroupDetails/index.vue @@ -72,7 +72,7 @@ 人成团 - + 去拼单 diff --git a/pages/activity/GroupRule/index.vue b/pages/activity/GroupRule/index.vue index a87d004..dc91a46 100644 --- a/pages/activity/GroupRule/index.vue +++ b/pages/activity/GroupRule/index.vue @@ -1,6 +1,6 @@