Browse Source

关闭微信支付通道

zhengjinyi 8 months ago
parent
commit
e1ff44bc59

+ 2 - 1
components/cm-module/cart-components/index.vue

@@ -1460,7 +1460,8 @@ export default {
 				})
 			}
 			// 生成购买优惠券记录Id调用 apisMixins -> apiReceiveCoupon
-			this.apiWeChatCouponRecord({ userId: this.userId,couponId: coupon.couponId },coupon)
+			// this.apiWeChatCouponRecord({ userId: this.userId,couponId: coupon.couponId },coupon)
+            this.$api.navigateTo(`/pages/user/pay/card-coupon-under?amount=${coupon.moneyCouponPrice}`)
 		},
 		hideMobel() {
 			this.modal = false

+ 2 - 1
components/cm-module/cart-components/mixins/apisMixins.js

@@ -1,4 +1,5 @@
-import Vue from 'vue'
+import Vue from 'vue'
+import authorize from '@/common/config/authorize.js'
 const apisMixins = {
     methods: {
         apiUserClubCheckSku(params){

+ 2 - 1
pages/goods/product.vue

@@ -1176,7 +1176,8 @@ export default {
 					Um_Key_CouponId: `${coupon.couponId}`
 				})
 			}
-			this.createCouponRecord(coupon)
+            this.$api.navigateTo(`/pages/user/pay/card-coupon-under?amount=${coupon.moneyCouponPrice}`)
+			// this.createCouponRecord(coupon)
 		},
 		createCouponRecord(coupon) {
 			// 生成购买优惠券记录Id

+ 10 - 4
pages/user/member/member-pay.vue

@@ -44,7 +44,7 @@
 								<view class="item-checked"> <text class="iconfont icon-xiayibu"></text> </view>
 							</view>
 						</view>
-						<view class="pay-item" @click="tabClick(0)">
+<!-- 						<view class="pay-item" @click="tabClick(0)">
 							<view class="pay-item-cell">
 								<view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
 								<view class="item-texts"><text>微信支付</text></view>
@@ -55,7 +55,7 @@
 									></text>
 								</view>
 							</view>
-						</view>
+						</view> -->
 						<view class="pay-item" @click="tabClick(1)">
 							<view class="pay-item-cell">
 								<view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
@@ -177,7 +177,9 @@ export default {
 	},
 	methods: {
 		async initGetStotage(option) {
-			let data = JSON.parse(option.data)
+			let data = JSON.parse(option.data)
+            this.tabCurrentIndex = 3
+            this.tabClick(this.tabCurrentIndex)
 			this.payParams.vipRecordId = this.quickParams.vipRecordId = data.vipRecordId
 			this.handelPayMsg = data
 			this.PayOrderOnLineSwitch()
@@ -252,7 +254,11 @@ export default {
 				case 2: // 生成个人网银链接
 					this.handlePayOrderPayLink()
 					break
-				case 3: // 快捷支付
+				case 3: // 快捷支付
+                    if(!this.quickParams.quickPayBankNumber){
+                        this.$util.msg('请先添加快捷支付银行卡', 2000)
+                        return
+                    }
 					this.orderPayQuickPay()
 					break
 			}

+ 2 - 2
pages/user/pay/card-coupon-under.vue

@@ -10,7 +10,7 @@
 		<view class="container-cash clearfix" v-else>
 			<view class="container-wrapper">
 				<view class="pay-content">
-					<view class="pay-p"><text>待付金额</text></view>
+					<view class="pay-p"><text>优惠券支付金额:</text></view>
 					<view class="pay-money">
 						<text class="pay-sm">¥</text> <text class="pay-bg">{{ payableAmount | NumFormat }}</text>
 					</view>
@@ -51,7 +51,7 @@
                     	>请点击上方二维码,长按识别后输入待付金额金额付款。</view
                     > -->
 					<view class="text-content"
-						>请点击上方二维码,长按识别后添加采美客服,客服会为您推荐付款方式。</view
+						>请点击上方二维码,长按识别后添加采美客服,客服会为您推荐付款方式,付款后系统发放对应优惠券。</view
 					>
 				</view>
 			</view>

+ 9 - 5
pages/user/pay/card-order.vue

@@ -86,7 +86,7 @@
 								</view>
 							</view>
 						</template>
-						<view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
+<!-- 						<view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
 							<view class="pay-item-cell">
 								<view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
 								<view class="item-texts"><text>微信支付</text></view>
@@ -97,7 +97,7 @@
 									></text>
 								</view>
 							</view>
-						</view>
+						</view> -->
 						<view class="pay-item" @click="tabClick(1)" v-if="showB2BpayMode">
 							<view class="pay-item-cell">
 								<view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
@@ -160,7 +160,7 @@
 			</view>
 		</view>
 		<!-- 支付记录 -->
-		<cm-record :show="popupShow" :list="discernReceipt" v-if="popupShow"></cm-record>
+		<cm-record :show="popupShow" :list="discernReceipt" v-if="popupShow" />
 		<!-- 选择快捷支付银行 -->
 		<cm-cards
 			:show="popupShow1"
@@ -168,7 +168,7 @@
 			@handleChoiceaCards="handleChoiceaCards"
 			@addCards="handleAddCard"
 			v-if="popupShow1"
-		></cm-cards>
+		/>
 		<!-- 弹窗提示 -->
 		<tui-modal
 			:show="modal"
@@ -358,7 +358,11 @@ export default {
 					this.handlePayOrderPayLink()
 					break
 				case 3: // 快捷支付
-					this.handleUmTrackEvent('Um_Event_ConfirmAbankPay', '快捷支付')
+					this.handleUmTrackEvent('Um_Event_ConfirmAbankPay', '快捷支付')
+                    if(!this.quickParams.quickPayBankNumber){
+                        this.$util.msg('请先添加快捷支付银行卡', 2000)
+                        return
+                    }
 					this.orderPayQuickPay()
 					break
 			}

+ 2 - 2
services/config.env.js

@@ -2,8 +2,8 @@ let URL_CONFIG = ''
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.67:18002'	 //智捷联调地址
-    URL_CONFIG = 'https://core-b.caimei365.com' 
-    // URL_CONFIG = 'https://core.caimei365.com'    
+    // URL_CONFIG = 'https://core-b.caimei365.com' 
+    URL_CONFIG = 'https://core.caimei365.com'    
 }else{
     // 生产环境
     URL_CONFIG = 'https://core.caimei365.com'