Explorar o código

fix 去掉文字

pujiaming %!s(int64=2) %!d(string=hai) anos
pai
achega
a6800886d9
Modificáronse 5 ficheiros con 52 adicións e 40 borrados
  1. 2 2
      .env.development
  2. 12 1
      src/App.vue
  3. 3 3
      src/router/index.ts
  4. 34 32
      src/view/m_views/categroy/index.vue
  5. 1 2
      src/view/m_views/index/index.vue

+ 2 - 2
.env.development

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

+ 12 - 1
src/App.vue

@@ -15,7 +15,7 @@ onMounted(() => {
   setRem()
   // 计算屏幕宽度决定pc还是移动端
   throttle(resizeChange(), 200)
-  window.addEventListener('resize', resizeChange, false)
+  // window.addEventListener('resize', resizeChange, false)
   window.addEventListener('resize', setRem, false)
 })
 
@@ -65,3 +65,14 @@ input::-webkit-outer-spin-button,
     -moz-appearance: textfield;
    }
 </style>
+<style>
+/* .mob-wrap{
+  max-width: 750px;
+  margin: 0 auto;
+
+} */
+/* #app{
+  background-image: linear-gradient(to bottom left, #ED8C0F, #EF6158, #C85384, #875892, #49557F, #2F4858 );
+
+} */
+</style>

+ 3 - 3
src/router/index.ts

@@ -105,7 +105,7 @@ const routes:Array<RouteRecordRaw> = [
     path: '/p_ecoin',
     name: 'ecoin',
     component: Layout,
-    meta: { type: 'pc', title: '订单' },
+    meta: { type: 'pc', title: '余额' },
     children: [
       {
         path: '/p_ecoin',
@@ -117,7 +117,7 @@ const routes:Array<RouteRecordRaw> = [
     path: '/p_ncoin',
     name: 'ncoin',
     component: Layout,
-    meta: { type: 'pc', title: '订单' },
+    meta: { type: 'pc', title: '余额' },
     children: [
       {
         path: '/p_ncoin',
@@ -143,7 +143,7 @@ const routes:Array<RouteRecordRaw> = [
   {
     path: '/m_index',
     name: 'm_index',
-    meta: { type: 'mobile', title: '朱雀游戏中心' },
+    meta: { type: 'mobile', title: VITEPLA === 'QingQue' ? '朱雀游戏中心' : '游戏中心' },
     component: () => import('@/view/m_views/index/index.vue')
   },
   {

+ 34 - 32
src/view/m_views/categroy/index.vue

@@ -1,43 +1,45 @@
 <template>
-  <m-header/>
-  <div class="top_select">
-    <van-dropdown-menu>
-      <van-dropdown-item title="类型" ref="item">
-        <van-cell v-for="item in typeArr"
-                  :key="item.id"
-                  :title="item.name"
-                  :class="{ active: typeIndex === item.id }"
-                  @click="selectType('type', item.id)"/>
-      </van-dropdown-item>
-      <van-dropdown-item title="标签" ref="tag">
-        <van-cell v-for="item in tagArr"
-                  :key="item.id"
-                  :title="item.name"
-                  :class="{ active: tag_idIndex === item.id }"
-                  @click="selectType('tag_id', item.id)"/>
-      </van-dropdown-item>
+  <div class="mob-wrap">
+    <m-header/>
+    <div class="top_select">
+      <van-dropdown-menu>
+        <van-dropdown-item title="类型" ref="item">
+          <van-cell v-for="item in typeArr"
+                    :key="item.id"
+                    :title="item.name"
+                    :class="{ active: typeIndex === item.id }"
+                    @click="selectType('type', item.id)"/>
+        </van-dropdown-item>
+        <van-dropdown-item title="标签" ref="tag">
+          <van-cell v-for="item in tagArr"
+                    :key="item.id"
+                    :title="item.name"
+                    :class="{ active: tag_idIndex === item.id }"
+                    @click="selectType('tag_id', item.id)"/>
+        </van-dropdown-item>
       <!-- <van-dropdown-item title="排序" ref="order">
                 <van-cell v-for="(item, index) in categoryList" :key="index" :title="item.title"
                     :class="{ active: orderIndex === item.id }" @click="selectType('order', index)"></van-cell>
             </van-dropdown-item> -->
-    </van-dropdown-menu>
-  </div>
-  <!-- <MobCateList :gameLis="gameLis" :prefix="prefix" :rank="false" :tagArr="tagArr" :more="loadMore" :total="total">
-    </MobCateList> -->
-  <div v-if="(gameLis.length > 0)">
-    <mob-cate-list :gameLis="gameLis" :prefix="prefix" :rank="false" :tagArr="tagArr"/>
-    <div style="padding: 10px;background-color: #f7f7f7;"
-         class="df aic jcc"
-         v-if="params.page * params.pagesize <= gameLis.length">
-      <el-button class="df aic jcc" plain @click="loadMore">更多</el-button>
+      </van-dropdown-menu>
     </div>
-    <div v-else>
-      <div class="df aic jcc" style="color: #999;height: 100px;font-size: 16px;">----- 没有更多数据了 -----</div>
+    <!-- <MobCateList :gameLis="gameLis" :prefix="prefix" :rank="false" :tagArr="tagArr" :more="loadMore" :total="total">
+    </MobCateList> -->
+    <div v-if="(gameLis.length > 0)">
+      <mob-cate-list :gameLis="gameLis" :prefix="prefix" :rank="false" :tagArr="tagArr"/>
+      <div style="padding: 10px;background-color: #f7f7f7;"
+           class="df aic jcc"
+           v-if="params.page * params.pagesize <= gameLis.length">
+        <el-button class="df aic jcc" plain @click="loadMore">更多</el-button>
+      </div>
+      <div v-else>
+        <div class="df aic jcc" style="color: #999;height: 100px;font-size: 16px;">----- 没有更多数据了 -----</div>
+      </div>
     </div>
-  </div>
-  <van-empty v-else description="No Data" />
+    <van-empty v-else description="No Data" />
 
-  <van-back-top style="background-color: #ed8c0f;" />
+    <van-back-top style="background-color: #ed8c0f;" />
+  </div>
   <!-- <m_footer></m_footer> -->
 
 </template>

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

@@ -49,9 +49,9 @@
       <h3 style="margin-top: 30px;">推荐游戏</h3>
       <mob-list :gameLis="listRecommand" :prefix="prefix"/>
     </div>
+    <van-back-top style="background-color: #ed8c0f;" />
 
   </div>
-  <van-back-top style="background-color: #ed8c0f;" />
   <!-- <m_footer></m_footer> -->
 </template>
 
@@ -131,7 +131,6 @@ const downGame = (url: string) => {
     padding: 15px;
     // background: radial-gradient(circle at 0 -10%,#dcf4f7,rgba(220,244,247,0) 50%),radial-gradient(circle at 100% 10%,#e8ebfc,rgba(232,235,252,0) 50%);
     background: radial-gradient(circle at 0 -20%, #ed8c0f, rgba(255, 255, 255, .6) 25%), radial-gradient(circle at 100% 10%, #eabf85, rgba(255, 255, 255, .6) 50%);
-
     .top_nav {
         margin-bottom: 10px;