|
|
@@ -0,0 +1,297 @@
|
|
|
+<template>
|
|
|
+ <view class="entrapment">
|
|
|
+ <view class="entrapment-card">
|
|
|
+ <view class="entrapment-card__header">
|
|
|
+ <view class="entrapment-card__title">诱捕器1</view>
|
|
|
+ <view class="entrapment-card__update">
|
|
|
+ <uni-icons type="loop" color="#1B76FF"></uni-icons>
|
|
|
+ <text class="text">更新</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__list">
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small" @click="handleEditEntrapmentInfo"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-card__item">
|
|
|
+ <view class="entrapment-card__text">1236587781<text class="status">(已填报)</text></view>
|
|
|
+ <view class="entrapment-card__btn">
|
|
|
+ <u-button type="primary" text="填写" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <u-popup :show="show" @close="close" @open="open" :closeOnClickOverlay="true">
|
|
|
+ <view class="entrapment-form">
|
|
|
+ <view class="entrapment-form__header">
|
|
|
+ <view class="entrapment-form__card">诱捕器:K2654114</view>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-form__form">
|
|
|
+ <!-- 注意,如果需要兼容微信小程序,最好通过setRules方法设置rules规则 -->
|
|
|
+ <u--form labelPosition="left" :model="entrapmentFormModel" ref="entrapmentForm">
|
|
|
+ <u-form-item label="" prop="userInfo.name" borderBottom ref="item1">
|
|
|
+ <view class="entrapment-form__item">
|
|
|
+ <view class="entrapment-form__label">
|
|
|
+ <image src="@/static/image/task/pest/pest.png" mode="aspectFit" class="icon">
|
|
|
+ </image>
|
|
|
+ <text class="text">有害生物</text>
|
|
|
+ <view class="fill-icon">
|
|
|
+ <uni-icons type="arrowright" size="12" color="#fff"></uni-icons>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- <u--input border="none">
|
|
|
+ <template slot="prefix">
|
|
|
+ <image src="../../../static/logo.png" mode="aspectFit" class="icon"></image>
|
|
|
+ </template>
|
|
|
+ <template slot="suffix">
|
|
|
+ <text>头</text>
|
|
|
+ </template>
|
|
|
+ </u--input> -->
|
|
|
+ <view class="entrapment-form__close">
|
|
|
+ <uni-icons type="clear" ></uni-icons>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-form-item>
|
|
|
+ </u--form>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-form__content">
|
|
|
+ <view class="entrapment-form__content__btn">
|
|
|
+ <u-button type="primary" :plain="true" icon="plus" text="增加" size="small"></u-button>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-form__actions">
|
|
|
+ <view class="entrapment-form__action green">
|
|
|
+ <image src="@/static/image/task/pest/pest-none.png" mode="aspectFit" class="img"></image>
|
|
|
+ <text class="text">无虫</text>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-form__action pink">
|
|
|
+ <image src="@/static/image/task/pest/bring.png" mode="aspectFit" class="img"></image>
|
|
|
+ <text class="text">带回</text>
|
|
|
+ </view>
|
|
|
+ <view class="entrapment-form__action blue">
|
|
|
+ <image src="@/static/image/task/pest/submit.png" mode="aspectFit" class="img"></image>
|
|
|
+ <text class="text">提交</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ show: false,
|
|
|
+ entrapmentFormModel: {
|
|
|
+ pestList: []
|
|
|
+ },
|
|
|
+ rules: {},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ open() {
|
|
|
+ console.log('open');
|
|
|
+ },
|
|
|
+ close() {
|
|
|
+ this.show = false
|
|
|
+ console.log('close');
|
|
|
+ },
|
|
|
+ handleEditEntrapmentInfo() {
|
|
|
+ this.show = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .entrapment {
|
|
|
+ padding: 40rpx 24rpx;
|
|
|
+
|
|
|
+ .entrapment-card {
|
|
|
+ &__header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #1B76FF;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ margin-bottom: 28rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__update {
|
|
|
+ .text {
|
|
|
+ margin-left: 10rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__list {
|
|
|
+ margin-bottom: 36rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 24rpx 0;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 22px;
|
|
|
+ color: #333;
|
|
|
+ font-weight: 400;
|
|
|
+
|
|
|
+ @include hairline-bottom(rgba(151, 151, 151, 0.09));
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ @include hairline-bottom(transparent);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__text {
|
|
|
+ .status {
|
|
|
+ color: #1B76FF;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .entrapment-form {
|
|
|
+ &__header {
|
|
|
+ width: 540rpx;
|
|
|
+ height: 144rpx;
|
|
|
+ border-radius: 70rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-top: -72rpx;
|
|
|
+ background-image: url(~@/static/image/task/pest/bg.png);
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__card {
|
|
|
+ padding: 0 68rpx;
|
|
|
+ height: 100%;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 72px;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__form {
|
|
|
+ margin-top: -30rpx;
|
|
|
+ padding: 76rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ border-bottom: 1px solid rgba(2, 2, 2, 0.3);
|
|
|
+ }
|
|
|
+
|
|
|
+ &__item {
|
|
|
+ position: relative;
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 20rpx 24rpx;
|
|
|
+ background: #F8F8F8;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
+
|
|
|
+ .icon {
|
|
|
+ width: 38rpx;
|
|
|
+ height: 38rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__label {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .icon {
|
|
|
+ width: 50rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 18px;
|
|
|
+ color: #555555;
|
|
|
+ margin: 0 24rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fill-icon {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ width: 26rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ background-color: #1B76FF;
|
|
|
+ border-radius: 50%;
|
|
|
+ line-height: 26rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__content {
|
|
|
+ padding: 36rpx 76rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__actions {
|
|
|
+ padding: 140rpx 30rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ &__action {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: #4CD964;
|
|
|
+ box-shadow: 0px 1px 9px 0px rgba(169, 169, 169, 0.5);
|
|
|
+
|
|
|
+ .img {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text {
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__close {
|
|
|
+ position: absolute;
|
|
|
+ padding: 20rpx;
|
|
|
+ right: -60rpx;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|