@uxda/appkit 1.0.50 → 1.0.54

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.
package/README.md CHANGED
@@ -36,6 +36,7 @@ import '@uxda/appkit/appkit.css'
36
36
  const App = createApp({})
37
37
  App.use(AppKit, {
38
38
  app: () => 'cloudkitPro',
39
+ tenant: () => '1',
39
40
  token: () => localStorage.getItem('token'),
40
41
  baseUrl: () => process.env.TARO_APP_BASE_URL,
41
42
  401: () => {
@@ -45,6 +46,7 @@ App.use(AppKit, {
45
46
  ```
46
47
  为 AppKit 的运行提供必需的 API 参数
47
48
  * app: 当前的 app code (嵌入接口调用的 header 参数)
49
+ * tenant: 租户ID 需要提供以便调用接口
48
50
  * token: 用户登录态 token
49
51
  * baseUrl: 调用 API 的URL域名
50
52
  * 401: 登录态丢失异常处理 (通常要跳转登录页)
package/dist/appkit.css CHANGED
@@ -2,17 +2,15 @@
2
2
  padding: 14px 0 14px 14px;
3
3
  }
4
4
  .amount-picker .nut-grid-item__content {
5
- border: 1px solid rgba(204, 204, 204, 0.8);
6
- background: #F5F5F5;
7
- border-radius: 8px;
5
+ border: solid 2px transparent;
6
+ background: linear-gradient(#f5f5f5, #f5f5f5) padding-box, linear-gradient(to bottom, rgba(204, 204, 204, 0.5333333333), rgba(204, 204, 204, 0.5333333333)) border-box;
7
+ border-radius: 5px;
8
8
  }
9
9
  .amount-picker .tile {
10
10
  height: 80px;
11
11
  }
12
12
  .amount-picker .tile.selected .nut-grid-item__content {
13
- border-width: 2px;
14
- border-color: #EFD082;
15
- background: linear-gradient(180deg, #FFF7E3 0%, #FEFDE6 100%);
13
+ background: linear-gradient(#FFF7E3, #FEFDE6) padding-box, linear-gradient(to bottom, #efd082, #ffb877) border-box;
16
14
  }
17
15
  .amount-picker h4.token-line {
18
16
  background-image: url("https://cdn.ddjf.com/static/images/appkit/yundou.png");
@@ -23,7 +21,6 @@
23
21
  color: #FD6701;
24
22
  font-weight: 600;
25
23
  line-height: 25px;
26
- color: #d00;
27
24
  font-size: 18px;
28
25
  }
29
26
  .amount-picker h5 {
@@ -108,7 +105,7 @@
108
105
  }
109
106
  .recharge-view .amount-footer {
110
107
  padding: 10px;
111
- padding-bottom: 0;
108
+ padding-bottom: 20px;
112
109
  }
113
110
  .recharge-view .amount-footer .agreement {
114
111
  font-size: 12px;
package/dist/index.js CHANGED
@@ -478,7 +478,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
478
478
  const onPayClick = () => {
479
479
  if (!state.agreed) {
480
480
  Taro.showToast({
481
- title: "\u8BF7\u52FE\u9009\u5145\u503C\u534F\u8BAE",
481
+ title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
482
482
  icon: "none"
483
483
  });
484
484
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.0.50",
3
+ "version": "1.0.54",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -57,17 +57,17 @@ const onGridItemClick = (index: number) => {
57
57
  .amount-picker {
58
58
  padding: 14px 0 14px 14px;
59
59
  .nut-grid-item__content {
60
- border: 1px solid rgba(204, 204, 204, 0.80);
61
- background: #F5F5F5;
62
- border-radius: 8px;
60
+ border: solid 2px transparent;
61
+ background: linear-gradient(#f5f5f5, #f5f5f5) padding-box,
62
+ linear-gradient(to bottom, #cccccc88, #cccccc88) border-box;
63
+ border-radius: 5px;
63
64
  }
64
65
  .tile {
65
66
  height: 80px;
66
67
  &.selected {
67
68
  .nut-grid-item__content {
68
- border-width: 2px;
69
- border-color: #EFD082;
70
- background: linear-gradient(180deg, #FFF7E3 0%, #FEFDE6 100%);
69
+ background: linear-gradient(#FFF7E3, #FEFDE6) padding-box,
70
+ linear-gradient(to bottom, #efd082, #ffb877) border-box;
71
71
  }
72
72
  }
73
73
  }
@@ -80,7 +80,6 @@ const onGridItemClick = (index: number) => {
80
80
  color: #FD6701;
81
81
  font-weight: 600;
82
82
  line-height: 25px;
83
- color: #d00;
84
83
  font-size: 18px;
85
84
  }
86
85
  h5 {
@@ -88,7 +88,7 @@ onMounted(() => {
88
88
  const onPayClick = () => {
89
89
  if (!state.agreed) {
90
90
  Taro.showToast({
91
- title: '请勾选充值协议',
91
+ title: '请勾选《大道云平台云豆充值协议》',
92
92
  icon: 'none',
93
93
  })
94
94
  return false
@@ -122,7 +122,7 @@ const onPayClick = () => {
122
122
  }
123
123
  .amount-footer {
124
124
  padding: 10px;
125
- padding-bottom: 0;
125
+ padding-bottom: 20px;
126
126
  .agreement {
127
127
  font-size: 12px;
128
128
  display: flex;