component-sanzhizhou 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,5 +33,28 @@
33
33
  "重试": "ลองอีกครั้ง",
34
34
  "充值就送": "เติมเงินแถมฟรี",
35
35
  "送": "แถม",
36
- "选择": "เลือก"
36
+ "选择": "เลือก",
37
+ "微信": "WeChat",
38
+ "忘记密码": "ลืมรหัสผ่าน",
39
+ "找回密码": "กู้คืนรหัสผ่าน",
40
+ "新密码": "รหัสผ่านใหม่",
41
+ "重置密码": "ตั้งรหัสผ่านใหม่",
42
+ "验证码": "รหัสยืนยัน",
43
+ "获取验证码": "รับรหัส",
44
+ "请输入验证码": "กรุณากรอกรหัสยืนยัน",
45
+ "验证码为6位数字": "รหัสยืนยันเป็นตัวเลข 6 หลัก",
46
+ "验证码已发送": "ส่งรหัสยืนยันแล้ว",
47
+ "请输入正确的手机号码": "กรุณากรอกหมายเลขโทรศัพท์มือถือให้ถูกต้อง",
48
+ "请先完成人机验证": "กรุณาทำการยืนยันตัวตนก่อน",
49
+ "我不是机器人": "ฉันไม่ใช่หุ่นยนต์",
50
+ "人机校验中": "กำลังตรวจสอบ",
51
+ "验证通过": "ตรวจสอบแล้ว",
52
+ "密码已重置,请登录": "ตั้งรหัสผ่านใหม่แล้ว กรุณาเข้าสู่ระบบ",
53
+ "两次输入的密码不一致": "รหัสผ่านทั้งสองไม่ตรงกัน",
54
+ "下面任选一个方法都可以登录:": "เลือกวิธีใดก็ได้ด้านล่างเพื่อเข้าสู่ระบบ:",
55
+ "1、把本页网址复制到微信里面打开": "1. คัดลอก URL ของหน้านี้แล้วเปิดใน WeChat",
56
+ "2、请用微信扫码登录": "2. สแกน QR โค้ดด้วย WeChat เพื่อเข้าสู่ระบบ",
57
+ "3、把本页网址复制到微信里面打开": "3. คัดลอก URL ของหน้านี้แล้วเปิดใน WeChat",
58
+ "名称": "ชื่อ",
59
+ "优惠券": "คูปอง"
37
60
  }
@@ -33,5 +33,28 @@
33
33
  "重试": "Thử lại",
34
34
  "充值就送": "Nạp tiền tặng thêm",
35
35
  "送": "Tặng",
36
- "选择": "Chọn"
36
+ "选择": "Chọn",
37
+ "微信": "WeChat",
38
+ "忘记密码": "Quên mật khẩu",
39
+ "找回密码": "Khôi phục mật khẩu",
40
+ "新密码": "Mật khẩu mới",
41
+ "重置密码": "Đặt lại mật khẩu",
42
+ "验证码": "Mã xác nhận",
43
+ "获取验证码": "Lấy mã",
44
+ "请输入验证码": "Vui lòng nhập mã xác nhận",
45
+ "验证码为6位数字": "Mã xác nhận gồm 6 chữ số",
46
+ "验证码已发送": "Đã gửi mã xác nhận",
47
+ "请输入正确的手机号码": "Vui lòng nhập số điện thoại hợp lệ",
48
+ "请先完成人机验证": "Vui lòng hoàn tất xác minh trước",
49
+ "我不是机器人": "Tôi không phải là robot",
50
+ "人机校验中": "Đang xác minh",
51
+ "验证通过": "Đã xác minh",
52
+ "密码已重置,请登录": "Đã đặt lại mật khẩu, vui lòng đăng nhập",
53
+ "两次输入的密码不一致": "Hai mật khẩu không khớp",
54
+ "下面任选一个方法都可以登录:": "Chọn bất kỳ cách nào dưới đây để đăng nhập:",
55
+ "1、把本页网址复制到微信里面打开": "1. Sao chép URL trang này và mở trong WeChat",
56
+ "2、请用微信扫码登录": "2. Quét mã QR bằng WeChat để đăng nhập",
57
+ "3、把本页网址复制到微信里面打开": "3. Sao chép URL trang này và mở trong WeChat",
58
+ "名称": "Tên",
59
+ "优惠券": "Phiếu giảm giá"
37
60
  }
