Browse Source

游戏模块v1.5

李志伟 3 years ago
parent
commit
c4e24050a9

+ 0
- 1
src/App.vue View File

18
 }
18
 }
19
 .box-card {
19
 .box-card {
20
   margin-bottom: 16px;
20
   margin-bottom: 16px;
21
-  box-shadow: none !important;
22
 }
21
 }
23
 .body {
22
 .body {
24
   padding: 24px;
23
   padding: 24px;

+ 1
- 1
src/components/GameCharacter/index.vue View File

1
 <template>
1
 <template>
2
   <div class="body" style="font-size:14px">
2
   <div class="body" style="font-size:14px">
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never">
4
       <div slot="header" class="clearfix">
4
       <div slot="header" class="clearfix">
5
         <el-button
5
         <el-button
6
           type="primary"
6
           type="primary"

+ 2
- 0
src/components/Question/drawer.vue View File

2
   <div>
2
   <div>
3
     <el-drawer
3
     <el-drawer
4
       ref="drawer"
4
       ref="drawer"
5
+      :show-close="false"
6
+      :wrapperClosable="false"
5
       :title="answerId ?'编辑答案' : '添加答案'"
7
       :title="answerId ?'编辑答案' : '添加答案'"
6
       :before-close="handleClose"
8
       :before-close="handleClose"
7
       :visible.sync="dialog"
9
       :visible.sync="dialog"

+ 3
- 2
src/components/Question/edit.vue View File

36
         <el-button @click="$router.go(-1)">返回</el-button>
36
         <el-button @click="$router.go(-1)">返回</el-button>
37
       </el-form-item>
37
       </el-form-item>
38
     </el-form>
38
     </el-form>
39
-    <el-card v-if="questionId!==undefined" class="box-card">
39
+    <el-card v-if="questionId!==undefined" shadow="never" body-style="padding:0" class="box-card">
40
       <div slot="header" class="clearfix">
40
       <div slot="header" class="clearfix">
41
         <h3 style="float:left">答案列表</h3>
41
         <h3 style="float:left">答案列表</h3>
42
         <el-button
42
         <el-button
46
           @click="onAddAnswer"
46
           @click="onAddAnswer"
47
         >添加特征</el-button>
47
         >添加特征</el-button>
48
       </div>
48
       </div>
49
-      <ul style="list-style-type: none;margin:10px 0 10px -40px">
49
+      <ul style="list-style-type: none;margin:24px 0 24px -40px">
50
         <li v-for="answer in answerList" :key="answer.answerId" class="answerli">
50
         <li v-for="answer in answerList" :key="answer.answerId" class="answerli">
51
           <div style="flex:1;width: 100%;overflow: hidden;display: flex;" @click="handleEdit(answer)">
51
           <div style="flex:1;width: 100%;overflow: hidden;display: flex;" @click="handleEdit(answer)">
52
             <span style="width:45px">{{ answer.option }}</span>
52
             <span style="width:45px">{{ answer.option }}</span>
222
   display: flex;
222
   display: flex;
223
   line-height:40px;
223
   line-height:40px;
224
   background-color: white;
224
   background-color: white;
225
+  padding:0 8px;
225
   border: 1px solid #f0f2f5;
226
   border: 1px solid #f0f2f5;
226
 }
227
 }
227
 .answerli:hover {
228
 .answerli:hover {

+ 4
- 3
src/components/Question/index.vue View File

1
 <template>
1
 <template>
2
   <div class="body">
2
   <div class="body">
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never" body-style="padding:0">
4
       <div slot="header" class="clearfix">
4
       <div slot="header" class="clearfix">
5
         <h3 style="float:left">题库列表</h3>
5
         <h3 style="float:left">题库列表</h3>
6
         <el-button
6
         <el-button
10
           @click="handleAdd"
10
           @click="handleAdd"
11
         >添加特征</el-button>
11
         >添加特征</el-button>
12
       </div>
12
       </div>
13
-      <ul style="list-style-type: none;margin:10px 0 10px -40px">
13
+      <ul style="list-style-type: none;margin:24px 0 0 -40px">
14
         <li v-for="item,index in tableData" :key="index" class="questionli" @click="handleEdit(item)">
14
         <li v-for="item,index in tableData" :key="index" class="questionli" @click="handleEdit(item)">
15
           <span style="width:45px">第{{ index+1 }}题</span>
15
           <span style="width:45px">第{{ index+1 }}题</span>
16
           <span style="width:45px">{{ item.optType === '1'?'单选题':item.optType==='2'?'多选题':'判断题' }}</span>
16
           <span style="width:45px">{{ item.optType === '1'?'单选题':item.optType==='2'?'多选题':'判断题' }}</span>
28
       </ul>
28
       </ul>
29
       <el-pagination
29
       <el-pagination
30
         v-show="questionTotal!==0"
30
         v-show="questionTotal!==0"
31
-        style="float:right; margin:20px 0"
31
+        style="float:right; margin:24px 0"
32
         :total="questionTotal"
32
         :total="questionTotal"
33
         :current-page="currentPage"
33
         :current-page="currentPage"
34
         :page-size="pageSize"
34
         :page-size="pageSize"
115
   display: flex;
115
   display: flex;
116
   line-height:40px;
116
   line-height:40px;
117
   background-color: white;
117
   background-color: white;
118
+  padding:0 8px;
118
   border: 1px solid #f0f2f5;
119
   border: 1px solid #f0f2f5;
119
 }
120
 }
120
 .questionli:nth-of-type(even) {
121
 .questionli:nth-of-type(even) {

+ 1
- 1
src/views/AppController/index.vue View File

1
 <template>
1
 <template>
2
   <div class="body">
2
   <div class="body">
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never">
4
       <div slot="header" class="clearfix">
4
       <div slot="header" class="clearfix">
5
         <el-button
5
         <el-button
6
           type="primary"
6
           type="primary"

+ 1
- 1
src/views/WeChatConfig/Edit.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never">
4
       <el-row :gutter="24">
4
       <el-row :gutter="24">
5
         <el-col :span="18">
5
         <el-col :span="18">
6
           <el-form
6
           <el-form

+ 1
- 1
src/views/WeChatConfig/index.vue View File

1
 <template>
1
 <template>
2
   <div class="body">
2
   <div class="body">
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never">
4
       <div class="text item">
4
       <div class="text item">
5
         <div slot="header" class="clearfix">
5
         <div slot="header" class="clearfix">
6
           <el-button type="primary" style="float: right" icon="el-icon-plus" @click="handleAdd">新建配置</el-button>
6
           <el-button type="primary" style="float: right" icon="el-icon-plus" @click="handleAdd">新建配置</el-button>

+ 1
- 1
src/views/gameManage/index.vue View File

1
 <template>
1
 <template>
2
   <div class="body" style="font-size:14px">
2
   <div class="body" style="font-size:14px">
3
-    <el-card class="box-card">
3
+    <el-card class="box-card" shadow="never">
4
       游戏名称:
4
       游戏名称:
5
       <el-input v-model="title" style="width: 200px; margin-right: 20px" />创建时间:
5
       <el-input v-model="title" style="width: 200px; margin-right: 20px" />创建时间:
6
       <el-date-picker
6
       <el-date-picker