@zykjcommon/questions 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykjcommon/questions",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "main": "src/components/questions/entry.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -12,7 +12,7 @@
12
12
  "build:lib": "vue-cli-service build --target lib src/components/questions/buildEntry.js --name zykjcommon-questions"
13
13
  },
14
14
  "dependencies": {
15
- "@zykjcommon/questions": "^0.0.20",
15
+ "@zykjcommon/questions": "^0.0.24",
16
16
  "alife-logger": "^1.8.30",
17
17
  "axios": "^0.26.0",
18
18
  "cookie": "^0.4.1",
@@ -6,10 +6,11 @@
6
6
  :bus="eventBus"
7
7
  :questionInfo="responsiveObj.curQuestionInfo"
8
8
  :screenRepairH="140"
9
+ @getIsAnswered="getIsAnswered"
9
10
  :screenScale="1.08"
10
11
  :ref="'question'"/>
11
12
  </div>
12
- <div class="footer" @click="submit"></div>
13
+ <div class="footer" @click="submit">{{isAnswered}}</div>
13
14
  </div>
14
15
  </template>
15
16
 
@@ -38,7 +39,8 @@ interface dataInterface{
38
39
  loading:boolean,
39
40
  warnText:string,
40
41
  eventBus:any,
41
- token:string
42
+ token:string,
43
+ isAnswered:boolean
42
44
  }
43
45
 
44
46
  interface responsiveData{
@@ -76,7 +78,8 @@ export default defineComponent({
76
78
  routeName:route.name as string,
77
79
  loading:false,
78
80
  warnText:'',
79
- token
81
+ token,
82
+ isAnswered:false
80
83
  })
81
84
 
82
85
  //需要响应式放里面
@@ -99,6 +102,10 @@ export default defineComponent({
99
102
  })
100
103
 
101
104
 
105
+ function getIsAnswered(nv:boolean){
106
+ data.isAnswered = nv
107
+ }
108
+
102
109
  function quitQuestion(){
103
110
  fun.postMessageByType('close')
104
111
  }
@@ -395,7 +402,8 @@ export default defineComponent({
395
402
  ...toRefs(data),
396
403
  responsiveObj,
397
404
  quitQuestion,
398
- submit
405
+ submit,
406
+ getIsAnswered
399
407
  }
400
408
  }
401
409
  })
@@ -415,6 +423,10 @@ export default defineComponent({
415
423
  .footer{
416
424
  width: 100%;
417
425
  height: 60px;
426
+ line-height: 60px;
418
427
  background: rgb(252, 120, 38);
428
+ font-size: 20px;
429
+ text-align: center;
430
+ color:#fff;
419
431
  }
420
432
  </style>