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.
57 lines
1.1 KiB
57 lines
1.1 KiB
import { wxPromiseWrapper } from 'XrFrame/core/utils' |
|
|
|
const app = getApp<IAppOption>() |
|
|
|
Component({ |
|
properties: { |
|
show: { |
|
type: Boolean, |
|
value: false, |
|
}, |
|
type: String, |
|
params: { |
|
type: Object, |
|
value() { |
|
return {} |
|
}, |
|
}, |
|
}, |
|
|
|
data: { |
|
popup1Check1: false, |
|
|
|
imageUrl: app.globalData.imageUrl, |
|
Timestamp: app.globalData.Timestamp, |
|
}, |
|
methods: { |
|
handleOk() { |
|
const { type } = this.data |
|
if (type === 'argument' && !this.data.popup1Check1) { |
|
wx.showToast({ |
|
title: '请同意隐私政策', |
|
icon: 'none', |
|
}) |
|
return |
|
} |
|
this.triggerEvent('ok') |
|
}, |
|
handleCancel() { |
|
this.triggerEvent('cancel') |
|
}, |
|
routerTo(e: any) { |
|
const { url } = e.currentTarget.dataset |
|
wx.navigateTo({ |
|
url, |
|
}) |
|
}, |
|
handlePopup1Check1() { |
|
if (this.data.popup1Check1) { |
|
app.mpBehavior({ PageName: 'BTN_PATIENTPRIVACY' }) |
|
} |
|
}, |
|
handleSelectStatus(e) { |
|
const { status } = e.currentTarget.dataset |
|
this.triggerEvent('ok', { type: 'selectStatusComplete', status }) |
|
}, |
|
}, |
|
})
|
|
|