pujiaming лет назад: 2
Родитель
Сommit
8bdf8e7ccf

+ 13 - 6
src/App.vue

@@ -66,13 +66,20 @@ input::-webkit-outer-spin-button,
    }
 </style>
 <style>
-/* .mob-wrap{
+.mob-wrap{
   max-width: 750px;
   margin: 0 auto;
-
-} */
-/* #app{
+  background-color: #fff;
+  min-height: 90vh;
+  /* height: 100%; */
+  box-sizing: border-box;
+  /* padding: 15px; */
+}
+.wrap-outer{
   background-image: linear-gradient(to bottom left, #ED8C0F, #EF6158, #C85384, #875892, #49557F, #2F4858 );
-
-} */
+  /* height: 100%; */
+  max-height: 100vh;
+  overflow: auto;
+  box-sizing: border-box;
+}
 </style>

+ 4 - 1
src/components/MobList.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="list df aic jcsb" v-for="item in props.gameLis" :key="item.game_id">
+  <div class="list df aic jcsb" style="box-sizing: border-box;border-top: .5px solid #ddd; " v-for="item in props.gameLis" :key="item.game_id">
     <div class="df aic" style="width:70%">
       <img :src="props.prefix + item.logopic"/>
       <div class="right_cont" style="width:73%">
@@ -31,6 +31,9 @@ const downGame = (url: string) => {
 </script>
 
 <style lang="scss" scoped>
+.list:last-child{
+  border-bottom: .5px solid #ddd;
+}
 .list {
     height: 100px;
     margin-bottom: 0;

+ 1 - 1
src/components/MobileCom.vue

@@ -79,7 +79,7 @@ onMounted(() => {
         width: 80%;
         height: 100%;
         padding-right: 15px;
-        border-right: 1px dashed #999;
+        // border-right: 1px dashed #999;
 
         h1 {
             font-size: 20px;

+ 4 - 4
src/store/user.ts

@@ -41,8 +41,8 @@ const userInfo = defineStore({
           // { id: 1, path: '/p_rank', title: '排行' },
           { id: 2, path: '/p_categroy', title: '分类' },
           { id: 4, path: '/p_order', title: '订单' },
-          { id: 5, path: '/p_ecoin', title: this.profile.ecoinName + ':' + this.profile.ecoin },
-          { id: 6, path: '/p_ncoin', title: this.profile.ncoinName + ':' + this.profile.ncoin },
+          { id: 5, path: '/p_ecoin', title: this.profile.ecoinName + ':' + (this.profile.ecoin / 100).toFixed(2) },
+          { id: 6, path: '/p_ncoin', title: this.profile.ncoinName + ':' + (this.profile.ncoin / 100).toFixed(2) },
           { id: 3, path: '/p_mine', title: '我的' }
         ]
         this.menuPath = [
@@ -50,8 +50,8 @@ const userInfo = defineStore({
           // { text: '排行', value: 2, url: 'm_rank' },
           { text: '分类', value: 3, url: 'm_categroy' },
           { text: '订单', value: 5, url: 'm_order' },
-          { text: this.profile.ecoinName + ':' + this.profile.ecoin, value: 6, url: 'm_ecoin' },
-          { text: this.profile.ncoinName + ':' + this.profile.ncoin, value: 7, url: 'm_ncoin' },
+          { text: this.profile.ecoinName + ':' + (this.profile.ecoin / 100).toFixed(2), value: 6, url: 'm_ecoin' },
+          { text: this.profile.ncoinName + ':' + (this.profile.ncoin / 100).toFixed(2), value: 7, url: 'm_ncoin' },
           { text: '我的游戏', value: 4, url: 'm_mine' }
         ]
       }).catch((error) => {

+ 37 - 35
src/view/m_views/categroy/index.vue

@@ -1,46 +1,48 @@
 <template>
-  <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">
+  <div class="wrap-outer">
+    <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;" />
-  </div>
+      <van-back-top style="background-color: #ed8c0f;" />
+    </div>
   <!-- <m_footer></m_footer> -->
+  </div>
 
 </template>
 

+ 36 - 27
src/view/m_views/ecoin/index.vue

@@ -1,34 +1,43 @@
 <template>
-  <m-header/>
-  <div v-if="token">
-    <div v-if="gameHot.length > 0">
-      <el-table :data="gameHot" style="width: 100%">
-        <el-table-column prop="game_name" label="游戏名称"  />
-
-        <el-table-column prop="total_ecoin" label="余额" />
-        <el-table-column prop="created_at" label="创建时间" width="180" />
-        <el-table-column prop="modified_at" label="修改时间" width="180" />
-      </el-table>
-      <div class="demo-pagination-block">
-        <el-pagination
-          v-model:current-page="pageConfig.page"
-          hide-on-single-page
-          v-model:page-size="pageConfig.pagesize"
-          layout="prev, pager, next, jumper,total"
-          :total="pageConfig.total"
-          @current-change="handleCurrentChange"
-        />
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <m-header/>
+      <div v-if="token">
+        <div v-if="gameHot.length > 0">
+          <el-table :data="gameHot" style="width: 100%">
+            <el-table-column prop="game_name" label="游戏名称"  />
+            <el-table-column prop="total_ecoin" label="余额">
+              <template #default="scope">
+                <div>
+                  {{ (scope.row.total_ecoin/100).toFixed(2)}}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column prop="created_at" label="创建时间" width="180" />
+            <el-table-column prop="modified_at" label="修改时间" width="180" />
+          </el-table>
+          <div class="demo-pagination-block">
+            <el-pagination
+              v-model:current-page="pageConfig.page"
+              hide-on-single-page
+              v-model:page-size="pageConfig.pagesize"
+              layout="prev, pager, next, jumper,total"
+              :total="pageConfig.total"
+              @current-change="handleCurrentChange"
+            />
+          </div>
+        </div>
+        <van-empty v-else description="No Data" />
+      </div>
+      <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
+        <van-empty>
+          <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
+        </van-empty>
       </div>
+
+      <van-back-top style="background-color: #ed8c0f;" />
     </div>
-    <van-empty v-else description="No Data" />
   </div>
-  <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
-    <van-empty>
-      <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
-    </van-empty>
-  </div>
-
-  <van-back-top style="background-color: #ed8c0f;" />
   <!-- <m_footer></m_footer> -->
 </template>
 

+ 52 - 48
src/view/m_views/index/index.vue

@@ -1,56 +1,60 @@
 <template>
-  <div id="index">
-    <!-- 顶部搜索栏 -->
-    <div class="top_nav df aic jcsb">
-      <div class="left_title df aic">
-        <img v-if="VITEPLA === 'QingQue'" src="http://gm.nkfzs.com/favicon.ico" />
-        <span v-if="VITEPLA === 'QingQue'">朱雀游戏中心</span>
-        <span v-else>游戏中心</span>
-      </div>
-      <van-search shape='round' @click="router.push({ path: 'm_search' })" />
-    </div>
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <div id="index">
+        <!-- 顶部搜索栏 -->
+        <div class="top_nav df aic jcsb">
+          <div class="left_title df aic">
+            <img v-if="VITEPLA === 'QingQue'" src="http://gm.nkfzs.com/favicon.ico" />
+            <span v-if="VITEPLA === 'QingQue'">朱雀游戏中心</span>
+            <span v-else>游戏中心</span>
+          </div>
+          <van-search shape='round' @click="router.push({ path: 'm_search' })" />
+        </div>
 
-    <div v-if="VITEPLA === 'QingQue'" class="df aic jcc" style="color: #ed8c0f;margin: 10px auto; font-size: 14px;">客服qq:2885393309</div>
-
-    <!-- 轮播图 -->
-    <van-swipe class="my-swipe" indicator-color="white" :autoplay="3000">
-      <van-swipe-item v-for="item in listSwiper" :key="item.game_id" class="psr">
-        <img :src="prefix + item.screenshot"/>
-        <div class="game_card psa df fdc aic">
-          <img :src="prefix + item.logopic"/>
-          <p class="title elli">{{ item.screen_name }}</p>
-          <van-button
-            :disabled="item.download_url === '' ? true : false"
-            round
-            color="#ed8c0f"
-            @click="downGame(item.download_url)"
-          >
-            下载
-          </van-button>
+        <div v-if="VITEPLA === 'QingQue'" class="df aic jcc" style="color: #ed8c0f;margin: 10px auto; font-size: 14px;">客服qq:2885393309</div>
+
+        <!-- 轮播图 -->
+        <van-swipe class="my-swipe" indicator-color="white" :autoplay="3000">
+          <van-swipe-item v-for="item in listSwiper" :key="item.game_id" class="psr">
+            <img :src="prefix + item.screenshot"/>
+            <div class="game_card psa df fdc aic">
+              <img :src="prefix + item.logopic"/>
+              <p class="title elli">{{ item.screen_name }}</p>
+              <van-button
+                :disabled="item.download_url === '' ? true : false"
+                round
+                color="#ed8c0f"
+                @click="downGame(item.download_url)"
+              >
+                下载
+              </van-button>
+            </div>
+          </van-swipe-item>
+        </van-swipe>
+
+        <!-- 菜单栏 -->
+        <div class="menu_cate df aic jcsa">
+          <div v-for="(item, index) in cateList"
+               :key="index"
+               class="cate_card df fdc aic jcc"
+               @click="toPath(item.pathUrl)">
+            <van-icon :name="item.icon" size="20" class="icon"/>
+            <span class="title">{{ item.title }}</span>
+          </div>
         </div>
-      </van-swipe-item>
-    </van-swipe>
-
-    <!-- 菜单栏 -->
-    <div class="menu_cate df aic jcsa">
-      <div v-for="(item, index) in cateList"
-           :key="index"
-           class="cate_card df fdc aic jcc"
-           @click="toPath(item.pathUrl)">
-        <van-icon :name="item.icon" size="20" class="icon"/>
-        <span class="title">{{ item.title }}</span>
-      </div>
-    </div>
 
-    <!-- 游戏列表 -->
-    <div class="games">
-      <h3>热门游戏</h3>
-      <mob-list :gameLis="list" :prefix="prefix"/>
-      <h3 style="margin-top: 30px;">推荐游戏</h3>
-      <mob-list :gameLis="listRecommand" :prefix="prefix"/>
-    </div>
-    <van-back-top style="background-color: #ed8c0f;" />
+        <!-- 游戏列表 -->
+        <div class="games">
+          <h3>热门游戏</h3>
+          <mob-list :gameLis="list" :prefix="prefix"/>
+          <h3 style="margin-top: 30px;">推荐游戏</h3>
+          <mob-list :gameLis="listRecommand" :prefix="prefix"/>
+        </div>
+        <van-back-top style="background-color: #ed8c0f;" />
 
+      </div>
+    </div>
   </div>
   <!-- <m_footer></m_footer> -->
 </template>

+ 4 - 4
src/view/m_views/login/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login">
-    <div  class="logo">
-      <img v-if="VITEPLA === 'QingQue'" src="@/assets/img/logo.png" class="img"/>
+    <div v-if="VITEPLA === 'QingQue'" class="logo">
+      <img  src="@/assets/img/logo.png" class="img"/>
     </div>
     <div class="input">
       <van-form @submit="submitForm" >
@@ -45,7 +45,7 @@
           placeholder="请输入验证码"
           :rules="[{ required: true, message: '请填写验证码' }]">
           <template #button>
-            <van-button size="small" type="primary" style="width: 20vw;" :disabled="!can_send || loginForm.account.length!==11" @click="getCaptcha">{{ smsMessage }}</van-button>
+            <van-button size="small" type="primary" color="#ed8c0f" style="min-width: 20vw;" :disabled="!can_send || loginForm.account.length!==11" @click="getCaptcha">{{ smsMessage }}</van-button>
           </template>
         </van-field>
         <van-field style="font-size: 16px;" v-model="loginForm.password" type="hidden" id="md5_password" />
@@ -207,7 +207,7 @@ onMounted(() => {
 
 <style lang="scss" scoped>
 .login {
-    width: 100vw;
+    // width: 100vw;
     height: 100%;
     background-color: #f7f7f7;
 

+ 63 - 59
src/view/m_views/mine/index.vue

@@ -1,69 +1,73 @@
 <template>
-  <m-header/>
-  <div v-if="token">
-    <div v-if="mineGame.length > 0">
-      <div style="padding:15px">
-        <mob-list :gameLis="mineGame" :prefix="prefix">
-          <template #custom-button="scope">
-            <div>
-              <van-button round color="#ed8c0f" @click="showGifts(scope.row)">查看礼包</van-button>
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <m-header/>
+      <div v-if="token">
+        <div v-if="mineGame.length > 0">
+          <div style="padding:15px">
+            <mob-list :gameLis="mineGame" :prefix="prefix">
+              <template #custom-button="scope">
+                <div>
+                  <van-button round color="#ed8c0f" @click="showGifts(scope.row)">查看礼包</van-button>
+                </div>
+              </template>
+            </mob-list>
+          </div>
+          <div style="padding: 10px;background-color: #f7f7f7;"
+               class="df aic jcc"
+               v-if="params.page * params.pagesize <= mineGame.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>
-          </template>
-        </mob-list>
-      </div>
-      <div style="padding: 10px;background-color: #f7f7f7;"
-           class="df aic jcc"
-           v-if="params.page * params.pagesize <= mineGame.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>
+        <van-empty v-else description="No Data" />
       </div>
-    </div>
-    <van-empty v-else description="No Data" />
-  </div>
-  <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
-    <van-empty>
-      <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
-    </van-empty>
-  </div>
-  <van-dialog v-model:show="dialogVisible" title="查看礼包" confirm-button-text="关闭">
-    <van-collapse v-if="giftData.length" v-model="activeNames">
-      <van-collapse-item v-for="(item, index) in giftData" :key="index" :title="item.gift_name" :name="item.id">
-        <template #value>
-          <van-button :disabled="item.user_get_at !== ''" round color="#ed8c0f" @click="receiveGift(item.id)">领取礼包</van-button>
-        </template>
-        <van-cell-group>
-          <van-cell value-class="value-length" center size="large" title="礼包内容:" :value="item.gift_content">
-            <template #value>
-              <div style="text-align: left;">
-                {{ item.gift_content }}
-              </div>
-            </template>
-          </van-cell>
-          <van-cell value-class="value-length" center size="large" title="使用方法:" :value="item.usage">
-            <template #value>
-              <div style="text-align: left;">
-                {{ item.usage }}
-              </div>
-            </template>
-          </van-cell>
-          <van-cell value-class="value-length" center size="large" title="有效期:" :value="item.start_at+'-'+item.end_at">
+      <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
+        <van-empty>
+          <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
+        </van-empty>
+      </div>
+      <van-dialog v-model:show="dialogVisible" title="查看礼包" confirm-button-text="关闭">
+        <van-collapse v-if="giftData.length" v-model="activeNames">
+          <van-collapse-item v-for="(item, index) in giftData" :key="index" :title="item.gift_name" :name="item.id">
             <template #value>
-              <div style="text-align: left;">
-                {{ item.start_at+'-'+item.end_at }}
-              </div>
+              <van-button :disabled="item.user_get_at !== ''" round color="#ed8c0f" @click="receiveGift(item.id)">领取礼包</van-button>
             </template>
-          </van-cell>
-        </van-cell-group>
-      </van-collapse-item>
+            <van-cell-group>
+              <van-cell value-class="value-length" center size="large" title="礼包内容:" :value="item.gift_content">
+                <template #value>
+                  <div style="text-align: left;">
+                    {{ item.gift_content }}
+                  </div>
+                </template>
+              </van-cell>
+              <van-cell value-class="value-length" center size="large" title="使用方法:" :value="item.usage">
+                <template #value>
+                  <div style="text-align: left;">
+                    {{ item.usage }}
+                  </div>
+                </template>
+              </van-cell>
+              <van-cell value-class="value-length" center size="large" title="有效期:" :value="item.start_at+'-'+item.end_at">
+                <template #value>
+                  <div style="text-align: left;">
+                    {{ item.start_at+'-'+item.end_at }}
+                  </div>
+                </template>
+              </van-cell>
+            </van-cell-group>
+          </van-collapse-item>
 
-    </van-collapse>
-    <van-empty v-else description="暂无礼包" />
-  </van-dialog>
-  <van-back-top style="background-color: #ed8c0f;" />
-  <!-- <m_footer></m_footer> -->
+        </van-collapse>
+        <van-empty v-else description="暂无礼包" />
+      </van-dialog>
+      <van-back-top style="background-color: #ed8c0f;" />
+      <!-- <m_footer></m_footer> -->
+    </div>
+  </div>
 </template>
 
 <script setup lang="ts">

+ 37 - 27
src/view/m_views/ncoin/index.vue

@@ -1,35 +1,45 @@
 <template>
-  <m-header/>
-  <div v-if="token">
-    <div v-if="gameHot.length > 0">
-      <el-table :data="gameHot" style="width: 100%">
-        <el-table-column prop="game_name" label="游戏名称"  />
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <m-header/>
+      <div v-if="token">
+        <div v-if="gameHot.length > 0">
+          <el-table :data="gameHot" style="width: 100%">
+            <el-table-column prop="game_name" label="游戏名称"  />
 
-        <el-table-column prop="total_coin" label="余额" />
-        <el-table-column prop="created_at" label="创建时间" width="180" />
-        <el-table-column prop="modified_at" label="修改时间" width="180" />
-      </el-table>
-      <div class="demo-pagination-block">
-        <el-pagination
-          v-model:current-page="pageConfig.page"
-          hide-on-single-page
-          v-model:page-size="pageConfig.pagesize"
-          layout="prev, pager, next, jumper,total"
-          :total="pageConfig.total"
-          @current-change="handleCurrentChange"
-        />
+            <el-table-column prop="total_coin" label="余额">
+              <template #default="scope">
+                <div>
+                  {{ (scope.row.total_coin/100).toFixed(2)}}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column prop="created_at" label="创建时间" width="180" />
+            <el-table-column prop="modified_at" label="修改时间" width="180" />
+          </el-table>
+          <div class="demo-pagination-block">
+            <el-pagination
+              v-model:current-page="pageConfig.page"
+              hide-on-single-page
+              v-model:page-size="pageConfig.pagesize"
+              layout="prev, pager, next, jumper,total"
+              :total="pageConfig.total"
+              @current-change="handleCurrentChange"
+            />
+          </div>
+        </div>
+        <van-empty v-else description="No Data" />
       </div>
+      <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
+        <van-empty>
+          <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
+        </van-empty>
+      </div>
+
+      <van-back-top style="background-color: #ed8c0f;" />
+      <!-- <m_footer></m_footer> -->
     </div>
-    <van-empty v-else description="No Data" />
   </div>
-  <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
-    <van-empty>
-      <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
-    </van-empty>
-  </div>
-
-  <van-back-top style="background-color: #ed8c0f;" />
-  <!-- <m_footer></m_footer> -->
 </template>
 
 <script setup lang="ts">

+ 55 - 51
src/view/m_views/order/index.vue

@@ -1,58 +1,62 @@
 <template>
-  <m-header/>
-  <div v-if="token">
-    <div v-if="gameHot.length > 0">
-      <el-table :data="gameHot" style="width: 100%">
-        <el-table-column prop="order_number" label="订单号" width="180"/>
-        <el-table-column prop="appname" label="游戏名称"  />
-        <el-table-column prop="game_product_name" label="道具名称"  />
-        <el-table-column prop="order_amount" label="道具数量" />
-        <el-table-column prop="order_submit_time" label="创建时间" width="180">
-          <template #default="scope">
-            <div>
-              {{ parseTime(scope.row.order_submit_time) }}
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column prop="order_asynch_time" label="付款时间" width="180">
-          <template #default="scope">
-            <div>
-              {{ scope.row.order_asynch_time? parseTime(scope.row.order_asynch_time):'-' }}
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column prop="channel_name" label="支付方式" />
-        <el-table-column prop="order_submit_time" label="订单状态" >
-          <template #default="scope">
-            <div>
-              {{ status[scope.row.order_status] }}
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column prop="target_role_id" label="游戏订单号" width="180"/>
-        <el-table-column prop="out_trade_no" label="支付平台订单号" width="180" />
-      </el-table>
-      <div class="demo-pagination-block">
-        <el-pagination
-          v-model:current-page="pageConfig.page"
-          hide-on-single-page
-          v-model:page-size="pageConfig.pagesize"
-          layout="prev, pager, next, jumper,total"
-          :total="pageConfig.total"
-          @current-change="handleCurrentChange"
-        />
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <m-header/>
+      <div v-if="token">
+        <div v-if="gameHot.length > 0">
+          <el-table :data="gameHot" style="width: 100%">
+            <el-table-column prop="order_number" label="订单号" width="180"/>
+            <el-table-column prop="appname" label="游戏名称"  />
+            <el-table-column prop="game_product_name" label="道具名称"  />
+            <el-table-column prop="order_amount" label="道具数量" />
+            <el-table-column prop="order_submit_time" label="创建时间" width="180">
+              <template #default="scope">
+                <div>
+                  {{ parseTime(scope.row.order_submit_time) }}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column prop="order_asynch_time" label="付款时间" width="180">
+              <template #default="scope">
+                <div>
+                  {{ scope.row.order_asynch_time? parseTime(scope.row.order_asynch_time):'-' }}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column prop="channel_name" label="支付方式" />
+            <el-table-column prop="order_submit_time" label="订单状态" >
+              <template #default="scope">
+                <div>
+                  {{ status[scope.row.order_status] }}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column prop="target_role_id" label="游戏订单号" width="180"/>
+            <el-table-column prop="out_trade_no" label="支付平台订单号" width="180" />
+          </el-table>
+          <div class="demo-pagination-block">
+            <el-pagination
+              v-model:current-page="pageConfig.page"
+              hide-on-single-page
+              v-model:page-size="pageConfig.pagesize"
+              layout="prev, pager, next, jumper,total"
+              :total="pageConfig.total"
+              @current-change="handleCurrentChange"
+            />
+          </div>
+        </div>
+        <van-empty v-else description="No Data" />
       </div>
+      <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
+        <van-empty>
+          <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
+        </van-empty>
+      </div>
+
+      <van-back-top style="background-color: #ed8c0f;" />
+      <!-- <m_footer></m_footer> -->
     </div>
-    <van-empty v-else description="No Data" />
   </div>
-  <div v-else :style="{ height: viewWidth + 'px' }" class="df fdc aic jcc">
-    <van-empty>
-      <van-button color="#ed8c0f" @click="goLogin">去登录 &gt;&gt;</van-button>
-    </van-empty>
-  </div>
-
-  <van-back-top style="background-color: #ed8c0f;" />
-  <!-- <m_footer></m_footer> -->
 </template>
 
 <script setup lang="ts">

+ 96 - 92
src/view/m_views/resetPwd/resetPwd.vue

@@ -1,97 +1,101 @@
 <template>
-  <m-header/>
-  <div>
-    <van-divider>设置</van-divider>.
-    <van-tabs>
-      <van-tab title="密码设置">
-        <van-form @submit="onSubmit">
-          <van-cell-group inset>
-            <van-field
-              v-if="from === 1"
-              v-model="ruleForm.old_password"
-              name="旧密码"
-              label="旧密码"
-              type="password"
-              placeholder="请填写旧密码"
-              :rules="[{ required: true, message: '请填写旧密码' },{ validator: checkAge}]"
-            />
-            <van-field
-              v-model="ruleForm.new_password"
-              type="password"
-              name="新密码"
-              label="新密码"
-              placeholder="请填写新密码"
-              :rules="[{ required: true, message: '请填写新密码' },{ validator: checkAge}]"
-            />
-            <van-field
-              v-model="ruleForm.new_password2"
-              type="password"
-              name="新密码"
-              label="新密码"
-              placeholder="请再次填写新密码"
-              :rules="[{ required: true, message: '请再次填写新密码' },{ validator: checkAge}]"
-            />
-          </van-cell-group>
-          <div style="margin: 16px;display: flex;flex-direction: row-reverse;">
-            <van-button style="width: 100%;padding: 10px;" round block type="primary" color="#ed8c0f" native-type="submit">
-              提交
-            </van-button>
-          </div>
-        </van-form>
-      </van-tab>
-      <van-tab title="用户名设置">
-        <van-form @submit="onSubmit2">
-          <van-field
-            v-model="account"
-            type="text"
-            name="用户名"
-            :readonly="!!user.profile.user_name"
-            label="用户名"
-            placeholder="请填写用户名"
-            :rules="[{ required: true, message: '请填写用户名',trigger: 'onBlur' },{ pattern: pattern, message: '请输入以字母为开头,长度为6-20位的用户名'}]"
-          />
-          <div v-if="!user.profile.user_name" style="margin: 16px;display: flex;flex-direction: row-reverse;">
-            <van-button round block style="width: 100%;padding: 10px;" type="primary" color="#ed8c0f" native-type="submit">
-              提交
-            </van-button>
-          </div>
-        </van-form>
-      </van-tab>
-      <van-tab title="手机号设置">
-        <van-form>
-          <van-field
-            v-model="ruleForm3.mobile"
-            type="text"
-            name="手机号"
-            :readonly="!!user.profile.mobile"
-            label="手机号"
-            placeholder="请填写手机号"
-            :rules="[{ required: true, message: '请填写手机号',trigger: 'onBlur' },{ pattern: pattern2, message: '请输入正确手机号'}]"
-          />
-          <van-field
-            v-model="ruleForm3.captcha"
-            type="number"
-            name="验证码"
-            label="验证码"
-            placeholder="请输入验证码"
-            :rules="[{ required: true, message: '请填写验证码' }]">
-            <template #button>
-              <van-button v-if="!!user.profile.mobile" color="#ed8c0f" size="small" type="primary" style="width: 20vw;" :disabled="!can_send" @click="getCaptcha">{{ smsMessage }}</van-button>
-              <van-button v-else size="small" color="#ed8c0f" type="primary" style="width: 20vw;" :disabled="!can_send" @click="getCaptcha2">{{ smsMessage }}</van-button>
-            </template>
-          </van-field>
-          <div style="margin: 16px;">
-            <van-button v-if="!!user.profile.mobile" style="width: 100%;padding: 10px;" round block type="primary" color="#ed8c0f" @click="onSubmit3">
-              解绑
-            </van-button>
-            <van-button v-else round block type="primary" style="width: 100%;padding: 10px;" color="#ed8c0f" @click="onSubmit4">
-              绑定
-            </van-button>
-          </div>
-        </van-form>
-      </van-tab>
-    </van-tabs>
+  <div class="wrap-outer">
+    <div class="mob-wrap">
+      <m-header/>
+      <div>
+        <van-divider>设置</van-divider>.
+        <van-tabs>
+          <van-tab title="密码设置">
+            <van-form @submit="onSubmit">
+              <van-cell-group inset>
+                <van-field
+                  v-if="from === 1"
+                  v-model="ruleForm.old_password"
+                  name="旧密码"
+                  label="旧密码"
+                  type="password"
+                  placeholder="请填写旧密码"
+                  :rules="[{ required: true, message: '请填写旧密码' },{ validator: checkAge}]"
+                />
+                <van-field
+                  v-model="ruleForm.new_password"
+                  type="password"
+                  name="新密码"
+                  label="新密码"
+                  placeholder="请填写新密码"
+                  :rules="[{ required: true, message: '请填写新密码' },{ validator: checkAge}]"
+                />
+                <van-field
+                  v-model="ruleForm.new_password2"
+                  type="password"
+                  name="新密码"
+                  label="新密码"
+                  placeholder="请再次填写新密码"
+                  :rules="[{ required: true, message: '请再次填写新密码' },{ validator: checkAge}]"
+                />
+              </van-cell-group>
+              <div style="margin: 16px;display: flex;flex-direction: row-reverse;">
+                <van-button style="width: 100%;padding: 10px;" round block type="primary" color="#ed8c0f" native-type="submit">
+                  提交
+                </van-button>
+              </div>
+            </van-form>
+          </van-tab>
+          <van-tab title="用户名设置">
+            <van-form @submit="onSubmit2">
+              <van-field
+                v-model="account"
+                type="text"
+                name="用户名"
+                :readonly="!!user.profile.user_name"
+                label="用户名"
+                placeholder="请填写用户名"
+                :rules="[{ required: true, message: '请填写用户名',trigger: 'onBlur' },{ pattern: pattern, message: '请输入以字母为开头,长度为6-20位的用户名'}]"
+              />
+              <div v-if="!user.profile.user_name" style="margin: 16px;display: flex;flex-direction: row-reverse;">
+                <van-button round block style="width: 100%;padding: 10px;" type="primary" color="#ed8c0f" native-type="submit">
+                  提交
+                </van-button>
+              </div>
+            </van-form>
+          </van-tab>
+          <van-tab title="手机号设置">
+            <van-form>
+              <van-field
+                v-model="ruleForm3.mobile"
+                type="text"
+                name="手机号"
+                :readonly="!!user.profile.mobile"
+                label="手机号"
+                placeholder="请填写手机号"
+                :rules="[{ required: true, message: '请填写手机号',trigger: 'onBlur' },{ pattern: pattern2, message: '请输入正确手机号'}]"
+              />
+              <van-field
+                v-model="ruleForm3.captcha"
+                type="number"
+                name="验证码"
+                label="验证码"
+                placeholder="请输入验证码"
+                :rules="[{ required: true, message: '请填写验证码' }]">
+                <template #button>
+                  <van-button v-if="!!user.profile.mobile" color="#ed8c0f" size="small" type="primary" style="min-width: 20vw;" :disabled="!can_send" @click="getCaptcha">{{ smsMessage }}</van-button>
+                  <van-button v-else size="small" color="#ed8c0f" type="primary" style="min-width: 20vw;" :disabled="!can_send" @click="getCaptcha2">{{ smsMessage }}</van-button>
+                </template>
+              </van-field>
+              <div style="margin: 16px;">
+                <van-button v-if="!!user.profile.mobile" style="width: 100%;padding: 10px;" round block type="primary" color="#ed8c0f" @click="onSubmit3">
+                  解绑
+                </van-button>
+                <van-button v-else round block type="primary" style="width: 100%;padding: 10px;" color="#ed8c0f" @click="onSubmit4">
+                  绑定
+                </van-button>
+              </div>
+            </van-form>
+          </van-tab>
+        </van-tabs>
 
+      </div>
+    </div>
   </div>
 </template>
 

+ 7 - 1
src/view/p_views/ecoin/index.vue

@@ -4,7 +4,13 @@
     <el-table :data="gameHot" style="width: 100%">
       <el-table-column prop="game_name" label="游戏名称"  />
 
-      <el-table-column prop="total_ecoin" label="余额" />
+      <el-table-column prop="total_ecoin" label="余额">
+        <template #default="scope">
+          <div>
+            {{ (scope.row.total_ecoin/100).toFixed(2)}}
+          </div>
+        </template>
+      </el-table-column>
       <el-table-column prop="created_at" label="创建时间" width="180" />
       <el-table-column prop="modified_at" label="修改时间" width="180" />
     </el-table>

+ 8 - 1
src/view/p_views/ncoin/index.vue

@@ -4,7 +4,14 @@
     <el-table :data="gameHot" style="width: 100%">
       <el-table-column prop="game_name" label="游戏名称"  />
 
-      <el-table-column prop="total_coin" label="余额" />
+      <el-table-column prop="total_coin" label="余额">
+        <template #default="scope">
+          <div>
+            {{ (scope.row.total_coin/100).toFixed(2)}}
+          </div>
+        </template>
+      </el-table-column>
+
       <el-table-column prop="created_at" label="创建时间" width="180" />
       <el-table-column prop="modified_at" label="修改时间" width="180" />
     </el-table>