# jiaoyi-uni

## 抖音小程序Pay-Button-Sdk
## App.vue
```` 
methods: {
	getPhoneNumber: function({ params, success, fail }) {
		const { iv, encryptedData } = params;
		tt.login({
			force:true,
			success(lres){
				tt.request({
					url:"https://tran.jsshuita.cn/dy/home/mobile",
					data:{iv:iv,encryptedData:encryptedData,code:lres.code},
					method:"POST",
					success(res){
						var resp = res.data;
						if (resp.code == 0) return ;
						success({ phoneNumber: resp.data.mobile })
					},
					fail(res){

					}
				})
			},
			fail(res){

			}
		})
	},
}
````