2018-10-03 13:05:05 +08:00

101 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// pages/user/xinxi/xinxi.js
var app = getApp();
import {
DBPost
} from '../../../db/DBpost.js';
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
var dbPost = new DBPost();
this.setData({
xingming: dbPost.getxingmingData(),
xuehao: dbPost.getxuehaoData(),
zhuanye: dbPost.getzhuanyeData(),
xueyuan: dbPost.getxueyuanData(),
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
},
bangDingError() {
wx.showModal({
title: '联系客服',
content: 'QQ1144131090',
confirmText: '复制',
confirmColor: '#003b97',
success: function(res) {
if (res.confirm) {
wx.setClipboardData({
data: '1144131090',
success: function(res) {
wx.showToast({
title: '复制成功',
icon: 'success'
})
}
})
console.log('用户点击确定')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
}
})