Browse Source

修改首页样式

remotes/origin/HEAD
songsong428 5 years ago
parent
commit
fa2766f1b9
  1. 2
      main.js
  2. 2
      pages/index/components/home.vue

2
main.js

@ -32,7 +32,7 @@ Vue.prototype.openPage = function(path, query = '') {
// 白名单页面
const whiteListPath = ['/pages/basic-info/basic-info','/pages/statistics/statistics','/pages/user-code/user-code']
const choosePath = whiteListPath.indexOf(path)
if(!store.state.user.userInfo && !store.state.user.userInfo.id && choosePath === -1) {
if(!store.state.user.userInfo.id && choosePath === -1) {
url = '/pages/basic-info/basic-info';
}

2
pages/index/components/home.vue

@ -1,6 +1,6 @@
<template>
<view class="content flex flex-direction">
<view v-if="userInfo && userInfo.id" style="position: relative;">
<view v-if="healthCode" style="position: relative;">
<image src="http://m.qpic.cn/psc?/V11kyB1O080aC1/cnQ2D7YjAZ5R6pY0fmc9joZ6fC6TxFlt9mW4UhUn2PEgUne7OUt4q4mNE.k9gU.rSr8Eu*pFToZoVwUOEGDrKMycDqdn1mLFGE1dxYTGUcE!/b&bo=7gKRAu4CkQIDWXw!&rf=viewer_4&t=5"
class="bg1"></image>
<view class="bg-code">

Loading…
Cancel
Save