@bee-hole/server 1.82.1 → 1.82.4
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/main.exe +0 -0
- package/mainD +0 -0
- package/package.json +2 -2
- package/resource/public/cp/css/{chunk-a751530a.f02d71af.css → chunk-0b058dc0.8379ee07.css} +1 -1
- package/resource/public/cp/css/chunk-0b058dc0.8379ee07.css.gz +0 -0
- package/resource/public/cp/index.html +1 -1
- package/resource/public/cp/js/{app~f075b844.85026d24.js → app~f075b844.c84a40a2.js} +1 -1
- package/resource/public/cp/js/app~f075b844.c84a40a2.js.gz +0 -0
- package/resource/public/cp/js/chunk-0b058dc0.39e9d10c.js +1 -0
- package/resource/public/cp/js/chunk-0b058dc0.39e9d10c.js.gz +0 -0
- package/resource/public/cp/js/{lang-package~4e34e71e.bf94b4c9.js → lang-package~4e34e71e.46d9e208.js} +3 -3
- package/resource/public/cp/js/lang-package~4e34e71e.46d9e208.js.gz +0 -0
- package/resource/public/html/h5pay.html +66 -26
- package/version +1 -1
- package/resource/public/cp/css/chunk-a751530a.f02d71af.css.gz +0 -0
- package/resource/public/cp/js/app~f075b844.85026d24.js.gz +0 -0
- package/resource/public/cp/js/chunk-a751530a.1920c5e2.js +0 -1
- package/resource/public/cp/js/chunk-a751530a.1920c5e2.js.gz +0 -0
- package/resource/public/cp/js/lang-package~4e34e71e.bf94b4c9.js.gz +0 -0
- /package/resource/public/cp/css/{lang-package~4e34e71e.1c9202cf.css → lang-package~4e34e71e.7dc88117.css} +0 -0
- /package/resource/public/cp/css/{lang-package~4e34e71e.1c9202cf.css.gz → lang-package~4e34e71e.7dc88117.css.gz} +0 -0
- /package/resource/public/cp/js/{chunk-0ac1d88a.e1fc95be.js → chunk-0ac1d88a.a3f79e7c.js} +0 -0
- /package/resource/public/cp/js/{chunk-0ac1d88a.e1fc95be.js.gz → chunk-0ac1d88a.a3f79e7c.js.gz} +0 -0
- /package/resource/public/cp/js/{chunk-44a8e73b.256b9f27.js → chunk-44a8e73b.a339adac.js} +0 -0
- /package/resource/public/cp/js/{chunk-44a8e73b.256b9f27.js.gz → chunk-44a8e73b.a339adac.js.gz} +0 -0
- /package/resource/public/cp/js/{chunk-46b7b83a.91104b10.js → chunk-46b7b83a.def095cf.js} +0 -0
- /package/resource/public/cp/js/{chunk-46b7b83a.91104b10.js.gz → chunk-46b7b83a.def095cf.js.gz} +0 -0
- /package/resource/public/cp/js/{chunk-4b9bd2bc.85b00e67.js → chunk-4b9bd2bc.90c4bba9.js} +0 -0
- /package/resource/public/cp/js/{chunk-4b9bd2bc.85b00e67.js.gz → chunk-4b9bd2bc.90c4bba9.js.gz} +0 -0
- /package/resource/public/cp/js/{chunk-e4a3fce0.4077f2f6.js → chunk-e4a3fce0.463e6606.js} +0 -0
- /package/resource/public/cp/js/{chunk-e4a3fce0.4077f2f6.js.gz → chunk-e4a3fce0.463e6606.js.gz} +0 -0
- /package/resource/public/cp/js/{lang-zh-TW-service~f63b1681.f6b02251.js → lang-zh-TW-service~f63b1681.7da08443.js} +0 -0
- /package/resource/public/cp/js/{lang-zh-TW-service~f63b1681.f6b02251.js.gz → lang-zh-TW-service~f63b1681.7da08443.js.gz} +0 -0
|
Binary file
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
<script>
|
|
184
184
|
var debug = false;
|
|
185
|
-
const httpurl = 'http://192.168.3.
|
|
185
|
+
const httpurl = 'http://192.168.3.73:8299';
|
|
186
186
|
const translations = {
|
|
187
187
|
'zh-CN': {
|
|
188
188
|
paymentDetails: '支付详情',
|
|
@@ -197,7 +197,9 @@
|
|
|
197
197
|
debitCard: '借记卡',
|
|
198
198
|
bankTransfer: '银行转账',
|
|
199
199
|
digitalWallet: '电子钱包',
|
|
200
|
-
translatePrice: '换算金额'
|
|
200
|
+
translatePrice: '换算金额',
|
|
201
|
+
balance: '余额',
|
|
202
|
+
paySuccess: '支付成功',
|
|
201
203
|
},
|
|
202
204
|
'en-US': {
|
|
203
205
|
paymentDetails: 'Payment Details',
|
|
@@ -212,7 +214,9 @@
|
|
|
212
214
|
debitCard: 'Debit Card',
|
|
213
215
|
bankTransfer: 'Bank Transfer',
|
|
214
216
|
digitalWallet: 'Digital Wallet',
|
|
215
|
-
translatePrice: 'Translate Price'
|
|
217
|
+
translatePrice: 'Translate Price',
|
|
218
|
+
balance: 'Balance',
|
|
219
|
+
paySuccess: 'Payment Success',
|
|
216
220
|
}
|
|
217
221
|
};
|
|
218
222
|
|
|
@@ -309,6 +313,15 @@
|
|
|
309
313
|
if (result && result.data && result.data.list) {
|
|
310
314
|
// this.paymentList = result.data.list
|
|
311
315
|
// this.initPaymenthods();
|
|
316
|
+
if(result.data.list){
|
|
317
|
+
// 向第一个追加余额支付
|
|
318
|
+
result.data.list.unshift({
|
|
319
|
+
"pay_way_id": 0,
|
|
320
|
+
"description": translate('balance'),
|
|
321
|
+
"logo": "",
|
|
322
|
+
"balance": result.data.balance_currency + result.data.balance
|
|
323
|
+
});
|
|
324
|
+
}
|
|
312
325
|
resolve(result.data.list);
|
|
313
326
|
} else {
|
|
314
327
|
if (result && result.message) {
|
|
@@ -330,12 +343,12 @@
|
|
|
330
343
|
const container = document.getElementById('payment-methods');
|
|
331
344
|
container.innerHTML = methods.map(method => `
|
|
332
345
|
<div class="payment-method" data-id="${method.pay_way_id}">
|
|
333
|
-
|
|
334
|
-
<h3 data-i18n="${method.description}">${translate(method.description)}</h3>
|
|
335
|
-
|
|
346
|
+
${method.logo ? `<img src="${method.logo}" alt="${translate(method.description)}">` : `<div style="height: 22px;"></div>`}
|
|
347
|
+
<h3 data-i18n="${method.description}" data-id="${method.pay_way_id}">${translate(method.description)}</h3>
|
|
348
|
+
${method.balance ? `<p>余额:${method.balance}</p>` : `<select class="currency-select" data-id="${method.pay_way_id}">
|
|
336
349
|
<option value="" data-i18n="selectCurrency">${translate('selectCurrency')}</option>
|
|
337
350
|
${method.currencies.map(currency => `<option value="${currency}">${currency}</option>`).join('')}
|
|
338
|
-
</select
|
|
351
|
+
</select>`}
|
|
339
352
|
</div>
|
|
340
353
|
`).join('');
|
|
341
354
|
|
|
@@ -387,13 +400,19 @@
|
|
|
387
400
|
}
|
|
388
401
|
async function updatePayButton() {
|
|
389
402
|
const selectedMethod = document.querySelector('.payment-method[style*="border-color: rgb(49, 130, 206)"]');
|
|
390
|
-
const
|
|
403
|
+
const payWayId = selectedMethod?.getAttribute('data-id')
|
|
404
|
+
const selectedCurrency = selectedMethod ? selectedMethod.querySelector('.currency-select')?.value : '';
|
|
391
405
|
const payButton = document.getElementById('pay-button');
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
406
|
+
if (payWayId+'' === '0') {
|
|
407
|
+
// payButton.textContent = '余额支付';
|
|
408
|
+
payButton.disabled = false
|
|
409
|
+
}else{
|
|
410
|
+
payButton.disabled = !selectedMethod || !selectedCurrency;
|
|
411
|
+
}
|
|
412
|
+
const methodName = selectedMethod.querySelector('[data-i18n]').getAttribute('data-i18n');
|
|
413
|
+
if (!payButton.disabled && payWayId+'' !== '0') {
|
|
395
414
|
// alert(translate('paymentProcessing', { method: translate(methodName), currency: selectedCurrency }));
|
|
396
|
-
payRes = await Pay(selectedCurrency,
|
|
415
|
+
payRes = await Pay(selectedCurrency, payWayId, methodName);
|
|
397
416
|
}
|
|
398
417
|
}
|
|
399
418
|
|
|
@@ -457,10 +476,13 @@
|
|
|
457
476
|
resolve({ url: qrCode, type: 'qrCode' });
|
|
458
477
|
// this.lunxunOrder();
|
|
459
478
|
}
|
|
479
|
+
if (payWayId === '' && result.message === 'SUCCESS'){
|
|
480
|
+
resolve({ status: 'SUCCESS' });
|
|
481
|
+
}
|
|
460
482
|
} else {
|
|
461
483
|
if (result && result.message) {
|
|
462
484
|
// that.ErrMsg = result.message;
|
|
463
|
-
console.log('result.message', result.message);
|
|
485
|
+
// console.log('result.message', result.message);
|
|
464
486
|
// showErrText(result.message);
|
|
465
487
|
showNotification(result.message, 'error');
|
|
466
488
|
}
|
|
@@ -537,19 +559,23 @@
|
|
|
537
559
|
const currencySelect = firstPaymentMethod.querySelector('.currency-select');
|
|
538
560
|
|
|
539
561
|
// 选中第一个有效的货币选项(跳过空选项)
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
currencySelect.
|
|
543
|
-
|
|
562
|
+
if(currencySelect){
|
|
563
|
+
for (let i = 1; i < currencySelect.options.length; i++) {
|
|
564
|
+
if (currencySelect.options[i].value) {
|
|
565
|
+
currencySelect.selectedIndex = i;
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
544
568
|
}
|
|
569
|
+
// 手动触发选择事件
|
|
570
|
+
const mockEvent = {
|
|
571
|
+
target: currencySelect,
|
|
572
|
+
stopPropagation: () => { } // 添加一个空的 stopPropagation 方法
|
|
573
|
+
};
|
|
574
|
+
selectPaymentMethodAndCurrency(mockEvent);
|
|
575
|
+
}else{
|
|
576
|
+
firstPaymentMethod.click();
|
|
545
577
|
}
|
|
546
|
-
|
|
547
|
-
// 手动触发选择事件
|
|
548
|
-
const mockEvent = {
|
|
549
|
-
target: currencySelect,
|
|
550
|
-
stopPropagation: () => { } // 添加一个空的 stopPropagation 方法
|
|
551
|
-
};
|
|
552
|
-
selectPaymentMethodAndCurrency(mockEvent);
|
|
578
|
+
|
|
553
579
|
}
|
|
554
580
|
|
|
555
581
|
async function initPage() {
|
|
@@ -579,9 +605,8 @@
|
|
|
579
605
|
|
|
580
606
|
document.getElementById('pay-button').addEventListener('click',async () => {
|
|
581
607
|
const selectedMethod = document.querySelector('.payment-method[style*="border-color: rgb(49, 130, 206)"]');
|
|
582
|
-
const selectedCurrency = selectedMethod ? selectedMethod.querySelector('.currency-select')
|
|
608
|
+
const selectedCurrency = selectedMethod ? selectedMethod.querySelector('.currency-select')?.value : '';
|
|
583
609
|
// 我想通过selectedCurrency获取他标签上的data-id
|
|
584
|
-
console.log('selectedCurrency', selectedMethod.querySelector('.currency-select').getAttribute('data-id'));
|
|
585
610
|
if (selectedMethod && selectedCurrency) {
|
|
586
611
|
// const methodName = selectedMethod.querySelector('[data-i18n]').getAttribute('data-i18n');
|
|
587
612
|
// console.log('selectedCurrency', selectedCurrency, methodName);
|
|
@@ -598,6 +623,21 @@
|
|
|
598
623
|
// showErrText('支付失败');
|
|
599
624
|
}
|
|
600
625
|
|
|
626
|
+
}else{
|
|
627
|
+
const selectedMethod = document.querySelector('.payment-method[style*="border-color: rgb(49, 130, 206)"]');
|
|
628
|
+
const payWayId = selectedMethod?.getAttribute('data-id')
|
|
629
|
+
if(payWayId+'' === '0'){
|
|
630
|
+
// 余额支付
|
|
631
|
+
const res = await Pay(selectedCurrency, '', '余额');
|
|
632
|
+
if (res.status === 'SUCCESS') {
|
|
633
|
+
showNotification(translate('paySuccess'), 'success');
|
|
634
|
+
setTimeout(() => {
|
|
635
|
+
window.close();
|
|
636
|
+
}, 2000);
|
|
637
|
+
}else{
|
|
638
|
+
// showErrText('支付失败');
|
|
639
|
+
}
|
|
640
|
+
}
|
|
601
641
|
}
|
|
602
642
|
});
|
|
603
643
|
|
package/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v1.82.
|
|
1
|
+
v1.82.4
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a751530a"],{"0ef6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{ref:"portaletDiv",staticClass:"module"},[t._m(0)])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"module-in"},[e("ul",{staticClass:"information02"},[e("li",[e("div",{staticClass:"sky"},[e("img",{attrs:{src:a("924b"),alt:""}})]),e("div",{staticClass:"information02-data"},[e("span",[t._v("50%")]),e("p",[t._v("压力仪表盘")])])]),e("li",[e("div",{staticClass:"sky"},[e("img",{attrs:{src:a("4781"),alt:""}})]),e("div",{staticClass:"information02-data"},[e("span",[t._v("28%")]),e("p",[t._v("完成率")])])])])])}],r={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},n=r,s=(a("d936"),a("2877")),l=Object(s["a"])(n,i,o,!1,null,"0c32075c",null);e["default"]=l.exports},"1b1b":function(t,e,a){},"23bd":function(t,e,a){},2855:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[e("a-button",{attrs:{type:"primary"},on:{click:t.returnIndex}},[t._v(" 返回工作台 ")])]},proxy:!0}])})},o=[],r={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},n=r,s=a("2877"),l=Object(s["a"])(n,i,o,!1,null,null,null);e["default"]=l.exports},"2f84":function(t,e,a){"use strict";a("606c")},4781:function(t,e,a){t.exports=a.p+"img/img02.9ac07e73.png"},"4a49":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,tip:"加载中..."}},[e("div",{style:"height:"+t.height},[e("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.src,frameborder:"no",scrolling:"auto"}})])])},o=[],r={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var t=this;setTimeout((function(){t.loading=!1}),230);var e=this;window.onresize=function(){e.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},n=r,s=a("2877"),l=Object(s["a"])(n,i,o,!1,null,null,null);e["default"]=l.exports},5194:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,tip:"加载中..."}},[e("div",{style:"height:"+t.height},[e("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.src,frameborder:"no",scrolling:"auto"}})])])},o=[],r={name:"Druid",components:{},data:function(){return{src:"/admin/druid/login.html",height:document.documentElement.clientHeight-124.5+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var t=this;setTimeout((function(){t.loading=!1}),230);var e=this;window.onresize=function(){e.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},n=r,s=a("2877"),l=Object(s["a"])(n,i,o,!1,null,null,null);e["default"]=l.exports},"576e":function(t,e,a){t.exports=a.p+"img/chart_sm.8001ec98.png"},"606c":function(t,e,a){},"6b08":function(t,e,a){"use strict";a.r(e);a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录名称"}},[e("a-input",{attrs:{placeholder:"请输入用户名称","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.userName,callback:function(e){t.$set(t.queryParam,"userName",e)},expression:"queryParam.userName"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录地址"}},[e("a-input",{attrs:{placeholder:"请输入登录地址","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.ipaddr,callback:function(e){t.$set(t.queryParam,"ipaddr",e)},expression:"queryParam.ipaddr"}})],1)],1),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("advance-table",{attrs:{columns:t.columns,"data-source":t.list,title:"在线用户",loading:t.loading,rowKey:"tokenId",tableKey:"monitor-online-index-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,pagination:{current:t.queryParam.pageNum,pageSize:t.queryParam.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"operation",fn:function(a){a.text;var i=a.record;return e("span",{},[e("a-popconfirm",{attrs:{"ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.confirmHandleForceLogout(i)},cancel:function(e){return t.cancelHandleForceLogout(i)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("确认强退"),e("b",[t._v(t._s(i.userName))]),t._v("的用户吗?")]),e("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:online:forceLogout"],expression:"['monitor:online:forceLogout']"}],staticStyle:{color:"#2f54eb"}},[t._v(" 强退 ")])])],1)}}])})],1)],1)},o=[],r=a("b775");function n(t){return Object(r["b"])({url:"/monitor/online/list",method:"get",params:t})}function s(t){return Object(r["b"])({url:"/monitor/online/"+t,method:"delete"})}var l=a("5d9e"),c={name:"Online",components:{AdvanceTable:l["a"]},data:function(){return{list:[],loading:!1,labelCol:{span:6},wrapperCol:{span:18},total:0,multiple:!0,queryParam:{pageNum:1,pageSize:10,ipaddr:void 0,userName:void 0},columns:[{title:"会话编号",dataIndex:"tokenId",ellipsis:!0,align:"center"},{title:"登录名称",dataIndex:"userName",align:"center"},{title:"部门名称",dataIndex:"deptName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",ellipsis:!0,align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"登录时间",dataIndex:"loginTime",width:180,scopedSlots:{customRender:"loginTime"},align:"center"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){this.getList()},computed:{},watch:{},methods:{getList:function(){var t=this;this.loading=!0,n(this.queryParam).then((function(e){t.list=e.rows,t.total=e.total,t.loading=!1}))},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:void 0,userName:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.pageSize=e,this.getList()},changeSize:function(t,e){this.queryParam.pageNum=t,this.queryParam.pageSize=e,this.getList()},confirmHandleForceLogout:function(t){var e=this;s(t.tokenId).then((function(){e.getList(),e.$message.success("已强退",3)})).catch((function(){this.$message.error("发生异常",3)}))},cancelHandleForceLogout:function(t){}}},u=c,d=a("2877"),m=Object(d["a"])(u,i,o,!1,null,null,null);e["default"]=m.exports},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"404"},n=r,s=a("2877"),l=Object(s["a"])(n,i,o,!1,null,"206078e4",null);e["default"]=l.exports},"924b":function(t,e,a){t.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(t,e,a){},ac2a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main"},[e("div",{staticStyle:{"text-align":"right"}},[e("select-lang",{attrs:{currentLangText:!0,defaultLang:t.routerLang}})],1),t.form.role_name&&!t.LoginStatus?e("div",[e("div",[t._v(t._s(t.form.role_name+t.$t("view.user.register"))+":")])]):t._e(),e("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:t.form,rules:t.rules}},[t.LoginStatus?e("a-tabs",{staticClass:"loginTitle",on:{change:function(e){t.loginType=e}}},[e("a-tab-pane",{key:"1",attrs:{tab:t.$t(t.LoginStatus?"login.modal.tab1":"view.user.register.tab1")}}),e("a-tab-pane",{key:"2",attrs:{tab:t.$t(t.LoginStatus?"login.modal.tab2":"view.user.register.tab2")}})],1):t._e(),e("a-form-model-item",{attrs:{prop:"username"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.username.label")},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"password"}},[e("a-input-password",{attrs:{size:"large",placeholder:t.$t("view.login.email.add.password.label")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t.LoginStatus?t._e():e("a-form-model-item",{attrs:{prop:"realname"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.realname.label")},model:{value:t.form.realname,callback:function(e){t.$set(t.form,"realname",e)},expression:"form.realname"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t.LoginStatus?t._e():e("a-form-model-item",{attrs:{prop:"mobile"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.mobile.label")},model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),t.LoginStatus?t._e():e("a-form-model-item",{attrs:{prop:"email"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.email.label")},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),t.LoginStatus&&t.captchaOnOff?e("a-row",{attrs:{gutter:16}},[e("a-col",{staticClass:"gutter-row",attrs:{span:16}},[e("a-form-model-item",{attrs:{prop:"code"}},[e("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:t.$t("login.modal.code")},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),e("a-col",{staticClass:"gutter-row",attrs:{span:8}},[e("img",{staticClass:"getCaptcha",attrs:{src:t.codeUrl},on:{click:t.getCode}})])],1):t._e(),t.LoginStatus?t._e():e("a-row",{attrs:{gutter:16}},[e("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[e("a-form-model-item",{attrs:{prop:"code"}},[e("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:t.$t("view.modal.email.code.placeholder")},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),e("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[e("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:t.codeLoading,size:"large"},on:{click:t.getEmailCode}},[t._v(t._s(t.codeLoading?t.$t("view.modal.code.time",{time:t.currentCodeTime}):t.$t("view.modal.email.code")))])],1)],1),t.LoginStatus?t._e():e("a-form-model-item",{attrs:{prop:"distribution_code"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.add.code.label")},model:{value:t.form.distribution_code,callback:function(e){t.$set(t.form,"distribution_code",e)},expression:"form.distribution_code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1),t.LoginStatus?e("a-form-item",{staticStyle:{"margin-top":"3rem"}},[e("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:t.logining,disabled:t.logining},on:{click:t.handleSubmit}},[t._v(" "+t._s((t.loginType,t.$t("view.modal.login")))+" ")])],1):t._e(),t.LoginStatus?t._e():e("a-form-item",{staticStyle:{"margin-top":"0.25rem","margin-bottom":"1rem"}},[e("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:t.logining,disabled:t.logining},on:{click:t.handleRegister}},[t._v(" "+t._s((t.loginType,t.$t("view.user.register")))+" ")])],1),e("a-row",[e("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:24}},[e("a-space",[e("div",{staticClass:"icons-list"},[t.LoginStatus?e("a-button",{attrs:{type:"link"},on:{click:t.goRegister}},[t._v(t._s(t.$t("view.user.register")))]):t._e(),t.LoginStatus?t._e():e("a-button",{attrs:{type:"link"},on:{click:t.goLogin}},[t._v(t._s(t.$t("view.modal.login")))])],1)])],1)],1)],1)],1)},o=[],r=a("5530"),n=(a("d3b7"),a("2f62")),s=a("7ded"),l=a("04b3"),c=a("da7d"),u={components:{allIcon:l["a"],SelectLang:c["a"]},data:function(){return{prefixCls:"ant-pro-global-header-index-action",loginType:"1",allIcon:l["a"],codeUrl:"",form:{username:"",password:"",code:"",cid:"123"},captchaOnOff:!0,rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},logining:!1,LoginStatus:!0,CodeTime:null,codeLoading:!1,currentCodeTime:0,routerLang:""}},created:function(){var t;this.getCode(),null!==(t=this.$route.query)&&void 0!==t&&t.lang&&(this.routerLang=this.$route.query.lang),this.$route.query.role_id&&(this.form.role_id=this.$route.query.role_id,this.form.role_name=this.$route.query.role_name),"1"===this.$route.query.register&&this.goRegister(),this.$route.query.ref_code&&(this.form.distribution_code=this.$route.query.ref_code),this.$route.query.token&&this.loginSuccess()},beforeDestroy:function(){clearInterval(this.CodeTime)},methods:Object(r["a"])(Object(r["a"])({getCode:function(){var t=this;Object(s["c"])().then((function(e){t.captchaOnOff=void 0===e.captchaOnOff||e.captchaOnOff,t.captchaOnOff&&(t.codeUrl=e.base64,t.form.cid=e.cid)}))},applyLicense:function(){window.open("/applyLicense","_blank")}},Object(n["b"])(["Login","Logout","SubLogin"])),{},{handleSubmit:function(){var t=this;this.$notification.close("loginExpireTip"),this.logining=!0,this.$refs.form.validate((function(e){e?"1"===t.loginType?t.Login(t.form).then((function(e){return t.loginSuccess(e)})).catch((function(e){return t.requestFailed(e)})).finally((function(){t.logining=!1})):t.SubLogin(t.form).then((function(e){return t.loginSuccess(e)})).catch((function(e){return t.requestFailed(e)})).finally((function(){t.logining=!1})):(setTimeout((function(){t.logining=!1}),600),t.captchaOnOff&&t.getCode())}))},loginSuccess:function(t){this.$router.push({path:"/"})},requestFailed:function(t){this.form.code=void 0,this.getCode(),this.$message.error(t)},handleCloseLoginError:function(){},goRegister:function(){this.rules.email[0].required=!0,this.LoginStatus=!1},goLogin:function(){this.rules.email[0].required=!1,this.LoginStatus=!0},handleRegister:function(){var t=this;this.$refs.form.validate((function(e){e?Object(s["k"])(t.form).then((function(e){0===e.code&&(t.$message.success(t.$t("view.modal.register.succes")),t.goLogin())})):setTimeout((function(){t.logining=!1}),600)}))},getEmailCode:function(){var t=this;this.codeLoading||this.$refs.form.validateField("email",(function(e){e||Object(s["b"])({email:t.form.email}).then((function(e){0===e.code&&(t.codeLoading=!0,t.getCodeTime(),t.$message.success(t.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var t=this,e=30;this.currentCodeTime=e,this.CodeTime=setInterval((function(){e--,t.currentCodeTime=e,e<=0&&(t.codeLoading=!1,clearInterval(t.CodeTime))}),1e3)}})},d=u,m=(a("d7c4"),a("b922"),a("2877")),g=Object(m["a"])(d,i,o,!1,null,"5cdefbf5",null);e["default"]=g.exports},b922:function(t,e,a){"use strict";a("e04b")},d7c4:function(t,e,a){"use strict";a("1b1b")},d936:function(t,e,a){"use strict";a("92c5")},da84e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{ref:"portaletDiv",staticClass:"module module01"},[t._m(0),e("a-icon",{staticClass:"card-icon",attrs:{type:"dashboard"}})],1)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("h3",[t._v("访问量")]),e("div",{staticClass:"card-inner"},[e("span",{staticClass:"card-number"},[t._v("8,846")]),e("div",{staticClass:"card-chart"},[e("div",{staticClass:"chart_sm"},[e("img",{attrs:{src:a("576e"),width:"100%"}})])])])])}],r={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},n=r,s=(a("2f84"),a("2877")),l=Object(s["a"])(n,i,o,!1,null,"5f97037d",null);e["default"]=l.exports},e04b:function(t,e,a){}}]);
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/resource/public/cp/js/{chunk-0ac1d88a.e1fc95be.js.gz → chunk-0ac1d88a.a3f79e7c.js.gz}
RENAMED
|
File without changes
|
|
File without changes
|
/package/resource/public/cp/js/{chunk-44a8e73b.256b9f27.js.gz → chunk-44a8e73b.a339adac.js.gz}
RENAMED
|
File without changes
|
|
File without changes
|
/package/resource/public/cp/js/{chunk-46b7b83a.91104b10.js.gz → chunk-46b7b83a.def095cf.js.gz}
RENAMED
|
File without changes
|
|
File without changes
|
/package/resource/public/cp/js/{chunk-4b9bd2bc.85b00e67.js.gz → chunk-4b9bd2bc.90c4bba9.js.gz}
RENAMED
|
File without changes
|
|
File without changes
|
/package/resource/public/cp/js/{chunk-e4a3fce0.4077f2f6.js.gz → chunk-e4a3fce0.463e6606.js.gz}
RENAMED
|
File without changes
|
|
File without changes
|