@@ -35,5 +35,26 @@
35
35
  "送": "送",
36
36
  "选择": "选择",
37
37
  "名称": "名称",
38
- "优惠券": "优惠券"
38
+ "优惠券": "优惠券",
39
+ "微信": "微信",
40
+ "忘记密码": "忘记密码",
41
+ "找回密码": "找回密码",
42
+ "新密码": "新密码",
43
+ "重置密码": "重置密码",
44
+ "验证码": "验证码",
45
+ "获取验证码": "获取验证码",
46
+ "请输入验证码": "请输入验证码",
47
+ "验证码为6位数字": "验证码为6位数字",
48
+ "验证码已发送": "验证码已发送",
49
+ "请输入正确的手机号码": "请输入正确的手机号码",
50
+ "请先完成人机验证": "请先完成人机验证",
51
+ "我不是机器人": "我不是机器人",
52
+ "人机校验中": "人机校验中",
53
+ "验证通过": "验证通过",
54
+ "密码已重置,请登录": "密码已重置,请登录",
55
+ "两次输入的密码不一致": "两次输入的密码不一致",
56
+ "下面任选一个方法都可以登录:": "下面任选一个方法都可以登录:",
57
+ "1、把本页网址复制到微信里面打开": "1、把本页网址复制到微信里面打开",
58
+ "2、请用微信扫码登录": "2、请用微信扫码登录",
59
+ "3、把本页网址复制到微信里面打开": "3、把本页网址复制到微信里面打开"
39
60
  }
@@ -25,13 +25,36 @@
25
25
  "最低": "最低",
26
26
  "最大": "最大",
27
27
  "元": "元",
28
- "金額": "金額",
29
- "已掃碼": "已掃碼",
30
28
  "刷新": "刷新",
31
- "已經過期": "已經過期",
32
- "內容為空": "內容為空",
33
- "重試": "重試",
34
29
  "充值就送": "充值即送",
35
30
  "送": "贈送",
36
- "選擇": "選擇"
31
+ "微信": "微信",
32
+ "忘记密码": "忘記密碼",
33
+ "找回密码": "找回密碼",
34
+ "新密码": "新密碼",
35
+ "重置密码": "重設密碼",
36
+ "验证码": "驗證碼",
37
+ "获取验证码": "獲取驗證碼",
38
+ "请输入验证码": "請輸入驗證碼",
39
+ "验证码为6位数字": "驗證碼為6位數字",
40
+ "验证码已发送": "驗證碼已發送",
41
+ "请输入正确的手机号码": "請輸入正確的手機號碼",
42
+ "请先完成人机验证": "請先完成人機驗證",
43
+ "我不是机器人": "我不是機械人",
44
+ "人机校验中": "人機校驗中",
45
+ "验证通过": "驗證通過",
46
+ "密码已重置,请登录": "密碼已重設,請登入",
47
+ "两次输入的密码不一致": "兩次輸入的密碼不一致",
48
+ "下面任选一个方法都可以登录:": "以下任選一個方法都可以登入:",
49
+ "1、把本页网址复制到微信里面打开": "1、把本頁網址複製到微信裡面打開",
50
+ "2、请用微信扫码登录": "2、請用微信掃碼登入",
51
+ "3、把本页网址复制到微信里面打开": "3、把本頁網址複製到微信裡面打開",
52
+ "名称": "名稱",
53
+ "优惠券": "優惠券",
54
+ "金额": "金額",
55
+ "已扫码": "已掃碼",
56
+ "已经过期": "已經過期",
57
+ "内容为空": "內容為空",
58
+ "重试": "重試",
59
+ "选择": "選擇"
37
60
  }
@@ -25,13 +25,36 @@
25
25
  "最低": "最低",
