feat: 1.完成除一键登录外的账号功能 2.完成合同相关功能
This commit is contained in:
parent
8dbabbb073
commit
bd3de78775
9
basic.js
9
basic.js
@ -3,6 +3,8 @@ export class Result {
|
||||
Success: 0,
|
||||
Fail: -1,
|
||||
|
||||
NotMoreData: -10,
|
||||
|
||||
NotAvailableBluetooth: -20,
|
||||
NotAvailableBluetoothPermission: -21,
|
||||
NotAvailableWeChatNearbyDevicesPermission: -22,
|
||||
@ -20,6 +22,8 @@ export class Result {
|
||||
[Result.codes.Success, { message: '成功', data: {} }],
|
||||
[Result.codes.Fail, { message: '失败', data: {} }],
|
||||
|
||||
[Result.codes.NotMoreData, { message: '没有更多数据', data: {} }],
|
||||
|
||||
[Result.codes.NotAvailableBluetooth, { message: '蓝牙未开启', data: {} }],
|
||||
[Result.codes.NotAvailableBluetoothPermission, { message: '小程序蓝牙权限被禁用', data: {} }],
|
||||
[
|
||||
@ -65,6 +69,11 @@ export class Result {
|
||||
return new Result(Result.codes.Fail)
|
||||
}
|
||||
|
||||
// 没有更多数据
|
||||
static get NotMoreData() {
|
||||
return new Result(Result.codes.NotMoreData)
|
||||
}
|
||||
|
||||
// 蓝牙未开启
|
||||
static get NotAvailableBluetooth() {
|
||||
return new Result(Result.codes.NotAvailableBluetooth)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user