更新云函数

This commit is contained in:
唐明明
2021-07-26 12:05:57 +08:00
parent a6b92679c2
commit 6f29bdc89f
6 changed files with 3706 additions and 3513 deletions

View File

@@ -5,7 +5,8 @@
</view>
</template>
<script>
<script>
import { auth } from '@/apis/interfaces/auth'
export default {
data() {
return {
@@ -44,20 +45,19 @@
}]
}
},
success : auth => {
uniCloud.callFunction({
name: "phone-login",
data: {
access_token: auth.authResult.access_token,
openid : auth.authResult.openid
}
}).then(res=>{
success : result => {
console.log(result)
auth({
access_token: result.authResult.access_token,
openid : result.authResult.openid
}).then(res => {
console.log(res)
}).catch(err=>{
console.log(err)
})
},
fail : err => {
uni.showToast({
title: err.errMsg
})
console.log(err)
}
})