Skip to content

Commit 5ec5b39

Browse files
committed
mp-alipay: 不处理不支持的组件
1 parent a7a7b2b commit 5ec5b39

3 files changed

Lines changed: 25 additions & 13 deletions

File tree

‎pages.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@
7979
"navigationBarTitleText": "text"
8080
}
8181
},
82+
// #ifndef MP-ALIPAY
8283
{
8384
"path": "pages/component/rich-text/rich-text",
8485
"style": {
8586
"navigationBarTitleText": "rich-text"
8687
}
8788
},
89+
// #endif
8890
{
8991
"path": "pages/component/progress/progress",
9092
"style": {
@@ -181,6 +183,7 @@
181183
"navigationBarTitleText": "image"
182184
}
183185
},
186+
// #ifndef MP-ALIPAY
184187
{
185188
"path": "pages/component/audio/audio",
186189
"style": {
@@ -193,6 +196,7 @@
193196
"navigationBarTitleText": "video"
194197
}
195198
},
199+
// #endif
196200
{
197201
"path": "pages/component/map/map",
198202
"style": {

‎pages/tabBar/component/component.vue‎

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
id: 'content',
4242
name: '基础内容',
4343
open: false,
44-
pages: ['text', 'rich-text', 'icon', 'progress']
44+
// #ifdef MP-ALIPAY
45+
pages: ['text', 'icon', 'progress'],
46+
// #endif
47+
// #ifndef MP-ALIPAY
48+
pages: ['text', 'rich-text', 'icon', 'progress'],
49+
// #endif
4550
}, {
4651
id: 'form',
4752
name: '表单组件',
@@ -59,7 +64,12 @@
5964
id: 'media',
6065
name: '媒体组件',
6166
open: false,
62-
pages: ['image', 'audio', 'video']
67+
// #ifdef MP-ALIPAY
68+
pages: ['image'],
69+
// #endif
70+
// #ifndef MP-ALIPAY
71+
pages: ['image', 'audio', 'video'],
72+
// #endif
6373
}, {
6474
id: 'map',
6575
name: '地图',
@@ -112,9 +122,9 @@
112122
},
113123
methods: {
114124
triggerCollapse(e) {
115-
if(!this.lists[e].pages){
125+
if (!this.lists[e].pages) {
116126
this.goDetailPage(this.lists[e].url);
117-
return ;
127+
return;
118128
}
119129
for (var i = 0; i < this.lists.length; ++i) {
120130
if (e === i) {
@@ -139,12 +149,12 @@
139149
}
140150
</script>
141151

142-
<style>
143-
page{
144-
height: auto;
145-
min-height: 100%;
146-
}
147-
152+
<style>
153+
page {
154+
height: auto;
155+
min-height: 100%;
156+
}
157+
148158
.uni-card {
149159
box-shadow: none;
150160
}

‎pages/tabBar/template/template.vue‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,11 @@
182182
name: '二维码生成',
183183
url: 'qrcode'
184184
},
185-
// #ifdef APP-PLUS || H5 || MP-BAIDU
185+
// #ifdef APP-PLUS || MP-WEIXIN || H5
186186
{
187187
name: '图片裁剪',
188188
url: 'crop'
189189
},
190-
// #endif
191-
// #ifdef APP-PLUS || MP-WEIXIN || H5
192190
{
193191
name: 'markdown 富文本渲染',
194192
url: 'mdparse'

0 commit comments

Comments
 (0)