zhengjinyi 3 anni fa
parent
commit
51065e7516
2 ha cambiato i file con 63 aggiunte e 89 eliminazioni
  1. 31 41
      pages/login/apply.vue
  2. 32 48
      pages/login/information.vue

+ 31 - 41
pages/login/apply.vue

@@ -132,25 +132,13 @@
 					</view>
 				</view>
 			</view>
-			<view class="register-row none clearfix">
-				<view class="register-from noneborder">
+			<view class="register-row clearfix">
+				<view class="register-from" @click="bindPickerChange">
 					<view class="label">机构类型</view>
-				</view>
-			</view>
-			<view class="register-row none clearfix">
-				<view class="register-from picker noneborder">
-					<view class="row-input picker">
-						<radio-group @change="bindPickerChange">
-							<label class="label-radio" v-for="(item, index) in typename" :key="item.value">
-								<radio
-									class="row-radio"
-									:value="item.value"
-									:checked="index === firstClubTypeCurrent"
-									color="#E15616"
-								/>{{ item.name }}
-							</label>
-						</radio-group>
-					</view>
+					<text class="row-input">
+						{{ organizationTypeText }}
+					</text>
+					<text class="iconfont icon-xiayibu"></text>
 				</view>
 			</view>
 			<view class="register-row none clearfix" v-if="isOrganizationType == 1">
@@ -668,30 +656,32 @@ export default {
 				this.medicalPracticeLicense = ''
 			})
 		},
-		bindPickerChange(e) {
-			this.isOrganizationType = e.target.value
-			for (let i = 0; i < this.typename.length; i++) {
-				if (this.typename[i].value === e.target.value) {
-					this.firstClubTypeCurrent = i
-					break
+		bindPickerChange() {
+			let self = this
+			uni.showActionSheet({
+				title:'标题',
+				itemList: ['医美', '生美','项目公司','个人','其他'],
+				success: (e) => {
+					self.isOrganizationType = e.tapIndex+1
+					switch(e.tapIndex){
+						case 0:
+							this.organizationTypeText = '医美'
+							break
+						case 1:
+							this.organizationTypeText = '生美'
+							break
+						case 2:
+							this.organizationTypeText = '项目公司'
+							break
+						case 3:
+							this.organizationTypeText = '个人'
+							break
+						case 4:
+							this.organizationTypeText = '其他'
+							break
+					}
 				}
-			}
-			// let self = this
-			// uni.showActionSheet({
-			// 	title:'标题',
-			// 	itemList: ['医美', '生美'],
-			// 	success: (e) => {
-			// 		self.isOrganizationType = e.tapIndex+1
-			// 		switch(e.tapIndex){
-			// 			case 0:
-			// 				this.organizationTypeText = '医美'
-			// 				break;
-			// 			case 1:
-			// 				this.organizationTypeText = '生美'
-			// 				break;
-			// 		}
-			// 	}
-			// })
+			})
 		},
 		bindPickerChange2(e) {
 			this.typtIndex = e.target.value

+ 32 - 48
pages/login/information.vue

@@ -145,25 +145,13 @@
 					</view>
 				</view>
 			</view>
-			<view class="register-row none clearfix">
-				<view class="register-from bordernone">
-					<view class="label">机构类型</view>
-				</view>
-			</view>
 			<view class="register-row clearfix">
-				<view class="register-from picker bordernone">
-					<view class="row-input">
-						<radio-group @change="bindPickerChange">
-							<label class="label-radio" v-for="(item, index) in typename" :key="item.value">
-								<radio
-									class="row-radio"
-									:value="item.value"
-									:checked="index === firstClubTypeCurrent"
-									color="#E15616"
-								/>{{ item.name }}
-							</label>
-						</radio-group>
-					</view>
+				<view class="register-from" @click="bindPickerChange">
+					<view class="label">机构类型</view>
+					<text class="row-input">
+						{{ organizationTypeText }}
+					</text>
+					<text class="iconfont icon-xiayibu"></text>
 				</view>
 			</view>
 			<view class="register-row clearfix" v-if="firstClubType == 1">
@@ -408,7 +396,6 @@ export default {
 			medicaCampList: [],
 			typtIndex: 0,
 			organizationType: 0,
-			firstClubTypeCurrent: 0,
 			current: 0,
 			isShowAustomItem: false, // 是否显示其他添加
 			customItemValue: '', // 自定义项目
@@ -494,27 +481,21 @@ export default {
 						switch(this.firstClubType){
 							case 1:
 								this.organizationTypeText = '医美'
-								this.firstClubTypeCurrent = 0
 								break
 							case 2:
 								this.organizationTypeText = '生美'
-								this.firstClubTypeCurrent = 1
 								break
 							case 3:
 								this.organizationTypeText = '项目公司'
-								this.firstClubTypeCurrent = 2
 								break
 							case 4:
 								this.organizationTypeText = '个人'
-								this.firstClubTypeCurrent = 3
 								break
 							case 5:
 								this.organizationTypeText = '其他'
-								this.firstClubTypeCurrent = 4
 								break
 							case null:
 								this.organizationTypeText = '请选择机构类型'
-								this.firstClubTypeCurrent = 5
 								break
 						}	
 						if (organizationClub.mainProduct == '' || organizationClub.mainProduct == null) {
@@ -725,30 +706,32 @@ export default {
 				this.medicalPracticeLicense = ''
 			})
 		},
-		bindPickerChange(e) {
-			this.firstClubType = e.target.value
-			for (let i = 0; i < this.typename.length; i++) {
-				if (this.typename[i].value === e.target.value) {
-					this.firstClubTypeCurrent = i
-					break
+		bindPickerChange() {
+			let self = this
+			uni.showActionSheet({
+				title:'标题',
+				itemList: ['医美', '生美','项目公司','个人','其他'],
+				success: (e) => {
+					self.firstClubType = e.tapIndex+1
+					switch(e.tapIndex){
+						case 0:
+							this.organizationTypeText = '医美'
+							break
+						case 1:
+							this.organizationTypeText = '生美'
+							break
+						case 2:
+							this.organizationTypeText = '项目公司'
+							break
+						case 3:
+							this.organizationTypeText = '个人'
+							break
+						case 4:
+							this.organizationTypeText = '其他'
+							break
+					}
 				}
-			}
-			// let self = this
-			// uni.showActionSheet({
-			// 	title:'标题',
-			// 	itemList: ['医美', '生美'],
-			// 	success: (e) => {
-			// 		self.firstClubType = e.tapIndex+1
-			// 		switch(e.tapIndex){
-			// 			case 0:
-			// 				this.organizationTypeText = '医美'
-			// 				break;
-			// 			case 1:
-			// 				this.organizationTypeText = '生美'
-			// 				break;
-			// 		}
-			// 	}
-			// })
+			})
 		},
 		bindPickerChange2(e) {
 			this.typtIndex = e.target.value
@@ -959,6 +942,7 @@ export default {
 				}
 				&.second {
 					padding-left: 0;
+					border: none;
 				}
 				.label {
 					text-align: left;