Pārlūkot izejas kodu

commit -m 支付修改

zhengjinyi 3 gadi atpakaļ
vecāks
revīzija
8f6f3154a1

+ 28 - 1
pages/user/order/order-payhlb.vue

@@ -76,6 +76,18 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
+		<!-- 弹窗提示 -->
+		<tui-modal
+			:show="modal"
+			@click="handleClick"
+			:content="contentModalText"
+			:button="modalButton"
+			color="#333"
+			:size="32"
+			shape="circle"
+			:maskClosable="false"
+		>
+		</tui-modal>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -118,6 +130,17 @@
 				payHttpUrl:'',
 				payHttpUrl:'',
 				mbOrderId:0, // 支付记录订单Id
 				mbOrderId:0, // 支付记录订单Id
 				modal:false,
 				modal:false,
+				contentModalText: '本次支付金额已超出微信支付限额,请输入小于5千的金额。', //操作文字提示语句
+				modalButton: [
+					{
+						text: '知道了',
+						customStyle: {
+							color: '#fff',
+							bgColor: 'linear-gradient(90deg, #F28F31 0%, #E15616 100%)'
+						},
+						plain: false
+					}
+				],
 			}
 			}
 		},
 		},
 		onLoad(option) {
 		onLoad(option) {
@@ -241,7 +264,7 @@
 			},
 			},
 			async MiniWxPayFor(){// 微信支付
 			async MiniWxPayFor(){// 微信支付
 				if(this.payAmount > 5000){
 				if(this.payAmount > 5000){
-					this.$util.modal('','本次支付金额已超出微信支付限额,请输入小于5千的金额进行支付','知道了','',false,() =>{})
+					this.modal = true
 					return
 					return
 				}
 				}
 				if(this.payAmount == 0){
 				if(this.payAmount == 0){
@@ -262,6 +285,9 @@
 				}
 				}
 				this.weChatMiniOrderWxPay(params)
 				this.weChatMiniOrderWxPay(params)
 			},
 			},
+			handleClick(){
+				this.modal = false
+			},
 			confirmEvent(value){//点击自定义键盘完成的回调函数
 			confirmEvent(value){//点击自定义键盘完成的回调函数
 				this.chechValue(value)
 				this.chechValue(value)
 				this.showDigitKeyboard = false
 				this.showDigitKeyboard = false
@@ -312,6 +338,7 @@
 				})
 				})
 				return stateText
 				return stateText
 			},
 			},
+			
 			hideTips(){//隐藏弹窗
 			hideTips(){//隐藏弹窗
 				this.isShowTip = false
 				this.isShowTip = false
 			},
 			},

+ 1 - 1
pages/user/order/order-payment.vue

@@ -120,7 +120,7 @@
 							<text class="iconfont icon-gantanhao-yuankuang"></text>
 							<text class="iconfont icon-gantanhao-yuankuang"></text>
 						</view>
 						</view>
 						<view class="pay-text">
 						<view class="pay-text">
-							<view>1.{{payStatusText}}</view>
+							<view>{{payStatusText}}</view>
 						</view>
 						</view>
 					</view>
 					</view>
 				</view>
 				</view>