动态添加轮播图、修改培训内容

main
hcj 5 months ago
parent 15a8bb0cdc
commit 87a2cf304b
  1. 113
      pages/index/testtraining/teacherDetail.vue
  2. 22
      pages/index/testtraining/testtraining.vue
  3. 2
      utils/http.js

@ -57,7 +57,7 @@
</view> </view>
<view class="modelcontent1"> <view class="modelcontent1">
<view class="trainContent" v-for="item in trainMock" :key="item.time"> <view class="trainContent" v-for="item in teachTrainData" :key="item.time">
<view class="trainTime">{{item.time}}</view> <view class="trainTime">{{item.time}}</view>
<view class="trainItem"> <view class="trainItem">
<view class="throughLine"> <view class="throughLine">
@ -65,7 +65,7 @@
</view> </view>
<view class="trainContext"> <view class="trainContext">
<view class="trainContextItem" v-for="(con,index) in item.content" :key="index"> <view class="trainContextItem" v-for="(con,index) in item.content" :key="index">
<text class="contextItemBlod">{{con.substring(0,3)}}</text><text>{{con.substring(3,con.length)}}</text> <text>{{con}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -291,66 +291,59 @@
</template> </template>
<script> <script>
const trainMock = [ const teachTrainData = [
{ {
time:"8月5号", time: "8月5号",
content:[ content: [
"全天:政府高校领导讲话。" "政府、高校领导行业动态分享。"
] ]
}, },
{ {
time:"8月6号", time: "8月6号",
content:[ content: [
"上午:根据《军用软件测试指南》、《军用软件开发文档通用要求》标准,熟悉配置项、单元测试标准内容,以及文档编写。", "结合《军用软件测试指南》、《军用软件开发文档通用要求》标准解读;系统级白盒测试工具(CuttleITE)讲解及项目实操。"
"下午:系统级白盒测试(CUTTLEITE)理论知识讲解,以及项目实操。" ]
] },
}, {
{ time: "8月7号",
time:"8月7号", content: [
content:[ "静态测试工具(EagleEye)和接口测试工具(Kinterface)讲解及项目实操。"
"上午:静态测试工具(EagleEye)知识理论讲解,以及项目实操。", ]
"下午:接口测试工具(Kinterface)知识理论讲解,以及项目实操。" },
] {
}, time: "8月8号",
{ content: [
time:"8月8号", "编写配置项测试大纲,进行文档审查、功能测试,编写测试用例;单元测试工具检查和验证最小可测试单元。"
content:[ ]
"上午:根据测试项目,编写项目测试大纲,在进行文档审查、功能测试,并编写项目测试用例。" , },
"下午:根据测试项目,通过单元测试工具对代码的最小可测试单元进行检查和验证,以确保其功能正常。" {
] time: "8月9号",
}, content: [
{ "配置项性能测试、边界测试、恢复性测试、安装性测试、余量测试并编写测试用例;单元文档审查、代码审查、静态分析、单元测试环境配置。"
time:"8月9号", ]
content:[ },
"上午:根据测试项目,进行性能测试、边界测试、恢复性测试、安装性测试、余量测试,并编写项目测试用例。", {
"下午:根据测试项目,进行文档审查、代码审查、静态分析、单元测试的测试环境配置。" time: "8月10号",
] content: [
}, "配置项容量测试、强度测试、人机交互界面测试、安全性测试以及测试用例编写;单元测试用例设计、执行、问题记录与处理。"
{ ]
time:"8月10号", },
content:[ {
"上午:根据测试项目,进行容量测试、强度测试、人机交互界面测试、安全性测试.并编写项目测试用例。", time: "8月11号",
"下午:根据测试项目,进行单元测试用例设计、单元测试的执行、问题的记录和处理。" content: [
] "配置项可靠性测试、兼容性测试、互操作性测试,编写项目测试用例、回归测试报告、项目测试报告;单元测试计划、说明编写、测试报告编写。"
}, ]
{ }
time:"8月11号", ]
content:[
"上午:根据测试项目,进行可靠性测试、兼容性测试、互操作性测试,编写项目测试用例,编写项目回归测试报告、项目测试报告。",
"下午:根据测试项目,进行测试计划编写、测试说明编写、测试报告编写。"
]
},
]
export default { export default {
data() { data() {
return { return {
tokenshow: false, tokenshow: false,
trainMock:trainMock teachTrainData:teachTrainData
}; };
}, },
methods: { methods: {
gosign() { gosign() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/testtraining/teacherSign' url: '/pages/index/testtraining/teacherSign'
}) })
@ -563,9 +556,9 @@
.circle1 { .circle1 {
position: absolute; position: absolute;
top: 12rpx; top: 12rpx;
left: -4rpx; left: -9rpx;
width: 11rpx; width: 20rpx;
height: 11rpx; height: 20rpx;
background: #F8F9FA; background: #F8F9FA;
border-radius: 50%; border-radius: 50%;
border: 2px solid #1B68DE; border: 2px solid #1B68DE;
@ -574,9 +567,9 @@
.circle2 { .circle2 {
position: absolute; position: absolute;
top: 170rpx; top: 170rpx;
left: -4rpx; left: -9rpx;
width: 11rpx; width: 20rpx;
height: 11rpx; height: 20rpx;
background: #F8F9FA; background: #F8F9FA;
border-radius: 50%; border-radius: 50%;
border: 2px solid #1B68DE; border: 2px solid #1B68DE;

@ -625,8 +625,6 @@
'http://image.bjkeyware.com/static/index/renliwb/627teacherbg2.png', 'http://image.bjkeyware.com/static/index/renliwb/627teacherbg2.png',
'http://image.bjkeyware.com/static/index/renliwb/newtrainbanner08.png', 'http://image.bjkeyware.com/static/index/renliwb/newtrainbanner08.png',
'http://image.bjkeyware.com/static/index/renliwb/newtrainbanner082.png', 'http://image.bjkeyware.com/static/index/renliwb/newtrainbanner082.png',
], ],
model1Data: [{ model1Data: [{
id: 1, id: 1,
@ -980,6 +978,7 @@
// //
this.getClassList() this.getClassList()
this.getTeacherList() this.getTeacherList()
this.getSwiperImages()
uni.onKeyboardHeightChange(this.onKeyboardHeightChange); uni.onKeyboardHeightChange(this.onKeyboardHeightChange);
}, },
onUnload() { onUnload() {
@ -1006,11 +1005,26 @@
} }
}, },
methods: { methods: {
getSwiperImages(){
this.http.quickGet(`/train/banners?type=app`).then(res => {
this.swipelist = res.data.data.map(item=>{
return {
'classType':item.classType,
'image':this.http.baseUrl + item.filePath
}
})
console.log(this.swipelist);
})
},
bgClick(e) { bgClick(e) {
if (e == 0) { const type = this.swipelist[e].classType
console.log(e);
console.log(this.swipelist);
console.log(type);
if (type === "0") {
this.openDialog() this.openDialog()
} }
if (e == 1) { if (type == 3) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/testtraining/teacherDetail' url: '/pages/index/testtraining/teacherDetail'
}) })

@ -1,7 +1,7 @@
import comstemutil from "./comstemutil"; import comstemutil from "./comstemutil";
//es6 //es6
// const baseUrl = 'http://192.168.0.229:9999'; // const baseUrl = 'http://192.168.0.230:9999';
const baseUrl = 'https://www.bjkeyware.com/test-api'; const baseUrl = 'https://www.bjkeyware.com/test-api';
// const baseUrl = 'https://www.bjkeyware.com/prod-api'; // const baseUrl = 'https://www.bjkeyware.com/prod-api';

Loading…
Cancel
Save