From cb623fcefa72d5b54b1e536aa84c3f3851743975 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 20 十一月 2024 11:01:43 +0800
Subject: [PATCH] update 打印可能的空白(不能确定是不是纸张大小超出还是空数据的问题,已经提交了

---
 pages/order/comment/order-comment.vue |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/pages/order/comment/order-comment.vue b/pages/order/comment/order-comment.vue
index 0364914..b0f07e4 100644
--- a/pages/order/comment/order-comment.vue
+++ b/pages/order/comment/order-comment.vue
@@ -113,6 +113,20 @@
 
 		},
 		methods: {
+			// 改变匿名状态
+			changeAnonyMity(item){
+				//如果item.anonymityFalg 不存在,则为0,如果点击则为相反数
+				item.anonymityFalg=item.anonymityFalg==1?0:1
+				return item.anonymityFalg
+				// if(item.anonymityFalg){
+				// 	item.anonymityFalg=!item.anonymityFalg
+				// 	return item.anonymityFalg
+				// }else{
+				// 	item.anonymityFalg=0
+				// 	item.anonymityFalg=!item.anonymityFalg
+				// 	return item.anonymityFalg
+				// }
+			},
 			
 			async submitCommit(){
 				console.log("提交评价")
@@ -650,13 +664,16 @@
 						<u-col span="12" >
 							<view class="comment-content-div">
 								
-								<view  class="comment-content-div">
-									<u-radio-group v-model="item.anonymityFalg" :labelSize="10">
+								<view  class="comment-content-div flex ">
+									<!-- <u-radio-group v-model="item.anonymityFalg" :labelSize="10">
 										<u-radio  label="匿名" :name="1"></u-radio>
-									</u-radio-group>
+									</u-radio-group> -->
+									<view :style="{'margin-top': '5rpx','margin-right': '12rpx','font-size':'24rpx'}"
+										@click="changeAnonyMity(item)" class="component-radio" :class="[item.anonymityFalg?'cur':'']" ></view>
+										匿名
 								</view>
 								<view  class="comment-content-div">
-									<u--textarea v-model="item.comment" placeholder="请输入内容"  count></u--textarea>
+									<u--textarea v-model="item.comment" placeholder="请输入内容"  count autoHeight  :height="150" ></u--textarea>
 								</view>
 								<view  class="comment-content-div">
 									<view class="component-button-upload" @click="uploadIcon(item,'image')"></view>

--
Gitblit v1.9.3