Skip to content

Commit

Permalink
将趋势图进行分包
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLin1230 committed Aug 2, 2020
1 parent ad5186e commit 6279746
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 5 deletions.
18 changes: 16 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
{
"pages": [
"pages/index/index",
"pages/lifestyle/lifestyle",
"pages/line/line"
"pages/lifestyle/lifestyle"
],
"subpackages": [
{
"root": "package-line",
"name": "package-line",
"pages": [
"pages/line/line"
]
}
],
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": ["package-line"]
}
},
"permission": {
"scope.userLocation": {
"desc": "您的位置信息将用于获取实时天气情况"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template name="item-col-up">
<view class='item-col'>
<view class='date'>{{date}}</view>
<view class='icon_d'><image src="{{'../../images/' + iconDay + '.png'}}"></image></view>
<view class='icon_d'><image src="{{'../../../images/' + iconDay + '.png'}}"></image></view>
<view class='txt txt_d'>{{textDay}}</view>
</view>
</template>
<template name="item-col-bottom">
<view class='item-col'>
<view class='icon_n'><image src="{{'../../images/' + iconNight + '.png'}}"></image></view>
<view class='icon_n'><image src="{{'../../../images/' + iconNight + '.png'}}"></image></view>
<view class='txt txt_n'>{{textNight}}</view>
<view class='wind_dir'>{{windDirDay}}</view>
<view class='wind_sc'>{{windScale}}</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Page({
},
week_forecast: function () {
wx.navigateTo({
url: '/pages/line/line'
url: '/package-line/pages/line/line'
})
},
lifestyle: function () {
Expand Down

0 comments on commit 6279746

Please sign in to comment.