导出考试证书文档不需要注册
This commit is contained in:
parent
da759ba21f
commit
c11536eae9
|
@ -1,3 +1,4 @@
|
|||
|
||||
<view class="head">
|
||||
|
||||
{{count}}条资讯</view>
|
||||
|
|
|
@ -77,7 +77,7 @@ Page({
|
|||
try {
|
||||
const res = wx.getSystemInfoSync()
|
||||
that.setData({
|
||||
scrollHeight: res.windowHeight - 70
|
||||
scrollHeight: res.windowHeight - 78
|
||||
})
|
||||
} catch (e) {}
|
||||
},
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<view class="page">
|
||||
<view class="head">
|
||||
<view style="width:50%">
|
||||
<span style="margin-left:10px">题量: {{tm_index+1}}/{{tmtotal}}</span>
|
||||
|
@ -93,3 +94,4 @@
|
|||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ Page({
|
|||
try {
|
||||
const res = wx.getSystemInfoSync()
|
||||
that.setData({
|
||||
scrollHeight: res.windowHeight - 70
|
||||
scrollHeight: res.windowHeight - 78
|
||||
})
|
||||
} catch (e) {
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<view class="page">
|
||||
<view class="head">
|
||||
题量: {{tm_index+1}}/{{tmtotal}}
|
||||
</view>
|
||||
|
@ -63,3 +64,4 @@
|
|||
<button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ Page({
|
|||
try {
|
||||
const res = wx.getSystemInfoSync()
|
||||
that.setData({
|
||||
scrollHeight: res.windowHeight - 70
|
||||
scrollHeight: res.windowHeight - 78
|
||||
})
|
||||
} catch (e) {
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<view class="page">
|
||||
<view class="head">
|
||||
<view style="width:50%">
|
||||
倒计时
|
||||
|
@ -69,3 +70,4 @@
|
|||
<a class="weui-btn weui-btn_mini weui-btn_warn" bindtap="hand">交卷</a>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)):
|
||||
|
|
Loading…
Reference in New Issue