导出考试证书文档不需要注册
This commit is contained in:
parent
da759ba21f
commit
c11536eae9
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<view class="head">
|
<view class="head">
|
||||||
|
|
||||||
{{count}}条资讯</view>
|
{{count}}条资讯</view>
|
||||||
|
|
|
@ -77,7 +77,7 @@ Page({
|
||||||
try {
|
try {
|
||||||
const res = wx.getSystemInfoSync()
|
const res = wx.getSystemInfoSync()
|
||||||
that.setData({
|
that.setData({
|
||||||
scrollHeight: res.windowHeight - 70
|
scrollHeight: res.windowHeight - 78
|
||||||
})
|
})
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<view class="page">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view style="width:50%">
|
<view style="width:50%">
|
||||||
<span style="margin-left:10px">题量: {{tm_index+1}}/{{tmtotal}}</span>
|
<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>
|
<image style="height: 80%;" src="/images/weishoucang.svg" bindtap="shoucang" wx:else></image>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
|
@ -10,6 +10,8 @@
|
||||||
.btns{
|
.btns{
|
||||||
height:40px;
|
height:40px;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
padding:4px;
|
||||||
|
background-color: white;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
@ -20,4 +22,7 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 1px 4px;
|
padding: 1px 4px;
|
||||||
}
|
}
|
||||||
|
.weui-article{
|
||||||
|
background-color: white;
|
||||||
|
padding: 24px 16px;
|
||||||
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ Page({
|
||||||
try {
|
try {
|
||||||
const res = wx.getSystemInfoSync()
|
const res = wx.getSystemInfoSync()
|
||||||
that.setData({
|
that.setData({
|
||||||
scrollHeight: res.windowHeight - 70
|
scrollHeight: res.windowHeight - 78
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<view class="page">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
题量: {{tm_index+1}}/{{tmtotal}}
|
题量: {{tm_index+1}}/{{tmtotal}}
|
||||||
</view>
|
</view>
|
||||||
|
@ -62,4 +63,5 @@
|
||||||
<view style="width:50%">
|
<view style="width:50%">
|
||||||
<button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
|
<button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
|
@ -8,6 +8,8 @@
|
||||||
.btns{
|
.btns{
|
||||||
height:40px;
|
height:40px;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
padding:4px;
|
||||||
|
background-color: white;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
@ -18,4 +20,8 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 1px 4px;
|
padding: 1px 4px;
|
||||||
}
|
}
|
||||||
|
.weui-article{
|
||||||
|
background-color: white;
|
||||||
|
padding: 24px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Page({
|
||||||
try {
|
try {
|
||||||
const res = wx.getSystemInfoSync()
|
const res = wx.getSystemInfoSync()
|
||||||
that.setData({
|
that.setData({
|
||||||
scrollHeight: res.windowHeight - 70
|
scrollHeight: res.windowHeight - 78
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<view class="page">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view style="width:50%">
|
<view style="width:50%">
|
||||||
倒计时
|
倒计时
|
||||||
|
@ -68,4 +69,5 @@
|
||||||
<view style="width:25%">
|
<view style="width:25%">
|
||||||
<a class="weui-btn weui-btn_mini weui-btn_warn" bindtap="hand">交卷</a>
|
<a class="weui-btn weui-btn_mini weui-btn_warn" bindtap="hand">交卷</a>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
.head{
|
.head{
|
||||||
width:100%;
|
width:100%;
|
||||||
height:30px;
|
height:30px;
|
||||||
|
@ -10,9 +11,11 @@
|
||||||
.btns{
|
.btns{
|
||||||
height:40px;
|
height:40px;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
padding: 4px;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
.txlabel{
|
.txlabel{
|
||||||
color:#fff;
|
color:#fff;
|
||||||
|
@ -20,4 +23,8 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 1px 4px;
|
padding: 1px 4px;
|
||||||
}
|
}
|
||||||
|
.weui-article{
|
||||||
|
background-color: white;
|
||||||
|
padding: 24px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,22 +21,21 @@
|
||||||
"checkSiteMap": true,
|
"checkSiteMap": true,
|
||||||
"uploadWithSourceMap": true,
|
"uploadWithSourceMap": true,
|
||||||
"compileHotReLoad": false,
|
"compileHotReLoad": false,
|
||||||
"useMultiFrameRuntime": true,
|
"useMultiFrameRuntime": false,
|
||||||
"useApiHook": true,
|
"useApiHook": false,
|
||||||
|
"useApiHostProcess": false,
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"bundle": false,
|
|
||||||
"useIsolateContext": true,
|
"useIsolateContext": true,
|
||||||
"useCompilerModule": true,
|
"useCompilerModule": true,
|
||||||
"userConfirmedUseCompilerModuleSwitch": false,
|
"userConfirmedUseCompilerModuleSwitch": false,
|
||||||
"userConfirmedBundleSwitch": false,
|
"userConfirmedBundleSwitch": false,
|
||||||
"packNpmManually": false,
|
"packNpmManually": false,
|
||||||
"packNpmRelationList": [],
|
"packNpmRelationList": [],
|
||||||
"minifyWXSS": true,
|
"minifyWXSS": true
|
||||||
"useApiHostProcess": false
|
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.15.0",
|
"libVersion": "2.15.0",
|
||||||
|
|
|
@ -34,7 +34,7 @@ def exportw_test(obj, bool):
|
||||||
"""
|
"""
|
||||||
导出个人考试记录word版本
|
导出个人考试记录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
|
path = '/media/export/' + filename
|
||||||
fullpath = BASE_DIR + path
|
fullpath = BASE_DIR + path
|
||||||
if bool or (not os.path.exists(fullpath)):
|
if bool or (not os.path.exists(fullpath)):
|
||||||
|
|
Loading…
Reference in New Issue