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.

45 lines
1.1 KiB

var app = getApp();
import {contact} from "../../config";
Page({
/**
* 页面的初始数据
*/
data: {
weixin: contact.wechat,
email: contact.email,
qq: contact.qq,
phone:contact.phone,
banner: "/images/contact.jpg"
},
onLoad() {
},
//复制
copy(e) {
wx.setClipboardData({
data: e.currentTarget.dataset.copy,
success: res => {
wx.showToast({
title: '复制' + e.currentTarget.dataset.name+'成功',
icon: 'success',
duration: 1000,
})
}
})
},
//电话拨打
phone(e) {
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.phone
})
},
//预览图片
preview(e) {
wx.previewImage({
urls: e.currentTarget.dataset.link.split(",")
});
},
})