{{hostUrl}}/images/banner.jpg
app.wxss 全局样式文件
app.josn 全局配置文件
{
"pages":[
"src/index", 启动文件
"src/pages/logs/logs"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#10a994",
"navigationBarTitleText": "天下看球",
"navigationBarTextStyle":"#fff"
},
"networkTimeout": {
"request": 1000,
"connectSocket": 10000,
"uploadFile": 10000,
"downloadFile": 10000
},
"debug": true
}
app.js 全局脚本文件
import wxUtil from 'utils/wxUtil.js'
import httpRequest from 'utils/httpUtil.js'
import { getSessionKey } from 'utils/apiUtil.js'
import { showBusy, showSuccess } from "../../../utils/util.js"
import wxRequest from "../../../utils/httpUtil.js"
import config from "../../../utils/apiUtil.js"
局部josn 设置
{
"navigationBarTitleText": "小程序基础框架"
}
局部引用样式
@import weui.wxss';
跳转
<view class="btn-area">
<navigator url="/pages/test/test" hover-class="navigator-hover">跳转test页面</navigator>
</view>