Skip to content

Commit a946755

Browse files
committed
feat:分包改造
1 parent 30db3e0 commit a946755

File tree

1,120 files changed

+18283
-4947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,120 files changed

+18283
-4947
lines changed

miniprogram/app-darkmode.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"text": "组件"
1818
},
1919
{
20-
"pagePath": "page/weui/example/index",
20+
"pagePath": "page/extend/index",
2121
"iconPath": "image/icon_component_HL.png",
2222
"selectedIconPath": "image/icon_component_dark.png",
2323
"text": "扩展能力"

miniprogram/app.json

Lines changed: 192 additions & 179 deletions
Large diffs are not rendered by default.
4.55 KB
Loading

miniprogram/packageAPI/pages/action-sheet/action-sheet.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

miniprogram/packageAPI/pages/add-contact/add-contact.wxss

Lines changed: 0 additions & 5 deletions
This file was deleted.

miniprogram/packageAPI/pages/animation/animation.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

miniprogram/packageAPI/pages/choose-address/choose-address.js renamed to miniprogram/packageAPI/pages/api/choose-address/choose-address.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ Page({
22
onShareAppMessage() {
33
return {
44
title: '收货地址',
5-
path: 'packageAPI/pages/choose-address/choose-address'
5+
path: 'packageAPI/pages/api/choose-address/choose-address'
66
}
77
},
88

99
data: {
10+
theme: 'light',
1011
addressInfo: null
1112
},
1213
chooseAddress() {
@@ -20,5 +21,16 @@ Page({
2021
console.log(err)
2122
}
2223
})
24+
},
25+
onLoad() {
26+
this.setData({
27+
theme: wx.getSystemInfoSync().theme || 'light'
28+
})
29+
30+
if (wx.onThemeChange) {
31+
wx.onThemeChange(({theme}) => {
32+
this.setData({theme})
33+
})
34+
}
2335
}
2436
})

miniprogram/packageAPI/pages/choose-address/choose-address.json renamed to miniprogram/packageAPI/pages/api/choose-address/choose-address.json

File renamed without changes.

miniprogram/packageAPI/pages/choose-address/choose-address.wxml renamed to miniprogram/packageAPI/pages/api/choose-address/choose-address.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<import src="../../../common/head.wxml" />
22
<import src="../../../common/foot.wxml" />
33

4-
<view class="container">
4+
<view class="container page" data-weui-theme="{{theme}}">
55
<template is="head" data="{{title: 'chooseAddress'}}"/>
66

77
<form>

miniprogram/packageAPI/pages/choose-address/choose-address.wxss renamed to miniprogram/packageAPI/pages/api/choose-address/choose-address.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../../../common/lib/weui.wxss";
1+
22

33
form {
44
margin-top: 15px;

0 commit comments

Comments
 (0)