From 3b18a48485f7207438d9d0eb3038d979e069431d Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 26 五月 2022 17:58:18 +0800
Subject: [PATCH] 优化产品及产品分类,订单,对称加密,IP转地区名称

---
 web/web/GwProduct.aspx |   72 +++++++++++++++++++++++-------------
 1 files changed, 46 insertions(+), 26 deletions(-)

diff --git a/web/web/GwProduct.aspx b/web/web/GwProduct.aspx
index fa56267..3ff390a 100644
--- a/web/web/GwProduct.aspx
+++ b/web/web/GwProduct.aspx
@@ -162,10 +162,21 @@
             //data鐨勫睘鎬у弬鏁颁笉鑳藉惈鏈夊ぇ鍐欏瓧姣嶃��
             var id = $(this).data("id");
             var isEnable = $(this).data("is_enable");
-            $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) {
-                mytek.alert(r.Message, r.OK, function () {
-                    loadPageList();
-                });
+            var statusStr = "";
+            if (isEnable == 0) {
+                statusStr = "銆愬仠鐢ㄣ��";
+            }
+            else {
+                statusStr = "銆愬惎鐢ㄣ��";
+            }
+            mytek.confirm("鏄惁闇�瑕�" + statusStr + "璇ヤ俊鎭紵", "纭鏇存柊淇℃伅鐘舵�侊紝璇疯皑鎱庢搷浣滐紒", function (b) {
+                if (b) {
+                    $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) {
+                        mytek.alert(r.Message, r.OK, function () {
+                            loadPageList();
+                        });
+                    });
+                }
             });
         });
 
@@ -236,13 +247,13 @@
                     </th>
                     <th>浜у搧绫诲埆
                     </th>
-                    <th>鍚嶇О
+                    <th>浜у搧鍚嶇О
                     </th>
                     <!--
                     <th>绫诲埆
                     </th>
                         -->
-                    <th>閫氶亾
+                    <th>閫氶亾鎴栭�氶亾缁�
                     </th>
                     <th>鏄惁榛樿
                     </th>
@@ -254,13 +265,13 @@
                     -->
                     <th>璧犻�佹潯鏁�
                     </th>
-                    <th>鍙傝�冨崟浠�
+                    <th>鍙傝�冨崟浠凤紙鍏�/鏉★級
                     </th>
                     <th>鍒涘缓鏃堕棿
                     </th>
                     <th>浣跨敤璇存槑
                     </th>
-                    <th class="text-right">鎿嶄綔
+                    <th class="text-center">鎿嶄綔
                     </th>
                 </tr>
             </thead>
@@ -299,7 +310,7 @@
                         </div>
                         <div class="form-group">
                             <label class="col-sm-2 control-label">
-                                鐖剁骇鍒嗙被ID</label>
+                                鐖剁骇鍒嗙被</label>
                             <div class="col-sm-4 ">
                                 <select name="parentId" id="parentId" class="form-control">
                                     <%=GetProductClassOptions("0")%>
@@ -371,18 +382,16 @@
                             <label class="col-sm-2 control-label">
                                 鎺掑簭</label>
                             <div class="col-sm-4">
-                                <div class="input-group">
-                                    <input type="text" class="form-control" name="sort" id="sort" value=""
-                                        maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')"
-                                        oncontextmenu="return false" />
-                                </div>
+                                <input type="text" class="form-control" name="sort" id="sort" value=""
+                                    maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')"
+                                    oncontextmenu="return false" />
                             </div>
                         </div>
                         <div class="form-group classes-span classes-span-1">
                             <label class="col-sm-2 control-label">
                                 閫氶亾璺敱</label>
-                            <div class="col-sm-10">
-                                 <select name="RouterType" id="RouterType">
+                            <div class="col-sm-4">
+                                 <select name="RouterType" id="RouterType" class="form-control">
                                     <option value="1" >鎸囧畾閫氶亾璺敱</option>
                                     <option value="3" >閫氶亾缁勮矾鐢辨ā寮�</option>
                                 </select>
