导出考试证书文档不需要注册

This commit is contained in:
caoqianming 2021-08-25 21:01:24 +08:00
parent da759ba21f
commit c11536eae9
12 changed files with 34 additions and 10 deletions

View File

@ -1,3 +1,4 @@
<view class="head">
{{count}}条资讯</view>

View File

@ -77,7 +77,7 @@ Page({
try {
const res = wx.getSystemInfoSync()
that.setData({
scrollHeight: res.windowHeight - 70
scrollHeight: res.windowHeight - 78
})
} catch (e) {}
},

View File

@ -1,3 +1,4 @@
<view class="page">
<view class="head">
<view style="width:50%">
<span style="margin-left:10px">题量: {{tm_index+1}}/{{tmtotal}}</span>
@ -92,4 +93,5 @@
<image style="height: 80%;" src="/images/weishoucang.svg" bindtap="shoucang" wx:else></image>
</view>
</view>
</view>

View File

@ -10,6 +10,8 @@
.btns{
height:40px;
display:flex;
padding:4px;
background-color: white;
flex-direction: row;
flex-wrap: wrap;
text-align:center;
@ -20,4 +22,7 @@
border-radius: 2px;
padding: 1px 4px;
}
.weui-article{
background-color: white;
padding: 24px 16px;
}

View File

@ -38,7 +38,7 @@ Page({
try {
const res = wx.getSystemInfoSync()
that.setData({
scrollHeight: res.windowHeight - 70
scrollHeight: res.windowHeight - 78
})
} catch (e) {
}

View File

@ -1,3 +1,4 @@
<view class="page">
<view class="head">
题量: {{tm_index+1}}/{{tmtotal}}
</view>
@ -62,4 +63,5 @@
<view style="width:50%">
<button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
</view>
</view>
</view>

View File

@ -8,6 +8,8 @@
.btns{
height:40px;
display:flex;
padding:4px;
background-color: white;
flex-direction: row;
flex-wrap: wrap;
text-align:center;
@ -18,4 +20,8 @@
border-radius: 2px;
padding: 1px 4px;
}
.weui-article{
background-color: white;
padding: 24px 16px;
}

View File

@ -47,7 +47,7 @@ Page({
try {
const res = wx.getSystemInfoSync()
that.setData({
scrollHeight: res.windowHeight - 70
scrollHeight: res.windowHeight - 78
})
} catch (e) {
}

View File

@ -1,3 +1,4 @@
<view class="page">
<view class="head">
<view style="width:50%">
倒计时
@ -68,4 +69,5 @@
<view style="width:25%">
<a class="weui-btn weui-btn_mini weui-btn_warn" bindtap="hand">交卷</a>
</view>
</view>
</view>

View File

@ -1,3 +1,4 @@
.head{
width:100%;
height:30px;
@ -10,9 +11,11 @@
.btns{
height:40px;
display:flex;
padding: 4px;
flex-direction: row;
flex-wrap: wrap;
text-align:center;
background-color: white;
}
.txlabel{
color:#fff;
@ -20,4 +23,8 @@
border-radius: 2px;
padding: 1px 4px;
}
.weui-article{
background-color: white;
padding: 24px 16px;
}

View File

@ -21,22 +21,21 @@
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useMultiFrameRuntime": false,
"useApiHook": false,
"useApiHostProcess": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"useApiHostProcess": false
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.15.0",

View File

@ -34,7 +34,7 @@ def exportw_test(obj, bool):
"""
导出个人考试记录word版本
"""
filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer.name + '-' + obj.consumer.username + '.docx'
filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer.name + '-' + obj.consumer.id + '.docx'
path = '/media/export/' + filename
fullpath = BASE_DIR + path
if bool or (not os.path.exists(fullpath)):