From 94d774ee91be8785b03a8b59d694c3f412dd92ab Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 29 八月 2025 09:18:29 +0800
Subject: [PATCH] update
---
cloud-server-management/src/main/webapp/static/modular/system/operator/operator.js | 67 ++++++++++++++++++++++++---------
1 files changed, 49 insertions(+), 18 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/operator/operator.js b/cloud-server-management/src/main/webapp/static/modular/system/operator/operator.js
index bbc7112..01b5ce2 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/operator/operator.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/operator/operator.js
@@ -19,7 +19,7 @@
*/
TSite.initColumn = function () {
return [
- {field: 'selectItem', checkbox: true},
+ {field: 'selectItem', radio: true},
{title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
{title: '运营商名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:'20%',},
{title: '管理员姓名', field: 'userName', visible: true, align: 'center', valign: 'middle',
@@ -28,19 +28,6 @@
{title: '管理区域', field: 'type', visible: true, align: 'center', valign: 'middle',
formatter:function (data) {
return {1:"全国",2:"指定区域"}[data]
- }
- },
- {title: '商户绑定状态', field: 'status', visible: true, align: 'center', valign: 'middle',
- formatter: function (data,row) {
- var btn = "";
- if(data==1) {
- var str = '<button class="btn btn-outline btn-primary" onclick="TSite.Allocationratio('+row.id+')" >去绑定</button>'
- btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>']
- }else{
- var str = '<h3>已绑定</h3>'
- btn = [str]
- }
- return btn;
}
},
{title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle',
@@ -68,17 +55,61 @@
* 商户号认证
*/
TSite.Allocationratio = function (e) {
- console.log("看看E");
- console.log(e);
+
var index = layer.open({
type: 2,
title: "商户认证",
area: ['100%', '100%'], //宽高
fix: false, //不固定
maxmin: true,
- content: Feng.ctxPath + '/operator/proportionAuth/' + e
+ content: Feng.ctxPath + '/operatorUser'
});
this.layerIndex = index;
+};
+/**
+ * 商户号认证页面
+ */
+TSite.auth = function () {
+ if (this.check()) {
+ var index = layer.open({
+ type: 2,
+ title: "商户认证",
+ area: ['100%', '100%'], //宽高
+ fix: false, //不固定
+ maxmin: true,
+ content: Feng.ctxPath + '/operator/proportionAuth/' + TSite.seItem.id
+ });
+ this.layerIndex = index;
+ }
+};
+TSite.bindWx = function () {
+ if (this.check()) {
+ var index = layer.open({
+ type: 2,
+ title: "商户认证",
+ area: ['100%', '100%'], //宽高
+ fix: false, //不固定
+ maxmin: true,
+ content: Feng.ctxPath + '/operator/bindWx/' + TSite.seItem.id
+ });
+ this.layerIndex = index;
+ }
+};
+/**
+ * 商户号认证页面回显
+ */
+TSite.auth1 = function () {
+ if (this.check()) {
+ var index = layer.open({
+ type: 2,
+ title: "商户认证详情",
+ area: ['100%', '100%'], //宽高
+ fix: false, //不固定
+ maxmin: true,
+ content: Feng.ctxPath + '/operator/proportionAuth1/' + TSite.seItem.id
+ });
+ this.layerIndex = index;
+ }
};
/**
* 分账比例
@@ -106,7 +137,6 @@
this.layerIndex = index;
}
}
-
};
TSite.addSubmit = function(){
var alipayType = $("input[name='alipayType']:checked").val();
@@ -152,6 +182,7 @@
}
var ajax = new $ax(Feng.ctxPath + "/operator/proportion", function(data){
Feng.success("分账比例设置成功")
+ window.parent.TSite.table.refresh();
TSite.close();
TSite.search();
});
--
Gitblit v1.7.1