@@ -390,26 +399,37 @@
                                 
                             <div class="router-type-span router-type-span-1">
                                 <div style="padding: 5px">
-                                    绉诲姩锛�<select name="cmOpId" id="cmOpId">
+                                    绉诲姩锛�<select name="cmOpId" id="cmOpId" >
                                          <%=GetOpOptions(0)%>
-                                    </select>&nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600"
+                                    </select>
+                                    <!--
+                                    &nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600"
                                         value="" style="width: 50%;" placeholder="绉诲姩鎵╁睍鍙傛暟" />
+                                        -->
                                 </div>
                                 <div style="padding: 5px">
-                                    鑱旈�氾細<select name="cuOpId" id="cuOpId">
+                                    鑱旈�氾細<select name="cuOpId" id="cuOpId" >
                                          <%=GetOpOptions(0)%>
-                                     </select>&nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600"
+                                     </select>
+                                    <!--
+                                    &nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600"
                                         value="" style="width: 50%;" placeholder="鑱旈�氭墿灞曞弬鏁�" />
+                                        -->
                                 </div>
                                 <div style="padding: 5px">
-                                    鐢典俊锛�<select name="ctOpId" id="ctOpId"> 
+                                    鐢典俊锛�<select name="ctOpId" id="ctOpId" > 
                                            <%=GetOpOptions(0)%>
-                                    </select>&nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600"
+                                    </select>
+                                    <!--
+                                    &nbsp;&nbsp; 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600"
                                         value="" style="width: 50%;" placeholder="鐢典俊鎵╁睍鍙傛暟" />
+                                        -->
                                 </div>
+                                    <!--
                                 <span class="help-block m-b-none">CMPP2.0,CMPP3.0鍗忚鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FEECODE(璐圭敤浠g爜(鏈�闀�6浣�)),FEETYPE(璐圭敤绫诲瀷),FEEUSERTYPE,FEETERMINALID(璁¤垂鍙风爜)
                                     SGIP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICETYPE(涓氬姟浠g爜(鏈�闀�10浣�)),CHARGENUMBER(璁¤垂鍙风爜(鏈�闀�21浣�)),FEEVALUE(鏀惰垂鍊�(鏈�闀�6浣�)),GIVENVALUE,NODEID(鑺傜偣(鏈�闀�6浣�)),CONNTIMEOUT(杩炴帴瓒呮椂)
                                     SMGP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FIXEDFEE(鍖呮湀璐�/灏侀《璐�(鏈�闀�6浣�)),FEECODE(璐圭敤浠g爜/璧勮垂浠g爜(鏈�澶�6浣�));</span>
+                                        -->
                             </div>
                             <div class="router-type-span router-type-span-3">
                                 <div style="padding: 5px">
@@ -441,7 +461,7 @@
                                 鍙傝�冨崟浠�</label>
                             <div class="col-sm-4">
                                 <div class="input-group">
-                                    <input type="text" class="form-control" name="price" id="price" value="" maxlength="5"
+                                    <input type="text" class="form-control" name="price" id="price" value="" maxlength="10"
                                         onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')"
                                         oncontextmenu="return false" /><span class="input-group-addon">鍏�/鏉� </span>
                                 </div>
@@ -452,7 +472,7 @@
                                 榛樿璧犻�佹潯鏁�</label>
                             <div class="col-sm-4">
                                 <div class="input-group">
-                                    <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="5"
+                                    <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="10"
                                         onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')"
                                         oncontextmenu="return false" /><span class="input-group-addon">鏉� </span>
                                 </div>
@@ -461,8 +481,8 @@
                         <div class="form-group">
                             <label class="col-sm-2 control-label">
                                 澶囨敞</label>
-                            <div class="col-sm-10 input-group m-b">
-                                <input type="text" class="form-control" name="remark" id="remark" value="" />
+                            <div class="col-sm-4">
+                                <textarea class="form-control" name="remark" id="remark" rows="4" ></textarea>
                             </div>
                         </div>
                     </div>

--
Gitblit v1.9.1