lhl 2 éve
szülő
commit
6dd3510083
1 módosított fájl, 5 hozzáadás és 12 törlés
  1. 5 12
      pagesD/pages/product/product.vue

+ 5 - 12
pagesD/pages/product/product.vue

@@ -66,8 +66,8 @@
 		</view>
 		<view v-if="ifpeon" class="sel">
 			<view>
-				<u-checkbox-group size='35rpx' active-color="green" @change="checkboxChange(tarp)">
-					<u-checkbox v-model="tarpty" shape="circle" :checked="isChecked"></u-checkbox>
+				<u-checkbox-group size='35rpx' active-color="green" @change="checkboxChange">
+					<u-checkbox name='tgxy' shape="circle" :checked="isChecked"></u-checkbox>
 				</u-checkbox-group>
 			</view>
 			<text class="text" @click="goContract(partyinfo.id, 2)">
@@ -246,7 +246,7 @@
 				parttext: '',
 				isChecked: false,
 				tarptyshow: false,
-				tarpty: false,
+				tarpty: '',
 				partyinfo: {},
 				ifpeon: false,
 				primary: this.$theme.primary,
@@ -305,14 +305,7 @@
 		},
 		methods: {
 			checkboxChange(e) {
-			
-				if (this.tarp == 1) {
-					this.tarp = 2
-					this.tarpty = true
-				} else {
-					this.tarpty = false
-					this.tarp = 1
-				}
+				this.tarpty = e
 			},
 			goContract(id, type) {
 				console.log(id,type,'kkkkkk')
@@ -511,7 +504,7 @@
 			buy(e) {
 				let that = this;
 				if(that.ifpeon) {
-					if (!this.tarpty) {
+					if (this.tarpty[0]!='tgxy') {
 						this.$api.msg(`请同意${that.partyinfo.name}`);
 						return;
 					}