Files
cmanager/src/event.js

36 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-02-02 15:04:47 +08:00
import {MessageBox} from 'element-ui'
const eventTable = {
trialCheck() {
const c = this.$createElement
const state = this.$store.state
2024-07-17 11:59:12 +08:00
return new Promise(function (resolve, reject) {
2024-02-02 15:04:47 +08:00
if (state.config.trial === 1) {
reject && reject()
const vNode = c(
2024-07-17 11:59:12 +08:00
'div', {style: 'line-height: 36px;padding: 0 39px;font-size:24px'},
[
c('p', {style: 'font-weight: 600;'}, '尊敬的客户:'), c('br'),
c('div', {style: 'text-indent:48px'},
2025-04-01 15:14:55 +08:00
'您好!欢迎您使用宜昌市智慧就业服务平台!系统将根据贵公司的合同约定收到保证金后开通使用,我们郑重承诺:您的保证金将用于更好的保障您在宜昌市智慧就业服务平台中的任务管理、商保管理的权益,非常感谢您对我们的信赖!')
2024-07-17 11:59:12 +08:00
])
2024-02-02 15:04:47 +08:00
MessageBox.alert(vNode, {
customClass: 'trialCheckBox',
dangerouslyUseHTMLString: true,
showClose: false
})
} else {
resolve && resolve()
}
})
}
};
export default {
install(Vue) {
2024-07-17 11:59:12 +08:00
Vue.prototype.$jlEvent = function (eventName) {
2024-02-02 15:04:47 +08:00
return eventTable[eventName].call(this)
}
}
};