汪总电商平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

80 lines
2.1 KiB

define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'clipboard', 'vue'], function ($, undefined, Backend, Table, Form, Clipboard, Vue) {
var Controller = {
// 客户端配置
client: function () {
//绑定复制事件
var clipboard = new Clipboard('.btn-copy');
clipboard.on('success', function(e) {
layer.msg('复制成功');
});
clipboard.on('error', function(e) {
layer.msg('复制失败');
});
Controller.api.bindevent();
},
// 系统设置
config: function () {
var vm = new Vue({
el: '#app',
data() {
return {
row: Config.wanlshop,
transTemplateSwitch: Config.wanlshop.live.transTemplateSwitch,
transTemplateList: {
Y:'启用转码模板,阿里直播需同步添加',
N:'不使用转码模板,原画输出'
},
authSwitch: Config.wanlshop.live.authSwitch,
authList: {
Y:'启用直播鉴权,阿里直播需开启鉴权且鉴权KEY需和后台保持一致',
N:'关闭直播鉴权,阿里直播需手动同步关闭鉴权'
},
}
}
});
//绑定复制事件
var clipboard = new Clipboard('.btn-copy');
clipboard.on('success', function(e) {
layer.msg('复制成功');
});
clipboard.on('error', function(e) {
layer.msg('复制失败');
});
Controller.api.bindevent();
},
// App管理
app: function () {
Controller.api.bindevent();
},
// H5管理
h5: function () {
Controller.api.bindevent();
},
// 微信小程序
mpweixin: function () {
Controller.api.bindevent();
},
// 百度小程序
mpbaidu: function () {
Controller.api.bindevent();
},
// 头条小程序
mptoutiao: function () {
Controller.api.bindevent();
},
// 支付宝小程序
mpalipay: function () {
Controller.api.bindevent();
},
// QQ小程序
mpqq: function () {
Controller.api.bindevent();
},
api: {
bindevent: function () {
Form.api.bindevent($("form[role=form]"), function(data, ret){});
}
}
};
return Controller;
});