Commit db70fb4b by 冷斌

fix bug

parent d3dc3863
...@@ -174,6 +174,11 @@ ...@@ -174,6 +174,11 @@
return opt.options ? opt.options[this.innerTab].items : opt.items return opt.options ? opt.options[this.innerTab].items : opt.items
} }
}, },
getOptions: function () {
return function (opt) {
return opt.options ? opt.options[this.innerTab] : []
}
},
showEmpty: function () { showEmpty: function () {
let opt = this.options[this.tab] let opt = this.options[this.tab]
if (opt.options) { if (opt.options) {
...@@ -223,7 +228,7 @@ ...@@ -223,7 +228,7 @@
return true; return true;
}, },
onPay: function (item, type, opt) { onPay: function (item, type, opt) {
console.log(opt, opt.options[this.innerTab]); console.log(this.getOptions(opt));
return false; return false;
if (!this.isLogin()) { if (!this.isLogin()) {
return false; return false;
......
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