Browse Source

在线客服页面添加分享功能

master
shaojing 2 years ago
parent
commit
db16692a7a
  1. 2
      app.js
  2. 13
      pages/user/service/index.js

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest142? true : false; data.isTest = data.isTest143? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

13
pages/user/service/index.js

@ -103,5 +103,18 @@ Page({
*/ */
onReachBottom: function () { onReachBottom: function () {
// this.getList() // this.getList()
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
onShareTimeline: function() {
return {
title: '君到苏州-在线客服',
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/zwt/logo.png'
}
} }
}) })
Loading…
Cancel
Save