jmash-core-mp 0.1.47 → 0.1.48

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": "jmash-core-mp",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -126,7 +126,7 @@ createComponent({
126
126
  {
127
127
  "component": true,
128
128
  "usingComponents": {
129
- "jmash-cms-article-item": "./jmash-cms-article-item"
129
+ "jmash-cms-article-item": "./jmash-cms-article-item.mpx"
130
130
  }
131
131
  }
132
132
  </script>
@@ -71,7 +71,7 @@ createComponent({
71
71
  },
72
72
  ]);
73
73
  // 使用父组件传入的列表或默认列表
74
- const arr = ref(props.menuList.length > 0 ? props.menuList : defaultMenuList);
74
+ const arr = computed(() => props.menuList.length > 0 ? props.menuList : defaultMenuList.value);
75
75
  // 公众号弹窗显示状态
76
76
  let gzShow = ref(false);
77
77
 
@@ -1,45 +1,42 @@
1
1
  <template>
2
- <!-- 自定义底部弹窗 -->
3
- <view class="ci-popup {{ innerShow ? 'ci-popup--show' : '' }}">
4
- <view class="ci-popup__mask" bind:tap="onClose"></view>
5
- <view class="ci-popup__content" catch:tap="noop">
6
- <view class="organ-code-interest-popup" style="padding-bottom: {{ paddingBottom }}px;background-color: #fff;">
7
- <view class="position-box">
8
- <image wx:if="{{ resourceUrl }}" class="main-bgc-image" src="{{ resourceUrl + 'replaced/push_bgc.png' }}"
9
- mode="widthFix" />
10
- <view class="main">
11
- <!-- 关闭文字 -->
12
- <view class="main-close-text" bind:tap="onClose">稍后关注</view>
13
- <view class="main-title-image-box">
14
- <view class="main-title">关注公众号</view>
2
+ <!-- 关注公众号弹窗 -->
3
+ <jmash-popup show="{{ show }}" titleShow="{{ false }}" borderRadius="0" padding="0" bind:close="handleClose">
4
+ <view class="organ-code-interest-popup">
5
+ <view class="position-box">
6
+ <image wx:if="{{ resourceUrl }}" class="main-bgc-image" src="{{ resourceUrl + 'replaced/push_bgc.png' }}"
7
+ mode="widthFix" />
8
+ <view class="main">
9
+ <!-- 关闭文字 -->
10
+ <view class="main-close-text" bind:tap="handleClose">稍后关注</view>
11
+ <view class="main-title-image-box">
12
+ <view class="main-title">关注公众号</view>
13
+ </view>
14
+ <!-- 手的图片的定位盒子 -->
15
+ <view class="main-push-position-box">
16
+ <image wx:if="{{ resourceUrl }}" class="main-push-bgc-image"
17
+ src="{{ resourceUrl + 'replaced/push_hand_none.png' }}" mode="widthFix" />
18
+ <!-- 公司公众号二维码 -->
19
+ <view class="main-push-code-image">
20
+ <image wx:if="{{ resourceUrl && appQrcodeUrl }}" class="code-image" show-menu-by-longpress="{{ true }}"
21
+ src="{{ appQrcodeUrl }}" mode="aspectFit" />
15
22
  </view>
16
- <!-- 手的图片的定位盒子 -->
17
- <view class="main-push-position-box">
18
- <image wx:if="{{ resourceUrl }}" class="main-push-bgc-image"
19
- src="{{ resourceUrl + 'replaced/push_hand_none.png' }}" mode="widthFix" />
20
- <!-- 公司公众号二维码 -->
21
- <view class="main-push-code-image">
22
- <image wx:if="{{ resourceUrl && appQrcodeUrl }}" class="code-image" show-menu-by-longpress="{{ true }}"
23
- src="{{ appQrcodeUrl }}" mode="aspectFit" />
24
- </view>
25
- <!-- 提示文字 -->
26
- <view class="main-push-text">
27
- 关注后即可获得以下权益
28
- <view class="main-push-text_item">
29
- <image wx:if="{{ resourceUrl }}" class="main-push-text_item_left"
30
- src="{{ resourceUrl + 'icon_image/interest_lisk.png' }}" mode="aspectFit" />
31
- <view class="main-push-text_item_right">
32
- <view class="main-push-text_item_right_title">消息实时提醒</view>
33
- <view>及时接收订单、收发货、交易、收益等动态信息</view>
34
- </view>
23
+ <!-- 提示文字 -->
24
+ <view class="main-push-text">
25
+ 关注后即可获得以下权益
26
+ <view class="main-push-text_item">
27
+ <image wx:if="{{ resourceUrl }}" class="main-push-text_item_left"
28
+ src="{{ resourceUrl + 'icon_image/interest_lisk.png' }}" mode="aspectFit" />
29
+ <view class="main-push-text_item_right">
30
+ <view class="main-push-text_item_right_title">消息实时提醒</view>
31
+ <view>及时接收订单、收发货、交易、收益等动态信息</view>
35
32
  </view>
