From 94879204c236edaf6ee80a176c2a781a352b2b93 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期一, 14 三月 2022 15:06:56 +0800
Subject: [PATCH] 产品管理--图标
---
web/web/GwProduct.ashx | 2
web/web/static/images/productIcon/marketingSMS-32.png | 0
web/web/static/images/productIcon/VerificationCodeSMS-32.png | 0
web/web/GwProduct.aspx | 105 +++++++++++-----------------------------------------
web/web/static/images/productIcon/noticeSMS-32.png | 0
5 files changed, 24 insertions(+), 83 deletions(-)
diff --git a/web/web/GwProduct.ashx b/web/web/GwProduct.ashx
index 4a9c112..ce6f82d 100644
--- a/web/web/GwProduct.ashx
+++ b/web/web/GwProduct.ashx
@@ -69,7 +69,7 @@
foreach (GwProduct bean in list)
{
++num;
- str1 = str1 + (object) "<tr><td>" + (object) bean.Icon;
+ str1 = str1 + (object) "<tr><td>" + "<img src=\"../static/images/productIcon/" + (object) bean.Icon + "\" >";
str1 = str1 + "</td><td>" + bean.Name + "</td>";
str1 = string.Concat(new object[4]
{
diff --git a/web/web/GwProduct.aspx b/web/web/GwProduct.aspx
index b6ecd5b..f68d735 100644
--- a/web/web/GwProduct.aspx
+++ b/web/web/GwProduct.aspx
@@ -73,6 +73,16 @@
}
});
+ //閫夋嫨鍥炬爣涓嬫媺妗�
+ $("#icon").on("change", function () {
+ console.log("icon:" + $(this).val());
+ if ($(this).val() != "") {
+ document.getElementById('showImg').src = "../static/images/productIcon/" + $(this).val();
+ }
+ });
+
+ $("#icon").trigger("change");
+
//閫夋嫨绫诲埆涓嬫媺妗嗭紝鎺у埗鐩稿叧杈撳叆椤规樉绀�
$("#classes").on("change", function () {
$(".classes-span").hide();
@@ -133,7 +143,11 @@
}
+ //璁剧疆绫诲埆
$("#classes").trigger("change");
+
+ //璁剧疆鍥炬爣
+ $("#icon").trigger("change");
$("#productDialog").modal("show");
}
@@ -166,36 +180,6 @@
"json");
}
});
- });
-
- //涓婁紶鍥炬爣鏂囦欢
- $(document).on("click", ".action-upLoad", function () {
- //var id = $(this).data("id");
- var name = "涓婁紶鍥炬爣鏂囦欢" ;
- //$("#ablackpool").val(id);
- $("#upLoad_form .modal-title").text(name);
- $("#stopwatchTime").text('');
- $("#upLoad").modal("show");
- });
-
- $("#upLoad_form").ajaxForm({
- beforeSend: function () {
- $('#upLoad_form .action-save').attr('disabled', "true");
- $('#upLoad_form .action-save').text('姝e湪涓婁紶...');
- },
- success: function (result) {
- if (result.OK) {
- mytek.alert(result.Message.Message);
- $("#stopwatchTime").text(result.Message.Msg);
- $('#upLoad_form .action-save').removeAttr("disabled");
- $("#certPath").val('');
- $('#upLoad_form .action-save').text('涓婁紶');
- } else {
- mytek.alert(result.Message, result.False);
- $('#upLoad_form .action-save').removeAttr("disabled");
- $('#upLoad_form .action-save').text('涓婁紶');
- }
- }
});
$(document).on("click", ".action-btn-GwProductQuery", function() {
@@ -319,16 +303,16 @@
<label class="col-sm-2 control-label">
鍥炬爣</label>
<div class="col-sm-4 ">
- <a class="action-upLoad btn btn-info btn-xs " href="javascript:; ">閫夋嫨涓婁紶鏂囦欢</a>
- <!--
- <input type="file" id="certPath" name="certPath" />
- <span id="stopwatchTime" style="- word-wrap: break-word; word-break: break-all;"></span>
-
- <input type="text" class="form-control" name="icon" id="icon" value="" />
- -->
+ <div><img id="showImg" name="showImg" src=""></div>
+ <select id="icon" name="icon" class="form-control" >
+ <option value="">--璇烽�夋嫨鍥炬爣--</option>
+ <option value="marketingSMS-32.png" >marketingSMS-32.png</option>
+ <option value="noticeSMS-32.png" >noticeSMS-32.png</option>
+ <option value="VerificationCodeSMS-32.png" >VerificationCodeSMS-32.png</option>
+ </select>
</div>
- <span class="help-block m-b-none">绫诲埆涓轰骇鍝佹椂锛屼骇鍝佺殑鍥炬爣鏍囪瘑锛涗笂浼犳枃浠舵牸寮忎负BMP锛堜綅鍥撅級銆丣PG銆丣PEG銆丳NG銆丟IF鏂囦欢锛堟枃浠跺ぇ灏忎笉鑳借秴杩�5M锛夈��
- </span>
+ <span class="help-block m-b-none">绫诲埆涓轰骇鍝佹椂锛屼骇鍝佺殑鍥炬爣鏍囪瘑銆�
+ </span>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
@@ -483,50 +467,7 @@
</form>
</div>
</div>
-
- <div class="modal inmodal fade" id="upLoad" tabindex="-1" role="dialog"
- aria-hidden="true">
- <form name="upLoad_form" method="post" action="GwProduct.ashx?action=upLoad"
- id="upLoad_form" class="form-horizontal">
- <div class="modal-dialog form-horizontal">
- <div class="modal-content ">
- <input type="hidden" id="ablackpool" value="" name="ablackpool" />
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">
- <span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">
- 涓婁紶鏂囦欢
- </h4>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <label class="control-label col-sm-3">
- 璇烽�夋嫨瑕佷笂浼犵殑鍥炬爣鏂囦欢</label>
- <input type="file" id="certPath" name="certPath" />
-
- <span id="stopwatchTime" style="word-wrap: break-word; word-break: break-all;"></span>
- </div>
- <div>
- <h3>
- 璇存槑</h3>
- <ul>
- <li class="text-info">涓婁紶鏂囦欢鏍煎紡涓築MP锛堜綅鍥撅級銆丣PG銆丣PEG銆丳NG銆丟IF鏂囦欢锛堟枃浠跺ぇ灏忎笉鑳借秴杩�5M锛夛紱</li>
-
- </ul>
- </div>
- </div>
- <div class="modal-footer">
- <button class="btn btn-default " data-dismiss="modal" aria-hidden="true">
- 鍙栨秷</button>
- <button class="btn btn-primary action-save">
- 涓婁紶</button>
- </div>
- </div>
- </div>
- </form>
- </div>
-
<!-- footBar -->
<div id="mask" class="mask">
<span></span>
diff --git a/web/web/static/images/productIcon/VerificationCodeSMS-32.png b/web/web/static/images/productIcon/VerificationCodeSMS-32.png
new file mode 100644
index 0000000..2eff389
--- /dev/null
+++ b/web/web/static/images/productIcon/VerificationCodeSMS-32.png
Binary files differ
diff --git a/web/web/static/images/productIcon/marketingSMS-32.png b/web/web/static/images/productIcon/marketingSMS-32.png
new file mode 100644
index 0000000..5be1c91
--- /dev/null
+++ b/web/web/static/images/productIcon/marketingSMS-32.png
Binary files differ
diff --git a/web/web/static/images/productIcon/noticeSMS-32.png b/web/web/static/images/productIcon/noticeSMS-32.png
new file mode 100644
index 0000000..481bb0f
--- /dev/null
+++ b/web/web/static/images/productIcon/noticeSMS-32.png
Binary files differ
--
Gitblit v1.9.1