test.vue 496 字节
Newer Older
L
123  
linju 已提交
1 2 3
<template>
	<view>
		test
L
123  
linju 已提交
4 5
		<button type="default" @click="fn1">1</button>
		<button type="default" @click="fn2">2</button>
L
123  
linju 已提交
6 7 8 9 10 11 12 13 14 15 16
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
L
123  
linju 已提交
17
			
L
123  
linju 已提交
18 19
		},
		methods: {
L
123  
linju 已提交
20 21 22 23 24 25 26 27 28 29
			fn1(){
				let res = this.request('user-center/login_by_').then(e=>{
					console.log('then--1',e);
				})
			},
			fn2(){
				this.request('user-center/login_by_',{},e=>{
					console.log('222',e);
				})
			}
L
123  
linju 已提交
30 31 32 33 34 35 36
		}
	}
</script>

<style>

</style>