代码提交
This commit is contained in:
102
utils/images.js
Normal file
102
utils/images.js
Normal file
@ -0,0 +1,102 @@
|
||||
import { VUE_APP_STATIC_URL } from "@/config";
|
||||
// 空状态
|
||||
export const emptyCouponIcon = `${VUE_APP_STATIC_URL}static/icon/empty/优惠券.png`
|
||||
export const emptyCollectIcon = `${VUE_APP_STATIC_URL}static/icon/empty/收藏.png`
|
||||
export const emptyCartIcon = `${VUE_APP_STATIC_URL}static/icon/empty/购物车.png`
|
||||
export const emptyOrderIcon = `${VUE_APP_STATIC_URL}static/icon/empty/订单.png`
|
||||
export const emptyAddressIcon = `${VUE_APP_STATIC_URL}static/icon/empty/地址.png`
|
||||
export const emptyGoodIcon = `${VUE_APP_STATIC_URL}static/icon/empty/good.png`
|
||||
|
||||
// logo
|
||||
export const homeLogoIcon = `${VUE_APP_STATIC_URL}static/images/logo.png` // 首页logo
|
||||
export const loginLogoIcon = `${VUE_APP_STATIC_URL}static/icon/logo.png` // 登录logo
|
||||
export const loginPhoneIcon = `${VUE_APP_STATIC_URL}static/icon/login/手机@2x.png` // 手机图标
|
||||
export const loginCodeIcon = `${VUE_APP_STATIC_URL}static/icon/login/验证码@2x.png` // 验证码图标
|
||||
|
||||
// 用户信息
|
||||
export const defaultAvatarIcon = `${VUE_APP_STATIC_URL}static/icon/user/mine.png` // 用户默认头像
|
||||
|
||||
// 微信支付宝支付图标
|
||||
export const wechatIcon = `${VUE_APP_STATIC_URL}static/icon/pay/weixin.png`
|
||||
export const aliIcon = `${VUE_APP_STATIC_URL}static/icon/pay/zhifubao.png`
|
||||
|
||||
// 我的页面功能图标
|
||||
export const toPayIcon = `${VUE_APP_STATIC_URL}static/images/icon-dfk.png`
|
||||
export const toFHIcon = `${VUE_APP_STATIC_URL}static/images/icon-dfh.png`
|
||||
export const toSHIcon = `${VUE_APP_STATIC_URL}static/images/icon-dsh.png`
|
||||
export const toPJIcon = `${VUE_APP_STATIC_URL}static/images/icon-dpj.png`
|
||||
export const toZJIcon = `${VUE_APP_STATIC_URL}static/images/icon-wdzj.png`
|
||||
export const toYHQIcon = `${VUE_APP_STATIC_URL}static/images/icon-yhq.png`
|
||||
export const toSCIcon = `${VUE_APP_STATIC_URL}static/images/icon-wdsc.png`
|
||||
export const toZBIcon = `${VUE_APP_STATIC_URL}static/images/icon-kqzb.png`
|
||||
export const toTGIcon = `${VUE_APP_STATIC_URL}static/images/icon-wdtg.png`
|
||||
export const toKJIcon = `${VUE_APP_STATIC_URL}static/images/icon-kqjl.png`
|
||||
export const toSHOIcon = `${VUE_APP_STATIC_URL}static/images/icon-kqjl.png`
|
||||
export const toKFIcon = `${VUE_APP_STATIC_URL}static/images/icon-lxkf.png`
|
||||
|
||||
// 个人信息账号和地址
|
||||
export const toDZIcon = `${VUE_APP_STATIC_URL}static/images/icon-address.png`
|
||||
export const toZHIcon = `${VUE_APP_STATIC_URL}static/images/icon-zhsz.png`
|
||||
|
||||
export const wechat = `${VUE_APP_STATIC_URL}static/icon/login/wechat.png`
|
||||
export const phone = `${VUE_APP_STATIC_URL}static/icon/login/phone.png`
|
||||
|
||||
// 首页营销活动图标
|
||||
export const sp = `${VUE_APP_STATIC_URL}static/images/sp.png`
|
||||
export const pt = `${VUE_APP_STATIC_URL}static/images/pt.png`
|
||||
export const ms = `${VUE_APP_STATIC_URL}static/images/ms.png`
|
||||
export const kj = `${VUE_APP_STATIC_URL}static/images/kj.png`
|
||||
|
||||
// 暂无回复
|
||||
export const emptyReply = `${VUE_APP_STATIC_URL}static/images/icon-dpj.png`
|
||||
|
||||
|
||||
// 懒加载Loading
|
||||
export const lazyLoading = `${VUE_APP_STATIC_URL}static/images/%E5%8D%95%E5%95%86%E6%88%B7%E5%8A%A0%E8%BD%BD%E5%8A%A8%E5%9B%BE.gif`
|
||||
|
||||
// 返回顶部
|
||||
export const toTop = `${VUE_APP_STATIC_URL}static/images/up.png`
|
||||
|
||||
// 支付状态
|
||||
export const paySuccess = `${VUE_APP_STATIC_URL}static/icon/pay/pay-success.png`
|
||||
export const payError = `${VUE_APP_STATIC_URL}static/icon/pay/pay-error.png`
|
||||
|
||||
// 地址管理
|
||||
export const addressEditIcon = `${VUE_APP_STATIC_URL}static/images/icon-edit.png` // 地址编辑
|
||||
|
||||
// 订单管理
|
||||
export const orderDetailsBg = `${VUE_APP_STATIC_URL}static/images/order-info-bg.png` // 订单详情背景图
|
||||
export const orderAddressIcon = `${VUE_APP_STATIC_URL}static/images/icon-location.png` // 订单详情地址图标
|
||||
|
||||
|
||||
// 商品组件
|
||||
export const goodsArrowsIcon = `${VUE_APP_STATIC_URL}static/images/down.png` // 商品组件箭头
|
||||
|
||||
// 商品详情
|
||||
export const productCustomerIcon = `${VUE_APP_STATIC_URL}static/images/icon-kefu.png` // 商品详情客服
|
||||
export const productCartIcon = `${VUE_APP_STATIC_URL}static/images/icon-gouwuche.png` // 商品详情购物车图标
|
||||
export const productCollectIcon = `${VUE_APP_STATIC_URL}static/images/icon-shouceng.png` // 商品详情收藏图标
|
||||
export const productAffirmCollectIcon = `${VUE_APP_STATIC_URL}static/images/icon-shouceng-o.png` // 商品详情已收藏图标
|
||||
|
||||
// 默认banner
|
||||
export const defaultBanner = `${VUE_APP_STATIC_URL}static/images/banner.png` // 商品详情已收藏图标
|
||||
|
||||
// 营销活动
|
||||
export const bargainingBg = `${VUE_APP_STATIC_URL}static/images/kjzq.png` // 砍价背景
|
||||
export const discountBg = `${VUE_APP_STATIC_URL}static/images/zkzq.png` // 折扣背景图
|
||||
export const seckillBg = `${VUE_APP_STATIC_URL}static/images/flashKilling.png` // 秒杀背景
|
||||
export const groupBuyBg = `${VUE_APP_STATIC_URL}static/images/ptzq.png` // 拼团背景
|
||||
|
||||
// 搜索
|
||||
export const seeIcon = `${VUE_APP_STATIC_URL}static/images/see.png` // 热门搜索图标显示
|
||||
export const notSeeIcon = `${VUE_APP_STATIC_URL}static/images/notSee.png` // 热门搜索图标隐藏
|
||||
export const historyDeleteIcon = `${VUE_APP_STATIC_URL}static/images/delete.png` // 删除历史记录
|
||||
|
||||
// 售后
|
||||
export const afterSalesBg = `${VUE_APP_STATIC_URL}static/images/refund-order-bg.png` // 售后背景
|
||||
|
||||
// 箭头图标
|
||||
export const nextIcon = `${VUE_APP_STATIC_URL}static/images/next.png`
|
||||
|
||||
|
||||
|
@ -2,6 +2,7 @@ import stringify from '@/utils/querystring'
|
||||
import { timeFormat } from '@/uni_modules/uv-ui-tools/libs/function/index.js';
|
||||
import router from './router'
|
||||
import cookie from './cookie'
|
||||
import { PARAMS_KEY } from "@/hooks/useRouter";
|
||||
|
||||
/**
|
||||
* 未登录无权限
|
||||
@ -16,10 +17,10 @@ export const handleLoginFailure = () => {
|
||||
if (["pages/login/guid", "pages/login/index"].includes(curRoute.route)) {
|
||||
return;
|
||||
}
|
||||
const data = curRoute?.$page?.fullPath;
|
||||
const lastFullPath = `/${curRoute.route}?${PARAMS_KEY}=${curRoute.options[PARAMS_KEY]}`
|
||||
uni.setStorage({
|
||||
key: 'lastFullPath',
|
||||
data
|
||||
data:lastFullPath
|
||||
})
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/guid',
|
||||
|
Reference in New Issue
Block a user