Commit 39a0da0c authored by Facius's avatar Facius Committed by Damon

feat: 选择题库-添加页面

parent e4daab1b
...@@ -64,6 +64,16 @@ ...@@ -64,6 +64,16 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
},
{
"path": "addExam",
"name": "learnAddExam",
"style": {
"navigationBarTitleText": "选择题库",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
} }
] ]
}, },
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<view class="select-category"> <view class="select-category">
<u-navbar <u-navbar
back-icon-color="#333333" back-icon-color="#333333"
background="#FFFFFF" background="transparent"
title="题库选择" title="题库选择"
titleColor="#191C27" titleColor="#191C27"
:border-bottom="false" :border-bottom="false"
title-bold title-bold
></u-navbar> ></u-navbar>
<!-- 标签列表 --> <!-- 标签列表 -->
<view class="elect-category-content"> <view class="select-category-content">
<view v-for="(item, key) in labels" :key="key" class="label-list"> <view v-for="(item, key) in labels" :key="key" class="label-list">
<view class="label-title" v-if="key == secondKey"> <view class="label-title" v-if="key == secondKey">
<!-- 品类title --> <!-- 品类title -->
...@@ -82,7 +82,6 @@ export default { ...@@ -82,7 +82,6 @@ export default {
// 选中标签 // 选中标签
handleClick(key, label) { handleClick(key, label) {
this.selected[key] = label this.selected[key] = label
console.log('------handleClick--------')
if (key == key1) { if (key == key1) {
// 选中一级标签 // 选中一级标签
this.selected[key2] = {} // 清空选二级标签 this.selected[key2] = {} // 清空选二级标签
...@@ -91,8 +90,11 @@ export default { ...@@ -91,8 +90,11 @@ export default {
// 选中二级标签 // 选中二级标签
this.$u.route({ this.$u.route({
type: 'redirect', type: 'redirect',
url: 'pages/learn/select-add', url: 'pages/learn/addExam',
param: {}, params: {
name: '金属冶炼(有色金属冶炼<除铜、铝、铅、锌之外的其他有色金属>',
id: '888',
},
}) })
} }
}, },
...@@ -115,7 +117,6 @@ export default { ...@@ -115,7 +117,6 @@ export default {
// this.labels[key] = res.data || []; // this.labels[key] = res.data || [];
for (var i = 0; i < 10; i++) { for (var i = 0; i < 10; i++) {
console.log(i)
// 测试模拟多条数据 // 测试模拟多条数据
this.labels[key].push({ this.labels[key].push({
name: '特种作业人员', name: '特种作业人员',
...@@ -139,13 +140,14 @@ export default { ...@@ -139,13 +140,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.select-category { .select-category {
background-color: #f4f5f7;
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #f4f5f7; background-color: #f8fafd;
background-image: linear-gradient(to top, #f8fafd 0%, #e9f3ff 50%);
.elect-category-content { background-size: 100% 520rpx;
background-repeat: no-repeat;
.select-category-content {
padding: 0 0 30rpx 24rpx; padding: 0 0 30rpx 24rpx;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment