pujiaming před 2 roky
rodič
revize
81ef5fbcc4

+ 3 - 1
.env.development

@@ -1,3 +1,5 @@
 ENV = development,
 VITE_PROJECT_NAME = 朱雀游戏中心
-VITE_API_HOST = http://gm.rose.nei.nkfzs.com/api/web
+VITE_API_HOST = http://gm.rose.nei.nkfzs.com/api/web
+VITE_LOGO_VISIBLE: 'QingQue'
+# VITE_LOGO_VISIBLE: 'KuPai'

+ 3 - 1
.env.production

@@ -1,3 +1,5 @@
 ENV = production,
 VITE_PROJECT_NAME = 朱雀游戏中心
-VITE_API_HOST = http://gm.nkfzs.com/api/web
+VITE_API_HOST = http://gm.nkfzs.com/api/web
+VITE_LOGO_VISIBLE: 'QingQue'
+# VITE_LOGO_VISIBLE: 'KuPai'

+ 5 - 0
.env.production.kupai

@@ -0,0 +1,5 @@
+ENV = production,
+VITE_PROJECT_NAME = 朱雀游戏中心
+VITE_API_HOST = http://gm.nkfzs.com/api/web
+# VITE_LOGO_VISIBLE: 'QingQue'
+VITE_LOGO_VISIBLE: 'KuPai'

+ 1 - 0
package.json

@@ -6,6 +6,7 @@
   "scripts": {
     "dev": "vite",
     "build": "vite build",
+    "build:kupai": "vite build --mode production.kupai",
     "preview": "vite preview"
   },
   "dependencies": {

+ 3 - 1
src/components/MobileCom.vue

@@ -2,7 +2,7 @@
     <div class="common df aic">
         <div class="left_title df jcsb aic psr">
             <h1 class="df aic" @click="router.push({ path: 'm_index' })">
-                <img src="http://gm.nkfzs.com/favicon.ico" />
+                <img v-if="VITEPLA === 'QingQue'" src="http://gm.nkfzs.com/favicon.ico" />
                 <span>朱雀游戏中心</span>
             </h1>
             <p><van-icon name="search" size="26" @click="router.push({
@@ -37,6 +37,8 @@ const hasToken = ref(localStorage.getItem('token'))
 const item:any = ref(null)
 const user = useStore('user')
 
+const VITEPLA:'QingQue'|'KuPai' = import.meta.env.VITE_LOGO_VISIBLE
+
 const menuPath: any = ref([
     { text: '首页', value: 1, url: 'm_index' },
     // { text: '排行', value: 2, url: 'm_rank' },

+ 6 - 3
src/layout/header.vue

@@ -3,7 +3,7 @@
     <nav class="w1000 df jcsb aic" >
       <!-- 网站title -->
       <h1 class="game_logo df aic" @click="clearAct">
-        <a class="logo" href="/p_index" alt="朱雀游戏官网" title="朱雀游戏官网">朱雀游戏中心</a>
+        <a class="logo" :class=" VITEPLA === 'QingQue'? 'with-logo':''" href="/p_index" alt="朱雀游戏官网" title="朱雀游戏官网">朱雀游戏中心</a>
       </h1>
 
       <!-- 首页、分类、排行 -->
@@ -55,7 +55,7 @@ const route = useRoute()
 const search = useStore('search')
 const header = useStore('header')
 const user = useStore('user')
-
+const VITEPLA:'QingQue'|'KuPai' = import.meta.env.VITE_LOGO_VISIBLE
 // 搜索内容
 const game_name = ref(local.get('searchText') || '')
 // 绑定el-autocomplete组件
@@ -193,11 +193,14 @@ nav {
     .logo {
       font-size: 24px;
       color: #000;
-      background: url('http://gm.nkfzs.com/favicon.ico') no-repeat center left;
+      
       background-size: 30px 30px;
       height: 100%;
       padding-left: 37px;
     }
+    .with-logo{
+      background: url('http://gm.nkfzs.com/favicon.ico') no-repeat center left;
+    }
   }
 
   .nav_title {

+ 2 - 1
src/view/m_views/index/index.vue

@@ -3,7 +3,7 @@
         <!-- 顶部搜索栏 -->
         <div class="top_nav df aic jcsb">
             <div class="left_title df aic">
-                <img src="http://gm.nkfzs.com/favicon.ico" />
+                <img v-if="VITEPLA === 'QingQue'" src="http://gm.nkfzs.com/favicon.ico" />
                 <span>朱雀游戏中心</span>
             </div>
             <van-search shape='round' @click="router.push({ path: 'm_search' })" />
@@ -60,6 +60,7 @@ const list: any = ref([])
 const listRecommand: any = ref([])
 const listSwiper: any = ref([])
 const prefix = ref<string>('')
+const VITEPLA:'QingQue'|'KuPai' = import.meta.env.VITE_LOGO_VISIBLE
 
 interface ICate {
     title: string,

+ 3 - 2
src/view/m_views/login/index.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="login">
-        <div class="logo">
-            <img src="@/assets/img/logo.png" class="img">
+        <div  class="logo">
+            <img v-if="VITEPLA === 'QingQue'" src="@/assets/img/logo.png" class="img">
         </div>
         <div class="input">
             <van-form @submit="submitForm" >
@@ -49,6 +49,7 @@ const login_typ = ref<'pwd'| 'sms'>('pwd')
 const can_send = ref<boolean>(true)
 const smsMessage = ref<'获取验证码' | number>('获取验证码')
 const VALID = 60
+const VITEPLA:'QingQue'|'KuPai' = import.meta.env.VITE_LOGO_VISIBLE
 
 interface login {
     account: string,

+ 3 - 1
src/view/p_views/login/index.vue

@@ -2,7 +2,7 @@
     <div class="login df fdc aic" :style="{height: viewWidth + 'px'}">
         <div class="login_logo">
             <!-- <img src="http://gm.nkfzs.com/favicon.ico"> -->
-            <img src="@/assets/img/logo.png">
+            <img v-if="VITEPLA === 'QingQue'" src="@/assets/img/logo.png">
         </div>
         
         <el-form ref="ruleFormRef" :rules="rules" class="login_from df fdc aic jcc" label-position="left"
@@ -58,6 +58,8 @@ import { useRouter } from 'vue-router'
 import { useStore } from '@/store/index'
 import local from '@/utils/local';
 
+const VITEPLA:'QingQue'|'KuPai' = import.meta.env.VITE_LOGO_VISIBLE
+
 const user = useStore('user')
 const router = useRouter()
 const VALID = 60