mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-24 18:36:20 +08:00
[improvement] 减小demo小程序体积 (#723)
This commit is contained in:
parent
69db8e9d19
commit
45a1cd669c
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,4 @@
|
|||||||
import Page from '../../common/page';
|
import Page from '../../common/page';
|
||||||
import AreaList from './area';
|
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
@ -9,12 +8,15 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
setTimeout(() => {
|
wx.request({
|
||||||
|
url: 'https://cashier.youzan.com/pay/wsctrade/order/buy/getAllRegion.json',
|
||||||
|
success: response => {
|
||||||
this.setData({
|
this.setData({
|
||||||
loading: false,
|
loading: false,
|
||||||
areaList: AreaList
|
areaList: response.data.data
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, 1500);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user