|
@ -11,11 +11,11 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="s-line"> |
|
|
<view class="s-line"> |
|
|
<view class="l-tit">课程次数: </view> |
|
|
<view class="l-tit">课程次数: </view> |
|
|
<view class="l-frame"><input type="number" v-model="courseNumber" /></view> |
|
|
|
|
|
|
|
|
<view class="l-frame"><input :disabled="optionsQuery.offerInfo.price_option == 2" type="number" v-model="courseNumber" /></view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="s-line"> |
|
|
<view class="s-line"> |
|
|
<view class="l-tit">课程报价: </view> |
|
|
<view class="l-tit">课程报价: </view> |
|
|
<view class="l-frame"><input type="digit" v-model="coursePrice" /></view> |
|
|
|
|
|
|
|
|
<view class="l-frame"><input :disabled="optionsQuery.offerInfo.price_option == 2" type="digit" v-model="coursePrice" /></view> |
|
|
<view class="l-txt">元</view> |
|
|
<view class="l-txt">元</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -55,6 +55,10 @@ export default { |
|
|
onLoad(options){ |
|
|
onLoad(options){ |
|
|
let _query = util.jsonPar(options.query); |
|
|
let _query = util.jsonPar(options.query); |
|
|
this.optionsQuery = _query; |
|
|
this.optionsQuery = _query; |
|
|
|
|
|
if(_query.offerInfo&&_query.offerInfo.price_option == 2){ |
|
|
|
|
|
this.courseNumber = _query.offerInfo.number; |
|
|
|
|
|
this.coursePrice = _query.offerInfo.price; |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
submitBtn: util.debounce(function(){ |
|
|
submitBtn: util.debounce(function(){ |
|
@ -72,7 +76,7 @@ export default { |
|
|
.then(res=>{ |
|
|
.then(res=>{ |
|
|
if(res.data.code == 0){ |
|
|
if(res.data.code == 0){ |
|
|
util.showNone(res.data.message || '操作成功!'); |
|
|
util.showNone(res.data.message || '操作成功!'); |
|
|
setTimeout(_=>util.routeTo(), 1200); |
|
|
|
|
|
|
|
|
setTimeout(_=>util.routeTo(`/pages/course/offer_info/offer_info?class_id=${optionsQuery.id}`, 'rT'), 1200); |
|
|
}else{ |
|
|
}else{ |
|
|
util.showNone(res.data.message || '操作失败!'); |
|
|
util.showNone(res.data.message || '操作失败!'); |
|
|
} |
|
|
} |
|
|