Commit e7ac4ff2 by zhanxin liu

fix

parent d0363ad7
......@@ -30,6 +30,12 @@
}
},
{
"path": "pages/Security-Check/security-checkitem",
"style": {
"navigationBarTitleText": "检查对象"
}
},
{
"path": "pages/Switch-School/index",
"style": {
"navigationBarTitleText": ""
......
<template>
<mescroll-body ref="mescrollRef" @init="mescrollInit" :down="downOption" :up="upOption" @down="downCallback" @up="upCallback">
<view class="news-li" v-for="(item,index) in dataList" :key="index">
<view>
<text>{{index}}.{{item.text}}</text>
</view>
<view style="display: flex;flex-direction: row; width: 100%;justify-content: space-between;">
<view style="display: flex;flex-direction: row;">
<view class="item-container" @click="itemClick(index,1)">
<view :class="item.status==1? 'selected' :'unselected' "></view>
<text>符合</text>
</view>
<view class="item-container" @click="itemClick(index,2)">
<view :class="item.status==2? 'selected' :'unselected' "></view>
<text>不符合</text>
</view>
<view class="item-container" @click="itemClick(index,3)">
<view :class="item.status==3? 'selected' :'unselected' "></view>
<text>不适用</text>
</view>
</view>
<view ><image @click="checkItem(item)" class="icon" src="../../static/security-check/safeEdit.png"></view>
</view>
</view>
</mescroll-body>
</template>
<script>
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
export default {
mixins: [MescrollMixin],
data() {
return {
downOption: {
auto: false //是否在初始化后,自动执行downCallback; 默认true
},
dataList: [{text:"问题",status:1},{text:"问题",status:1},{text:"问题",status:1},{text:"问题",status:1}],
upOption: {
use: false, // 是否启用上拉加载; 默认true
},
}
},
methods: {
/*下拉刷新的回调 */
downCallback() {
this.mescroll.endSuccess();
},
/*上拉加载的回调 */
upCallback(page) {
},
goDetail(){
uni.navigateTo({
url:"./select-checkobject"
})
},
itemClick(index,status){
this.dataList[index].status = status
},
checkItem(){
uni.navigateTo({
url:"./index"
})
}
}
}
</script>
<style>
/*说明*/
.notice{
font-size: 30upx;
padding: 40upx 0;
border-bottom: 1upx solid #eee;
text-align: center;
}
/*展示上拉加载的数据列表*/
.news-li{
font-size: 32upx;
padding: 32upx;
border-bottom: 1upx solid #eee;
}
.news-li .new-content{
font-size: 28upx;
margin-top: 10upx;
margin-left: 20upx;
color: #666;
}
.icon {
width:30rpx;
height:30rpx;
}
.top-container {
display: flex;
flex-direction: row;
align-items: center;
}
.hover{
opacity: 0.7;
}
.item-container{
display: flex;
flex-direction: row;
margin-right: 30rpx;
}
.selected {
width:40rpx;
height:40rpx;
background-color: #00CE47;
},
.unselected {
width:40rpx;
height:40rpx;
background-color: #FFFFFF;
border: 1rpx solid #00CE47 ;
}
</style>
<template>
<view class="content">
<text class="title">实验室名称:{{title}}</text>
<text class="title">位置</text>
<view class="location-container">
<text class="title">检查对象</text>
<view class="location-container" @click="showPicker">
<text class="title">{{location}}</text>
<image class="arrow-right" src="../../static/common/arrow_right_gray.png">
</view>
<text class="title">检查项类型</text>
<view class="location-container" @click="showPicker">
<text class="title">{{location}}</text>
<image class="arrow-right" src="../../static/common/arrow_right_gray.png">
</view>
<textarea class="detail" />
<button @click="onclick" class="camera-button">
<image class="camera" src="../../static/common/camera.png">
</button>
<button hover-class="submithover" @click="onSubmitClick" class="submit-button">
<text class="submittext">提交</text>
<text class="submittext">开始检查</text>
</button>
<Picker
mode="linkage"
......@@ -25,14 +25,12 @@
</template>
<script>
import ActionSheet from "@/components/actionsheet/actionsheet.vue"
import AddressSelect from "@/components/multi-select/cityChiden.vue"
import Picker from "@/components/w-picker/w-picker.vue";
export default {
data() {
return {
title: '虚拟仿真实验室',
location:"某个地址可能很长",
location:"",
showActionSheet: false,
maskClosable: true,
tips: "确认清空搜索历史吗?",
......@@ -59,6 +57,11 @@ import Picker from "@/components/w-picker/w-picker.vue";
console.log(data)
},
onSubmitClick(){
uni.navigateTo({
url:"security-checkitem"
})
},
showPicker(){
this.$refs.picker.show()
}
......
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