...
|
...
|
@@ -45,14 +45,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
add: function () {
|
|
|
var Type = document.getElementById("c-type");
|
|
|
var JumpWeb = document.getElementById("jump_web");
|
|
|
var JumpPage = document.getElementById("jump_page");
|
|
|
var Goods = document.getElementById("Goods");
|
|
|
Type.onchange = function () {
|
|
|
if (Type.value == 2) {
|
|
|
if (Type.value == 1) {
|
|
|
JumpPage.style.display = 'none';
|
|
|
Goods.style.display = 'block';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
}
|
|
|
if(Type.value == 2){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'block';
|
|
|
}else{
|
|
|
Goods.style.display = 'block';
|
|
|
JumpPage.style.display = 'none';
|
|
|
}
|
|
|
if(Type.value == 3){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
JumpPage.style.display = 'block';
|
|
|
}
|
|
|
};
|
|
|
Controller.api.bindevent();
|
...
|
...
|
@@ -60,23 +69,40 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
edit: function () {
|
|
|
var Type = Config.type;
|
|
|
var JumpWeb = document.getElementById("jump_web");
|
|
|
var JumpPage = document.getElementById("jump_page");
|
|
|
var Goods = document.getElementById("Goods");
|
|
|
if (Type == 2) {
|
|
|
if (Type == 1) {
|
|
|
JumpPage.style.display = 'none';
|
|
|
Goods.style.display = 'block';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
}
|
|
|
if(Type == 2){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'block';
|
|
|
}else{
|
|
|
Goods.style.display = 'block';
|
|
|
JumpPage.style.display = 'none';
|
|
|
}
|
|
|
if(Type == 3){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
JumpPage.style.display = 'block';
|
|
|
}
|
|
|
|
|
|
var Type2 = document.getElementById("c-type");
|
|
|
Type2.onchange = function () {
|
|
|
if (Type2.value == 2) {
|
|
|
if (Type2.value == 1) {
|
|
|
JumpPage.style.display = 'none';
|
|
|
Goods.style.display = 'block';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
}
|
|
|
if(Type2.value == 2){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'block';
|
|
|
}else{
|
|
|
Goods.style.display = 'block';
|
|
|
JumpPage.style.display = 'none';
|
|
|
}
|
|
|
if(Type2.value == 3){
|
|
|
Goods.style.display = 'none';
|
|
|
JumpWeb.style.display = 'none';
|
|
|
JumpPage.style.display = 'block';
|
|
|
}
|
|
|
};
|
|
|
Controller.api.bindevent();
|
...
|
...
|
|