正在显示
9 个修改的文件
包含
158 行增加
和
18 行删除
@@ -71,12 +71,18 @@ | @@ -71,12 +71,18 @@ | ||
71 | <td><input class="form-control" type="text" name="pricing" value="" | 71 | <td><input class="form-control" type="text" name="pricing" value="" |
72 | placeholder="请输入定价"></td> | 72 | placeholder="请输入定价"></td> |
73 | </tr> | 73 | </tr> |
74 | - <tr> | 74 | + <!-- <tr> |
75 | <th>商品说明</th> | 75 | <th>商品说明</th> |
76 | <td> | 76 | <td> |
77 | <textarea class="form-control" name="instr" style="height: 50px;" | 77 | <textarea class="form-control" name="instr" style="height: 50px;" |
78 | placeholder="请填写商品说明"></textarea> | 78 | placeholder="请填写商品说明"></textarea> |
79 | </td> | 79 | </td> |
80 | + </tr>--> | ||
81 | + <tr> | ||
82 | + <th>商品说明</th> | ||
83 | + <td> | ||
84 | + <script type="text/plain" id="content" name="instr"></script> | ||
85 | + </td> | ||
80 | </tr> | 86 | </tr> |
81 | <tr> | 87 | <tr> |
82 | <th>书号</th> | 88 | <th>书号</th> |
@@ -82,12 +82,18 @@ | @@ -82,12 +82,18 @@ | ||
82 | <td><input class="form-control" type="text" name="pricing" value="{$data.pricing}" | 82 | <td><input class="form-control" type="text" name="pricing" value="{$data.pricing}" |
83 | placeholder="请输入定价"></td> | 83 | placeholder="请输入定价"></td> |
84 | </tr> | 84 | </tr> |
85 | - <tr> | 85 | + <!-- <tr> |
86 | <th>商品说明</th> | 86 | <th>商品说明</th> |
87 | <td> | 87 | <td> |
88 | <textarea class="form-control" name="instr" style="height: 50px;" | 88 | <textarea class="form-control" name="instr" style="height: 50px;" |
89 | placeholder="请填写商品说明">{$data.instr}</textarea> | 89 | placeholder="请填写商品说明">{$data.instr}</textarea> |
90 | </td> | 90 | </td> |
91 | + </tr>--> | ||
92 | + <tr> | ||
93 | + <th>商品说明</th> | ||
94 | + <td> | ||
95 | + <script type="text/plain" id="content" name="instr">{$data.instr}</script> | ||
96 | + </td> | ||
91 | </tr> | 97 | </tr> |
92 | <tr> | 98 | <tr> |
93 | <th>书号</th> | 99 | <th>书号</th> |
@@ -57,12 +57,18 @@ | @@ -57,12 +57,18 @@ | ||
57 | placeholder="请输入售价"></td> | 57 | placeholder="请输入售价"></td> |
58 | </tr> | 58 | </tr> |
59 | 59 | ||
60 | - <tr> | 60 | + <!-- <tr> |
61 | <th>商品说明</th> | 61 | <th>商品说明</th> |
62 | <td> | 62 | <td> |
63 | <textarea class="form-control" name="instr" style="height: 50px;" | 63 | <textarea class="form-control" name="instr" style="height: 50px;" |
64 | placeholder="请填写商品说明"></textarea> | 64 | placeholder="请填写商品说明"></textarea> |
65 | </td> | 65 | </td> |
66 | + </tr>--> | ||
67 | + <tr> | ||
68 | + <th>商品说明</th> | ||
69 | + <td> | ||
70 | + <script type="text/plain" id="content" name="instr"></script> | ||
71 | + </td> | ||
66 | </tr> | 72 | </tr> |
67 | <tr> | 73 | <tr> |
68 | <th>书号</th> | 74 | <th>书号</th> |
@@ -56,12 +56,18 @@ | @@ -56,12 +56,18 @@ | ||
56 | placeholder="请输入售价"></td> | 56 | placeholder="请输入售价"></td> |
57 | </tr> | 57 | </tr> |
58 | 58 | ||
59 | - <tr> | 59 | + <!--<tr> |
60 | <th>商品说明</th> | 60 | <th>商品说明</th> |
61 | <td> | 61 | <td> |
62 | <textarea class="form-control" name="instr" style="height: 50px;" | 62 | <textarea class="form-control" name="instr" style="height: 50px;" |
63 | placeholder="请填写商品说明">{$data.instr}</textarea> | 63 | placeholder="请填写商品说明">{$data.instr}</textarea> |
64 | </td> | 64 | </td> |
65 | + </tr>--> | ||
66 | + <tr> | ||
67 | + <th>商品说明</th> | ||
68 | + <td> | ||
69 | + <script type="text/plain" id="content" name="instr">{$data.instr}</script> | ||
70 | + </td> | ||
65 | </tr> | 71 | </tr> |
66 | <tr> | 72 | <tr> |
67 | <th>书号</th> | 73 | <th>书号</th> |
@@ -59,12 +59,18 @@ | @@ -59,12 +59,18 @@ | ||
59 | <td><input class="form-control" type="text" name="money" value="{$data.money}" | 59 | <td><input class="form-control" type="text" name="money" value="{$data.money}" |
60 | placeholder="请输入佣金价格"></td> | 60 | placeholder="请输入佣金价格"></td> |
61 | </tr> | 61 | </tr> |
62 | - <tr> | 62 | + <!--<tr> |
63 | <th>商品说明</th> | 63 | <th>商品说明</th> |
64 | <td> | 64 | <td> |
65 | <textarea class="form-control" name="instr" style="height: 50px;" | 65 | <textarea class="form-control" name="instr" style="height: 50px;" |
66 | placeholder="请填写商品说明">{$data.instr}</textarea> | 66 | placeholder="请填写商品说明">{$data.instr}</textarea> |
67 | </td> | 67 | </td> |
68 | + </tr>--> | ||
69 | + <tr> | ||
70 | + <th>商品说明</th> | ||
71 | + <td> | ||
72 | + <script type="text/plain" id="content" name="instr">{$data.instr}</script> | ||
73 | + </td> | ||
68 | </tr> | 74 | </tr> |
69 | <tr> | 75 | <tr> |
70 | <th>书号</th> | 76 | <th>书号</th> |
@@ -165,6 +165,11 @@ | @@ -165,6 +165,11 @@ | ||
165 | <script src="__TMPL__/public/assets/js/jquery.js"></script> | 165 | <script src="__TMPL__/public/assets/js/jquery.js"></script> |
166 | <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> | 166 | <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> |
167 | <script> | 167 | <script> |
168 | + var str = "赵钱孙李 周吴郑王 南城北里 没有啥"; | ||
169 | + console.log(str) | ||
170 | + console.log(str.split(/\s+/)) | ||
171 | +</script> | ||
172 | +<script> | ||
168 | wx.config({$jssdk}); | 173 | wx.config({$jssdk}); |
169 | wx.ready(function () { | 174 | wx.ready(function () { |
170 | wx.onMenuShareAppMessage({ | 175 | wx.onMenuShareAppMessage({ |
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | <title>学考无忧</title> | 8 | <title>学考无忧</title> |
9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"/> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"/> |
10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css"/> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css"/> |
11 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css"/> | ||
11 | <style> | 12 | <style> |
12 | .pay_banner { | 13 | .pay_banner { |
13 | width: 100%; | 14 | width: 100%; |
@@ -51,7 +52,7 @@ | @@ -51,7 +52,7 @@ | ||
51 | <div class="Dpayment"> | 52 | <div class="Dpayment"> |
52 | 53 | ||
53 | <!--售后咨询弹框开始--> | 54 | <!--售后咨询弹框开始--> |
54 | - <div class="tx_mask" onclick="$(this).hide()"> | 55 | + <div class="tx_mask" onclick="$(this).hide()" style="display: none"> |
55 | <div class="tx_maskCon" onclick="zZFun(this)"> | 56 | <div class="tx_maskCon" onclick="zZFun(this)"> |
56 | <div class="tx_maskCon2" style="border-radius: 0.1rem;"> | 57 | <div class="tx_maskCon2" style="border-radius: 0.1rem;"> |
57 | <div class="delete_school"> | 58 | <div class="delete_school"> |
@@ -238,9 +239,8 @@ | @@ -238,9 +239,8 @@ | ||
238 | <script> | 239 | <script> |
239 | <!--售后咨询弹窗--> | 240 | <!--售后咨询弹窗--> |
240 | $(".pay_bottom2_2").click(function() { | 241 | $(".pay_bottom2_2").click(function() { |
241 | - $(".tx_mask").css({ | ||
242 | - display: "none" | ||
243 | - }); | 242 | + console.log(123) |
243 | + $(".tx_mask").css("display","block") | ||
244 | }) | 244 | }) |
245 | function zZFun(e) { | 245 | function zZFun(e) { |
246 | window.event ? (window.event.cancelBubble = true) : e.stopPropagation(); | 246 | window.event ? (window.event.cancelBubble = true) : e.stopPropagation(); |
@@ -26,8 +26,73 @@ | @@ -26,8 +26,73 @@ | ||
26 | -moz-transform: translate(-50%, -50%); | 26 | -moz-transform: translate(-50%, -50%); |
27 | -o-transform: translate(-50%, -50%); | 27 | -o-transform: translate(-50%, -50%); |
28 | } | 28 | } |
29 | + .tx_mask_delete { | ||
30 | + display: none; | ||
31 | + z-index: 2; | ||
32 | + width: 100%; | ||
33 | + height: 100%; | ||
34 | + position: fixed; | ||
35 | + background-color: rgba(0, 0, 0, 0.5); | ||
36 | + } | ||
37 | + | ||
38 | + .delete_school { | ||
39 | + font-size: 0.32rem; | ||
40 | + color: #333; | ||
41 | + text-align: center; | ||
42 | + } | ||
43 | + | ||
44 | + .delete_btn { | ||
45 | + display: flex; | ||
46 | + display: -webkit-flex; | ||
47 | + justify-content: space-around; | ||
48 | + align-items: center; | ||
49 | + } | ||
50 | + | ||
51 | + .tx_maskcancel { | ||
52 | + width: 100%; | ||
53 | + height: 0.8rem; | ||
54 | + background: #f2f2f2; | ||
55 | + border-radius: 0.08rem; | ||
56 | + text-align: center; | ||
57 | + line-height: 0.8rem; | ||
58 | + color: #333; | ||
59 | + font-size: 0.32rem; | ||
60 | + margin-top: 0.4rem; | ||
61 | + margin-right: 0.5rem; | ||
62 | + } | ||
63 | + | ||
64 | + .tx_maskYes { | ||
65 | + width: 100%; | ||
66 | + height: 0.8rem; | ||
67 | + background: linear-gradient(338deg, rgba(255, 78, 0, 1) 0%, rgba(255, 157, 45, 1) 100%); | ||
68 | + border-radius: 0.08rem; | ||
69 | + text-align: center; | ||
70 | + line-height: 0.8rem; | ||
71 | + color: white; | ||
72 | + font-size: 0.32rem; | ||
73 | + margin-top: 0.4rem; | ||
74 | + margin-left: 0.5rem; | ||
75 | + } | ||
29 | </style> | 76 | </style> |
30 | <body> | 77 | <body> |
78 | + | ||
79 | +<!-- 删除弹窗 --> | ||
80 | +<div class="tx_mask_delete" onclick="$(this).hide()"> | ||
81 | + <div class="tx_maskCon" onclick="zZFun(this)"> | ||
82 | + <div class="tx_maskCon2" style="border-radius: 0.1rem;"> | ||
83 | + <div class="delete_school"> | ||
84 | + 是否确定删除? | ||
85 | + </div> | ||
86 | + | ||
87 | + <div class="delete_btn"> | ||
88 | + <div class="tx_maskcancel">取消</div> | ||
89 | + <div class="tx_maskYes">确定</div> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + </div> | ||
93 | +</div> | ||
94 | + | ||
95 | + | ||
31 | <!-- 弹窗 --> | 96 | <!-- 弹窗 --> |
32 | <div class="tx_mask" onclick="$(this).hide()"> | 97 | <div class="tx_mask" onclick="$(this).hide()"> |
33 | <div class="tx_maskCon_money" onclick="zZFun(this)"> | 98 | <div class="tx_maskCon_money" onclick="zZFun(this)"> |
@@ -99,7 +164,7 @@ | @@ -99,7 +164,7 @@ | ||
99 | <div class="log_five_handle_img"> | 164 | <div class="log_five_handle_img"> |
100 | <img src="__TMPL__/public/assets/images/86.png" alt="" /> | 165 | <img src="__TMPL__/public/assets/images/86.png" alt="" /> |
101 | </div> | 166 | </div> |
102 | - <div class="log_five_handle_word log_five_handle_del" onclick="goods_del({$vo.id})" style="cursor: pointer;"> | 167 | + <div class="log_five_handle_word log_five_handle_del" data-id="{$vo.id}" style="cursor: pointer;"> |
103 | 删除 | 168 | 删除 |
104 | </div> | 169 | </div> |
105 | </div> | 170 | </div> |
@@ -134,6 +199,52 @@ | @@ -134,6 +199,52 @@ | ||
134 | <script src="__TMPL__/public/assets/js/jquery.js"></script> | 199 | <script src="__TMPL__/public/assets/js/jquery.js"></script> |
135 | <script src="__TMPL__/public/assets/js/base.js"></script> | 200 | <script src="__TMPL__/public/assets/js/base.js"></script> |
136 | <script> | 201 | <script> |
202 | + let index = ''; | ||
203 | + let id | ||
204 | + //删除商品 | ||
205 | + $('.log_five_handle_del').each(function() { | ||
206 | + $(this).click(function() { | ||
207 | + id = $(this).data("id"); | ||
208 | + index = $(this).parents(".com").index(); | ||
209 | + console.log(index) | ||
210 | + $(".tx_mask_delete").css({ | ||
211 | + display: "block" | ||
212 | + }); | ||
213 | + }) | ||
214 | + }) | ||
215 | + $(".tx_maskYes").click(function() { | ||
216 | + console.log(index) | ||
217 | + | ||
218 | + var len = $(".com"); | ||
219 | + console.log(len) | ||
220 | + for(var i = 0; i < len.length; i++) { | ||
221 | + if(i == index) { | ||
222 | + $(len[i]).remove() | ||
223 | + }; | ||
224 | + $(".tx_mask_delete").css({ | ||
225 | + display: "none" | ||
226 | + }); | ||
227 | + } | ||
228 | + $.post("{:url('Salesmangoods/goods_del')}",{goods_id:id},function(data){ | ||
229 | + if(data){ | ||
230 | + $('.del'+id).remove(); | ||
231 | + }else{ | ||
232 | + alert('删除失败!'); | ||
233 | + } | ||
234 | + }); | ||
235 | + | ||
236 | + }) | ||
237 | + $(".tx_maskcancel").click(function() { | ||
238 | + $(".tx_mask_delete").css({ | ||
239 | + display: "none" | ||
240 | + }); | ||
241 | + }) | ||
242 | + | ||
243 | + function zZFun(e) { | ||
244 | + window.event ? (window.event.cancelBubble = true) : e.stopPropagation(); | ||
245 | + } | ||
246 | +</script> | ||
247 | +<script> | ||
137 | function zZFun(e) { | 248 | function zZFun(e) { |
138 | window.event ? (window.event.cancelBubble = true) : e.stopPropagation(); | 249 | window.event ? (window.event.cancelBubble = true) : e.stopPropagation(); |
139 | } | 250 | } |
@@ -157,13 +268,7 @@ | @@ -157,13 +268,7 @@ | ||
157 | *点击删除 | 268 | *点击删除 |
158 | */ | 269 | */ |
159 | function goods_del(id){ | 270 | function goods_del(id){ |
160 | - $.post("{:url('Salesmangoods/goods_del')}",{goods_id:id},function(data){ | ||
161 | - if(data){ | ||
162 | - $('.del'+id).remove(); | ||
163 | - }else{ | ||
164 | - alert('删除失败!'); | ||
165 | - } | ||
166 | - }); | 271 | + |
167 | } | 272 | } |
168 | 273 | ||
169 | /** | 274 | /** |
-
请 注册 或 登录 后发表评论