Commit 1b652dc3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent da5fed19
...@@ -65,8 +65,6 @@ ...@@ -65,8 +65,6 @@
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
if (newVal) { if (newVal) {
this.handleShow(); this.handleShow();
} else {
this.$refs.kefuPop.close('bottom');
} }
}, },
immediate: true immediate: true
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
// #endif // #endif
{ {
"path": "pages/home", "path": "pages/home",
"style": { "style": {
"navigationBarTitleText": "寻觅短剧",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "#000000" "navigationBarTextStyle": "black"
} }
}, { }, {
"path": "pages/brower/brower", "path": "pages/brower/brower",
......
...@@ -137,12 +137,12 @@ ...@@ -137,12 +137,12 @@
}, },
methods: { methods: {
async onShareAppMessage(option) { async onShareAppMessage(option) {
const title = '寻觅短剧'; const title = this.share.title;
let that = this let that = this
return { return {
title, // 这是要转发的小程序标题 title, // 这是要转发的小程序标题
desc: this.share.title, desc: '',
path: this.share.path + getApp().globalData.userId, path: this.share.path + getApp().globalData.userId,
imageUrl: this.share.imageUrl, imageUrl: this.share.imageUrl,
templateId: "920405b4ghj2fla2gc", templateId: "920405b4ghj2fla2gc",
......
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
success: ({ success: ({
data data
}) => { }) => {
message.notify("恭喜您,10分钟内可免费解锁两集!") // message.notify("领取成功")
} }
}); });
}, },
......
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
}, },
methods: { methods: {
async onShareAppMessage(option) { async onShareAppMessage(option) {
const title = '寻觅短剧'; const title = this.share.title;
return { return {
title, // 这是要转发的小程序标题 title, // 这是要转发的小程序标题
desc: this.share.title, desc: '',
path: this.share.path + getApp().globalData.userId, path: this.share.path + getApp().globalData.userId,
imageUrl: this.share.imageUrl, imageUrl: this.share.imageUrl,
templateId: "920405b4ghj2fla2gc", templateId: "920405b4ghj2fla2gc",
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
}, },
fail() { fail() {
message.notify('分享失败'); // message.notify('分享失败');
}, },
}; };
}, },
......
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