mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 03:40:27 +08:00
支持套餐相关操作
This commit is contained in:
@@ -46,4 +46,27 @@ Tea.context(function () {
|
||||
this.tlsProtocolName = "https"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户相关
|
||||
*/
|
||||
this.userId = 0
|
||||
this.plans = []
|
||||
|
||||
this.changeUserId = function (v) {
|
||||
this.userId = v
|
||||
|
||||
if (this.userId == 0) {
|
||||
this.plans = []
|
||||
return
|
||||
}
|
||||
|
||||
this.$post("/servers/users/plans")
|
||||
.params({
|
||||
userId: this.userId
|
||||
})
|
||||
.success(function (resp) {
|
||||
this.plans = resp.data.plans
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user