@uxda/appkit 1.0.58 → 1.0.62

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/dist/appkit.css CHANGED
@@ -422,7 +422,7 @@ page {
422
422
  }
423
423
  .consumption-date-filter .time {
424
424
  display: flex;
425
- justify-content: start;
425
+ justify-content: flex-start;
426
426
  align-items: center;
427
427
  margin: 10px 0 30px 0;
428
428
  }
@@ -477,6 +477,10 @@ page {
477
477
  margin: 0 auto;
478
478
  text-align: center;
479
479
  }
480
+ .consumption-view.popupOpen {
481
+ height: 100vh;
482
+ overflow: hidden;
483
+ }
480
484
  .consumption-view .spa-between {
481
485
  padding: 0 0 0 10px;
482
486
  display: flex;
package/dist/index.js CHANGED
@@ -360,6 +360,7 @@ const appKitOptions = {
360
360
  app: () => "",
361
361
  tenant: () => "",
362
362
  token: () => "",
363
+ tempToken: () => "",
363
364
  baseUrl: () => "",
364
365
  401() {
365
366
  }
@@ -373,8 +374,10 @@ const useAppKitOptions = () => {
373
374
 
374
375
  const makeHttp$1 = () => {
375
376
  const appkitOptions = useAppKitOptions();
377
+ console.log("===makeHTTP===tempToken:", appkitOptions.tempToken());
378
+ const token = appkitOptions.tempToken() || appkitOptions.token();
376
379
  const header = {
377
- Token: appkitOptions.token(),
380
+ Token: token,
378
381
  Appcode: appkitOptions.app()
379
382
  };
380
383
  const $http = useHttp({
@@ -1212,12 +1215,11 @@ var script$2 = /* @__PURE__ */ defineComponent({
1212
1215
 
1213
1216
  script$2.__file = "src/balance/components/ConsumptionRules.vue";
1214
1217
 
1215
- const _hoisted_1$1 = { class: "consumption-view" };
1216
- const _hoisted_2$1 = { class: "header" };
1217
- const _hoisted_3$1 = { class: "header_card" };
1218
- const _hoisted_4$1 = { class: "clound-bean" };
1219
- const _hoisted_5$1 = { class: "bean-box spa-between" };
1220
- const _hoisted_6 = /* @__PURE__ */ createElementVNode(
1218
+ const _hoisted_1$1 = { class: "header" };
1219
+ const _hoisted_2$1 = { class: "header_card" };
1220
+ const _hoisted_3$1 = { class: "clound-bean" };
1221
+ const _hoisted_4$1 = { class: "bean-box spa-between" };
1222
+ const _hoisted_5$1 = /* @__PURE__ */ createElementVNode(
1221
1223
  "div",
1222
1224
  { class: "bean-img" },
1223
1225
  [
@@ -1230,20 +1232,20 @@ const _hoisted_6 = /* @__PURE__ */ createElementVNode(
1230
1232
  -1
1231
1233
  /* HOISTED */
1232
1234
  );
1233
- const _hoisted_7 = { class: "bean-counts spa-between" };
1234
- const _hoisted_8 = { class: "counts number" };
1235
- const _hoisted_9 = /* @__PURE__ */ createElementVNode(
1235
+ const _hoisted_6 = { class: "bean-counts spa-between" };
1236
+ const _hoisted_7 = { class: "counts number" };
1237
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode(
1236
1238
  "div",
1237
1239
  { class: "line" },
1238
1240
  null,
1239
1241
  -1
1240
1242
  /* HOISTED */
1241
1243
  );
1242
- const _hoisted_10 = {
1244
+ const _hoisted_9 = {
1243
1245
  key: 0,
1244
1246
  class: "small-clound-bean clound-bean"
1245
1247
  };
1246
- const _hoisted_11 = /* @__PURE__ */ createElementVNode(
1248
+ const _hoisted_10 = /* @__PURE__ */ createElementVNode(
1247
1249
  "div",
1248
1250
  { class: "bean-box spa-between" },
1249
1251
  [
@@ -1254,20 +1256,20 @@ const _hoisted_11 = /* @__PURE__ */ createElementVNode(
1254
1256
  -1
1255
1257
  /* HOISTED */
1256
1258
  );
1257
- const _hoisted_12 = { class: "bean-list" };
1258
- const _hoisted_13 = { class: "counts number" };
1259
- const _hoisted_14 = { class: "title" };
1260
- const _hoisted_15 = { class: "operation-title spa-between" };
1261
- const _hoisted_16 = { class: "search-time" };
1262
- const _hoisted_17 = /* @__PURE__ */ createElementVNode(
1259
+ const _hoisted_11 = { class: "bean-list" };
1260
+ const _hoisted_12 = { class: "counts number" };
1261
+ const _hoisted_13 = { class: "title" };
1262
+ const _hoisted_14 = { class: "operation-title spa-between" };
1263
+ const _hoisted_15 = { class: "search-time" };
1264
+ const _hoisted_16 = /* @__PURE__ */ createElementVNode(
1263
1265
  "div",
1264
1266
  { class: "title" },
1265
1267
  "\u6536\u652F\u660E\u7EC6",
1266
1268
  -1
1267
1269
  /* HOISTED */
1268
1270
  );
1269
- const _hoisted_18 = { class: "text" };
1270
- const _hoisted_19 = /* @__PURE__ */ createElementVNode(
1271
+ const _hoisted_17 = { class: "text" };
1272
+ const _hoisted_18 = /* @__PURE__ */ createElementVNode(
1271
1273
  "img",
1272
1274
  {
1273
1275
  class: "time-icon",
@@ -1277,14 +1279,14 @@ const _hoisted_19 = /* @__PURE__ */ createElementVNode(
1277
1279
  -1
1278
1280
  /* HOISTED */
1279
1281
  );
1280
- const _hoisted_20 = /* @__PURE__ */ createElementVNode(
1282
+ const _hoisted_19 = /* @__PURE__ */ createElementVNode(
1281
1283
  "span",
1282
1284
  { class: "text" },
1283
1285
  "\u7B5B\u9009",
1284
1286
  -1
1285
1287
  /* HOISTED */
1286
1288
  );
1287
- const _hoisted_21 = /* @__PURE__ */ createElementVNode(
1289
+ const _hoisted_20 = /* @__PURE__ */ createElementVNode(
1288
1290
  "img",
1289
1291
  {
1290
1292
  class: "time-icon",
@@ -1294,35 +1296,35 @@ const _hoisted_21 = /* @__PURE__ */ createElementVNode(
1294
1296
  -1
1295
1297
  /* HOISTED */
1296
1298
  );
1297
- const _hoisted_22 = [
1298
- _hoisted_20,
1299
- _hoisted_21
1299
+ const _hoisted_21 = [
1300
+ _hoisted_19,
1301
+ _hoisted_20
1300
1302
  ];
1301
- const _hoisted_23 = { class: "operation-list" };
1302
- const _hoisted_24 = {
1303
+ const _hoisted_22 = { class: "operation-list" };
1304
+ const _hoisted_23 = {
1303
1305
  key: 0,
1304
1306
  class: "box"
1305
1307
  };
1306
- const _hoisted_25 = { class: "title" };
1307
- const _hoisted_26 = { class: "item-type" };
1308
- const _hoisted_27 = { class: "item-detail" };
1309
- const _hoisted_28 = { class: "item-info spa-between" };
1310
- const _hoisted_29 = { class: "item-info-type" };
1311
- const _hoisted_30 = { class: "item-info-title" };
1312
- const _hoisted_31 = { class: "item-info-amount number" };
1313
- const _hoisted_32 = { class: "item-detail-remark" };
1314
- const _hoisted_33 = /* @__PURE__ */ createElementVNode(
1308
+ const _hoisted_24 = { class: "title" };
1309
+ const _hoisted_25 = { class: "item-type" };
1310
+ const _hoisted_26 = { class: "item-detail" };
1311
+ const _hoisted_27 = { class: "item-info spa-between" };
1312
+ const _hoisted_28 = { class: "item-info-type" };
1313
+ const _hoisted_29 = { class: "item-info-title" };
1314
+ const _hoisted_30 = { class: "item-info-amount number" };
1315
+ const _hoisted_31 = { class: "item-detail-remark" };
1316
+ const _hoisted_32 = /* @__PURE__ */ createElementVNode(
1315
1317
  "div",
1316
1318
  { class: "box-not-text" },
1317
1319
  "\u6CA1\u6709\u66F4\u591A\u4E86",
1318
1320
  -1
1319
1321
  /* HOISTED */
1320
1322
  );
1321
- const _hoisted_34 = {
1323
+ const _hoisted_33 = {
1322
1324
  key: 1,
1323
1325
  class: "operations-empty"
1324
1326
  };
1325
- const _hoisted_35 = /* @__PURE__ */ createElementVNode(
1327
+ const _hoisted_34 = /* @__PURE__ */ createElementVNode(
1326
1328
  "img",
1327
1329
  {
1328
1330
  class: "operations-empty-img",
@@ -1332,16 +1334,16 @@ const _hoisted_35 = /* @__PURE__ */ createElementVNode(
1332
1334
  -1
1333
1335
  /* HOISTED */
1334
1336
  );
1335
- const _hoisted_36 = /* @__PURE__ */ createElementVNode(
1337
+ const _hoisted_35 = /* @__PURE__ */ createElementVNode(
1336
1338
  "div",
1337
1339
  { class: "operations-empty-text" },
1338
1340
  "\u6682\u65E0\u6570\u636E",
1339
1341
  -1
1340
1342
  /* HOISTED */
1341
1343
  );
1342
- const _hoisted_37 = [
1343
- _hoisted_35,
1344
- _hoisted_36
1344
+ const _hoisted_36 = [
1345
+ _hoisted_34,
1346
+ _hoisted_35
1345
1347
  ];
1346
1348
  var script$1 = /* @__PURE__ */ defineComponent({
1347
1349
  __name: "AccountView",
@@ -1425,153 +1427,173 @@ var script$1 = /* @__PURE__ */ defineComponent({
1425
1427
  scrollY.value = scrollTop;
1426
1428
  });
1427
1429
  usePullDownRefresh(() => {
1430
+ if (popupOpen.value) {
1431
+ Taro.stopPullDownRefresh();
1432
+ return;
1433
+ }
1428
1434
  loadBalance();
1429
1435
  setTimeout(() => {
1430
1436
  Taro.stopPullDownRefresh();
1431
1437
  }, 500);
1432
1438
  });
1439
+ const popupOpen = computed(() => {
1440
+ return rulesPopupOpen.value || datePickerOpen.value || filterOpen.value;
1441
+ });
1433
1442
  return (_ctx, _cache) => {
1434
1443
  const _component_nut_popup = resolveComponent("nut-popup");
1435
1444
  return openBlock(), createElementBlock(
1436
1445
  Fragment,
1437
1446
  null,
1438
1447
  [
1439
- createElementVNode("div", _hoisted_1$1, [
1440
- createElementVNode("div", _hoisted_2$1, [
1441
- createElementVNode("div", _hoisted_3$1, [
1442
- createElementVNode("div", _hoisted_4$1, [
1443
- createElementVNode("div", _hoisted_5$1, [
1444
- _hoisted_6,
1445
- createElementVNode("div", {
1446
- class: "rule",
1447
- onClick: _cache[0] || (_cache[0] = ($event) => rulesPopupOpen.value = true)
1448
- }, "\u89C4\u5219\u8BF4\u660E")
1449
- ]),
1450
- createElementVNode("div", _hoisted_7, [
1451
- createElementVNode(
1452
- "div",
1453
- _hoisted_8,
1454
- toDisplayString(balance.value.total || 0),
1455
- 1
1456
- /* TEXT */
1457
- ),
1458
- createElementVNode("div", {
1459
- class: "pay",
1460
- onClick: gotoRecharge
1461
- }, "\u4E91\u8C46\u5145\u503C")
1462
- ])
1463
- ]),
1464
- _hoisted_9,
1465
- balance.value.privileges.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_10, [
1466
- _hoisted_11,
1467
- createElementVNode("div", _hoisted_12, [
1468
- (openBlock(true), createElementBlock(
1469
- Fragment,
1470
- null,
1471
- renderList(balance.value.privileges, (item) => {
1472
- return openBlock(), createElementBlock("div", {
1473
- key: item,
1474
- class: "bean-list-item"
1475
- }, [
1476
- createElementVNode(
1477
- "div",
1478
- _hoisted_13,
1479
- toDisplayString(item.amount),
1480
- 1
1481
- /* TEXT */
1482
- ),
1483
- createElementVNode(
1484
- "div",
1485
- _hoisted_14,
1486
- toDisplayString(item.title),
1487
- 1
1488
- /* TEXT */
1489
- )
1490
- ]);
1491
- }),
1492
- 128
1493
- /* KEYED_FRAGMENT */
1494
- ))
1495
- ])
1496
- ])) : createCommentVNode("v-if", true)
1497
- ])
1498
- ]),
1499
- createElementVNode("div", _hoisted_15, [
1500
- createElementVNode("div", _hoisted_16, [
1501
- _hoisted_17,
1502
- withDirectives(createElementVNode(
1503
- "div",
1504
- {
1505
- class: "time",
1506
- onClick: openDateFilter
1507
- },
1508
- [
1509
- createElementVNode(
1510
- "div",
1511
- _hoisted_18,
1512
- toDisplayString(dataRangeDisplay.value),
1513
- 1
1514
- /* TEXT */
1515
- ),
1516
- _hoisted_19
1517
- ],
1518
- 512
1519
- /* NEED_PATCH */
1520
- ), [
1521
- [vShow, filtering.dateFrom]
1522
- ])
1523
- ]),
1524
- createElementVNode("div", {
1525
- class: "search",
1526
- onClick: _cache[1] || (_cache[1] = ($event) => filterOpen.value = true)
1527
- }, [..._hoisted_22])
1528
- ]),
1529
- createElementVNode("div", _hoisted_23, [
1530
- consumptionGroups.value.list.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_24, [
1531
- (openBlock(true), createElementBlock(
1532
- Fragment,
1533
- null,
1534
- renderList(consumptionGroups.value.list, (item, index) => {
1535
- return openBlock(), createElementBlock("div", {
1536
- class: "box-detail",
1537
- key: index
1538
- }, [
1448
+ createElementVNode(
1449
+ "div",
1450
+ {
1451
+ class: normalizeClass(["consumption-view", { popupOpen: popupOpen.value }])
1452
+ },
1453
+ [
1454
+ createElementVNode("div", _hoisted_1$1, [
1455
+ createElementVNode("div", _hoisted_2$1, [
1456
+ createElementVNode("div", _hoisted_3$1, [
1457
+ createElementVNode("div", _hoisted_4$1, [
1458
+ _hoisted_5$1,
1459
+ createElementVNode("div", {
1460
+ class: "rule",
1461
+ onClick: _cache[0] || (_cache[0] = ($event) => rulesPopupOpen.value = true)
1462
+ }, "\u89C4\u5219\u8BF4\u660E")
1463
+ ]),
1464
+ createElementVNode("div", _hoisted_6, [
1539
1465
  createElementVNode(
1540
1466
  "div",
1541
- _hoisted_25,
1542
- toDisplayString(item.date),
1467
+ _hoisted_7,
1468
+ toDisplayString(balance.value.total || 0),
1543
1469
  1
1544
1470
  /* TEXT */
1545
1471
  ),
1472
+ createElementVNode("div", {
1473
+ class: "pay",
1474
+ onClick: gotoRecharge
1475
+ }, "\u4E91\u8C46\u5145\u503C")
1476
+ ])
1477
+ ]),
1478
+ _hoisted_8,
1479
+ balance.value.privileges.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9, [
1480
+ _hoisted_10,
1481
+ createElementVNode("div", _hoisted_11, [
1546
1482
  (openBlock(true), createElementBlock(
1547
1483
  Fragment,
1548
1484
  null,
1549
- renderList(item.consumptions, (it, i) => {
1485
+ renderList(balance.value.privileges, (item) => {
1550
1486
  return openBlock(), createElementBlock("div", {
1551
- class: "item",
1552
- key: i
1487
+ key: item,
1488
+ class: "bean-list-item"
1553
1489
  }, [
1554
1490
  createElementVNode(
1555
1491
  "div",
1556
- _hoisted_26,
1557
- toDisplayString(it.type),
1492
+ _hoisted_12,
1493
+ toDisplayString(item.amount),
1558
1494
  1
1559
1495
  /* TEXT */
1560
1496
  ),
1561
- createElementVNode("div", _hoisted_27, [
1562
- createElementVNode("div", _hoisted_28, [
1563
- createElementVNode("div", null, [
1564
- createElementVNode(
1565
- "div",
1566
- _hoisted_29,
1567
- toDisplayString(it.position),
1568
- 1
1569
- /* TEXT */
1570
- ),
1497
+ createElementVNode(
1498
+ "div",
1499
+ _hoisted_13,
1500
+ toDisplayString(item.title),
1501
+ 1
1502
+ /* TEXT */
1503
+ )
1504
+ ]);
1505
+ }),
1506
+ 128
1507
+ /* KEYED_FRAGMENT */
1508
+ ))
1509
+ ])
1510
+ ])) : createCommentVNode("v-if", true)
1511
+ ])
1512
+ ]),
1513
+ createElementVNode("div", _hoisted_14, [
1514
+ createElementVNode("div", _hoisted_15, [
1515
+ _hoisted_16,
1516
+ withDirectives(createElementVNode(
1517
+ "div",
1518
+ {
1519
+ class: "time",
1520
+ onClick: openDateFilter
1521
+ },
1522
+ [
1523
+ createElementVNode(
1524
+ "div",
1525
+ _hoisted_17,
1526
+ toDisplayString(dataRangeDisplay.value),
1527
+ 1
1528
+ /* TEXT */
1529
+ ),
1530
+ _hoisted_18
1531
+ ],
1532
+ 512
1533
+ /* NEED_PATCH */
1534
+ ), [
1535
+ [vShow, filtering.dateFrom]
1536
+ ])
1537
+ ]),
1538
+ createElementVNode("div", {
1539
+ class: "search",
1540
+ onClick: _cache[1] || (_cache[1] = ($event) => filterOpen.value = true)
1541
+ }, [..._hoisted_21])
1542
+ ]),
1543
+ createElementVNode("div", _hoisted_22, [
1544
+ consumptionGroups.value.list.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_23, [
1545
+ (openBlock(true), createElementBlock(
1546
+ Fragment,
1547
+ null,
1548
+ renderList(consumptionGroups.value.list, (item, index) => {
1549
+ return openBlock(), createElementBlock("div", {
1550
+ class: "box-detail",
1551
+ key: index
1552
+ }, [
1553
+ createElementVNode(
1554
+ "div",
1555
+ _hoisted_24,
1556
+ toDisplayString(item.date),
1557
+ 1
1558
+ /* TEXT */
1559
+ ),
1560
+ (openBlock(true), createElementBlock(
1561
+ Fragment,
1562
+ null,
1563
+ renderList(item.consumptions, (it, i) => {
1564
+ return openBlock(), createElementBlock("div", {
1565
+ class: "item",
1566
+ key: i
1567
+ }, [
1568
+ createElementVNode(
1569
+ "div",
1570
+ _hoisted_25,
1571
+ toDisplayString(it.type),
1572
+ 1
1573
+ /* TEXT */
1574
+ ),
1575
+ createElementVNode("div", _hoisted_26, [
1576
+ createElementVNode("div", _hoisted_27, [
1577
+ createElementVNode("div", null, [
1578
+ createElementVNode(
1579
+ "div",
1580
+ _hoisted_28,
1581
+ toDisplayString(it.position),
1582
+ 1
1583
+ /* TEXT */
1584
+ ),
1585
+ createElementVNode(
1586
+ "div",
1587
+ _hoisted_29,
1588
+ toDisplayString(it.title),
1589
+ 1
1590
+ /* TEXT */
1591
+ )
1592
+ ]),
1571
1593
  createElementVNode(
1572
1594
  "div",
1573
1595
  _hoisted_30,
1574
- toDisplayString(it.title),
1596
+ toDisplayString(it.direction == "\u652F\u51FA" ? "-" : "+") + toDisplayString(it.amount),
1575
1597
  1
1576
1598
  /* TEXT */
1577
1599
  )
@@ -1579,33 +1601,28 @@ var script$1 = /* @__PURE__ */ defineComponent({
1579
1601
  createElementVNode(
1580
1602
  "div",
1581
1603
  _hoisted_31,
1582
- toDisplayString(it.direction == "\u652F\u51FA" ? "-" : "+") + toDisplayString(it.amount),
1604
+ toDisplayString(it.description),
1583
1605
  1
1584
1606
  /* TEXT */
1585
1607
  )
1586
- ]),
1587
- createElementVNode(
1588
- "div",
1589
- _hoisted_32,
1590
- toDisplayString(it.description),
1591
- 1
1592
- /* TEXT */
1593
- )
1594
- ])
1595
- ]);
1596
- }),
1597
- 128
1598
- /* KEYED_FRAGMENT */
1599
- ))
1600
- ]);
1601
- }),
1602
- 128
1603
- /* KEYED_FRAGMENT */
1604
- )),
1605
- _hoisted_33
1606
- ])) : (openBlock(), createElementBlock("div", _hoisted_34, [..._hoisted_37]))
1607
- ])
1608
- ]),
1608
+ ])
1609
+ ]);
1610
+ }),
1611
+ 128
1612
+ /* KEYED_FRAGMENT */
1613
+ ))
1614
+ ]);
1615
+ }),
1616
+ 128
1617
+ /* KEYED_FRAGMENT */
1618
+ )),
1619
+ _hoisted_32
1620
+ ])) : (openBlock(), createElementBlock("div", _hoisted_33, [..._hoisted_36]))
1621
+ ])
1622
+ ],
1623
+ 2
1624
+ /* CLASS */
1625
+ ),
1609
1626
  createVNode(_component_nut_popup, {
1610
1627
  "pop-class": "consumption-rules-popup",
1611
1628
  visible: rulesPopupOpen.value,
@@ -1766,6 +1783,10 @@ const $app = {
1766
1783
  const appKitOptions = useAppKitOptions();
1767
1784
  appKitOptions.token = token;
1768
1785
  },
1786
+ setTempToken: (token) => {
1787
+ const appKitOptions = useAppKitOptions();
1788
+ appKitOptions.tempToken = token;
1789
+ },
1769
1790
  requestPayment: (options) => {
1770
1791
  },
1771
1792
  invokeRecharge: (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.0.58",
3
+ "version": "1.0.62",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
package/src/Appkit.ts CHANGED
@@ -18,6 +18,11 @@ export type AppKitOptions = {
18
18
  * 由使用场景提供
19
19
  */
20
20
  token (): string,
21
+ /**
22
+ * 临时 token 获取方法
23
+ * 由使用场景提供
24
+ */
25
+ tempToken: () => string,
21
26
  /**
22
27
  * 调用 API 时使用的 base url
23
28
  */
@@ -28,6 +33,7 @@ export type AppKitOptions = {
28
33
 
29
34
  export type DollarApp = {
30
35
  setToken: (token: () => string) => void,
36
+ setTempToken: (token: () => string) => void,
31
37
  requestPayment: (options: PaymentParams) => void,
32
38
  invokeRecharge: (options: RechargeParams) => void,
33
39
  }
@@ -39,6 +45,7 @@ const appKitOptions: AppKitOptions = {
39
45
  app: () => '',
40
46
  tenant: () => '',
41
47
  token: () => '',
48
+ tempToken: () => '',
42
49
  baseUrl: () => '',
43
50
  401 () {}
44
51
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="consumption-view">
2
+ <div class="consumption-view" :class="{ popupOpen }">
3
3
  <div class="header">
4
4
  <div class="header_card">
5
5
  <div class="clound-bean">
@@ -234,16 +234,29 @@ usePageScroll((e) => {
234
234
  })
235
235
 
236
236
  usePullDownRefresh(() => {
237
+ if (popupOpen.value) {
238
+ Taro.stopPullDownRefresh()
239
+ return
240
+ }
241
+
237
242
  // 页面下拉刷新
238
243
  loadBalance()
239
244
  setTimeout(() => {
240
245
  Taro.stopPullDownRefresh()
241
246
  }, 500);
242
247
  })
248
+
249
+ const popupOpen = computed(() => {
250
+ return rulesPopupOpen.value || datePickerOpen.value || filterOpen.value
251
+ })
243
252
  </script>
244
253
 
245
254
  <style lang="scss">
246
255
  .consumption-view {
256
+ &.popupOpen {
257
+ height: 100vh;
258
+ overflow: hidden;
259
+ }
247
260
  .spa-between {
248
261
  padding: 0 0 0 10px;
249
262
  display: flex;
@@ -200,7 +200,7 @@ function onDatePickerComplete ({ selectedValue, selectedOptions }) {
200
200
  }
201
201
  .time {
202
202
  display: flex;
203
- justify-content: start;
203
+ justify-content: flex-start;
204
204
  align-items: center;
205
205
  margin: 10px 0 30px 0;
206
206
  .line {
package/src/index.ts CHANGED
@@ -41,6 +41,10 @@ const $app: DollarApp = {
41
41
  const appKitOptions = useAppKitOptions()
42
42
  appKitOptions.token = token
43
43
  },
44
+ setTempToken: (token: () => string) => {
45
+ const appKitOptions = useAppKitOptions()
46
+ appKitOptions.tempToken = token
47
+ },
44
48
  requestPayment: (options: PaymentParams) => {},
45
49
  invokeRecharge: (options: RechargeParams) => {}
46
50
  }
@@ -4,9 +4,11 @@ import { useAppKitOptions } from '../../Appkit'
4
4
 
5
5
  const makeHttp = () => {
6
6
  const appkitOptions = useAppKitOptions()
7
+ console.log('===makeHTTP===tempToken:', appkitOptions.tempToken())
7
8
 
9
+ const token = appkitOptions.tempToken() || appkitOptions.token()
8
10
  const header = {
9
- Token: appkitOptions.token(),
11
+ Token: token,
10
12
  Appcode: appkitOptions.app(),
11
13
  }
12
14