Procházet zdrojové kódy

权益包代码整合

@dongkboy před 1 rokem
rodič
revize
c9d8114420
3 změnil soubory, kde provedl 361 přidání a 437 odebrání
  1. 209 212
      manifest.json
  2. 151 224
      pages/carInsure/premiumCalc.vue
  3. 1 1
      pages/wallet/wallet.vue

+ 209 - 212
manifest.json

@@ -1,214 +1,211 @@
 {
-    "name" : "晋掌柜",
-    "appid" : "__UNI__D4FE29A",
-    "description" : "保险类app",
-    "transformPx" : false,
-    "icons" : [
-        {
-            "sizes" : "分辨率,192x192",
-            "src" : "图片路径"
-        }
-    ],
-    "versionName" : "3.3.1",
-    "versionCode" : 331,
-    "app-plus" : {
-        "error" : {
-            "url" : "hybrid/html/error.html"
-        },
-        "compatible" : {
-            "ignoreVersion" : true
-        },
-        "privacy" : {
-            "prompt" : "template",
-            "template" : {
-                "title" : "平台协议和隐私协议",
-                "message" : "欢迎使用晋掌柜app,我们非常重视您的个人信息和隐私保护。我们将通过《隐私权保护政策》帮助您了解我们收集、使用、存储、共享和保护个人信息的情况,以及您所享有的相关权利。<br/> 为了更好的向您提供注册认证、线上投保、以及周边服务等相关服务功能,我们会收集、使用必要的信息。包括但不限于:<br/>1、为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。2、在使用道路救援功能时,基于您的授权我们可能会获取您的位置信息,以便为您提供服务。您有权拒绝或取消授权。在使用线上投保以及注册等功能时, 基于您的授权我们会获取您的相册存储的权限, 以便在使用时能够正确的上传个人资料。获取通知权限, 用于向您发送重要通知, 如服务更新或安全提醒。<br/>   请仔细阅读<a href='https://sxzgkj.baoxianzhanggui.com/h5/#/pages/login/xieyi'>《平台协议》</a>和<a href='https://sxzgkj.baoxianzhanggui.com/h5/#/pages/login/mimi'>《隐私协议》</a>了解详细信息。我们将按照您同意的条款使用您的个人信息,以便为您提供服务。",
-                "buttonAccept" : "同意",
-                "buttonRefuse" : "暂不同意"
-            }
-        },
-        "modules" : {
-            "Messaging" : {},
-            "OAuth" : {},
-            "Payment" : {},
-            "Share" : {},
-            "SQLite" : {
-                "description" : "iBeacon"
-            },
-            "Camera" : {},
-            "Maps" : {},
-            "Geolocation" : {}
-        },
-        "distribute" : {
-            "android" : {
-                "permissionPhoneState" : {
-                    "request" : "none",
-                    "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。"
-                },
-                "permissionExternalStorage" : {
-                    "request" : "none",
-                    "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
-                },
-                "permissions" : [
-                    "<uses-feature android:name=\"android.hardware.camera\"/>",
-                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
-                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
-                    "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
-                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
-                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
-                    "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
-                    "<uses-permission android:name=\"android.permission.INTERNET\"/>",
-                    "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_SMS\"/>",
-                    "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
-                    "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>",
-                    "<uses-permission android:name=\"android.permission.SEND_SMS\"/>",
-                    "<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
-                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
-                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>"
-                ],
-                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
-                "minSdkVersion" : 21,
-                "schemes" : "zgcxapp",
-                "targetSdkVersion" : 30
-            },
-            "sdkConfigs" : {
-                "ad" : {
-                    "ks" : {},
-                    "sigmob" : {}
-                },
-                "payment" : {
-                    "weixin" : {
-                        "__platform__" : [ "android" ],
-                        "appid" : "wx612ca90988c46947",
-                        "UniversalLinks" : ""
-                    }
-                },
-                "share" : {
-                    "weixin" : {
-                        "appid" : "wx612ca90988c46947",
-                        "UniversalLinks" : ""
-                    }
-                },
-                "oauth" : {
-                    "weixin" : {
-                        "appid" : "wx612ca90988c46947",
-                        "appsecret" : "75b7d4cda453b2075dec23f849278bc0",
-                        "UniversalLinks" : ""
-                    }
-                },
-                "geolocation" : {
-                    "system" : {
-                        "__platform__" : [ "ios", "android" ]
-                    }
-                },
-                "push" : {
-                    "unipush" : {
-                        "appid" : "YDcU8mcWRO6MWIT1i4naP2",
-                        "appkey" : "DK2LTzhnc87pFFFhcTSgs8",
-                        "appsecret" : "wTUMKWB4ReAoPyCp7Jyaz9"
-                    }
-                },
-                "maps" : {}
-            },
-            "icons" : {
-                "android" : {
-                    "hdpi" : "unpackage/res/icons/72x72.png",
-                    "xhdpi" : "unpackage/res/icons/96x96.png",
-                    "xxhdpi" : "unpackage/res/icons/144x144.png",
-                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
-                },
-                "ios" : {
-                    "appstore" : "unpackage/res/icons/1024x1024.png",
-                    "ipad" : {
-                        "app" : "unpackage/res/icons/76x76.png",
-                        "app@2x" : "unpackage/res/icons/152x152.png",
-                        "notification" : "unpackage/res/icons/20x20.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "proapp@2x" : "unpackage/res/icons/167x167.png",
-                        "settings" : "unpackage/res/icons/29x29.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "spotlight" : "unpackage/res/icons/40x40.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
-                    },
-                    "iphone" : {
-                        "app@2x" : "unpackage/res/icons/120x120.png",
-                        "app@3x" : "unpackage/res/icons/180x180.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "notification@3x" : "unpackage/res/icons/60x60.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "settings@3x" : "unpackage/res/icons/87x87.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
-                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
-                    }
-                }
-            },
-            "splashscreen" : {
-                "androidStyle" : "common",
-                "useOriginalMsgbox" : true
-            },
-            "ios" : {
-                "dSYMs" : false,
-                "urltypes" : "zgcxapp"
-            }
-        },
-        "compilerVersion" : 3,
-        "nvueLaunchMode" : "fast",
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true
-        },
-        "nativePlugins" : {}
-    },
-    // 5+App特有相关
-    "quickapp" : {},
-    // 快应用特有相关
-    "mp-weixin" : {
-        "setting" : {
-            "urlCheck" : false,
-            "es6" : false,
-            "postcss" : false,
-            "minified" : false
-        },
-        "usingComponents" : true,
-        "appid" : "wxe57ddfbe230bcfba",
-        "permission" : {
-            "photos" : {
-                "desc" : "你的应用程序需要保存图片到相册"
-            }
-        }
-    },
-    "h5" : {
-        "template" : "template.h5.html",
-        "router" : {
-            "mode" : "hash",
-            "base" : "./"
-        },
-        "optimization" : {
-            "treeShaking" : {
-                "enable" : true
-            }
-        },
-        "devServer" : {
-            "https" : false,
-            "port" : 80
-        },
-        "sdkConfigs" : {
-            "maps" : {}
-        },
-        "uniStatistics" : {
-            "enable" : false
-        }
-    },
-    "mp-jd" : {
-        "unipush" : {
-            "enable" : false
-        }
-    }
+	"name": "晋掌柜",
+	"appid": "__UNI__D4FE29A",
+	"description": "保险类app",
+	"transformPx": false,
+	"icons": [{
+		"sizes": "分辨率,192x192",
+		"src": "图片路径"
+	}],
+	"versionName": "3.2.6",
+	"versionCode": 326,
+	"app-plus": {
+		"error": {
+			"url": "hybrid/html/error.html"
+		},
+		"compatible": {
+			"ignoreVersion": true
+		},
+		"privacy": {
+			"prompt": "template",
+			"template": {
+				"title": "平台协议和隐私协议",
+				"message": "欢迎使用晋掌柜app,我们非常重视您的个人信息和隐私保护。我们将通过《隐私权保护政策》帮助您了解我们收集、使用、存储、共享和保护个人信息的情况,以及您所享有的相关权利。<br/> 为了更好的向您提供注册认证、线上投保、以及周边服务等相关服务功能,我们会收集、使用必要的信息。包括但不限于:<br/>1、为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。2、在使用道路救援功能时,基于您的授权我们可能会获取您的位置信息,以便为您提供服务。您有权拒绝或取消授权。在使用线上投保以及注册等功能时, 基于您的授权我们会获取您的相册存储的权限, 以便在使用时能够正确的上传个人资料。获取通知权限, 用于向您发送重要通知, 如服务更新或安全提醒。<br/>   请仔细阅读<a href='https://sxzgkj.baoxianzhanggui.com/h5/#/pages/login/xieyi'>《平台协议》</a>和<a href='https://sxzgkj.baoxianzhanggui.com/h5/#/pages/login/mimi'>《隐私协议》</a>了解详细信息。我们将按照您同意的条款使用您的个人信息,以便为您提供服务。",
+				"buttonAccept": "同意",
+				"buttonRefuse": "暂不同意"
+			}
+		},
+		"modules": {
+			"Messaging": {},
+			"OAuth": {},
+			"Payment": {},
+			"Share": {},
+			"SQLite": {
+				"description": "iBeacon"
+			},
+			"Camera": {},
+			"Maps": {},
+			"Geolocation": {}
+		},
+		"distribute": {
+			"android": {
+				"permissionPhoneState": {
+					"request": "none",
+					"prompt": "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。"
+				},
+				"permissionExternalStorage": {
+					"request": "none",
+					"prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
+				},
+				"permissions": [
+					"<uses-feature android:name=\"android.hardware.camera\"/>",
+					"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+					"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
+					"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
+					"<uses-permission android:name=\"android.permission.CAMERA\"/>",
+					"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+					"<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
+					"<uses-permission android:name=\"android.permission.INTERNET\"/>",
+					"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
+					"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+					"<uses-permission android:name=\"android.permission.READ_SMS\"/>",
+					"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
+					"<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>",
+					"<uses-permission android:name=\"android.permission.SEND_SMS\"/>",
+					"<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
+					"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+					"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+					"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
+					"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
+					"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>"
+				],
+				"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
+				"minSdkVersion": 21,
+				"schemes": "zgcxapp",
+				"targetSdkVersion": 30
+			},
+			"sdkConfigs": {
+				"ad": {
+					"ks": {},
+					"sigmob": {}
+				},
+				"payment": {
+					"weixin": {
+						"__platform__": ["android"],
+						"appid": "wx612ca90988c46947",
+						"UniversalLinks": ""
+					}
+				},
+				"share": {
+					"weixin": {
+						"appid": "wx612ca90988c46947",
+						"UniversalLinks": ""
+					}
+				},
+				"oauth": {
+					"weixin": {
+						"appid": "wx612ca90988c46947",
+						"appsecret": "75b7d4cda453b2075dec23f849278bc0",
+						"UniversalLinks": ""
+					}
+				},
+				"geolocation": {
+					"system": {
+						"__platform__": ["ios", "android"]
+					}
+				},
+				"push": {
+					"unipush": {
+						"appid": "YDcU8mcWRO6MWIT1i4naP2",
+						"appkey": "DK2LTzhnc87pFFFhcTSgs8",
+						"appsecret": "wTUMKWB4ReAoPyCp7Jyaz9"
+					}
+				},
+				"maps": {}
+			},
+			"icons": {
+				"android": {
+					"hdpi": "unpackage/res/icons/72x72.png",
+					"xhdpi": "unpackage/res/icons/96x96.png",
+					"xxhdpi": "unpackage/res/icons/144x144.png",
+					"xxxhdpi": "unpackage/res/icons/192x192.png"
+				},
+				"ios": {
+					"appstore": "unpackage/res/icons/1024x1024.png",
+					"ipad": {
+						"app": "unpackage/res/icons/76x76.png",
+						"app@2x": "unpackage/res/icons/152x152.png",
+						"notification": "unpackage/res/icons/20x20.png",
+						"notification@2x": "unpackage/res/icons/40x40.png",
+						"proapp@2x": "unpackage/res/icons/167x167.png",
+						"settings": "unpackage/res/icons/29x29.png",
+						"settings@2x": "unpackage/res/icons/58x58.png",
+						"spotlight": "unpackage/res/icons/40x40.png",
+						"spotlight@2x": "unpackage/res/icons/80x80.png"
+					},
+					"iphone": {
+						"app@2x": "unpackage/res/icons/120x120.png",
+						"app@3x": "unpackage/res/icons/180x180.png",
+						"notification@2x": "unpackage/res/icons/40x40.png",
+						"notification@3x": "unpackage/res/icons/60x60.png",
+						"settings@2x": "unpackage/res/icons/58x58.png",
+						"settings@3x": "unpackage/res/icons/87x87.png",
+						"spotlight@2x": "unpackage/res/icons/80x80.png",
+						"spotlight@3x": "unpackage/res/icons/120x120.png"
+					}
+				}
+			},
+			"splashscreen": {
+				"androidStyle": "common",
+				"useOriginalMsgbox": true
+			},
+			"ios": {
+				"dSYMs": false,
+				"urltypes": "zgcxapp"
+			}
+		},
+		"compilerVersion": 3,
+		"nvueLaunchMode": "fast",
+		"splashscreen": {
+			"alwaysShowBeforeRender": true
+		},
+		"nativePlugins": {}
+	},
+	// 5+App特有相关
+	"quickapp": {},
+	// 快应用特有相关
+	"mp-weixin": {
+		"setting": {
+			"urlCheck": false,
+			"es6": false,
+			"postcss": false,
+			"minified": false
+		},
+		"usingComponents": true,
+		"appid": "wxe57ddfbe230bcfba",
+		"permission": {
+			"photos": {
+				"desc": "你的应用程序需要保存图片到相册"
+			}
+		}
+	},
+	"h5": {
+		"template": "template.h5.html",
+		"router": {
+			"mode": "hash",
+			"base": "./"
+		},
+		"optimization": {
+			"treeShaking": {
+				"enable": true
+			}
+		},
+		"devServer": {
+			"https": false,
+			"port": 80
+		},
+		"sdkConfigs": {
+			"maps": {}
+		},
+		"uniStatistics": {
+			"enable": false
+		}
+	},
+	"mp-jd": {
+		"unipush": {
+			"enable": false
+		}
+	}
 }
-// 小程序特有相关
-
+// 小程序特有相关

+ 151 - 224
pages/carInsure/premiumCalc.vue

@@ -153,7 +153,10 @@
 										@tap.stop.prevent="ErrorMsg(totalitem.msg,totalitem.namesimple)">报价失败,查看原因</text>
 								</view>
 								<view class=" dis j-end a-c mt-2 f-wrap">
-									<view class="ml-2 mb-1" v-if="totalitem.result.companyId && switchShow" @click="handleCustomerInterest(totalitem)" style="border: 1px solid rgb(255 153 0);border-radius: 2px;padding:1px 6px;font-size: 24rpx; color: rgb(255 153 0);">客户权益</view>
+									<view class="ml-2 mb-1" v-if="totalitem.result.companyId && switchShow"
+										@click="handleCustomerInterest(totalitem)"
+										style="border: 1px solid rgb(255 153 0);border-radius: 2px;padding:1px 6px;font-size: 24rpx; color: rgb(255 153 0);">
+										客户权益</view>
 									<view class="ml-2 mb-1 "
 										v-if="totalitem.namesimple=='诚泰财险' && totalitem.result.companyId"
 										style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
@@ -1709,7 +1712,7 @@
 				zijinInsuranceData: [],
 				zijinaccidentalDrivingVo: [],
 				isInspectchange: false,