36
- <view class="main-push-text_item">
37
- <image wx:if="{{ resourceUrl }}" class="main-push-text_item_left"
38
- src="{{ resourceUrl + 'icon_image/interest_lisk.png' }}" mode="aspectFit" />
39
- <view class="main-push-text_item_right">
40
- <view class="main-push-text_item_right_title">享受更多服务</view>
41
- <view>关注公众号,解锁客服、活动、会员等超值服务!</view>
42
- </view>
33
+ </view>
34
+ <view class="main-push-text_item">
35
+ <image wx:if="{{ resourceUrl }}" class="main-push-text_item_left"
36
+ src="{{ resourceUrl + 'icon_image/interest_lisk.png' }}" mode="aspectFit" />
37
+ <view class="main-push-text_item_right">
38
+ <view class="main-push-text_item_right_title">享受更多服务</view>
39
+ <view>关注公众号,解锁客服、活动、会员等超值服务!</view>
43
40
  </view>
44
41
  </view>
45
42
  </view>
@@ -47,12 +44,11 @@
47
44
  </view>
48
45
  </view>
49
46
  </view>
50
- </view>
47
+ </jmash-popup>
51
48
  </template>
52
49
 
53
50
  <script lang="ts">
54
51
  import { createComponent, ref } from "@mpxjs/core";
55
- import { getHeight } from "../../utils/common";
56
52
  import { config } from "../../utils/config";
57
53
 
58
54
  createComponent({
@@ -67,9 +63,6 @@ createComponent({
67
63
  show: {
68
64
  type: Boolean,
69
65
  value: false,
70
- observer() {
71
- this.innerShow = this.show;
72
- }
73
66
  }
74
67
  },
75
68
  /**
@@ -78,17 +71,12 @@ createComponent({
78
71
  setup() {
79
72
  // 资源路径
80
73
  let resourceUrl = config.resourceUrl + "/images/";
81
- // 底部安全距离
82
- let paddingBottom = ref(getHeight().computeHeightFn(getHeight().bottomHeight, 30));
83
74
  // 公司公众号二维码图片
84
75
  let appQrcodeUrl = ref(config.resourceUrl + "/images/replaced/official_account2x.png");
85
- let innerShow = ref(false);
86
76
 
87
77
  return {
88
78
  resourceUrl,
89
- paddingBottom,
90
79
  appQrcodeUrl,
91
- innerShow,
92
80
  };
93
81
  },
94
82
  /**
@@ -96,11 +84,9 @@ createComponent({
96
84
  */
97
85
  methods: {
98
86
  // 关闭弹框
99
- onClose() {
100
- this.innerShow = false;
87
+ handleClose() {
101
88
  this.triggerEvent("close");
102
89
  },
103
- noop() { },
104
90
  }
105
91
  });
106
92
  </script>
@@ -108,48 +94,6 @@ createComponent({
108
94
  <style lang="scss">
109
95
  @use "../../styles/index.scss" as *;
110
96
 
111
- .ci-popup {
112
- position: fixed;
113
- top: 0;
114
- left: 0;
115
- right: 0;
116
- bottom: 0;
117
- z-index: 999999;
118
- pointer-events: none;
119
-
120
- &.ci-popup--show {
121
- pointer-events: auto;
122
-
123
- .ci-popup__mask {
124
- opacity: 1;
125
- }
126
-
127
- .ci-popup__content {
128
- transform: translateY(0);
129
- }
130
- }
131
-
132
- .ci-popup__mask {
133
- position: absolute;
134
- top: 0;
135
- left: 0;
136
- right: 0;
137
- bottom: 0;
138
- background: rgba(0, 0, 0, 0.5);
139
- opacity: 0;
140
- transition: opacity 0.3s ease;
141
- }
142
-
143
- .ci-popup__content {
144
- position: absolute;
145
- bottom: 0;
146
- left: 0;
147
- right: 0;
148
- transform: translateY(100%);
149
- transition: transform 0.3s ease;
150
- }
151
- }
152
-
153
97
  .organ-code-interest-popup {
154
98
  .position-box {
155
99
  position: relative;
@@ -272,6 +216,8 @@ createComponent({
272
216
  <script type="application/json">
273
217
  {
274
218
  "component": true,
275
- "usingComponents": {}
219
+ "usingComponents": {
220
+ "jmash-popup": "./jmash-popup"
221
+ }
276
222
  }
277
- </script>
223
+ </script>
@@ -40,7 +40,7 @@ createComponent({
40
40
  <script type="application/json">
41
41
  {
42
42
  "usingComponents": {
43
- "cube-tab-bar": "@mpxjs/mpx-cube-ui/lib/components/tab-bar/index"
43
+ "cube-tab-bar": "@mpxjs/mpx-cube-ui/lib/components/tab-bar/index.mpx"
44
44
  }
45
45
  }
46
46
  </script>
@@ -303,10 +303,10 @@ $bg-card: #ffffff;
303
303
  {
304
304
  "component": true,
305
305
  "usingComponents": {
306
- "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index",
307
- "cube-button": "@mpxjs/mpx-cube-ui/lib/components/button/index",
308
- "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index",
309
- "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index"
306
+ "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index.mpx",
307
+ "cube-button": "@mpxjs/mpx-cube-ui/lib/components/button/index.mpx",
308
+ "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index.mpx",
309
+ "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index.mpx"
310
310
  }
311
311
  }
312
312
  </script>
@@ -408,10 +408,10 @@ $bg-card: #ffffff;
408
408
  {
409
409
  "component": true,
410
410
  "usingComponents": {
411
- "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index",
412
- "cube-button": "@mpxjs/mpx-cube-ui/lib/components/button/index",
413
- "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index",
414
- "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index"
411
+ "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index.mpx",
412
+ "cube-button": "@mpxjs/mpx-cube-ui/lib/components/button/index.mpx",
413
+ "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index.mpx",
414
+ "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index.mpx"
415
415
  }
416
416
  }
417
417
  </script>
@@ -381,9 +381,9 @@ $text-disabled: #999999;
381
381
  {
382
382
  "component": true,
383
383
  "usingComponents": {
384
- "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index",
385
- "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index",
386
- "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index"
384
+ "cube-modal": "@mpxjs/mpx-cube-ui/lib/components/modal/index.mpx",
385
+ "cube-checkbox": "@mpxjs/mpx-cube-ui/lib/components/checkbox/index.mpx",
386
+ "cube-checkbox-group": "@mpxjs/mpx-cube-ui/lib/components/checkbox-group/index.mpx"
387
387
  }
388
388
  }
389
389
  </script>
@@ -4,7 +4,7 @@
4
4
  <script type="application/json">
5
5
  {
6
6
  "usingComponents": {
7
- "jmash-tab-bar": "../components/common/jmash-tab-bar"
7
+ "jmash-tab-bar": "../components/common/jmash-tab-bar.mpx"
8
8
  }
9
9
  }
10
10
  </script>
@@ -30,7 +30,7 @@ createPage({
30
30
  <script type="application/json">
31
31
  {
32
32
  "usingComponents": {
33
- "cms-protocol": "../../../components/core/jmash-cms-protocol"
33
+ "cms-protocol": "../../../components/core/jmash-cms-protocol.mpx"
34
34
  }
35
35
  }
36
36
  </script>
@@ -57,7 +57,7 @@ createPage({
57
57
  {
58
58
  "navigationBarTitleText": "登录",
59
59
  "usingComponents": {
60
- "jmash-login": "../../../components/core/jmash-login"
60
+ "jmash-login": "../../../components/core/jmash-login.mpx"
61
61
  }
62
62
  }
63
63
  </script>
@@ -81,7 +81,7 @@ page {
81
81
  "navigationBarTitleText": "列表",
82
82
  "usingComponents": {
83
83
  "jmash-search": "../../../components/common/jmash-search",
84
- "jmash-cms-activity-list": "../../../components/cms/jmash-cms-activity-list"
84
+ "jmash-cms-activity-list": "../../../components/cms/jmash-cms-activity-list.mpx"
85
85
  }
86
86
  }
87
87
  </script>
@@ -83,7 +83,7 @@ page {
83
83
  "navigationBarTitleText": "列表",
84
84
  "usingComponents": {
85
85
  "jmash-search": "../../../components/common/jmash-search",
86
- "jmash-cms-article-list": "../../../components/cms/jmash-cms-article-list"
86
+ "jmash-cms-article-list": "../../../components/cms/jmash-cms-article-list.mpx"
87
87
  }
88
88
  }
89
89
  </script>
@@ -27,7 +27,7 @@ createPage({
27
27
  <script type="application/json">
28
28
  {
29
29
  "usingComponents": {
30
- "cms-article": "../../../components/cms/jmash-cms-article"
30
+ "cms-article": "../../../components/cms/jmash-cms-article.mpx"
31
31
  }
32
32
  }
33
33
  </script>
@@ -78,7 +78,7 @@ page {
78
78
  "navigationBarTitleText": "列表",
79
79
  "usingComponents": {
80
80
  "jmash-search": "../../../components/common/jmash-search",
81
- "jmash-cms-location-list": "../../../components/cms/jmash-cms-location-list"
81
+ "jmash-cms-location-list": "../../../components/cms/jmash-cms-location-list.mpx"
82
82
  }
83
83
  }
84
84
  </script>
@@ -27,7 +27,7 @@ createPage({
27
27
  <script type="application/json">
28
28
  {
29
29
  "usingComponents": {
30
- "cms-location": "../../../components/cms/jmash-cms-location"
30
+ "cms-location": "../../../components/cms/jmash-cms-location.mpx"
31
31
  }
32
32
  }
33
33
  </script>
@@ -83,7 +83,7 @@ page {
83
83
  "navigationBarTitleText": "列表",
84
84
  "usingComponents": {
85
85
  "jmash-search": "../../../components/common/jmash-search",
86
- "jmash-cms-product-list": "../../../components/cms/jmash-cms-product-list"
86
+ "jmash-cms-product-list": "../../../components/cms/jmash-cms-product-list.mpx"
87
87
  }
88
88
  }
89
89
  </script>
@@ -53,7 +53,7 @@ createPage({
53
53
  <script type="application/json">
54
54
  {
55
55
  "usingComponents": {
56
- "jmash-popup-login": "../components/core/jmash-popup-login"
56
+ "jmash-popup-login": "../components/core/jmash-popup-login.mpx"
57
57
  }
58
58
  }
59
59
  </script>
@@ -86,7 +86,7 @@ createPage({
86
86
  <script type="application/json">
87
87
  {
88
88
  "usingComponents": {
89
- "jmash-menu": "../../components/common/jmash-menu"
89
+ "jmash-menu": "../../components/common/jmash-menu.mpx"
90
90
  }
91
91
  }
92
92
  </script>
@@ -71,9 +71,9 @@ $bg-page: #f5f5f5;
71
71
  <script type="application/json">
72
72
  {
73
73
  "usingComponents": {
74
- "jmash-user": "../../components/auth-user/jmash-user",
75
- "jmash-menu": "../../components/common/jmash-menu",
76
- "jmash-logout": "../../components/auth-user/jmash-logout"
74
+ "jmash-user": "../../components/auth-user/jmash-user.mpx",
75
+ "jmash-menu": "../../components/common/jmash-menu.mpx",
76
+ "jmash-logout": "../../components/auth-user/jmash-logout.mpx"
77
77
  }
78
78
  }
79
79
  </script>