gjy hace 3 años
padre
commit
373892670a
Se han modificado 2 ficheros con 24 adiciones y 24 borrados
  1. 9 9
      pageD/myRelease/Identity_switching.vue
  2. 15 15
      pageD/myRelease/buyGrain.vue

+ 9 - 9
pageD/myRelease/Identity_switching.vue

@@ -1,16 +1,14 @@
 <template>
 	<view class="center">
 		<view v-for="(item , index) in lists" :Key="index">
-			<view class="forList">
+			<view @click="navToDetailPage(item)" class="forList">
 				<view class="flex">
 					<view class="company" v-if="item.customerType == '企业'">{{item.customerType}}</view>
 					<view class="company1" v-if="item.customerType == '个人'">{{item.customerType}}</view>
-					<view class="guess-item" @click="navToDetailPage(item)">
-				</view>
-				
 					<view class="infos">
-
-						<view class="info1">{{item.customerName}}
+						<view class="info1">
+						<text v-if='item.customerTypeFlag==1'>{{item.customerName}}</text>
+						<text v-if='item.customerTypeFlag==2'>{{item.compName}}</text>
 							<view class='but but1' v-if="item.authenticationStatus == '已认证'">{{item.authenticationStatus}}</view>
 							<view class='but but2' v-if="item.authenticationStatus == '审核中'">{{item.authenticationStatus}}</view>
 							<view class='but but3' v-if="item.authenticationStatus == '未通过'">{{item.authenticationStatus}}</view>
@@ -76,17 +74,18 @@
 				},
 			};
 		},
-		onShow(){
-			this.getList()
-		},
 		onLoad(options) {
 			this.id=options.id
 		},
+		onShow(){
+			this.getList()
+		},
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])
 		},
 		methods: {
 			getList() {
+				console.log(this.userInfo)
 				this.identityAuthenticationInfo.commonId = this.userInfo.id
 				this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', {
 						pageSize: 10,
@@ -145,6 +144,7 @@
 			// 	}
 			// },
 			navToDetailPage(item) {
+				console.log(11111)
 				// if (index == 1) {
 					if(item.customerTypeFlag==1){
 						uni.navigateTo({

+ 15 - 15
pageD/myRelease/buyGrain.vue

@@ -4,7 +4,7 @@
 			<view class="c-row b-b">
 				<text class="tit">名头</text>
 				<view class="con-list">
-					<text @click="navToDetailPage">{{deptList.buyer}}</text>
+					<text @click="navToDetailPage">{{deptList.buyer}}<text class='tip_text cuIcon-right'></text></text>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -262,20 +262,20 @@
 			}
 		},
 		onShow() {
-			var that = this
-			this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
-				commonId: this.userInfo.id
-			}).then(res => {
-				if (res.data.code == 200) {
-					if (res.data.data.customerTypeFlag == 1) {
-						that.$set(this.deptList, 'buyer', res.data.data.customerName)
-					} else {
-						that.$set(this.deptList, 'buyer', res.data.data.compName)
-					}
-					this.goods = res.data.data
-				}
-				uni.hideLoading()
-			})
+			// var that = this
+			// this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
+			// 	commonId: that.userInfo.id
+			// }).then(res => {
+			// 	if (res.data.code == 200) {
+			// 		if (res.data.data.customerTypeFlag == 1) {
+			// 			that.$set(that.deptList, 'buyer', res.data.data.customerName)
+			// 		} else {
+			// 			that.$set(that.deptList, 'buyer', res.data.data.compName)
+			// 		}
+			// 		that.goods = res.data.data
+			// 	}
+			// 	uni.hideLoading()
+			// })
 		},
 		methods: {
 			async amendprice() {