diff --git a/App.vue b/App.vue
index fec5a8b..1e230fb 100644
--- a/App.vue
+++ b/App.vue
@@ -15,9 +15,13 @@
import {
bindSuperior
} from '@/api/user'
- import {INVITE_CODE} from '@/config/cachekey'
+ import {
+ INVITE_CODE
+ } from '@/config/cachekey'
import Cache from '@/utils/cache'
- import { getWxCode } from "@/utils/login";
+ import {
+ getWxCode
+ } from "@/utils/login";
export default {
onLaunch: function(options) {
//#ifdef MP-WEIXIN
@@ -40,14 +44,14 @@
} = await getConfig()
if (code == 1) {
this.setConfig(data)
- if(data.is_open_nearby) {
+ if (data.is_open_nearby) {
this.initLocationFunc()
}
this.wxShare()
}
},
async bindCode(options, code) {
- if(!options.query) return
+ if (!options.query) return
if (options.query.path == 'goods_details') return
let invite_code = options.query.invite_code || strToParams(decodeURIComponent(options.query.scene))
.invite_code
@@ -60,7 +64,7 @@
code: code || await getWxCode(),
invite_code
})
-
+
if (code == -1) {
Cache.set(INVITE_CODE, invite_code)
}
@@ -69,17 +73,19 @@
//#ifdef MP-WEIXIN
checkMpUpdate() {
const updateManager = wx.getUpdateManager()
- updateManager.onUpdateReady(function () {
- wx.showModal({
- title: '更新提示',
- content: '新版本已准备好,是否重启?',
- success: function (res) {
- if (res.confirm) {
- updateManager.applyUpdate()
- }
- }
- })
- })
+ if (updateManager) {
+ updateManager.onUpdateReady(function() {
+ wx.showModal({
+ title: '更新提示',
+ content: '新版本已准备好,是否重启?',
+ success: function(res) {
+ if (res.confirm) {
+ updateManager.applyUpdate()
+ }
+ }
+ })
+ })
+ }
}
//#endif
}
@@ -89,4 +95,4 @@
@import 'styles/common.scss';
@import "components/uview-ui/index.scss";
@import url('@/plugin/emoji-awesome/css/apple.css');
-
+
\ No newline at end of file
diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue
index e8befc8..3c429bb 100644
--- a/bundle/pages/user_spread/user_spread.vue
+++ b/bundle/pages/user_spread/user_spread.vue
@@ -254,28 +254,28 @@
url="/bundle/pages/user_withdraw/user_withdraw">立即提现
-
+
-
+
+
-
+
累计获得收益
diff --git a/bundle_b/pages/local_shop/local_shop_buy.vue b/bundle_b/pages/local_shop/local_shop_buy.vue
index ec661e9..c472f8e 100644
--- a/bundle_b/pages/local_shop/local_shop_buy.vue
+++ b/bundle_b/pages/local_shop/local_shop_buy.vue
@@ -204,14 +204,6 @@
})
}
},
-
- onShareAppMessage() {
- return {
- title: this.data.title,
- path: `/bundle_b/pages/local_shop/local_shop_buy?id=${this.id}&lstore_id=${this.lstore_id}`,
- imageUrl: this.data.pic[0].url
- }
- },
preview(i) {
let f = this.file.map((item) => {
@@ -222,8 +214,30 @@
current: i,
urls: f
});
+ },
+
+ share() {
+ const {
+ data,
+ id,
+ lstore_id
+ } = this
+
+ return {
+ title: data.title,
+ path: `/bundle_b/pages/local_shop/local_shop_buy?id=${id}&lstore_id=${lstore_id}`,
+ imageUrl: data.pic[0].url
+ }
}
- }
+ },
+
+ async onShareAppMessage() {
+ return this.share()
+ },
+
+ onShareTimeline() {
+ return this.share()
+ },
}
diff --git a/bundle_b/pages/subsidy_shop/components/subsidy-item.vue b/bundle_b/pages/subsidy_shop/components/subsidy-item.vue
index 347f551..69e46db 100644
--- a/bundle_b/pages/subsidy_shop/components/subsidy-item.vue
+++ b/bundle_b/pages/subsidy_shop/components/subsidy-item.vue
@@ -3,7 +3,7 @@
-
@@ -50,10 +49,6 @@
background-image: url(#{$aliOSS-path}uniapp/index_new_bg.png);
}
- &.hot {
- background-image: url(#{$aliOSS-path}uniapp/index_hot_bg.png);
- }
-
.active-hd {
padding: 24rpx 20rpx;
}
diff --git a/components/ad-swipers/ad-swipers.vue b/components/ad-swipers/ad-swipers.vue
index 3ff3849..72cd118 100644
--- a/components/ad-swipers/ad-swipers.vue
+++ b/components/ad-swipers/ad-swipers.vue
@@ -4,7 +4,7 @@
-
+
@@ -12,13 +12,13 @@
-
+
-
-
+
+
@@ -39,7 +39,7 @@
data() {
return {
lists: [],
- currentSwiper: 0
+ currentSwiper: 0,
};
},
props: {
diff --git a/components/after-sales-list/after-sales-list.vue b/components/after-sales-list/after-sales-list.vue
index 985c087..06e1c33 100644
--- a/components/after-sales-list/after-sales-list.vue
+++ b/components/after-sales-list/after-sales-list.vue
@@ -2,11 +2,11 @@
-
+
-
+
@@ -42,12 +42,12 @@
-
+
-
+
@@ -95,12 +95,12 @@
-
+
-
+
@@ -138,17 +138,17 @@
diff --git a/components/cate-one/cate-one.vue b/components/cate-one/cate-one.vue
index e7c02df..7a2b3a3 100644
--- a/components/cate-one/cate-one.vue
+++ b/components/cate-one/cate-one.vue
@@ -1,8 +1,8 @@
-
-
+
+
diff --git a/components/cate-two/cate-two.vue b/components/cate-two/cate-two.vue
index 4691821..d407e12 100644
--- a/components/cate-two/cate-two.vue
+++ b/components/cate-two/cate-two.vue
@@ -2,10 +2,10 @@
-
-
+
+
{{ item.name }}
-
+
@@ -17,7 +17,7 @@
-
+
-
-
diff --git a/components/goods-column/goods-column.vue b/components/goods-column/goods-column.vue
index c371c93..850ef79 100644
--- a/components/goods-column/goods-column.vue
+++ b/components/goods-column/goods-column.vue
@@ -12,8 +12,6 @@
{{item.name}}
-
@@ -67,17 +65,17 @@
methods: {
async getData() {
await this.getGoodsColumnFun()
- this.mescroll.resetUpScroll();
+ this.mescroll.resetUpScroll()
},
changeActive(index) {
this.active = index
- this.$refs.uWaterfall.clear();
- this.mescroll.resetUpScroll();
+ this.$refs.uWaterfall.clear()
+ this.mescroll.resetUpScroll()
},
upCallback(page) {
const {columnList, active} = this
- const pageNum = page.num;
- const pageSize = page.size;
+ const pageNum = page.num
+ const pageSize = page.size
if(!columnList.length) return
const columnId = columnList[active].id
getGoodsListColumn({
@@ -89,13 +87,13 @@
}).then(({
data
}) => {
- this.price_type = data.set_price_type;
- let curPageData = data.lists;
- let curPageLen = curPageData.length;
- let hasNext = !!data.more;
- if (page.num == 1) this.goodsList = [];
- this.goodsList = this.goodsList.concat(curPageData);
- this.mescroll.endSuccess(curPageLen, hasNext);
+ this.price_type = data.set_price_type
+ let curPageData = data.lists
+ let curPageLen = curPageData.length
+ let hasNext = !!data.more
+ if (page.num == 1) this.goodsList = []
+ this.goodsList = this.goodsList.concat(curPageData)
+ this.mescroll.endSuccess(curPageLen, hasNext)
})
},
async getGoodsColumnFun() {
@@ -113,16 +111,20 @@