From f07b70558d5b84f1070470229037629bc1ace006 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期六, 22 六月 2024 14:39:30 +0800
Subject: [PATCH] 接口对接

---
 policy/components/popup.vue |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/policy/components/popup.vue b/policy/components/popup.vue
index 8c34dc4..f4114b8 100644
--- a/policy/components/popup.vue
+++ b/policy/components/popup.vue
@@ -7,32 +7,36 @@
 			<view class="border"></view>
 			<view class="padding">
 				<view>
-					<u-radio-group  placement="row">
-						<u-radio active-color="#3EB47A" label="閫氳繃" name="3"></u-radio>
-						<u-radio active-color="#3EB47A" label="鎷掔粷" name="3"></u-radio>
+					<u-radio-group  placement="row" v-model="form.checkStatus">
+						<u-radio active-color="#3EB47A" label="閫氳繃" name="1"></u-radio>
+						<u-radio active-color="#3EB47A" label="鎷掔粷" name="-1"></u-radio>
 					</u-radio-group>
 				</view>
 				<view class="margin-top">
-					<u-textarea  placeholder="璇疯緭鍏ユ嫆缁濈悊鐢�..."></u-textarea>
+					<u-textarea  placeholder="璇疯緭鍏ユ嫆缁濈悊鐢�..." v-model="form.checkReason"></u-textarea>
 				</view>
 			</view>
 			<view class="down">
 				<view class="cancel button" @click="close">鍙栨秷</view>
-				<view class="enter" @entery="entery">纭</view>
+				<view class="enter" @click="entery">纭</view>
 			</view>
 		</view>
 	</u-popup>
 </template>
 
 <script>
+	 
 	export default {
 		data() {
 			return {
-				show: false
+				show: false,
+				id: '',
+				form: {}
 			}
 		},
 		methods: {
-			open() {
+			open(id) {
+				this.form = {}
 				this.show = true
 			},
 			close(){
@@ -40,7 +44,14 @@
 				this.$emit('cancel')
 			},
 			entery(){
-				this.$emit('entery')
+				if(this.form.checkStatus == -1 && !this.form.checkReason) {
+					uni.showToast({
+						title: '璇疯緭鍏ユ嫆缁濈悊鐢�',
+						icon: 'none'
+					})
+					return
+				}
+				this.$emit('entery', this.form)
 			}
 		}
 	}

--
Gitblit v1.9.1