168 lines
3.5 KiB
Plaintext
Raw Normal View History

2021-01-12 18:04:14 +08:00
<style lang="less">
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
2021-01-15 12:00:20 +08:00
}
2021-01-12 18:04:14 +08:00
.buttonColor {
background: #AC1630;
color: #fff;
}
.buttonColor-cancel {
background: #fff;
color: #333;
}
.background-color {
background: #AC1630;
}
.cell-title {
padding: 10px 16px;
font-weight: bold;
}
.cell {
margin-top: 10px;
}
2021-01-12 18:04:14 +08:00
.boom {
background-color: #F0F1F2;
width: 100%;
height: 15px;
}
2021-01-15 12:00:20 +08:00
.fxc{
display: flex;
flex-direction: column;
}
2021-01-12 18:04:14 +08:00
</style>
<script>
import wepy from '@wepy/core'
import eventHub from './common/eventHub'
import vuex from '@wepy/x'
wepy.use(vuex)
wepy.app({
hooks: {
// App 级别 hook对整个 App 生效
// 同时存在 Page hook 和 App hook 时,优先执行 Page hook返回值再交由 App hook 处
'before-setData': function(dirty) {
console.log('setData dirty: ', dirty)
return dirty
}
},
globalData: {
userInfo: null
},
onLaunch() {
// this.testAsync()
eventHub.$on('app-launch', (...args) => {
console.log('app-launch event emitted, the params are:')
console.log(args)
})
},
methods: {
// sleep(s) {
// return new Promise((resolve, reject) => {
// setTimeout(() => {
// resolve('promise resolved')
// }, s * 1000)
// })
// },
// async testAsync() {
// let d = await this.sleep(3)
// console.log(d)
// }
}
})
</script>
<config>
{
pages: [
2021-01-17 02:43:05 +08:00
'pages/mall/index',
2021-01-12 18:04:14 +08:00
'pages/index',
'pages/form1',
'pages/form2',
'pages/form3',
'pages/form4',
'pages/form5',
'pages/form6',
2021-01-17 02:43:05 +08:00
2021-01-19 14:02:55 +08:00
'pages/mall/goods/goods-detail',
'pages/mall/user/user-address',
'pages/mall/user/user-address-list',
2021-01-18 09:01:56 +08:00
'pages/mall/order/order-list',
2021-01-19 16:28:42 +08:00
'pages/mall/order/order-detail-list',
2021-01-18 16:10:59 +08:00
'pages/mall/order/order-check',
2021-01-18 09:01:56 +08:00
'pages/mall/shopping-car/shopping-car-list',
2021-01-20 09:00:22 +08:00
'pages/winery/winery-detail',
'pages/winery/winery-list'
2021-01-12 18:04:14 +08:00
],
navigateToMiniProgramAppIdList: [
'wx88736d7d39e2eda6'
],
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'white',
navigationStyle: 'custom',
2021-01-15 12:00:20 +08:00
backgroundColor: '#222222'
2021-01-12 18:04:14 +08:00
},
usingComponents: {
'nav-bar': './components/nav-bar',
'van-button': './vant/button/index',
'van-divider': './vant/divider/index',
'van-field': './vant/field/index',
'van-radio': './vant/radio/index',
'van-radio-group': './vant/radio-group/index',
'van-checkbox': './vant/checkbox/index',
'van-checkbox-group': './vant/checkbox-group/index',
'van-cell': './vant/cell/index',
'van-cell-group': './vant/cell-group/index',
'van-datetime-picker': './vant/datetime-picker/index',
'van-nav-bar': './vant/nav-bar/index',
'van-icon': './vant/icon/index',
'van-steps': './vant/steps/index',
'van-row': './vant/row/index',
'van-col': './vant/col/index',
'van-col': './vant/col/index',
'van-tabbar': './vant/tabbar/index',
'van-tabbar-item': './vant/tabbar-item/index',
'van-card': './vant/card/index',
'van-popup': './vant/popup/index',
'van-stepper': './vant/stepper/index',
'van-submit-bar': './vant/submit-bar/index',
'van-panel': './vant/panel/index',
"van-grid": "./vant/grid/index",
"van-grid-item": "./vant/grid-item/index",
"van-dialog": "./vant/dialog/index",
2021-01-15 22:56:32 +08:00
"van-image": "./vant/image/index",
"van-loading": "./vant/loading/index",
"van-empty": "./vant/empty/index",
"van-notice-bar": "./vant/notice-bar/index",
2021-01-18 09:01:56 +08:00
"van-tabs": "./vant/tabs/index",
"van-tab": "./vant/tab/index",
"van-submit-bar": "./vant/submit-bar/index",
2021-01-20 09:00:22 +08:00
"van-tag": "./vant/tag/index",
2021-01-18 09:01:56 +08:00
"van-area": "./vant/area/index"
2021-01-12 18:04:14 +08:00
}
}
</config>