eoss-ui 0.6.98 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/calogin.js +233 -233
- package/lib/eoss-ui.common.js +813 -783
- package/lib/flow-list.js +81 -81
- package/lib/flow.js +304 -292
- package/lib/index.js +1 -1
- package/lib/main.js +176 -158
- package/lib/qr-code.js +13 -13
- package/package.json +160 -160
- package/packages/button/index.js +5 -5
- package/packages/button/src/main.vue +418 -418
- package/packages/button-group/index.js +5 -5
- package/packages/button-group/src/main.vue +298 -298
- package/packages/calendar/index.js +5 -5
- package/packages/calogin/index.js +5 -5
- package/packages/calogin/src/main.vue +412 -412
- package/packages/calogin/src/plugin.js +915 -915
- package/packages/card/index.js +5 -5
- package/packages/card/src/main.vue +156 -156
- package/packages/cascader/index.js +5 -5
- package/packages/cascader/src/main.vue +168 -168
- package/packages/checkbox-group/index.js +5 -5
- package/packages/checkbox-group/src/main.vue +333 -333
- package/packages/clients/index.js +5 -5
- package/packages/clients/src/main.vue +151 -151
- package/packages/data-table/index.js +5 -5
- package/packages/data-table/src/children.vue +39 -39
- package/packages/data-table/src/column.vue +988 -988
- package/packages/data-table/src/main.vue +1831 -1831
- package/packages/data-table/src/sizer.vue +195 -195
- package/packages/data-table-form/index.js +5 -5
- package/packages/data-table-form/src/checkbox.vue +101 -101
- package/packages/data-table-form/src/colgroup.vue +17 -17
- package/packages/data-table-form/src/main.vue +181 -181
- package/packages/data-table-form/src/radio.vue +65 -65
- package/packages/data-table-form/src/table.vue +233 -233
- package/packages/data-table-form/src/tbody.vue +336 -336
- package/packages/data-table-form/src/thead.vue +68 -68
- package/packages/date-picker/index.js +5 -5
- package/packages/date-picker/src/main.vue +236 -236
- package/packages/dialog/index.js +5 -5
- package/packages/enable-drag/index.js +5 -5
- package/packages/enterprise/index.js +5 -5
- package/packages/enterprise/src/main.vue +66 -66
- package/packages/error-page/index.js +5 -5
- package/packages/error-page/src/main.vue +44 -44
- package/packages/flow/index.js +5 -5
- package/packages/flow/src/component/Circulate.vue +405 -403
- package/packages/flow/src/component/CommonOpinions.vue +364 -364
- package/packages/flow/src/component/CustomPreset.vue +322 -322
- package/packages/flow/src/component/FileList.vue +99 -99
- package/packages/flow/src/component/Preset.vue +255 -255
- package/packages/flow/src/component/SendMsg.vue +242 -242
- package/packages/flow/src/component/TimeLimit.vue +190 -190
- package/packages/flow/src/component/taskUnionExamine.vue +641 -641
- package/packages/flow/src/form.vue +121 -121
- package/packages/flow/src/freeStartFlow.vue +2844 -2844
- package/packages/flow/src/main.vue +3742 -3726
- package/packages/flow/src/processForm.vue +1287 -1287
- package/packages/flow/src/processReject.vue +308 -308
- package/packages/flow/src/reset.vue +941 -941
- package/packages/flow/src/startTaskRead.vue +690 -690
- package/packages/flow/src/supervise.vue +159 -159
- package/packages/flow/src/table.vue +58 -58
- package/packages/flow-group/index.js +5 -5
- package/packages/flow-group/src/main.vue +692 -692
- package/packages/flow-list/index.js +5 -5
- package/packages/flow-list/src/main.vue +1770 -1770
- package/packages/form/index.js +5 -5
- package/packages/form/src/main.vue +3846 -3846
- package/packages/form/src/table.vue +1508 -1508
- package/packages/handle-user/index.js +5 -5
- package/packages/handle-user/src/main.vue +137 -137
- package/packages/handler/index.js +5 -5
- package/packages/handler/src/main.vue +493 -493
- package/packages/icon/index.js +5 -5
- package/packages/icon/src/main.vue +101 -101
- package/packages/icons/index.js +5 -5
- package/packages/icons/src/main.vue +81 -81
- package/packages/input/index.js +5 -5
- package/packages/input/src/main.vue +356 -356
- package/packages/input-number/index.js +5 -5
- package/packages/input-number/src/main.vue +106 -106
- package/packages/label/index.js +5 -5
- package/packages/label/src/main.vue +457 -457
- package/packages/layout/index.js +5 -5
- package/packages/layout/src/item.vue +152 -152
- package/packages/layout/src/main.vue +31 -31
- package/packages/login/index.js +5 -5
- package/packages/login/src/main.vue +1993 -1993
- package/packages/login/src/resetPassword.vue +562 -562
- package/packages/main/index.js +5 -5
- package/packages/main/src/default/message.vue +249 -249
- package/packages/main/src/default/notice.vue +157 -157
- package/packages/main/src/default/userinfo.vue +502 -502
- package/packages/main/src/public/online.vue +89 -89
- package/packages/main/src/public/search.vue +464 -464
- package/packages/main/src/public/settings.vue +221 -221
- package/packages/main/src/simplicity/apps.vue +388 -388
- package/packages/main/src/simplicity/avatar.vue +82 -82
- package/packages/main/src/simplicity/handler.vue +259 -259
- package/packages/main/src/simplicity/index.vue +2125 -2125
- package/packages/main/src/simplicity/lists.vue +84 -84
- package/packages/main/src/simplicity/menu-list.vue +135 -135
- package/packages/main/src/simplicity/message.vue +259 -259
- package/packages/main/src/simplicity/notice.vue +190 -190
- package/packages/main/src/simplicity/router-page.vue +45 -45
- package/packages/main/src/simplicity/sub-menu.vue +264 -264
- package/packages/main/src/simplicity/user.vue +259 -258
- package/packages/main/src/simplicity/userinfo.vue +397 -356
- package/packages/menu/index.js +5 -5
- package/packages/menu/src/main.vue +584 -584
- package/packages/nav/index.js +5 -5
- package/packages/nav/src/main.vue +351 -351
- package/packages/notify/index.js +5 -5
- package/packages/notify/src/main.vue +538 -538
- package/packages/page/index.js +5 -5
- package/packages/page/src/main.vue +167 -167
- package/packages/pagination/index.js +5 -5
- package/packages/pagination/src/main.vue +96 -96
- package/packages/player/index.js +5 -5
- package/packages/player/src/main.vue +194 -194
- package/packages/qr-code/index.js +5 -5
- package/packages/qr-code/src/main.vue +170 -170
- package/packages/radio-group/index.js +6 -6
- package/packages/radio-group/src/main.vue +319 -319
- package/packages/retrial-auth/index.js +5 -5
- package/packages/retrial-auth/src/main.vue +280 -280
- package/packages/select/index.js +5 -5
- package/packages/select/src/main.vue +781 -781
- package/packages/select-ganged/index.js +5 -5
- package/packages/select-ganged/src/main.vue +724 -724
- package/packages/selector/index.js +5 -5
- package/packages/selector/src/main.vue +761 -761
- package/packages/selector-panel/index.js +5 -5
- package/packages/selector-panel/src/main.vue +1027 -1027
- package/packages/selector-panel/src/selection.vue +170 -170
- package/packages/selector-panel/src/tree.vue +129 -129
- package/packages/sizer/index.js +5 -5
- package/packages/sizer/src/main.vue +254 -254
- package/packages/steps/index.js +5 -5
- package/packages/steps/src/main.vue +181 -181
- package/packages/switch/index.js +5 -5
- package/packages/switch/src/main.vue +154 -154
- package/packages/table-form/index.js +5 -5
- package/packages/tabs/index.js +5 -5
- package/packages/tabs/src/main.vue +788 -788
- package/packages/tabs-panel/index.js +5 -5
- package/packages/tabs-panel/src/main.vue +29 -29
- package/packages/theme-chalk/src/base.scss +261 -261
- package/packages/theme-chalk/src/button-group.scss +176 -176
- package/packages/theme-chalk/src/button.scss +24 -24
- package/packages/theme-chalk/src/calendar.scss +113 -113
- package/packages/theme-chalk/src/card.scss +99 -99
- package/packages/theme-chalk/src/checkbox-group.scss +8 -8
- package/packages/theme-chalk/src/clients.scss +87 -87
- package/packages/theme-chalk/src/data-table-form.scss +67 -67
- package/packages/theme-chalk/src/data-table.scss +293 -293
- package/packages/theme-chalk/src/date-picker.scss +7 -7
- package/packages/theme-chalk/src/dialog.scss +77 -77
- package/packages/theme-chalk/src/enable-drag.scss +181 -181
- package/packages/theme-chalk/src/enterprise.scss +5 -5
- package/packages/theme-chalk/src/error-page.scss +18 -18
- package/packages/theme-chalk/src/flow-group.scss +110 -110
- package/packages/theme-chalk/src/flow-list.scss +39 -39
- package/packages/theme-chalk/src/flow.scss +348 -348
- package/packages/theme-chalk/src/form.scss +499 -499
- package/packages/theme-chalk/src/handle-user.scss +40 -40
- package/packages/theme-chalk/src/handler.scss +143 -143
- package/packages/theme-chalk/src/icon.scss +1817 -1817
- package/packages/theme-chalk/src/icons.scss +99 -99
- package/packages/theme-chalk/src/input.scss +9 -9
- package/packages/theme-chalk/src/label.scss +24 -24
- package/packages/theme-chalk/src/layout.scss +46 -46
- package/packages/theme-chalk/src/login.scss +984 -984
- package/packages/theme-chalk/src/main.scss +663 -663
- package/packages/theme-chalk/src/menu.scss +222 -222
- package/packages/theme-chalk/src/mixins/color.scss +117 -117
- package/packages/theme-chalk/src/nav.scss +111 -111
- package/packages/theme-chalk/src/page.scss +3 -3
- package/packages/theme-chalk/src/pagination.scss +29 -29
- package/packages/theme-chalk/src/player.scss +9 -9
- package/packages/theme-chalk/src/qr-code.scss +17 -17
- package/packages/theme-chalk/src/radio-group.scss +9 -9
- package/packages/theme-chalk/src/retrial-auth.scss +38 -38
- package/packages/theme-chalk/src/select-ganged.scss +8 -8
- package/packages/theme-chalk/src/select.scss +8 -8
- package/packages/theme-chalk/src/selector-panel.scss +204 -204
- package/packages/theme-chalk/src/selector.scss +92 -92
- package/packages/theme-chalk/src/simplicity.scss +1361 -1361
- package/packages/theme-chalk/src/sizer.scss +36 -36
- package/packages/theme-chalk/src/steps.scss +88 -88
- package/packages/theme-chalk/src/switch.scss +3 -3
- package/packages/theme-chalk/src/table-form.scss +1 -1
- package/packages/theme-chalk/src/tabs.scss +87 -87
- package/packages/theme-chalk/src/tips.scss +7 -7
- package/packages/theme-chalk/src/toolbar.scss +179 -179
- package/packages/theme-chalk/src/tree-group.scss +72 -72
- package/packages/theme-chalk/src/tree.scss +165 -165
- package/packages/theme-chalk/src/upload.scss +172 -172
- package/packages/theme-chalk/src/wxlogin.scss +3 -3
- package/packages/tips/index.js +5 -5
- package/packages/tips/src/main.vue +141 -141
- package/packages/toolbar/index.js +5 -5
- package/packages/toolbar/src/main.vue +430 -430
- package/packages/tree/index.js +5 -5
- package/packages/tree-group/index.js +5 -5
- package/packages/upload/index.js +5 -5
- package/packages/upload/src/main.vue +1343 -1343
- package/packages/upload/src/picture.js +15 -15
- package/packages/wujie/index.js +5 -5
- package/packages/wujie/src/main.vue +145 -145
- package/packages/wxlogin/index.js +5 -5
- package/packages/wxlogin/src/main.vue +128 -128
- package/src/config/api.js +308 -308
- package/src/config/image.js +2 -2
- package/src/index.js +163 -163
- package/src/utils/bus.js +3 -3
- package/src/utils/date-util.js +312 -312
- package/src/utils/http.js +50 -50
- package/src/utils/rules.js +18 -18
- package/src/utils/store.js +21 -21
- package/src/utils/webSocket.js +107 -107
- package/packages/.DS_Store +0 -0
- package/packages/autocomplete/.DS_Store +0 -0
- package/packages/calogin/.DS_Store +0 -0
- package/packages/date-picker/.DS_Store +0 -0
- package/packages/date-picker/src/.DS_Store +0 -0
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/src/.DS_Store +0 -0
- package/packages/flow-list/.DS_Store +0 -0
- package/packages/form/.DS_Store +0 -0
- package/packages/login/.DS_Store +0 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/menu/.DS_Store +0 -0
- package/packages/scrollbar/.DS_Store +0 -0
- package/packages/select/.DS_Store +0 -0
- package/packages/selector/.DS_Store +0 -0
- package/packages/selector-panel/.DS_Store +0 -0
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/upload/.DS_Store +0 -0
- package/src/.DS_Store +0 -0
- package/src/utils/.DS_Store +0 -0
package/lib/main.js
CHANGED
|
@@ -7240,10 +7240,10 @@ var external_throttle_debounce_ = __webpack_require__(14);
|
|
|
7240
7240
|
this.$emit('click', res);
|
|
7241
7241
|
},
|
|
7242
7242
|
|
|
7243
|
-
/**
|
|
7244
|
-
* @desc:获取气泡提醒
|
|
7245
|
-
* @author huangbo
|
|
7246
|
-
* @date 2024年9月7日
|
|
7243
|
+
/**
|
|
7244
|
+
* @desc:获取气泡提醒
|
|
7245
|
+
* @author huangbo
|
|
7246
|
+
* @date 2024年9月7日
|
|
7247
7247
|
**/
|
|
7248
7248
|
getBadge: function getBadge(res) {
|
|
7249
7249
|
var num = res.tips || 0;
|
|
@@ -7280,8 +7280,8 @@ var apps_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7280
7280
|
)
|
|
7281
7281
|
|
|
7282
7282
|
/* harmony default export */ var simplicity_apps = (apps_component.exports);
|
|
7283
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/user.vue?vue&type=template&id=
|
|
7284
|
-
var
|
|
7283
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/user.vue?vue&type=template&id=647fd01c&scoped=true&
|
|
7284
|
+
var uservue_type_template_id_647fd01c_scoped_true_render = function () {
|
|
7285
7285
|
var _vm = this
|
|
7286
7286
|
var _h = _vm.$createElement
|
|
7287
7287
|
var _c = _vm._self._c || _h
|
|
@@ -7409,7 +7409,7 @@ var uservue_type_template_id_79e71c00_scoped_true_render = function () {
|
|
|
7409
7409
|
[
|
|
7410
7410
|
_vm.visible
|
|
7411
7411
|
? _c("user-info", {
|
|
7412
|
-
attrs: { contents: _vm.contents, value: _vm.
|
|
7412
|
+
attrs: { contents: _vm.contents, value: _vm.userInfos },
|
|
7413
7413
|
on: { success: _vm.handleSuccess },
|
|
7414
7414
|
})
|
|
7415
7415
|
: _vm._e(),
|
|
@@ -7420,14 +7420,14 @@ var uservue_type_template_id_79e71c00_scoped_true_render = function () {
|
|
|
7420
7420
|
1
|
|
7421
7421
|
)
|
|
7422
7422
|
}
|
|
7423
|
-
var
|
|
7424
|
-
|
|
7423
|
+
var uservue_type_template_id_647fd01c_scoped_true_staticRenderFns = []
|
|
7424
|
+
uservue_type_template_id_647fd01c_scoped_true_render._withStripped = true
|
|
7425
7425
|
|
|
7426
7426
|
|
|
7427
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=
|
|
7427
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=647fd01c&scoped=true&
|
|
7428
7428
|
|
|
7429
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=
|
|
7430
|
-
var
|
|
7429
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=fd4f50b2&
|
|
7430
|
+
var userinfovue_type_template_id_fd4f50b2_render = function () {
|
|
7431
7431
|
var _vm = this
|
|
7432
7432
|
var _h = _vm.$createElement
|
|
7433
7433
|
var _c = _vm._self._c || _h
|
|
@@ -7450,11 +7450,11 @@ var userinfovue_type_template_id_fb004f62_render = function () {
|
|
|
7450
7450
|
2
|
|
7451
7451
|
)
|
|
7452
7452
|
}
|
|
7453
|
-
var
|
|
7454
|
-
|
|
7453
|
+
var userinfovue_type_template_id_fd4f50b2_staticRenderFns = []
|
|
7454
|
+
userinfovue_type_template_id_fd4f50b2_render._withStripped = true
|
|
7455
7455
|
|
|
7456
7456
|
|
|
7457
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=
|
|
7457
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=fd4f50b2&
|
|
7458
7458
|
|
|
7459
7459
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=script&lang=js&
|
|
7460
7460
|
var userinfovue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -7542,25 +7542,42 @@ var _props;
|
|
|
7542
7542
|
computed: {
|
|
7543
7543
|
formRules: function formRules() {
|
|
7544
7544
|
return userinfovue_type_script_lang_js_extends({
|
|
7545
|
-
idCard: {
|
|
7545
|
+
idCard: [{
|
|
7546
|
+
required: this.model.idCard !== null && this.model.idCard !== undefined && this.model.idCard !== '',
|
|
7547
|
+
message: '请输入身份证号',
|
|
7548
|
+
trigger: 'blur'
|
|
7549
|
+
}, {
|
|
7546
7550
|
pattern: new RegExp('(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)'),
|
|
7547
|
-
message: '身份证号不合法'
|
|
7548
|
-
|
|
7549
|
-
|
|
7551
|
+
message: '身份证号不合法',
|
|
7552
|
+
trigger: 'blur'
|
|
7553
|
+
}],
|
|
7554
|
+
phone: [{
|
|
7555
|
+
required: this.model.phone !== null && this.model.phone !== undefined && this.model.phone !== '',
|
|
7556
|
+
message: '请输入手机号',
|
|
7557
|
+
trigger: 'blur'
|
|
7558
|
+
}, {
|
|
7550
7559
|
pattern: new RegExp('^[1][3, 4, 5, 6, 7, 8, 9][0-9]{9}$'),
|
|
7551
7560
|
message: '手机号不合法',
|
|
7552
7561
|
trigger: 'blur'
|
|
7553
|
-
},
|
|
7554
|
-
email: {
|
|
7562
|
+
}],
|
|
7563
|
+
email: [{
|
|
7564
|
+
required: this.model.email !== null && this.model.email !== undefined && this.model.email !== '',
|
|
7565
|
+
message: '请输入邮箱地址',
|
|
7566
|
+
trigger: 'blur'
|
|
7567
|
+
}, {
|
|
7555
7568
|
type: 'email',
|
|
7556
7569
|
message: '请输入正确的邮箱地址',
|
|
7557
7570
|
trigger: 'blur'
|
|
7558
|
-
},
|
|
7559
|
-
officeTel: {
|
|
7571
|
+
}],
|
|
7572
|
+
officeTel: [{
|
|
7573
|
+
required: this.model.officeTel !== null && this.model.officeTel !== undefined && this.model.officeTel !== '',
|
|
7574
|
+
message: '请输入座机号',
|
|
7575
|
+
trigger: 'blur'
|
|
7576
|
+
}, {
|
|
7560
7577
|
pattern: new RegExp('^(?:\\(?0([1-9]\\d{1,2})\\)?[- ]?)?([2-9]\\d{6,7})$'),
|
|
7561
7578
|
message: '座机号不合法',
|
|
7562
7579
|
trigger: 'blur'
|
|
7563
|
-
},
|
|
7580
|
+
}],
|
|
7564
7581
|
|
|
7565
7582
|
oldpassword: this.model.password || this.model.repassword ? {
|
|
7566
7583
|
required: true,
|
|
@@ -7765,8 +7782,8 @@ var _props;
|
|
|
7765
7782
|
|
|
7766
7783
|
var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
7767
7784
|
simplicity_userinfovue_type_script_lang_js_,
|
|
7768
|
-
|
|
7769
|
-
|
|
7785
|
+
userinfovue_type_template_id_fd4f50b2_render,
|
|
7786
|
+
userinfovue_type_template_id_fd4f50b2_staticRenderFns,
|
|
7770
7787
|
false,
|
|
7771
7788
|
null,
|
|
7772
7789
|
null,
|
|
@@ -7871,6 +7888,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7871
7888
|
},
|
|
7872
7889
|
data: function data() {
|
|
7873
7890
|
return {
|
|
7891
|
+
userInfos: {},
|
|
7874
7892
|
userScanBindImgUrl: null,
|
|
7875
7893
|
qrcode: null,
|
|
7876
7894
|
checked: [],
|
|
@@ -7914,7 +7932,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7914
7932
|
}).then(function (res) {
|
|
7915
7933
|
if (res.rCode === 0) {
|
|
7916
7934
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
7917
|
-
_this2.
|
|
7935
|
+
_this2.userInfos = results.simpleUserInfo;
|
|
7918
7936
|
if (results.userScanBindImgUrl) {
|
|
7919
7937
|
_this2.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
7920
7938
|
_this2.qrcode = _this2.userScanBindImgUrl;
|
|
@@ -8040,11 +8058,11 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
8040
8058
|
|
|
8041
8059
|
var user_component = Object(componentNormalizer["a" /* default */])(
|
|
8042
8060
|
simplicity_uservue_type_script_lang_js_,
|
|
8043
|
-
|
|
8044
|
-
|
|
8061
|
+
uservue_type_template_id_647fd01c_scoped_true_render,
|
|
8062
|
+
uservue_type_template_id_647fd01c_scoped_true_staticRenderFns,
|
|
8045
8063
|
false,
|
|
8046
8064
|
null,
|
|
8047
|
-
"
|
|
8065
|
+
"647fd01c",
|
|
8048
8066
|
null
|
|
8049
8067
|
|
|
8050
8068
|
)
|
|
@@ -11323,10 +11341,10 @@ var events = [function (tabs, index, that) {
|
|
|
11323
11341
|
},
|
|
11324
11342
|
|
|
11325
11343
|
methods: {
|
|
11326
|
-
/**
|
|
11327
|
-
* @desc:匹配路由
|
|
11328
|
-
* @author huangbo
|
|
11329
|
-
* @date 2024年9月7日
|
|
11344
|
+
/**
|
|
11345
|
+
* @desc:匹配路由
|
|
11346
|
+
* @author huangbo
|
|
11347
|
+
* @date 2024年9月7日
|
|
11330
11348
|
**/
|
|
11331
11349
|
hasRouter: function hasRouter(res, url, code) {
|
|
11332
11350
|
if (!url) {
|
|
@@ -11370,10 +11388,10 @@ var events = [function (tabs, index, that) {
|
|
|
11370
11388
|
return false;
|
|
11371
11389
|
},
|
|
11372
11390
|
|
|
11373
|
-
/**
|
|
11374
|
-
* @desc:获取初始数据
|
|
11375
|
-
* @author huangbo
|
|
11376
|
-
* @date 2024年9月7日
|
|
11391
|
+
/**
|
|
11392
|
+
* @desc:获取初始数据
|
|
11393
|
+
* @author huangbo
|
|
11394
|
+
* @date 2024年9月7日
|
|
11377
11395
|
**/
|
|
11378
11396
|
init: function init(results, first) {
|
|
11379
11397
|
this.setConfig(results);
|
|
@@ -11382,10 +11400,10 @@ var events = [function (tabs, index, that) {
|
|
|
11382
11400
|
}
|
|
11383
11401
|
},
|
|
11384
11402
|
|
|
11385
|
-
/**
|
|
11386
|
-
* @desc:设置用户配置及信息
|
|
11387
|
-
* @author huangbo
|
|
11388
|
-
* @date 2024年9月7日
|
|
11403
|
+
/**
|
|
11404
|
+
* @desc:设置用户配置及信息
|
|
11405
|
+
* @author huangbo
|
|
11406
|
+
* @date 2024年9月7日
|
|
11389
11407
|
**/
|
|
11390
11408
|
setConfig: function setConfig(results) {
|
|
11391
11409
|
localStorage.setItem('mainConfig', JSON.stringify(results));
|
|
@@ -11522,10 +11540,10 @@ var events = [function (tabs, index, that) {
|
|
|
11522
11540
|
}
|
|
11523
11541
|
},
|
|
11524
11542
|
|
|
11525
|
-
/**
|
|
11526
|
-
* @desc:获取所有应用
|
|
11527
|
-
* @author huangbo
|
|
11528
|
-
* @date 2024年9月7日
|
|
11543
|
+
/**
|
|
11544
|
+
* @desc:获取所有应用
|
|
11545
|
+
* @author huangbo
|
|
11546
|
+
* @date 2024年9月7日
|
|
11529
11547
|
**/
|
|
11530
11548
|
getApplications: function getApplications() {
|
|
11531
11549
|
var _this = this;
|
|
@@ -11573,10 +11591,10 @@ var events = [function (tabs, index, that) {
|
|
|
11573
11591
|
});
|
|
11574
11592
|
},
|
|
11575
11593
|
|
|
11576
|
-
/**
|
|
11577
|
-
* @desc:获取菜单列表
|
|
11578
|
-
* @author huangbo
|
|
11579
|
-
* @date 2024年9月7日
|
|
11594
|
+
/**
|
|
11595
|
+
* @desc:获取菜单列表
|
|
11596
|
+
* @author huangbo
|
|
11597
|
+
* @date 2024年9月7日
|
|
11580
11598
|
**/
|
|
11581
11599
|
getMenus: function getMenus(loading) {
|
|
11582
11600
|
var _this2 = this;
|
|
@@ -11609,10 +11627,10 @@ var events = [function (tabs, index, that) {
|
|
|
11609
11627
|
});
|
|
11610
11628
|
},
|
|
11611
11629
|
|
|
11612
|
-
/**
|
|
11613
|
-
* @desc:处理菜单列表
|
|
11614
|
-
* @author huangbo
|
|
11615
|
-
* @date 2024年9月7日
|
|
11630
|
+
/**
|
|
11631
|
+
* @desc:处理菜单列表
|
|
11632
|
+
* @author huangbo
|
|
11633
|
+
* @date 2024年9月7日
|
|
11616
11634
|
**/
|
|
11617
11635
|
renderMenus: function renderMenus(res) {
|
|
11618
11636
|
this.menus = res;
|
|
@@ -11708,10 +11726,10 @@ var events = [function (tabs, index, that) {
|
|
|
11708
11726
|
}
|
|
11709
11727
|
},
|
|
11710
11728
|
|
|
11711
|
-
/**
|
|
11712
|
-
* @desc:设置页面加载类型
|
|
11713
|
-
* @author huangbo
|
|
11714
|
-
* @date 2024年9月7日
|
|
11729
|
+
/**
|
|
11730
|
+
* @desc:设置页面加载类型
|
|
11731
|
+
* @author huangbo
|
|
11732
|
+
* @date 2024年9月7日
|
|
11715
11733
|
**/
|
|
11716
11734
|
setIframeType: function setIframeType(res) {
|
|
11717
11735
|
var url = res.url;
|
|
@@ -11767,10 +11785,10 @@ var events = [function (tabs, index, that) {
|
|
|
11767
11785
|
return res;
|
|
11768
11786
|
},
|
|
11769
11787
|
|
|
11770
|
-
/**
|
|
11771
|
-
* @desc:获取菜单
|
|
11772
|
-
* @author huangbo
|
|
11773
|
-
* @date 2024年9月7日
|
|
11788
|
+
/**
|
|
11789
|
+
* @desc:获取菜单
|
|
11790
|
+
* @author huangbo
|
|
11791
|
+
* @date 2024年9月7日
|
|
11774
11792
|
**/
|
|
11775
11793
|
getMenu: function getMenu(menus, res, key) {
|
|
11776
11794
|
if (Array.isArray(menus)) {
|
|
@@ -11799,10 +11817,10 @@ var events = [function (tabs, index, that) {
|
|
|
11799
11817
|
return false;
|
|
11800
11818
|
},
|
|
11801
11819
|
|
|
11802
|
-
/**
|
|
11803
|
-
* @desc:获取菜单第一条数据
|
|
11804
|
-
* @author huangbo
|
|
11805
|
-
* @date 2024年9月7日
|
|
11820
|
+
/**
|
|
11821
|
+
* @desc:获取菜单第一条数据
|
|
11822
|
+
* @author huangbo
|
|
11823
|
+
* @date 2024年9月7日
|
|
11806
11824
|
**/
|
|
11807
11825
|
getFirst: function getFirst(obj) {
|
|
11808
11826
|
if (!obj) {
|
|
@@ -11821,10 +11839,10 @@ var events = [function (tabs, index, that) {
|
|
|
11821
11839
|
}
|
|
11822
11840
|
},
|
|
11823
11841
|
|
|
11824
|
-
/**
|
|
11825
|
-
* @desc:遍历设置菜单气泡提醒
|
|
11826
|
-
* @author huangbo
|
|
11827
|
-
* @date 2024年9月7日
|
|
11842
|
+
/**
|
|
11843
|
+
* @desc:遍历设置菜单气泡提醒
|
|
11844
|
+
* @author huangbo
|
|
11845
|
+
* @date 2024年9月7日
|
|
11828
11846
|
**/
|
|
11829
11847
|
setTips: function setTips(obj) {
|
|
11830
11848
|
var _this3 = this;
|
|
@@ -11887,10 +11905,10 @@ var events = [function (tabs, index, that) {
|
|
|
11887
11905
|
}
|
|
11888
11906
|
},
|
|
11889
11907
|
|
|
11890
|
-
/**
|
|
11891
|
-
* @desc:获取气泡提醒
|
|
11892
|
-
* @author huangbo
|
|
11893
|
-
* @date 2024年9月7日
|
|
11908
|
+
/**
|
|
11909
|
+
* @desc:获取气泡提醒
|
|
11910
|
+
* @author huangbo
|
|
11911
|
+
* @date 2024年9月7日
|
|
11894
11912
|
**/
|
|
11895
11913
|
getBadge: function getBadge(res) {
|
|
11896
11914
|
var num = res.tips || 0;
|
|
@@ -11904,10 +11922,10 @@ var events = [function (tabs, index, that) {
|
|
|
11904
11922
|
};
|
|
11905
11923
|
},
|
|
11906
11924
|
|
|
11907
|
-
/**
|
|
11908
|
-
* @desc:开启weosocket
|
|
11909
|
-
* @author huangbo
|
|
11910
|
-
* @date 2024年9月7日
|
|
11925
|
+
/**
|
|
11926
|
+
* @desc:开启weosocket
|
|
11927
|
+
* @author huangbo
|
|
11928
|
+
* @date 2024年9月7日
|
|
11911
11929
|
**/
|
|
11912
11930
|
initWebSocket: function initWebSocket() {
|
|
11913
11931
|
var _this5 = this;
|
|
@@ -11956,10 +11974,10 @@ var events = [function (tabs, index, that) {
|
|
|
11956
11974
|
});
|
|
11957
11975
|
},
|
|
11958
11976
|
|
|
11959
|
-
/**
|
|
11960
|
-
* @desc:显示用户信息
|
|
11961
|
-
* @author huangbo
|
|
11962
|
-
* @date 2024年9月7日
|
|
11977
|
+
/**
|
|
11978
|
+
* @desc:显示用户信息
|
|
11979
|
+
* @author huangbo
|
|
11980
|
+
* @date 2024年9月7日
|
|
11963
11981
|
**/
|
|
11964
11982
|
showUserInfo: function showUserInfo() {
|
|
11965
11983
|
if (this.showUser === false) {
|
|
@@ -11967,19 +11985,19 @@ var events = [function (tabs, index, that) {
|
|
|
11967
11985
|
}
|
|
11968
11986
|
},
|
|
11969
11987
|
|
|
11970
|
-
/**
|
|
11971
|
-
* @desc:删除更多应用菜单点击
|
|
11972
|
-
* @author huangbo
|
|
11973
|
-
* @date 2024年9月7日
|
|
11988
|
+
/**
|
|
11989
|
+
* @desc:删除更多应用菜单点击
|
|
11990
|
+
* @author huangbo
|
|
11991
|
+
* @date 2024年9月7日
|
|
11974
11992
|
**/
|
|
11975
11993
|
handleDelete: function handleDelete(index) {
|
|
11976
11994
|
this.newApps.splice(index, 1);
|
|
11977
11995
|
},
|
|
11978
11996
|
|
|
11979
|
-
/**
|
|
11980
|
-
* @desc:储存更多应用菜单点击
|
|
11981
|
-
* @author huangbo
|
|
11982
|
-
* @date 2024年9月7日
|
|
11997
|
+
/**
|
|
11998
|
+
* @desc:储存更多应用菜单点击
|
|
11999
|
+
* @author huangbo
|
|
12000
|
+
* @date 2024年9月7日
|
|
11983
12001
|
**/
|
|
11984
12002
|
handlerClickApps: function handlerClickApps(res) {
|
|
11985
12003
|
if (res.permission === false) {
|
|
@@ -11992,10 +12010,10 @@ var events = [function (tabs, index, that) {
|
|
|
11992
12010
|
this.handlerClickApp(res);
|
|
11993
12011
|
},
|
|
11994
12012
|
|
|
11995
|
-
/**
|
|
11996
|
-
* @desc:侧边应用菜单点击
|
|
11997
|
-
* @author huangbo
|
|
11998
|
-
* @date 2024年9月7日
|
|
12013
|
+
/**
|
|
12014
|
+
* @desc:侧边应用菜单点击
|
|
12015
|
+
* @author huangbo
|
|
12016
|
+
* @date 2024年9月7日
|
|
11999
12017
|
**/
|
|
12000
12018
|
handlerClickApp: function handlerClickApp(res) {
|
|
12001
12019
|
this.showMsg = false;
|
|
@@ -12084,10 +12102,10 @@ var events = [function (tabs, index, that) {
|
|
|
12084
12102
|
}
|
|
12085
12103
|
},
|
|
12086
12104
|
|
|
12087
|
-
/**
|
|
12088
|
-
* @desc:显示Drawer界面
|
|
12089
|
-
* @author huangbo
|
|
12090
|
-
* @date 2024年9月7日
|
|
12105
|
+
/**
|
|
12106
|
+
* @desc:显示Drawer界面
|
|
12107
|
+
* @author huangbo
|
|
12108
|
+
* @date 2024年9月7日
|
|
12091
12109
|
**/
|
|
12092
12110
|
handlerSetDrawer: function handlerSetDrawer(res, type) {
|
|
12093
12111
|
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
|
|
@@ -12107,19 +12125,19 @@ var events = [function (tabs, index, that) {
|
|
|
12107
12125
|
}
|
|
12108
12126
|
},
|
|
12109
12127
|
|
|
12110
|
-
/**
|
|
12111
|
-
* @desc:关闭Drawer界面
|
|
12112
|
-
* @author huangbo
|
|
12113
|
-
* @date 2024年9月7日
|
|
12128
|
+
/**
|
|
12129
|
+
* @desc:关闭Drawer界面
|
|
12130
|
+
* @author huangbo
|
|
12131
|
+
* @date 2024年9月7日
|
|
12114
12132
|
**/
|
|
12115
12133
|
handleCloseDrawer: function handleCloseDrawer() {
|
|
12116
12134
|
this.drawer = { visible: false };
|
|
12117
12135
|
},
|
|
12118
12136
|
|
|
12119
|
-
/**
|
|
12120
|
-
* @desc:菜单点击
|
|
12121
|
-
* @author huangbo
|
|
12122
|
-
* @date 2024年9月7日
|
|
12137
|
+
/**
|
|
12138
|
+
* @desc:菜单点击
|
|
12139
|
+
* @author huangbo
|
|
12140
|
+
* @date 2024年9月7日
|
|
12123
12141
|
**/
|
|
12124
12142
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
12125
12143
|
util["a" /* default */].ajax({
|
|
@@ -12168,19 +12186,19 @@ var events = [function (tabs, index, that) {
|
|
|
12168
12186
|
},
|
|
12169
12187
|
|
|
12170
12188
|
|
|
12171
|
-
/**
|
|
12172
|
-
* @desc:用户详情请求成功
|
|
12173
|
-
* @author huangbo
|
|
12174
|
-
* @date 2024年9月7日
|
|
12189
|
+
/**
|
|
12190
|
+
* @desc:用户详情请求成功
|
|
12191
|
+
* @author huangbo
|
|
12192
|
+
* @date 2024年9月7日
|
|
12175
12193
|
**/
|
|
12176
12194
|
handleSuccess: function handleSuccess(res) {
|
|
12177
12195
|
this.simpleUserInfo = res.simpleUserInfo;
|
|
12178
12196
|
},
|
|
12179
12197
|
|
|
12180
|
-
/**
|
|
12181
|
-
* @desc:修改用户配置
|
|
12182
|
-
* @author huangbo
|
|
12183
|
-
* @date 2024年9月7日
|
|
12198
|
+
/**
|
|
12199
|
+
* @desc:修改用户配置
|
|
12200
|
+
* @author huangbo
|
|
12201
|
+
* @date 2024年9月7日
|
|
12184
12202
|
**/
|
|
12185
12203
|
handleChangeConfig: function handleChangeConfig(name, res) {
|
|
12186
12204
|
if (name == 'userHeadUrl') {
|
|
@@ -12196,10 +12214,10 @@ var events = [function (tabs, index, that) {
|
|
|
12196
12214
|
}
|
|
12197
12215
|
},
|
|
12198
12216
|
|
|
12199
|
-
/**
|
|
12200
|
-
* @desc:关闭webSocket
|
|
12201
|
-
* @author huangbo
|
|
12202
|
-
* @date 2024年9月7日
|
|
12217
|
+
/**
|
|
12218
|
+
* @desc:关闭webSocket
|
|
12219
|
+
* @author huangbo
|
|
12220
|
+
* @date 2024年9月7日
|
|
12203
12221
|
**/
|
|
12204
12222
|
handlerClose: function handlerClose() {
|
|
12205
12223
|
if (this.webSocket) {
|
|
@@ -12207,10 +12225,10 @@ var events = [function (tabs, index, that) {
|
|
|
12207
12225
|
}
|
|
12208
12226
|
},
|
|
12209
12227
|
|
|
12210
|
-
/**
|
|
12211
|
-
* @desc:刷新选中iframe页签
|
|
12212
|
-
* @author huangbo
|
|
12213
|
-
* @date 2024年9月7日
|
|
12228
|
+
/**
|
|
12229
|
+
* @desc:刷新选中iframe页签
|
|
12230
|
+
* @author huangbo
|
|
12231
|
+
* @date 2024年9月7日
|
|
12214
12232
|
**/
|
|
12215
12233
|
handleRefresh: function handleRefresh() {
|
|
12216
12234
|
var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
@@ -12231,10 +12249,10 @@ var events = [function (tabs, index, that) {
|
|
|
12231
12249
|
}
|
|
12232
12250
|
},
|
|
12233
12251
|
|
|
12234
|
-
/**
|
|
12235
|
-
* @desc:删除iframe
|
|
12236
|
-
* @author huangbo
|
|
12237
|
-
* @date 2024年9月7日
|
|
12252
|
+
/**
|
|
12253
|
+
* @desc:删除iframe
|
|
12254
|
+
* @author huangbo
|
|
12255
|
+
* @date 2024年9月7日
|
|
12238
12256
|
**/
|
|
12239
12257
|
handleRemove: function handleRemove(name) {
|
|
12240
12258
|
var len = this.tabs.length - 1;
|
|
@@ -12251,10 +12269,10 @@ var events = [function (tabs, index, that) {
|
|
|
12251
12269
|
}
|
|
12252
12270
|
},
|
|
12253
12271
|
|
|
12254
|
-
/**
|
|
12255
|
-
* @desc:tabs鼠标右键事件
|
|
12256
|
-
* @author huangbo
|
|
12257
|
-
* @date 2024年9月7日
|
|
12272
|
+
/**
|
|
12273
|
+
* @desc:tabs鼠标右键事件
|
|
12274
|
+
* @author huangbo
|
|
12275
|
+
* @date 2024年9月7日
|
|
12258
12276
|
**/
|
|
12259
12277
|
handleContextmenu: function handleContextmenu(tabs, e) {
|
|
12260
12278
|
var disabled = {};
|
|
@@ -12279,10 +12297,10 @@ var events = [function (tabs, index, that) {
|
|
|
12279
12297
|
window.addEventListener('click', this.closeTabsEvents);
|
|
12280
12298
|
},
|
|
12281
12299
|
|
|
12282
|
-
/**
|
|
12283
|
-
* @desc:tabs页签事件
|
|
12284
|
-
* @author huangbo
|
|
12285
|
-
* @date 2024年9月7日
|
|
12300
|
+
/**
|
|
12301
|
+
* @desc:tabs页签事件
|
|
12302
|
+
* @author huangbo
|
|
12303
|
+
* @date 2024年9月7日
|
|
12286
12304
|
**/
|
|
12287
12305
|
handleTabsEvents: function handleTabsEvents(num) {
|
|
12288
12306
|
if (this.pane !== null) {
|
|
@@ -12300,10 +12318,10 @@ var events = [function (tabs, index, that) {
|
|
|
12300
12318
|
window.removeEventListener('click', this.closeTabsEvents);
|
|
12301
12319
|
},
|
|
12302
12320
|
|
|
12303
|
-
/**
|
|
12304
|
-
* @desc:handler工具栏点击事件
|
|
12305
|
-
* @author huangbo
|
|
12306
|
-
* @date 2024年9月7日
|
|
12321
|
+
/**
|
|
12322
|
+
* @desc:handler工具栏点击事件
|
|
12323
|
+
* @author huangbo
|
|
12324
|
+
* @date 2024年9月7日
|
|
12307
12325
|
**/
|
|
12308
12326
|
handleClick: function handleClick(res) {
|
|
12309
12327
|
var type = res.type,
|
|
@@ -12381,10 +12399,10 @@ var events = [function (tabs, index, that) {
|
|
|
12381
12399
|
this.$emit('handler-click', res);
|
|
12382
12400
|
},
|
|
12383
12401
|
|
|
12384
|
-
/**
|
|
12385
|
-
* @desc:退出登录
|
|
12386
|
-
* @author huangbo
|
|
12387
|
-
* @date 2024年9月7日
|
|
12402
|
+
/**
|
|
12403
|
+
* @desc:退出登录
|
|
12404
|
+
* @author huangbo
|
|
12405
|
+
* @date 2024年9月7日
|
|
12388
12406
|
**/
|
|
12389
12407
|
handleQuit: function handleQuit() {
|
|
12390
12408
|
var _this6 = this;
|
|
@@ -12459,10 +12477,10 @@ var events = [function (tabs, index, that) {
|
|
|
12459
12477
|
}).catch(function (e) {});
|
|
12460
12478
|
},
|
|
12461
12479
|
|
|
12462
|
-
/**
|
|
12463
|
-
* @desc:主题、消息回调
|
|
12464
|
-
* @author huangbo
|
|
12465
|
-
* @date 2024年9月7日
|
|
12480
|
+
/**
|
|
12481
|
+
* @desc:主题、消息回调
|
|
12482
|
+
* @author huangbo
|
|
12483
|
+
* @date 2024年9月7日
|
|
12466
12484
|
**/
|
|
12467
12485
|
handleChange: function handleChange(res) {
|
|
12468
12486
|
var type = res.type,
|
|
@@ -12478,10 +12496,10 @@ var events = [function (tabs, index, that) {
|
|
|
12478
12496
|
}
|
|
12479
12497
|
},
|
|
12480
12498
|
|
|
12481
|
-
/**
|
|
12482
|
-
* @desc:菜单布局样式切换
|
|
12483
|
-
* @author huangbo
|
|
12484
|
-
* @date 2024年9月7日
|
|
12499
|
+
/**
|
|
12500
|
+
* @desc:菜单布局样式切换
|
|
12501
|
+
* @author huangbo
|
|
12502
|
+
* @date 2024年9月7日
|
|
12485
12503
|
**/
|
|
12486
12504
|
handleLayout: function handleLayout(res, active) {
|
|
12487
12505
|
if (active) {
|
|
@@ -12490,10 +12508,10 @@ var events = [function (tabs, index, that) {
|
|
|
12490
12508
|
this.$emit('chang-layout', res, active);
|
|
12491
12509
|
},
|
|
12492
12510
|
|
|
12493
|
-
/**
|
|
12494
|
-
* @desc:消息修改总数
|
|
12495
|
-
* @author huangbo
|
|
12496
|
-
* @date 2024年9月7日
|
|
12511
|
+
/**
|
|
12512
|
+
* @desc:消息修改总数
|
|
12513
|
+
* @author huangbo
|
|
12514
|
+
* @date 2024年9月7日
|
|
12497
12515
|
**/
|
|
12498
12516
|
handleMenuTips: function handleMenuTips(id, num) {
|
|
12499
12517
|
if (num) {
|
|
@@ -12504,10 +12522,10 @@ var events = [function (tabs, index, that) {
|
|
|
12504
12522
|
}
|
|
12505
12523
|
},
|
|
12506
12524
|
|
|
12507
|
-
/**
|
|
12508
|
-
* @desc:处理即时消息
|
|
12509
|
-
* @author huangbo
|
|
12510
|
-
* @date 2024年9月7日
|
|
12525
|
+
/**
|
|
12526
|
+
* @desc:处理即时消息
|
|
12527
|
+
* @author huangbo
|
|
12528
|
+
* @date 2024年9月7日
|
|
12511
12529
|
**/
|
|
12512
12530
|
handleOpened: function handleOpened(res) {
|
|
12513
12531
|
var _this7 = this;
|
package/lib/qr-code.js
CHANGED
|
@@ -4326,19 +4326,19 @@ var QRCode = __webpack_require__(28);
|
|
|
4326
4326
|
//设置logo大小
|
|
4327
4327
|
var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
|
|
4328
4328
|
//设置获取的logo将其变为圆角以及添加白色背景
|
|
4329
|
-
/* ctx.fillStyle = "#fff";
|
|
4330
|
-
ctx.beginPath();
|
|
4331
|
-
let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
|
|
4332
|
-
let w = 46; //圆角宽
|
|
4333
|
-
let x = logoPosition - 5;
|
|
4334
|
-
let y = logoPosition - 5;
|
|
4335
|
-
let r = 5; //圆角半径
|
|
4336
|
-
ctx.moveTo(x + r, y);
|
|
4337
|
-
ctx.arcTo(x + w, y, x + w, y + h, r);
|
|
4338
|
-
ctx.arcTo(x + w, y + h, x, y + h, r);
|
|
4339
|
-
ctx.arcTo(x, y + h, x, y, r);
|
|
4340
|
-
ctx.arcTo(x, y, x + w, y, r);
|
|
4341
|
-
ctx.closePath();
|
|
4329
|
+
/* ctx.fillStyle = "#fff";
|
|
4330
|
+
ctx.beginPath();
|
|
4331
|
+
let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
|
|
4332
|
+
let w = 46; //圆角宽
|
|
4333
|
+
let x = logoPosition - 5;
|
|
4334
|
+
let y = logoPosition - 5;
|
|
4335
|
+
let r = 5; //圆角半径
|
|
4336
|
+
ctx.moveTo(x + r, y);
|
|
4337
|
+
ctx.arcTo(x + w, y, x + w, y + h, r);
|
|
4338
|
+
ctx.arcTo(x + w, y + h, x, y + h, r);
|
|
4339
|
+
ctx.arcTo(x, y + h, x, y, r);
|
|
4340
|
+
ctx.arcTo(x, y, x + w, y, r);
|
|
4341
|
+
ctx.closePath();
|
|
4342
4342
|
ctx.fill(); */
|
|
4343
4343
|
logo.onload = function () {
|
|
4344
4344
|
ctx.drawImage(logo, logoPosition, logoPosition, 46, 46);
|