fixbug
This commit is contained in:
parent
663c07276f
commit
6500aaaaf9
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: '辐射学堂',
|
title: '安建环培训考试平台',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
@ -12,5 +12,5 @@ module.exports = {
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
* @description Whether show the logo in sidebar
|
* @description Whether show the logo in sidebar
|
||||||
*/
|
*/
|
||||||
sidebarLogo: true
|
sidebarLogo: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,9 +70,9 @@ App({
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
userinfo: {}, // 服务器传回的消费者信息
|
userinfo: {}, // 服务器传回的消费者信息
|
||||||
//host: 'https://apitest.ahctc.cn',
|
host: 'https://apitest.ahctc.cn',
|
||||||
mediahost: 'https://apitest.ahctc.cn',
|
mediahost: 'https://apitest.ahctc.cn',
|
||||||
host: 'http://127.0.0.1:8000',
|
//host: 'http://127.0.0.1:8000',
|
||||||
//mediahost: 'http://127.0.0.1:8000',
|
//mediahost: 'http://127.0.0.1:8000',
|
||||||
token : '',
|
token : '',
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
|
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
|
||||||
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">
|
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">
|
||||||
<span>账号:</span>
|
<span>{{userinfo.role_name}}:</span>
|
||||||
<span style="font-weight:bold;">{{userinfo.username}}</span>
|
<span style="font-weight:bold;">{{userinfo.username}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-media-box__title" wx:else>账号:
|
<view class="weui-media-box__title" wx:else>账号:
|
||||||
|
|
|
@ -92,16 +92,31 @@ Page({
|
||||||
|
|
||||||
chooseWork: function (e) {
|
chooseWork: function (e) {
|
||||||
let work = e.currentTarget.dataset
|
let work = e.currentTarget.dataset
|
||||||
api.request(`/examtest/workscope/${work.id}/chose/`, 'GET').then(res => {
|
wx.showModal({
|
||||||
//选择工作类别
|
title: '提示',
|
||||||
// that.setData({
|
content: '确定修改工作类别吗?',
|
||||||
// workData:res.data
|
confirmText: '确定',
|
||||||
// })
|
cancelText: '取消',
|
||||||
getApp().globalData.userinfo.workscope = res.data.workscope
|
success: function (res) {
|
||||||
getApp().globalData.userinfo.workscope_name = res.data.workscope_name
|
if (res.confirm) {
|
||||||
wx.navigateBack({
|
api.request(`/examtest/workscope/${work.id}/chose/`, 'GET').then(res => {
|
||||||
})
|
//选择工作类别
|
||||||
|
// that.setData({
|
||||||
|
// workData:res.data
|
||||||
|
// })
|
||||||
|
wx.showToast({
|
||||||
|
title: '成功',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
getApp().globalData.userinfo.workscope = res.data.workscope
|
||||||
|
getApp().globalData.userinfo.workscope_name = res.data.workscope_name
|
||||||
|
wx.navigateBack({
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//wx.setStorageSync('nowWork', work)
|
//wx.setStorageSync('nowWork', work)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<view class="weui-media-box__bd">
|
<view class="weui-media-box__bd">
|
||||||
<h4 class="weui-media-box__title">{{item.name}}</h4>
|
<h4 class="weui-media-box__title">{{item.name}}</h4>
|
||||||
<view class="weui-media-box__desc">
|
<view class="weui-media-box__desc">
|
||||||
<span style="color:blue;border:1rpx solid blue;font-size:12px" wx:if="{{item.can_exam}}">公开可选</span>
|
<span style="color:blue;border:1rpx solid blue;font-size:10px" wx:if="{{item.can_exam}}">公开可选</span>
|
||||||
该类别下包含<span style="color:darkblue">{{item.questioncat.length}}</span>个科目
|
该类别下包含<span style="color:darkblue">{{item.questioncat.length}}</span>个科目
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue