setinfo.vue 699 Bytes
Newer Older
王建威's avatar
王建威 committed
1
<template>
王建威's avatar
王建威 committed
2 3
	<view>
		<ChangePhone v-if="type === 'phone'" :phone="phone" />
王建威's avatar
王建威 committed
4 5
		<ChangeLoginPass v-if="type === 'login'" :phone="phone" />
		<ChangePayPass v-if="type === 'pay'" :phone="phone" />
王建威's avatar
王建威 committed
6 7 8 9
	</view>
</template>

<script>
王建威's avatar
王建威 committed
10 11 12
	import ChangePhone from './components/changephone.vue';
	import ChangeLoginPass from './components/changeLoginPass.vue';
	import ChangePayPass from './components/changePayPass.vue';
王建威's avatar
王建威 committed
13 14 15
	export default {
		data() {
			return {
王建威's avatar
王建威 committed
16 17
				type: '',
				phone: ''
王建威's avatar
王建威 committed
18 19
			}
		},
王建威's avatar
王建威 committed
20 21 22 23
		onLoad(option) {
			this.type = option.type;
			this.phone = option.phone || '';
		},
王建威's avatar
王建威 committed
24
		components: {
王建威's avatar
王建威 committed
25 26 27
			ChangePhone,
			ChangeLoginPass,
			ChangePayPass
王建威's avatar
王建威 committed
28 29 30 31 32
		}
	}
</script>

<style lang="less" scoped>
王建威's avatar
王建威 committed
33 34
	
</style>