Skip to content

Commit 4d190be

Browse files
committed
feat: static 目录分平台编译资源
1 parent 60d207c commit 4d190be

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

pages/API/canvas/canvas.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@
115115
context.draw()
116116
},
117117
drawImage: function() {
118+
// #ifdef APP-PLUS
119+
context.drawImage('../../../static/app-plus/uni@2x.png', 0, 0)
120+
// #endif
121+
// #ifndef APP-PLUS
118122
context.drawImage('../../../static/uni.png', 0, 0)
123+
// #endif
119124
context.draw()
120125
},
121126
fillText: function() {

pages/component/map/map.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,21 @@
1919
covers: [{
2020
latitude: 39.9085,
2121
longitude: 116.39747,
22-
iconPath: '../../../static/location.png'
22+
// #ifdef APP-PLUS
23+
iconPath: '../../../static/app-plus/location@3x.png',
24+
// #endif
25+
// #ifndef APP-PLUS
26+
iconPath: '../../../static/location.png',
27+
// #endif
2328
}, {
2429
latitude: 39.90,
2530
longitude: 116.39,
26-
iconPath: '../../../static/location.png'
31+
// #ifdef APP-PLUS
32+
iconPath: '../../../static/app-plus/location@3x.png',
33+
// #endif
34+
// #ifndef APP-PLUS
35+
iconPath: '../../../static/location.png',
36+
// #endif
2737
}]
2838
}
2939
},

static/app-plus/location@3x.png

4.86 KB
Loading

static/app-plus/uni@2x.png

4.06 KB
Loading

0 commit comments

Comments
 (0)