26
26
  "最大": "最大",
27
27
  "元": "元",
28
- "金額": "金額",
29
- "已掃碼": "已掃碼",
30
28
  "刷新": "重新整理",
31
- "已經過期": "已過期",
32
- "內容為空": "內容空白",
33
- "重試": "重試",
34
29
  "充值就送": "儲值就送",
35
30
  "送": "贈送",
36
- "選擇": "選擇"
31
+ "微信": "微信",
32
+ "忘记密码": "忘記密碼",
33
+ "找回密码": "找回密碼",
34
+ "新密码": "新密碼",
35
+ "重置密码": "重設密碼",
36
+ "验证码": "驗證碼",
37
+ "获取验证码": "取得驗證碼",
38
+ "请输入验证码": "請輸入驗證碼",
39
+ "验证码为6位数字": "驗證碼為6位數字",
40
+ "验证码已发送": "驗證碼已發送",
41
+ "请输入正确的手机号码": "請輸入正確的手機號碼",
42
+ "请先完成人机验证": "請先完成人機驗證",
43
+ "我不是机器人": "我不是機器人",
44
+ "人机校验中": "人機驗證中",
45
+ "验证通过": "驗證通過",
46
+ "密码已重置,请登录": "密碼已重設,請登入",
47
+ "两次输入的密码不一致": "兩次輸入的密碼不一致",
48
+ "下面任选一个方法都可以登录:": "以下任選一個方法都可以登入:",
49
+ "1、把本页网址复制到微信里面打开": "1、把本頁網址複製到微信裡面開啟",
50
+ "2、请用微信扫码登录": "2、請用微信掃碼登入",
51
+ "3、把本页网址复制到微信里面打开": "3、把本頁網址複製到微信裡面開啟",
52
+ "名称": "名稱",
53
+ "优惠券": "優惠券",
54
+ "金额": "金額",
55
+ "已扫码": "已掃碼",
56
+ "已经过期": "已過期",
57
+ "内容为空": "內容空白",
58
+ "重试": "重試",
59
+ "选择": "選擇"
37
60
  }
@@ -29,6 +29,8 @@ export interface AccountAuthResult {
29
29
  nickname: string;
30
30
  avatarUrl: string;
31
31
  gender: number;
32
+ isSubAccount: boolean;
33
+ powerKindList: string[];
32
34
  }
33
35
  export interface PowChallengeResult {
34
36
  challenge: string;
@@ -48,6 +50,7 @@ export declare function sendSmsCode(body: {
48
50
  export declare function accountLogin(body: {
49
51
  accountName: string;
50
52
  password: string;
53
+ accountType?: string;
51
54
  }, options?: ServicesApi.RequestOptions): Promise<AccountAuthResult>;
52
55
  export declare function accountReg(body: {
53
56
  accountName: string;
@@ -56,7 +56,7 @@ export function reg(_x5, _x6) {
56
56
  return _reg.apply(this, arguments);
57
57
  }
58
58
 
59
- // ============ 本地账户鉴权(api-order-printer,/auth-user/*)============
59
+ // ============ 本地账户鉴权(api-order-printer,/auth/*)============
60
60
 
61
61
  // 本地账户登录成功数据。
62
62
  function _reg() {
@@ -87,7 +87,7 @@ function _powChallenge() {
87
87
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
88
88
  while (1) switch (_context4.prev = _context4.next) {
89
89
  case 0:
90
- return _context4.abrupt("return", request("auth-user/pow-challenge", _objectSpread({
90
+ return _context4.abrupt("return", request("auth/pow-challenge", _objectSpread({
91
91
  method: 'POST',
92
92
  headers: {
93
93
  'Content-Type': 'application/json'
@@ -110,7 +110,7 @@ function _sendSmsCode() {
110
110
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
111
111
  while (1) switch (_context5.prev = _context5.next) {
112
112
  case 0:
113
- return _context5.abrupt("return", request("auth-user/send-sms-code", _objectSpread({
113
+ return _context5.abrupt("return", request("auth/send-sms-code", _objectSpread({
114
114
  method: 'POST',
115
115
  headers: {
116
116
  'Content-Type': 'application/json'
@@ -133,7 +133,7 @@ function _accountLogin() {
133
133
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
134
134
  while (1) switch (_context6.prev = _context6.next) {
135
135
  case 0:
136
- return _context6.abrupt("return", request("auth-user/login-account", _objectSpread({
136
+ return _context6.abrupt("return", request("auth/login-account", _objectSpread({
137
137
  method: 'POST',
138
138
  headers: {
139
139
  'Content-Type': 'application/json'
@@ -156,7 +156,7 @@ function _accountReg() {
156
156
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
157
157
  while (1) switch (_context7.prev = _context7.next) {
158
158
  case 0:
159
- return _context7.abrupt("return", request("auth-user/reg", _objectSpread({
159
+ return _context7.abrupt("return", request("auth/reg", _objectSpread({
160
160
  method: 'POST',
161
161
  headers: {
162
162
  'Content-Type': 'application/json'
@@ -179,7 +179,7 @@ function _forgotPassword() {
179
179
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
180
180
  while (1) switch (_context8.prev = _context8.next) {
181
181
  case 0:
182
- return _context8.abrupt("return", request("auth-user/forgot-password", _objectSpread({
182
+ return _context8.abrupt("return", request("auth/forgot-password", _objectSpread({
183
183
  method: 'POST',
184
184
  headers: {
185
185
  'Content-Type': 'application/json'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- AuthQrLogin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- LoginForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- WeQrUrlBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- Account: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
- };
8
- export default _default;
@@ -1,19 +0,0 @@
1
- import styled from 'styled-components';
2
- export default {
3
- AuthQrLogin: styled.div.withConfig({
4
- displayName: "AuthQrLogin",
5
- componentId: "component-sanzhizhou__sc-17uutxn-0"
6
- })(["position:relative;.ant-tabs-tab-btn{.anticon{margin-right:6px;}}.weQrUrl{position:absolute;left:50%;transform:translateX(-50%);}.qr{position:relative;display:block;margin:12px auto 0;width:230px;height:230px;background-repeat:no-repeat;background-size:cover;background-position:center;.reTry{position:absolute;z-index:100;left:0;top:0;width:100%;font-size:80px;background-color:rgba(255,255,255,0.95);text-align:center;line-height:210px;height:100%;a{display:block;}}}.alt{padding:10px 0 0;color:#999;text-align:center;}.altWeb{padding:16px 0 0;max-width:300px;margin:0 auto;.titles{text-align:center;font-weight:bold;}ul{margin:0 10px;}}.percent{width:100%;position:absolute;overflow:hidden;left:0;bottom:0;.warp{height:4px;background-color:#1677ff;transition:all 1.6s ease-in-out;-webkit-transition:all 1.6s ease-in-out;}}.callWechat{position:absolute;left:6px;bottom:6px;background:#f6f6f6;width:4px;height:4px;}.callAccount{position:absolute;right:6px;bottom:6px;background:#f6f6f6;width:4px;height:4px;}.ssz-webTitle{font-weight:normal;font-size:26px;text-align:center;padding:6px 0 0 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;}}"]),
7
- LoginForm: styled.div.withConfig({
8
- displayName: "LoginForm",
9
- componentId: "component-sanzhizhou__sc-17uutxn-1"
10
- })(["margin:0 auto;padding:12px 16px 6px 16px;background-color:rgba(255,255,255,0.9);border-radius:6px;"]),
11
- WeQrUrlBox: styled.div.withConfig({
12
- displayName: "WeQrUrlBox",
13
- componentId: "component-sanzhizhou__sc-17uutxn-2"
14
- })(["min-height:240px !important;"]),
15
- Account: styled.div.withConfig({
16
- displayName: "Account",
17
- componentId: "component-sanzhizhou__sc-17uutxn-3"
18
- })([".radioSelectBox{text-align:right;margin-bottom:8px;}.auth-submits{margin-top:8px;text-align:right;.ant-btn{width:100%;}}"])
19
- };