作者 芦瑞泽

1

@@ -19,12 +19,13 @@ @@ -19,12 +19,13 @@
19 "type" : "uniCloud" 19 "type" : "uniCloud"
20 }, 20 },
21 { 21 {
22 - "openVueDevtools" : true,  
23 - "playground" : "standard", 22 + "openVueDevtools" : false,
  23 + "playground" : "custom",
24 "type" : "uni-app:app-android" 24 "type" : "uni-app:app-android"
25 }, 25 },
26 { 26 {
27 - "openVueDevtools" : true, 27 + "openVueDevtools" : false,
  28 + "playground" : "custom",
28 "type" : "uni-app:app-ios" 29 "type" : "uni-app:app-ios"
29 } 30 }
30 ] 31 ]
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 "name" : "宠研兽医", 2 "name" : "宠研兽医",
3 "appid" : "__UNI__AB7B27B", 3 "appid" : "__UNI__AB7B27B",
4 "description" : "", 4 "description" : "",
5 - "versionName" : "1.0.5",  
6 - "versionCode" : 1050, 5 + "versionName" : "1.0.7",
  6 + "versionCode" : 1070,
7 "transformPx" : false, 7 "transformPx" : false,
8 "extensions" : { 8 "extensions" : {
9 "uni-cloud-verify" : {} // 启用一键登录扩展,值为空对象即可 9 "uni-cloud-verify" : {} // 启用一键登录扩展,值为空对象即可
@@ -128,6 +128,7 @@ const oneClickLoginHandler = () => { @@ -128,6 +128,7 @@ const oneClickLoginHandler = () => {
128 async success(res) { 128 async success(res) {
129 uni.getCheckBoxState({ 129 uni.getCheckBoxState({
130 async success(re) { 130 async success(re) {
  131 + console.log(re, '成功re')
131 if (re.state) { 132 if (re.state) {
132 // 登录成功 133 // 登录成功
133 console.log(res, '成功') 134 console.log(res, '成功')
@@ -152,6 +153,7 @@ const oneClickLoginHandler = () => { @@ -152,6 +153,7 @@ const oneClickLoginHandler = () => {
152 uni.reLaunch({ url: '/pages/index/index' }) 153 uni.reLaunch({ url: '/pages/index/index' })
153 // }, 800) 154 // }, 800)
154 } catch (error) { 155 } catch (error) {
  156 + console.log('re==error',error);
155 uni.$u.toast(error) 157 uni.$u.toast(error)
156 setTimeout(() => { 158 setTimeout(() => {
157 uni.closeAuthView() 159 uni.closeAuthView()
@@ -160,16 +162,15 @@ const oneClickLoginHandler = () => { @@ -160,16 +162,15 @@ const oneClickLoginHandler = () => {
160 } else { 162 } else {
161 uni.$u.toast('请先同意阅读隐私协议') 163 uni.$u.toast('请先同意阅读隐私协议')
162 } 164 }
163 - console.log(res) // Boolean 用户是否勾选了选框 165 + console.log('Boolean',res) // Boolean 用户是否勾选了选框
164 }, 166 },
165 fail(res) { 167 fail(res) {
166 - console.log(res) 168 + console.log('getCheckBoxState==fail',res)
167 } 169 }
168 }) 170 })
169 }, 171 },
170 fail(res) { 172 fail(res) {
171 console.log(res, '失败') 173 console.log(res, '失败')
172 - console.log(res.errMsg)  
173 } 174 }
174 }) 175 })
175 } 176 }
@@ -8,8 +8,8 @@ exports.main = async (event, context) => { @@ -8,8 +8,8 @@ exports.main = async (event, context) => {
8 const res = await uniCloud.getPhoneNumber({ 8 const res = await uniCloud.getPhoneNumber({
9 appid: '__UNI__AB7B27B', // 客户端callFunction时携带的AppId信息 9 appid: '__UNI__AB7B27B', // 客户端callFunction时携带的AppId信息
10 provider: 'univerify', 10 provider: 'univerify',
11 - apiKey: '3fbbf2f0cc452b857ee45dde9c3b1f5e', // 在uniCloud控制台开通一键登录服务并获取apiKey  
12 - apiSecret: '2bc476e13e6545a9c9389a7631a1a6c0', // 在uniCloud控制台开通一键登录服务并获取apiSecret 11 + apiKey: '9d7a545c1c13c45c8d59fd5f8148a98a', // 在uniCloud控制台开通一键登录服务并获取apiKey
  12 + apiSecret: '453613995b84b3969bee4eec8fa0833d', // 在uniCloud控制台开通一键登录服务并获取apiSecret
13 access_token: params.access_token, 13 access_token: params.access_token,
14 openid: params.openid 14 openid: params.openid
15 }) 15 })