color change

This commit is contained in:
caoqianming 2020-03-27 17:12:53 +08:00
parent c5905e8425
commit ce2fa09fc5
7 changed files with 20 additions and 38 deletions

View File

@ -118,7 +118,7 @@
<span>{{ scope.row.create_time }}</span> <span>{{ scope.row.create_time }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作"> <el-table-column align="center" label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"

View File

@ -7,8 +7,7 @@
<span class="txlabel">{{tm_current.type}}</span> <span class="txlabel">{{tm_current.type}}</span>
</view> </view>
<view style="text-align:center"> <view style="text-align:center">
<span style="color:drakblue;font-weight:bold;font-size:14px">{{tm_current.questioncat_name}}(</span> <span style="color:drakblue;font-weight:bold;font-size:14px">{{tm_current.questioncat_name}}</span>
<span style="color:orange;font-weight:bold;font-size:14px">{{tm_current.dtime}})</span>
</view> </view>
<view class="weui-article__title">{{tm_current.name}}</view> <view class="weui-article__title">{{tm_current.name}}</view>
</view> </view>

View File

@ -7,8 +7,10 @@
<span class="txlabel">{{currentTm.type}}</span> <span class="txlabel">{{currentTm.type}}</span>
</view> </view>
<view style="text-align:center"> <view style="text-align:center">
<span style="color:drakblue;font-weight:bold;font-size:14px">{{currentTm.questioncat_name}}(</span> <span style="color:drakblue;font-weight:bold;font-size:14px">{{currentTm.questioncat_name}}</span>
<span style="color:orange;font-weight:bold;font-size:14px">{{currentTm.dtime}})</span> (
<span style="color:orange;font-weight:bold;font-size:14px">{{currentTm.dtime}}</span>
)
</view> </view>
<view class="weui-article__title">{{currentTm.name}}</view> <view class="weui-article__title">{{currentTm.name}}</view>
</view> </view>

View File

@ -10,10 +10,11 @@ Page({
questioncat: null, questioncat: null,
tms: [], tms: [],
ydtms: [], ydtms: [],
ydtms_old:[],
ctms: [], ctms: [],
tm_index: 0, tm_index: 0,
answerP: false, answerP: false,
isLoad: true, page:1
}, },
radioChange: function(e) { radioChange: function(e) {
var that = this var that = this
@ -42,6 +43,7 @@ Page({
var value = wx.getStorageSync('cat' + that.data.questioncat.toString()) var value = wx.getStorageSync('cat' + that.data.questioncat.toString())
if (value) { if (value) {
that.data.ydtms = value that.data.ydtms = value
that.data.ydtms_old = value
} }
} catch (e) {} } catch (e) {}
try { try {
@ -62,31 +64,14 @@ Page({
var that = this var that = this
var query = { var query = {
questioncat: that.data.questioncat, questioncat: that.data.questioncat,
ydtms: that.data.ydtms ydtms: that.data.ydtms_old
} }
api.request('question/question/exercise/', 'POST', query).then(res => { api.request('question/question/exercise/?limit=10&page='+that.data.page, 'POST', query).then(res => {
if (res.data.results.length == 0) {
wx.showModal({
title: '提示',
content: '无更多新题,返回重新开始',
showCancel: false,
success: function(res) {
if (res.confirm) {
wx.navigateBack({})
}
}
})
} else {
that.data.tms = that.data.tms.concat(res.data.results) that.data.tms = that.data.tms.concat(res.data.results)
that.showTm(that.data.tm_index) //展示题目和答案 that.showTm(that.data.tm_index) //展示题目和答案
if (that.data.isLoad) { that.setData({
that.setData({ tmtotal: res.data.count,
tmtotal: res.data.total, })
})
that.data.isLoad = false
}
}
}) })
}, },
/** /**
@ -194,6 +179,7 @@ Page({
answerP: false answerP: false
}) })
if (tm_index + 1 > that.data.tms.length) { if (tm_index + 1 > that.data.tms.length) {
that.data.page = that.data.page + 1
that.getTms() that.getTms()
} else { } else {
that.showTm(tm_index) that.showTm(tm_index)

View File

@ -124,7 +124,7 @@ Page({
}) })
}else{ }else{
wx.showToast({ wx.showToast({
title: '未开通权限\r\n请联系顾问师圆', title: '未开通权限\r\n请联系课程顾问',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
@ -137,7 +137,7 @@ Page({
}) })
} else { } else {
wx.showToast({ wx.showToast({
title: '未开通权限\r\n请联系顾问师圆', title: '未开通权限\r\n请联系课程顾问',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })

View File

@ -11,12 +11,11 @@
<view style="color:blue;font-weight:bold;text-align:center"> <view style="color:blue;font-weight:bold;text-align:center">
欢迎使用中科辐射学堂! 欢迎使用中科辐射学堂!
<view style="color:orange;font-weight:bold"> <view style="color:orange;font-weight:bold">
<view >如有疑问请联系顾问师圆</view> <view >开通权限请联系课程顾问师老师</view>
<view >18355135390(微信同号)</view> <view >18355135390(微信同号)</view>
</view> </view>
</view> </view>
</view> </view>
<view class="weui-cells__title">练习</view>
<view class="weui-cells weui-cells_after-title"> <view class="weui-cells weui-cells_after-title">
<view class="weui-grids"> <view class="weui-grids">
<a class="weui-grid" bindtap="goLianxi"> <a class="weui-grid" bindtap="goLianxi">
@ -37,11 +36,7 @@
</view> </view>
<view class="weui-grid__label">收藏集</view> <view class="weui-grid__label">收藏集</view>
</navigator> </navigator>
</view>
</view>
<view class="weui-cells__title">考试</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-grids">
<a class="weui-grid" bindtap="goMoni"> <a class="weui-grid" bindtap="goMoni">
<view class="weui-grid__icon"> <view class="weui-grid__icon">
<image src="/images/moni.svg" alt></image> <image src="/images/moni.svg" alt></image>

View File

@ -50,7 +50,7 @@
</view> </view>
<view class="weui-footer weui-footer_fixed-bottom"> <view class="weui-footer weui-footer_fixed-bottom">
<!-- <view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view> --> <!-- <view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view> -->
<view class="weui-footer__text">更多服务请联系顾问师圆:18355135390</view> <view class="weui-footer__text">更多服务请联系课程顾问师老师:18355135390</view>
</view> </view>