he2802 3 år sedan
förälder
incheckning
85fbb2eb6d
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      pages2/order/confirm_pay.vue

+ 6 - 2
pages2/order/confirm_pay.vue

@@ -35,7 +35,7 @@
 				</view>
 			</view>
 		</view>
-		<button class="bottomBtn" @click="pay()" >确认支付</button>
+		<button class="bottomBtn" @click="pay()" :disabled="btnNo">确认支付</button>
 	</view>
 	
 </template>
@@ -60,7 +60,8 @@ export default {
 			array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
 			current:0,
 			menuIndex:0,
-			value:'wepay'
+			value:'wepay',
+			btnNo:false
 		};
 	},
 	onPullDownRefresh(){
@@ -102,7 +103,9 @@ export default {
 					}
 			}
 			let data = {goodsList:list}
+			
 			this.$api.placeSmallOrder(data).then(res => {
+				self.btnNo = false
 				if(res.data.code==200){
 					let data = res.data.data
 					uni.requestPayment({
@@ -141,6 +144,7 @@ export default {
 		},
 		pay(){
 			let self = this
+			this.btnNo = true
 			uni.login({
 				provider: 'weixin',
 				success: function(loginRes) {