Commit 2e64e045 authored by Facius's avatar Facius

feat: 首页分享页面替换

parent 758c4187
Pipeline #2964 canceled with stages
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
list: [], list: [],
triggered: true, triggered: true,
_freshing: false, _freshing: false,
systemInfo: {} systemInfo: {},
} }
}, },
computed: { computed: {
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
} }
}, },
shareImage() { shareImage() {
return this.baseUrl + 'share_index.png' return this.baseUrl + 'huiyuanfenxiangtu-red@3x.png'
}, },
dingweidizhiImage() { dingweidizhiImage() {
return this.baseUrl + 'dingweidizhi@3x.png' return this.baseUrl + 'dingweidizhi@3x.png'
...@@ -221,7 +221,10 @@ export default { ...@@ -221,7 +221,10 @@ export default {
] ]
}, },
paddingTop() { paddingTop() {
var top = (this.systemInfo && this.systemInfo.safeAreaInsets.top) || 20 var top =
(this.systemInfo.safeAreaInsets &&
this.systemInfo.safeAreaInsets.top) ||
20
// #ifdef APP-PLUS || H5 // #ifdef APP-PLUS || H5
return 44 + top return 44 + top
// #endif // #endif
...@@ -392,15 +395,15 @@ export default { ...@@ -392,15 +395,15 @@ export default {
if (checkVip()) { if (checkVip()) {
return true return true
} else { } else {
if (userInfo.vip.code == 'TEMPORARY') { if (this.userInfo.vip.code == 'NO') {
this.visible = true
} else {
this.$refs.uToast.show({ this.$refs.uToast.show({
duration: 1500, duration: 1500,
title: '请先开通会员', title: '请先开通会员',
type: 'warning', type: 'warning',
callback: () => {}, callback: () => {},
}) })
} else {
this.visible = true
} }
return false return false
} }
...@@ -421,12 +424,16 @@ export default { ...@@ -421,12 +424,16 @@ export default {
}) })
}, },
handleClickShare() { handleClickShare() {
experienceVip() console.log('-----handleClickShare----')
.then((res) => {}) if (this.userInfo.vip.code == 'NO') {
.catch((res) => {}) experienceVip()
.then((res) => {})
.catch((res) => {})
}
}, },
// 朋友圈 // 朋友圈
onShareTimeline(res) { onShareTimeline(res) {
this.handleClickShare()
return { return {
title: '扳手记账', title: '扳手记账',
path: `/pages/index/index?shareUserId=${this.userInfo.id}`, path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
...@@ -435,6 +442,7 @@ export default { ...@@ -435,6 +442,7 @@ export default {
}, },
// 好友 // 好友
onShareAppMessage(res) { onShareAppMessage(res) {
this.handleClickShare()
return { return {
title: '扳手记账', title: '扳手记账',
path: `/pages/index/index?shareUserId=${this.userInfo.id}`, path: `/pages/index/index?shareUserId=${this.userInfo.id}`,
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
:custom-style="customAreaStyle" :custom-style="customAreaStyle"
:placeholder-style="placeholderStyle" :placeholder-style="placeholderStyle"
v-model="form.remark" v-model="form.remark"
placeholder="填写维修备注信息" placeholder="举例:修一台格力空调,压缩机800元,工时200元,合计1000元,质保1年。"
/> />
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment