Browse Source

去掉实名认证时交保证金

1410417013 7 months ago
parent
commit
acd9f2bd3f

+ 6 - 0
common/config.js

@@ -16,6 +16,12 @@ const ROOTPATH2 = "wss://mxys.chuanghai-tech.com/wss-test/websocket/";
 //聊天
 const ROOTPATH3 = "wss://mxys.chuanghai-tech.com/wss-test/ordersChat/";
 
+
+// const ROOTPATH1 = "http://192.168.161.225:8171/sqx_fast";
+// const ROO2 = "http://192.168.161.225:8171/sqx_fast";
+// const ROOTPATH = "http://192.168.161.225:8171/sqx_fast";
+// const APIHOST2 = "http://192.168.161.225:8171/sqx_fast";
+
 module.exports = {
 	APIHOST: ROOTPATH,
 	APIHOST1: ROOTPATH1,

+ 36 - 27
pages/riderMy/approve/approve.vue

@@ -38,13 +38,13 @@
 					<image @click="disabled ? '' : addImages(3)" v-else :src="form.selfIdentityCard" style="width: 100%; height: 320rpx"></image>
 				</view>
 			</view>
-			<view class="padding bg-white radius margin-top">
+			<!-- <view class="padding bg-white radius margin-top">
 				<view class="text-bold">缴纳保证金</view>
 				<view class="flex justify-between margin-top-sm">
 					<view class="text-gray">满足订单量及好评率即可申请退还保证金</view>
 					<view class="text-bold" style="color: #ff6a04">¥{{ money }}</view>
 				</view>
-			</view>
+			</view> -->
 			<view class="padding margin-top footer text-xxl">
 				<text @tap="isShowAgree" class="cuIcon" :class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意并接受</text>
 				<!-- 协议地址 -->
@@ -53,10 +53,10 @@
 			<view style="height: 120rpx"></view>
 		</view>
 		<view class="bg-white flex justify-between align-center padding-lr" style="position: fixed; bottom: 0; width: 100%; height: 120rpx">
-			<view class="">
+			<!-- <view class="">
 				<text class="text-lg text-bold text-black">支付:</text>
 				<text class="text-red">¥{{ money }}</text>
-			</view>
+			</view> -->
 			<view>
 				<u-button v-if="!disabled" @click="submit" class="" :custom-style="customStyle" shape="circle" :hair-line="false">提交认证</u-button>
 			</view>
@@ -298,30 +298,39 @@ export default {
 			// #ifdef MP-WEIXIN
 			that.$Request.postJson('/app/wxPayErrRider/wxPayJsApiRiderCertification/3', that.form).then((res) => {
 				if (res.code == 0) {
-					uni.requestPayment({
-						provider: 'wxpay',
-						timeStamp: res.data.timestamp,
-						nonceStr: res.data.noncestr,
-						package: res.data.package,
-						signType: res.data.signType,
-						paySign: res.data.sign,
-						success: function (res) {
-							console.log('实名' + res)
-							uni.hideLoading()
-							uni.showToast({
-								title: '实名认证提交成功',
-								icon: 'none'
-							})
-							setTimeout(function () {
-								uni.navigateBack(1)
-							}, 1000)
-						},
-						fail: function (err) {
-							console.log('fail:' + JSON.stringify(err))
-							uni.hideLoading()
-							that.$queue.showToast('支付失败')
-						}
+					console.log(that.form,'实名' + res)
+					uni.hideLoading()
+					uni.showToast({
+						title: '实名认证提交成功',
+						icon: 'none'
 					})
+					setTimeout(function () {
+						uni.navigateBack(1)
+					}, 1000)
+					// uni.requestPayment({
+					// 	provider: 'wxpay',
+					// 	timeStamp: res.data.timestamp,
+					// 	nonceStr: res.data.noncestr,
+					// 	package: res.data.package,
+					// 	signType: res.data.signType,
+					// 	paySign: res.data.sign,
+					// 	success: function (res) {
+					// 		console.log('实名' + res)
+					// 		uni.hideLoading()
+					// 		uni.showToast({
+					// 			title: '实名认证提交成功',
+					// 			icon: 'none'
+					// 		})
+					// 		setTimeout(function () {
+					// 			uni.navigateBack(1)
+					// 		}, 1000)
+					// 	},
+					// 	fail: function (err) {
+					// 		console.log('fail:' + JSON.stringify(err))
+					// 		uni.hideLoading()
+					// 		that.$queue.showToast('支付失败')
+					// 	}
+					// })
 				} else {
 					uni.showToast({
 						title: res.msg,

+ 7 - 5
pages/riderMy/myAccount/myAccount.vue

@@ -27,11 +27,13 @@
 		data() {
 			return {
 				moneys:0,
-				mylist: [{
-					id: 1,
-					name: '保证金',
-					image: '../../../static/rider/qqq.png'
-				}, {
+				mylist: [
+				// 	{
+				// 	id: 1,
+				// 	name: '保证金',
+				// 	image: '../../../static/rider/qqq.png'
+				// }, 
+				{
 					id: 2,
 					name: '账户明细',
 					image: '../../../static/rider/qq.png'

+ 2 - 2
pages/riderMy/riderMy.vue

@@ -30,7 +30,7 @@
 						<view class="approve" v-if="checkCertification == '0'">实名认证审核中</view>
 						<view class="approve" v-if="checkCertification == '1'">已实名</view>
 						<view class="approve" @click="bindapprove" v-if="checkCertification == '2'">实名认证未通过</view>
-						<view class="approve" @click="bindapprove" v-if="checkCertification == null">未实名认证</view>
+						<view class="approve" @click="bindapprove" v-if="checkCertification == null|| checkCertification==''">未实名认证</view>
 					</view>
 				</view>
 				<view class="head_name" v-if="!userId">
@@ -487,7 +487,7 @@ export default {
 						uni.setStorageSync('userName', res.data.userName)
 						uni.setStorageSync('phone', res.data.phone)
 						this.checkCertification = res.data.checkCertification
-						console.log(this.checkCertification, '实名认证')
+						console.log(res,this.checkCertification=='','11c',this.avatar, '实名认证')
 						this.userId = res.data.userId
 					})
 				} else {