フィンガープレストリガーイベント。
/ **
*指のタッチイベント
* /
touchStart:関数(E){
VAR
=
この
;
that.setData({
touchStart:e.timeStamp
})
}、
touchEnd:関数(E){
VAR
=
この
;
that.setData({
touchEnd:e.timeStamp
})
}、
pressTap:関数(){
VAR
=
この
;
VaRの
touchTime = that.data.touchEnd - that.data.touchStart。
IF
(touchTime>
3000
){
//カスタム長の長い時間、ミリ秒
場合
(that.data.isManagerは==
真
){
もし
(== that.data.status
1
){
wx.showModal({
タイトル:「プロンプト」、
content:
'你将切换到预览模式!',
success:
function (res) {
if (res.confirm) {
that.setData({ status:
0 })
that.getHouseList(
0);
}
}
})
}
else{
wx.showModal({
title:
'提示',
content:
'你将切换到正常模式!',
success:
function (res) {
if (res.confirm) {
that.setData({ status:
1 })
that.getHouseList(
1);
}
}
})
}
}
}
},