-				
+
 				// 优惠方式
 				acceptCustomerObj: {},
 				switchShow: false,
@@ -1718,7 +1721,7 @@
 		},
 		onShow() {
 			this.$http.get('/sys/switch/isEnabled?keyWord=equityFlag').then(res => {
-				if(res.code === 200) {
+				if (res.code === 200) {
 					this.switchShow = res.data
 				}
 			})
@@ -1822,8 +1825,7 @@
 			},
 			handleCustomerInterest(item) {
 				let params = {
-					option: [
-						{
+					option: [{
 							type: '车主', // 2
 							name: this.ownerInfo.name,
 							mobile: this.ownerInfo.mobile,
@@ -3791,6 +3793,7 @@
 				}
 			},
 			auditNextconfirm() {
+				console.log(this.insuranceCompanyName);
 				setTimeout(async () => {
 					switch (this.insuranceCompanyName) {
 						case "永安财险":
@@ -3806,18 +3809,20 @@
 										syappoint: ""
 									});
 								if (yaaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -3855,18 +3860,20 @@
 										syappoint: ""
 									});
 								if (zmaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -3898,18 +3905,20 @@
 										companyId: this.companyId,
 									});
 								if (ycaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -3941,18 +3950,20 @@
 										companyId: this.companyId,
 									});
 								if (graudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -3988,18 +3999,20 @@
 										[this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
 									});
 								if (djaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -4032,18 +4045,20 @@
 										engageList: this.ziJinengageList,
 									});
 								if (zjaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -4080,18 +4095,20 @@
 										engageList: this.huaTaiengageList,
 									});
 								if (htaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -4125,18 +4142,20 @@
 										syappoint: ""
 									});
 								if (bhaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -4158,110 +4177,12 @@
 							}
 							break;
 						case "恒邦财险":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "诚泰财险":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "安盛天平":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "众安财险":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "中国人寿":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "太平财险":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "华农财险":
-							if(this.switchShow) {
-								this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-									if(res.code === 200) {
-								
-									} else {
-										uni.showToast({
-											title: res.msg,
-											icon: "none",
-											duration: 3000
-										});
-									}
-								})
-							}
-							break;
 						case "华安财险":
 						case "泰山财险":
 						case "泰康财险":
