导航组件
BIN
static/icons/homeOrderCard/dhjl.png
Normal file
After Width: | Height: | Size: 1000 B |
BIN
static/icons/homeOrderCard/dqc.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/icons/homeOrderCard/dzf.png
Normal file
After Width: | Height: | Size: 591 B |
BIN
static/icons/homeOrderCard/jyz.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
static/icons/homeOrderCard/yjsj.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/icons/homeOrderCard/ywc.png
Normal file
After Width: | Height: | Size: 994 B |
BIN
static/icons/homeTopMenu/icon_clean.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
static/icons/homeTopMenu/icon_fitment.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/icons/homeTopMenu/icon_maintain.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
static/icons/homeTopMenu/icon_tenement.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/icons/tabbar/car-checked.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/icons/tabbar/car.png
Normal file
After Width: | Height: | Size: 875 B |
BIN
static/icons/tabbar/home-checked.png
Normal file
After Width: | Height: | Size: 826 B |
BIN
static/icons/tabbar/home.png
Normal file
After Width: | Height: | Size: 806 B |
BIN
static/icons/tabbar/my-checked.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
static/icons/tabbar/my.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/images/homeOrderCard/dqc.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
static/images/homeOrderCard/dzf.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
static/images/homeOrderCard/jyz.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
static/images/homeOrderCard/ywc.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
@ -35,9 +35,9 @@ const request = config => {
|
|||||||
const code = res.data.code || 200
|
const code = res.data.code || 200
|
||||||
const msg = errorCode[code] || res.data.msg || errorCode['default']
|
const msg = errorCode[code] || res.data.msg || errorCode['default']
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
// store.dispatch('LogOut').then(res => {
|
store.dispatch('LogOut').then(res => {
|
||||||
// uni.reLaunch({ url: '/pages/login/login' })
|
uni.reLaunch({ url: '/pages/login/login' })
|
||||||
// })
|
})
|
||||||
} else if (code === 500) {
|
} else if (code === 500) {
|
||||||
toast(msg)
|
toast(msg)
|
||||||
reject('500')
|
reject('500')
|
||||||
|
27
utils/utils.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
function getWXStatusHeight() {
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
// 获取距上
|
||||||
|
const barTop = wx.getSystemInfoSync().statusBarHeight
|
||||||
|
// 获取胶囊按钮位置信息
|
||||||
|
const menuButtonInfo = wx.getMenuButtonBoundingClientRect()
|
||||||
|
// 获取导航栏高度
|
||||||
|
const barHeight = menuButtonInfo.height + (menuButtonInfo.top - barTop) * 2
|
||||||
|
let barWidth = menuButtonInfo.width
|
||||||
|
console.log('menuButtonInfo', menuButtonInfo)
|
||||||
|
let barLeftPosition = 375 - menuButtonInfo.right + menuButtonInfo.width
|
||||||
|
let menuButtonLeft = menuButtonInfo.left
|
||||||
|
let menuButtonRight = menuButtonInfo.right
|
||||||
|
return {
|
||||||
|
barHeight,
|
||||||
|
barTop,
|
||||||
|
barWidth,
|
||||||
|
barLeftPosition,
|
||||||
|
menuButtonLeft,
|
||||||
|
menuButtonRight
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
getWXStatusHeight,
|
||||||
|
}
|