@jx3box/jx3box-common-ui 8.2.17 → 8.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.2.17",
3
+ "version": "8.3.1",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,9 +29,15 @@ export default {
29
29
  /**
30
30
  * 1. 用户第一次进入页面时,没有记录,则显示,并记录到meta
31
31
  * 2. 用户第二次进入页面,此时meta有记录,但是用户并未进入会员中心,则显示
32
+ *
33
+ * meta如果为null,说明用户未登录,不显示
34
+ * meta如果为0,说明用户已经看过,不显示,同时比较config的值,如果config的值大于local,更新local为config的值和meta为1
35
+ * meta如果为1,说明用户未看过,显示
32
36
  */
33
37
  let meta = null
34
- meta = meta = User.isLogin() && await getUserMeta({ key: "mall_pop" });
38
+ if (User.isLogin()) {
39
+ meta = await getUserMeta({ key: "mall_pop" });
40
+ }
35
41
  let config = await getConfig({ key: "mall" });
36
42
 
37
43
  if (meta == null) {
@@ -17,7 +17,7 @@
17
17
  <asset :asset="asset" />
18
18
 
19
19
  <!-- manage -->
20
- <manage :isTeammate="isTeammate" />
20
+ <manage :isTeammate="isTeammate" v-if="isTeammate" />
21
21
 
22
22
  <!-- 语言切换 -->
23
23
  <!-- <lang-switch /> -->
@@ -31,7 +31,9 @@ export default {
31
31
  * 2. 用户第二次进入页面,此时meta有记录,但是用户并未进入会员中心,则显示
32
32
  */
33
33
  let meta = null
34
- meta = User.isLogin() && await getUserMeta({ key: 'vip_pop' });
34
+ if (User.isLogin()) {
35
+ meta = await getUserMeta({ key: "vip_pop" });
36
+ }
35
37
  let config = await getConfig({ key: "vip" });
36
38
 
37
39