@@ -4275,18 +4196,20 @@
 										subOrderNo: this.companyId,
 									});
 								if (pythonaudit.code == '200') {
-									if(this.switchShow) {
-										this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
-											if(res.code === 200) {
-										
-											} else {
-												uni.showToast({
-													title: res.msg,
-													icon: "none",
-													duration: 3000
-												});
-											}
-										})
+									if (this.switchShow) {
+										this.$http.post(
+											`/equity/createEquityOrder?companyId=${this.companyId}`).then(
+											res => {
+												if (res.code === 200) {
+
+												} else {
+													uni.showToast({
+														title: res.msg,
+														icon: "none",
+														duration: 3000
+													});
+												}
+											})
 									}
 									this.underwriteTitle = '订单自核成功';
 									this.cancelText = '暂不缴费';
@@ -4317,16 +4240,16 @@
 				this.companyId = id;
 				this.apiType = apiType;
 				this.insuranceCompanyName = name;
-				if(!this.switchShow) {
+				if (!this.switchShow) {
 					this.auditNextShow = true;
 				} else {
-					if(item.editingDto.equityType === 1 || item.editingDto.equityType === 0) {
+					if (item.editingDto.equityType === 1 || item.editingDto.equityType === 0) {
 						this.auditNextShow = true;
 					} else {
 						this.$http.post(`/equity/equityList`, {
 							companyId: id
 						}).then(res => {
-							if(res.code === 200) {
+							if (res.code === 200) {
 								this.acceptCustomerObj = res.data
 							}
 						})
@@ -4338,10 +4261,9 @@
 				this.$refs.popup.close()
 			},
 			handleAcceptCustomer(type) {
-				if(type === 1) {
+				if (type === 1) {
 					let params = {
-						option: [
-							{
+						option: [{
 								type: '车主', // 2
 								name: this.ownerInfo.name,
 								mobile: this.ownerInfo.mobile,
@@ -4366,7 +4288,7 @@
 						url: `/pages/carInsure/customerInterest?params=${JSON.stringify(params)}`,
 					})
 				}
-				if(type == 0) {
+				if (type == 0) {
 					this.$http.post(`/equity/saveEquityType?companyId=${this.companyId}&type=${type}`).then(res => {
 						this.closePopup()
 					})
@@ -5217,25 +5139,30 @@
 		color: #FFFFFF;
 		font-size: 20rpx;
 	}
-	.popup{
+
+	.popup {
 		width: 100%;
 		height: 410rpx;
 		background-color: #ffffff;
-		.title{
+
+		.title {
 			padding: 27rpx 0;
 			color: #333333;
 			font-size: 34rpx;
 			position: relative;
-			.close{
+
+			.close {
 				position: absolute;
 				top: 20rpx;
 				right: 20rpx;
 			}
 		}
-		.list{
+
+		.list {
 			height: calc(100% - 100rpx);
 			overflow-y: auto;
-			.radio{
+
+			.radio {
 				padding: 28rpx 20px;
 				border-top: 1px solid #eeeeee;
 			}
@@ -5248,4 +5175,4 @@
 		border-width: 4rpx;
 		font-weight: bold;
 	}
-</style>
+</style>

+ 1 - 1
pages/wallet/wallet.vue

@@ -269,7 +269,7 @@
 							auditStatus: '1',
 							delFlag: '0'
 						});
-						if (!res.data.length) {
+						if (res.data.length) {
 							this.navigate({
 								url: `/pages/wallet/withdraw?amount=${this.totalAssetAmount}`,
 							}, "navigateTo", true)