1234567891011121314151617181920212223242526272829303132333435363738 |
- const getThree = require("/utils/getThree/zfb_getThree")
- import { protocolEnum, protocolNavigateTo } from '/utils/common/protocol'
- Component({
- data: {
- name: null,
- show: false,
- protocolEnum: protocolEnum
- },
- props: {},
- methods: {
- open(name) {
- this.setData({
- show: true
- })
- if(name) {
- this.setData({
- name
- })
- }
- },
- onClose() {
- this.setData({ show: false })
- },
- gotoInfo() {
- // this.onClose()
- },
- protocol(e) {
- protocolNavigateTo(e.currentTarget.dataset.type)
- },
- getAuth() {
- this.onClose()
- getThree((authResult) => {
- this.triggerEvent('authResult', authResult)
- })
- }
- }
- })
|