Authored by 邱骏

Merge branch 'feature/coupon-modify' into hotfix/change-skupAllowType

@@ -102,7 +102,7 @@ @@ -102,7 +102,7 @@
102 this.url_ = 'https://m.yohobuy.com/?pagename=saleCalendar'; 102 this.url_ = 'https://m.yohobuy.com/?pagename=saleCalendar';
103 } else if (newVal === 'go.hotlist') { 103 } else if (newVal === 'go.hotlist') {
104 this.url_ = 'https://m.yohobuy.com/?pagename=hotSale'; 104 this.url_ = 'https://m.yohobuy.com/?pagename=hotSale';
105 - } else if (newVal === 'go.bargainlist') { 105 + } else if (newVal === 'go.bargainlist') { // 砍价列表
106 this.url_ = 'https://m.yohobuy.com/'; 106 this.url_ = 'https://m.yohobuy.com/';
107 } 107 }
108 108
@@ -110,6 +110,7 @@ export default { @@ -110,6 +110,7 @@ export default {
110 data() { 110 data() {
111 return { 111 return {
112 readonly: false, 112 readonly: false,
  113 + allreadonly: false,
113 visiable: false, 114 visiable: false,
114 loading: false, 115 loading: false,
115 posting: true, 116 posting: true,
@@ -255,9 +256,7 @@ export default { @@ -255,9 +256,7 @@ export default {
255 this.formData = initData; 256 this.formData = initData;
256 }, 257 },
257 onOk() { 258 onOk() {
258 - console.log('ok');  
259 this.$refs.formCoupon.validate(valid => { 259 this.$refs.formCoupon.validate(valid => {
260 - console.log(valid);  
261 if (!valid) { 260 if (!valid) {
262 this.posting = false; 261 this.posting = false;
263 this.$nextTick(() => { 262 this.$nextTick(() => {
@@ -277,7 +276,7 @@ export default { @@ -277,7 +276,7 @@ export default {
277 this.formData.skupForbidType = arr.join(','); 276 this.formData.skupForbidType = arr.join(',');
278 }, 277 },
279 async saveData(params) { 278 async saveData(params) {
280 - if (this.readonly) { 279 + if (this.allreadonly) {
281 this.visiable = false; 280 this.visiable = false;
282 return; 281 return;
283 } 282 }