Keine Beschreibung

Zory 1d46a924f1 0993221-01 vor 3 Tagen
components ce94643dd1 '1814556630' vor 1 Woche
node_modules cee0555e6e '001' vor 1 Woche
pages 1d46a924f1 0993221-01 vor 3 Tagen
static 88337a76f0 0232322-0012 vor 4 Tagen
store cee0555e6e '001' vor 1 Woche
uni_modules 3a9e851ed2 01490092-12 vor 6 Tagen
utils cee0555e6e '001' vor 1 Woche
.gitignore cee0555e6e '001' vor 1 Woche
App.vue 25fd678f85 '194652000' vor 1 Woche
README.md 25fd678f85 '194652000' vor 1 Woche
index.html cee0555e6e '001' vor 1 Woche
main.js 25fd678f85 '194652000' vor 1 Woche
manifest.json cee0555e6e '001' vor 1 Woche
package-lock.json cee0555e6e '001' vor 1 Woche
package.json cee0555e6e '001' vor 1 Woche
pages.json 88337a76f0 0232322-0012 vor 4 Tagen
uni.promisify.adaptor.js cee0555e6e '001' vor 1 Woche
uni.scss cee0555e6e '001' vor 1 Woche

README.md

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){

			}
		})
	},
}