Showing
3 changed files
with
25 additions
and
2 deletions
@@ -408,8 +408,12 @@ webpackJsonp([74],[ | @@ -408,8 +408,12 @@ webpackJsonp([74],[ | ||
408 | // }); | 408 | // }); |
409 | 409 | ||
410 | e.init(); | 410 | e.init(); |
411 | - | ||
412 | new common.dropDown({ el: "#thirdType" }); | 411 | new common.dropDown({ el: "#thirdType" }); |
412 | + if (item.couponsUseRuleVo.thirdType == '1'){ | ||
413 | + $("#weixin").show(); | ||
414 | + }else{ | ||
415 | + $("#weixin").hide(); | ||
416 | + } | ||
413 | }); | 417 | }); |
414 | 418 | ||
415 | // 查看操作记录 | 419 | // 查看操作记录 |
@@ -426,6 +430,15 @@ webpackJsonp([74],[ | @@ -426,6 +430,15 @@ webpackJsonp([74],[ | ||
426 | getOperationRecords(couponId); | 430 | getOperationRecords(couponId); |
427 | }); | 431 | }); |
428 | 432 | ||
433 | + $(document).on('change','#thirdType', function () { | ||
434 | + var title = $(this).val(); | ||
435 | + if (title == '1'){ | ||
436 | + $("#weixin").show(); | ||
437 | + }else{ | ||
438 | + $("#weixin").hide(); | ||
439 | + } | ||
440 | + }); | ||
441 | + | ||
429 | function getOperationRecords(couponId) { | 442 | function getOperationRecords(couponId) { |
430 | common.util.__ajax({ | 443 | common.util.__ajax({ |
431 | url: '/coupon/getOperationRecords', | 444 | url: '/coupon/getOperationRecords', |
@@ -88,7 +88,8 @@ module.exports = { | @@ -88,7 +88,8 @@ module.exports = { | ||
88 | params: { | 88 | params: { |
89 | couponId: {type: Number}, | 89 | couponId: {type: Number}, |
90 | thirdType: {type: Number}, | 90 | thirdType: {type: Number}, |
91 | - thirdId: {type: String} | 91 | + thirdId: {type: String}, |
92 | + publicNumberType: {type: Number} | ||
92 | } | 93 | } |
93 | } | 94 | } |
94 | } | 95 | } |
@@ -254,6 +254,15 @@ | @@ -254,6 +254,15 @@ | ||
254 | <input id="thirdId" class="form-control panel-input" value="{{thirdId}}" {{if thirdType == 1}}readonly{{/if}} type="text" placeholder="第三方 ID"> | 254 | <input id="thirdId" class="form-control panel-input" value="{{thirdId}}" {{if thirdType == 1}}readonly{{/if}} type="text" placeholder="第三方 ID"> |
255 | </div> | 255 | </div> |
256 | </div> | 256 | </div> |
257 | + <div class="form-group" id="weixin" style="display: none"> | ||
258 | + <label class="col-sm-2 control-label">微信公众号</label> | ||
259 | + <div class="col-sm-8"> | ||
260 | + <select name="publicNumberType" id="publicNumberType" tabindex="-1" class="form-control" style="width: 200px;"> | ||
261 | + <option value="0" {{if publicNumberType == 0}}selected{{/if}}>有货YOHOBUY 订阅号</option> | ||
262 | + <option value="3" {{if publicNumberType == 3}}selected{{/if}}>有货潮流志微信 订阅号</option> | ||
263 | + </select> | ||
264 | + </div> | ||
265 | + </div> | ||
257 | </div> | 266 | </div> |
258 | </script> | 267 | </script> |
259 | <%include '../../common/__ui/footer'%> | 268 | <%include '../../common/__ui/footer'%> |
-
Please register or login to post a comment