Initial commit (code only without large binaries)
This commit is contained in:
14
EdgeUser/web/views/@default/finance/charge/index.js
Normal file
14
EdgeUser/web/views/@default/finance/charge/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
Tea.context(function () {
|
||||
this.methodCode = 0
|
||||
if (this.methods.length > 0) {
|
||||
this.methodCode = this.methods[0].code
|
||||
}
|
||||
|
||||
this.selectMethod = function (method) {
|
||||
this.methodCode = method.code
|
||||
}
|
||||
|
||||
this.success = function (resp) {
|
||||
window.location = "/finance/pay?code=" + resp.data.code + "&from=" + this.currentURL
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user