You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
// pages/customer-service/index.js
|
|
|
|
|
Page({
|
|
|
|
|
data: {
|
|
|
|
|
serviceList: []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onLoad: function (options) {
|
|
|
|
|
this.loadServiceInfo();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loadServiceInfo: function () {
|
|
|
|
|
// 模拟加载客服信息
|
|
|
|
|
const serviceList = [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
type: 'phone',
|
|
|
|
|
name: '电话客服',
|
|
|
|
|
desc: '周一至周日 9:00-18:00',
|
|
|
|
|
number: '400-123-4567'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
type: 'online',
|
|
|
|
|
name: '在线客服',
|
|
|
|
|
desc: '24小时在线为您服务'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
type: 'email',
|
|
|
|
|
name: '邮箱客服',
|
|
|
|
|
desc: 'service@example.com'
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
serviceList: serviceList
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
startOnlineChat: function () {
|
|
|
|
|
// 跳转到在线聊天页面
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: '在线客服功能开发中',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
sendEmail: function () {
|
|
|
|
|
// 打开邮件客户端
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: '邮箱客服功能开发中',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|