Commit 457a5bf3 by 冷斌

fix bug

parent adceaa20
......@@ -178,11 +178,6 @@
return opt.options ? opt.options[this.innerTab].items : opt.items
}
},
getOptions: function () {
return function (opt) {
return opt.options ? opt.options[this.innerTab] : []
}
},
showEmpty: function () {
let opt = this.options[this.tab]
if (opt.options) {
......@@ -236,8 +231,6 @@
return false;
}
console.log(item, opt);
return false;
if(item['price'] <= 0){
ui.error('不需要您购买');
return false;
......@@ -246,9 +239,7 @@
let url = '';
let formData2 = {};
let option = this.getOptions(opt);
let type = option.v;
let type = opt.v;
if (type === 'course') {
url = "/pay/"+item['order']+".html";
formData2 = {
......@@ -292,10 +283,9 @@
},'json');
},
onCancel: function (item, opt) {
let option = this.getOptions(opt);
let type = option.v;
let type = opt.v;
let form, message = '';
if (opt.v == 1) {
if (this.innerTab == 0) {
message = '取消';
form = "{:U('home/Home/delCancel')}";
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment