|
@@ -77,39 +77,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 答题卡区域 -->
|
|
<!-- 答题卡区域 -->
|
|
|
- <view class="test-info ddflex" v-if="false">
|
|
|
|
|
- <view class="note-box">
|
|
|
|
|
|
|
+ <view class="test-info ddflex">
|
|
|
|
|
+ <view class="note-box" style="margin-top: 0;">
|
|
|
<view class="note-title ddflex">
|
|
<view class="note-title ddflex">
|
|
|
- <image class="note-title-icon" src="/static/images/wzgg.png"></image>
|
|
|
|
|
- <view>网站提醒</view>
|
|
|
|
|
|
|
+ <image class="note-title-icon" src="/static/images/cjwt.png"</image>
|
|
|
|
|
+ <view>所有证书</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <view class="note-item ddflex" v-for="item,index in wztxList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
|
|
|
|
|
- <view class="note-item-content">{{item.title}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 学习资料 -->
|
|
|
|
|
- <view class="note-box">
|
|
|
|
|
- <view class="note-title ddflex">
|
|
|
|
|
- <image class="note-title-icon" src="/static/images/xxzl.png"></image>
|
|
|
|
|
- <view>学习资料</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view>
|
|
|
|
|
- <view class="note-item ddflex" v-for="item,index in xxzlList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
|
|
|
|
|
- <view class="note-item-content">{{item.title}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 常见问题 -->
|
|
|
|
|
- <view class="note-box">
|
|
|
|
|
- <view class="note-title ddflex">
|
|
|
|
|
- <image class="note-title-icon" src="/static/images/cjwt.png"></image>
|
|
|
|
|
- <view>常见问题</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view>
|
|
|
|
|
- <view class="note-item ddflex" v-for="item,index in cjwtList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
|
|
|
|
|
- <view class="note-item-content">{{item.title}}</view>
|
|
|
|
|
|
|
+ <view class="note-item ddflex" v-for="item,index in infoList" :key="index" @click="changeItem(item)">
|
|
|
|
|
+ <view class="note-item-content">{{index+1}}. {{item.cateName}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -130,10 +106,8 @@
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
options:{},
|
|
options:{},
|
|
|
|
|
+ infoList:[],
|
|
|
info:{},
|
|
info:{},
|
|
|
- wztxList:[],
|
|
|
|
|
- xxzlList:[],
|
|
|
|
|
- cjwtList:[],
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onReady() {},
|
|
onReady() {},
|
|
@@ -146,10 +120,6 @@
|
|
|
}
|
|
}
|
|
|
this.options = req.getStorage('options')
|
|
this.options = req.getStorage('options')
|
|
|
this.getDetail()
|
|
this.getDetail()
|
|
|
-
|
|
|
|
|
- this.getTextwztxInfo()
|
|
|
|
|
- this.getTextxxzlInfo()
|
|
|
|
|
- this.getTextcjwtInfo()
|
|
|
|
|
},
|
|
},
|
|
|
onUnload() {
|
|
onUnload() {
|
|
|
req.removeStorage('options')
|
|
req.removeStorage('options')
|
|
@@ -162,43 +132,13 @@
|
|
|
},
|
|
},
|
|
|
getDetail(){
|
|
getDetail(){
|
|
|
req.getRequest('/api/v3/exam/user/manager/certificate',this.options,res=>{
|
|
req.getRequest('/api/v3/exam/user/manager/certificate',this.options,res=>{
|
|
|
- this.info = res
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
- // 网站提醒
|
|
|
|
|
- getTextwztxInfo(){
|
|
|
|
|
- let form={
|
|
|
|
|
- code:req.public.wztxCode,
|
|
|
|
|
- page:1,
|
|
|
|
|
- limit:5
|
|
|
|
|
- }
|
|
|
|
|
- req.getRequest('/api/content/list',form,res=>{
|
|
|
|
|
- this.wztxList = res
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
- // 学习资料
|
|
|
|
|
- getTextxxzlInfo(){
|
|
|
|
|
- let form={
|
|
|
|
|
- code:req.public.xxzlCode,
|
|
|
|
|
- page:1,
|
|
|
|
|
- limit:5
|
|
|
|
|
- }
|
|
|
|
|
- req.getRequest('/api/content/list',form,res=>{
|
|
|
|
|
- this.xxzlList = res
|
|
|
|
|
|
|
+ this.infoList = res
|
|
|
|
|
+ this.info = res[0]
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // 常见问题
|
|
|
|
|
- getTextcjwtInfo(){
|
|
|
|
|
- let form={
|
|
|
|
|
- code:req.public.cjwtCode,
|
|
|
|
|
- page:1,
|
|
|
|
|
- limit:5
|
|
|
|
|
- }
|
|
|
|
|
- req.getRequest('/api/content/list',form,res=>{
|
|
|
|
|
- this.cjwtList = res
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ changeItem(item){
|
|
|
|
|
+ this.info = item
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
// 时间格式化
|
|
// 时间格式化
|
|
|
dateYM(date){
|
|
dateYM(date){
|
|
|
return req.dateFormat(date).v6
|
|
return req.dateFormat(date).v6
|