zhongtianhaoyuan 3 years ago
parent
commit
631d3d48cc
4 changed files with 51 additions and 40 deletions
  1. 2 2
      config/index.js
  2. 13 1
      pages/mine/company/addcompany.vue
  3. 36 37
      pages/release/release.vue
  4. BIN
      static/images/mine/zm.png

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	baseUrlNew: 'https://apitest.eliangeyun.com',
-	// baseUrlNew: 'http://192.168.110.9:8099',
+	// baseUrlNew: 'https://apitest.eliangeyun.com',
+	baseUrlNew: 'http://192.168.110.9:8099',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 13 - 1
pages/mine/company/addcompany.vue

@@ -75,6 +75,15 @@
 					</u--input>
 				</view>
 			</view>
+			<view class="title">上传身份证人像面</view>
+			<view @click.stop="uploadImg(1,1)" class="picture picture1" v-if="!dataDetails.cardAddressUrl">
+				<image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
+				<view class="text">上传身份证人像面</view>
+			</view>
+			<view v-if="dataDetails.cardAddressUrl" @click.stop="uploadImg(1,1)"
+				class="preview-card-img picture">
+				<image class="" :src="dataDetails.cardAddressUrl" mode="aspectFit" style=""></image>
+			</view>
 			<!-- <view class="flex mt20 align-center">
 				<view class="left">注册实缴金额</view>
 				<view class="flex right align-center">
@@ -785,13 +794,16 @@
 				margin-top: 20rpx;
 			}
 		}
+		.picture1 {
+			background: url(../../../static/images/mine/zm.png);
+			background-size: 100% 100%;
+		}
 
 		.picture7 {
 			background: url(../../../static/mine/cy.png);
 			background-size: 100% 100%;
 		}
 
-
 		.xj-image {
 			width: 100rpx;
 			height: 100rpx;

+ 36 - 37
pages/release/release.vue

@@ -333,36 +333,49 @@
 			this.goToRecord()
 		},
 		onShow() {
+			_this = this
+			// #ifdef APP-PLUS
+			// let _status = this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
+			// 	phone: this.userInfo.phone
+			// }).then(res => {
+			// 	uni.setStorageSync("firstAuthentication",res.data)
+			// 	return res.data.authenticationStatus
+			// })
+			// if (_status == '已禁用') {
+			// 	this.isShowAlert = true
+			// 	this.alertTitle = '账号审核中'
+			// 	this.confirmText = '退出APP'
+			// 	this.showCancelButton = false
+			// 	return
+			// } else {
+			// }
+			// #endif
 			if (!this.hasLogin) {
 				uni.$u.route('/pages/public/login');
 				return
 			}
-			if (uni.getStorageSync('firstAuthentication').authenticationStatus == '已认证') {
-				uni.$u.route('/pages/components/empty/index');
-			} else if (uni.getStorageSync('firstAuthentication').authenticationStatus == '审核中') {
-				uni.showToast({
-					title: '身份信息审核中'
-				})
-			} else {
-				this.alertTitle = '身份信息未认证,去认证?'
-				this.showCancelButton = false
-				this.isShowAlert = true
-				// uni.showLoading({
-				// 	title: '请重新提交身份信息',
-				// 		complete() {
-				// 			uni.switchTab({
-				// 				url:'/pages/mine/index'
-
-				// 			})
-				// 			}
-				// })
-			}
+			this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
+				phone: this.userInfo.phone
+			}).then(res => {
+				uni.setStorageSync("firstAuthentication", res.data)
+				let _obj = res.data
+				if (_obj.authenticationStatus == '已认证') {
+					uni.$u.route('/pages/components/empty/index');
+				} else if (_obj.authenticationStatus == '审核中') {
+					uni.showToast({
+						title: '身份信息审核中'
+					})
+				} else {
+					this.alertTitle = '身份信息未认证,去认证?'
+					this.showCancelButton = false
+					this.isShowAlert = true
+				}
+			})
 			this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
 			this.validityPeriodcq = this.$helper.makeValidityPeriod(0, '长期')
 			let _faddress = uni.getStorageSync('storage_faddress');
 			let _saddress = uni.getStorageSync('storage_saddress');
 			if (_faddress) {
-
 				this.dataObj.sendCity = _faddress.city
 				this.dataObj.sendArea = _faddress.area
 				this.dataObj.sendPrivate = _faddress.province
@@ -398,21 +411,7 @@
 			this.getSFList()
 		},
 		async onLoad() {
-			_this = this
-			// #ifdef APP-PLUS
-			let _status = await this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
-				phone: this.userInfo.phone,
-			}).then(res => {
-				return res.data.authenticationStatus
-			})
-			if (_status == '已禁用') {
-				this.isShowAlert = true
-				this.alertTitle = '账号审核中'
-				this.confirmText = '退出APP'
-				this.showCancelButton = false
-				return
-			} else {}
-			// #endif
+
 
 		},
 		computed: {
@@ -746,7 +745,7 @@
 							duration: 2000
 						})
 					});
-				
+
 			},
 			cancelClick() {
 				this.isShowAlert = false

BIN
static/images/mine/zm.png