@@ -448,15 +472,16 @@
-
+
@@ -859,6 +894,8 @@ export default {
width: "10%",
formatter: function (val, row, index) {
switch (val) {
+ case 0:
+ return "无跳转";
case 1:
return "App页面";
@@ -883,6 +920,13 @@ export default {
width: "8%",
valign: "middle",
},
+ {
+ field: "limitExpLevel",
+ title: "用户等级限制",
+ align: "center",
+ width: "8%",
+ valign: "middle",
+ },
{
field: "bannerStatus",
title: "状态",
@@ -897,6 +941,8 @@ export default {
case 2:
return "未激活";
+ case 3:
+ return "未过期";
}
},
},
@@ -1046,6 +1092,7 @@ export default {
skipType: parseInt($("#skipType").val()),
bannerType: $("#searchBannerType").val(),
partitionId: $("#partitionId").val(),
+ bannerName:$("#bannerName").val(),
// appId: ($('#app').val()) ? $('#app').val() : null
};
// console.log(param);
@@ -1124,6 +1171,11 @@ export default {
$("#imgUrl").attr("src", json.data.bannerPic);
$("#bannerPic").val(json.data.bannerPic);
$("#skipUrlSort").val(json.data.skipType);
+ if(json.data.skipType != 0){
+ $("#SkipUrlInput").show();
+ }else{
+ $("#SkipUrlInput").hide();
+ }
$("#skipUrlContent").val(json.data.skipUri);
$("#bannerType").val(json.data.bannerType);
$("#seqNo").val(json.data.seqNo);
@@ -1140,6 +1192,7 @@ export default {
$("#showType").val(json.data.showType);
$("#showRule").val(json.data.showRule);
$("#activityShow").val(json.data.activityShow);
+ $("#limitExpLevel").val(json.data.limitExpLevel);
window.selectOnChange(
json.data.bannerType,
json.data.titleId
@@ -1422,6 +1475,7 @@ export default {
// $('#addAppId').append('');
// }
$("#addBannerModal").modal("show");
+ $("#addSkipUrlInput").show();
});
$("#table").on("mouseenter", "img", function (e) {
console.log($(this), e.clientX);
@@ -1497,6 +1551,25 @@ export default {
});
}
});
+ $('#addSkipUrlSort').on('change', function() {
+ let selectedValue = $(this).val();
+ if(selectedValue == 0){
+ $("#addSkipUrlInput").hide();
+ $("#addSkipUrlContent").val("");
+ }else{
+ $("#addSkipUrlInput").show();
+ }
+ });
+ $('#skipUrlSort').on('change', function() {
+ let selectedValue = $(this).val();
+ if(selectedValue == 0){
+ $("#SkipUrlInput").hide();
+ $("#skipUrlContent").val("");
+ }else{
+ $("#SkipUrlInput").show();
+ }
+ });
+
});
},
initPartition () {
diff --git a/src/views/firstpage/towPageBannerView.vue b/src/views/firstpage/towPageBannerView.vue
index 62669f1..b4ca299 100644
--- a/src/views/firstpage/towPageBannerView.vue
+++ b/src/views/firstpage/towPageBannerView.vue
@@ -32,6 +32,7 @@
+
+