Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
ce0c4895
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ce0c4895
编写于
5月 03, 2023
作者:
M
MicroMilo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
验证码后台实现
上级
9039ca03
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
60 addition
and
12 deletion
+60
-12
alpha/admin/.hbuilderx/launch.json
alpha/admin/.hbuilderx/launch.json
+1
-1
alpha/admin/pages/demo/table/table.vue
alpha/admin/pages/demo/table/table.vue
+8
-8
alpha/admin/pages/system/mustgo-user/edit.vue
alpha/admin/pages/system/mustgo-user/edit.vue
+14
-3
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-login/index.js
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-login/index.js
+0
-0
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-login/package.json
...dmin/uniCloud-aliyun/cloudfunctions/fe-login/package.json
+0
-0
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js
...admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js
+0
-0
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/package.json
...n/uniCloud-aliyun/cloudfunctions/fe-register/package.json
+0
-0
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-retrievePassword/index.js
...iCloud-aliyun/cloudfunctions/fe-retrievePassword/index.js
+30
-0
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-retrievePassword/package.json
...ud-aliyun/cloudfunctions/fe-retrievePassword/package.json
+7
-0
未找到文件。
alpha/admin/.hbuilderx/launch.json
浏览文件 @
ce0c4895
...
...
@@ -8,7 +8,7 @@
},
"h5"
:
{
"launchtype"
:
"
local
"
"launchtype"
:
"
remote
"
},
"type"
:
"uniCloud"
}
...
...
alpha/admin/pages/demo/table/table.vue
浏览文件 @
ce0c4895
...
...
@@ -46,14 +46,14 @@
<
script
>
import
tableData
from
'
./tableData.js
'
uniCloud
.
callFunction
({
name
:
'
auth
'
,
data
:
{
phone
:
'
15860855025
'
,
password
:
'
123456
'
}
})
.
then
(
res
=>
{
console
.
log
(
res
);});
//
uniCloud.callFunction({
//
name: 'auth',
//
data: {
//
phone: '15860855025',
//
password: '123456'
//
}
//
})
//
.then(res => {console.log(res);});
export
default
{
data
()
{
...
...
alpha/admin/pages/system/mustgo-user/edit.vue
浏览文件 @
ce0c4895
...
...
@@ -37,6 +37,7 @@
<uni-forms-item
name=
"total_walking_distance"
label=
"健走总距离"
>
<uni-easyinput
type=
"number"
v-model=
"formData.total_walking_distance"
></uni-easyinput>
</uni-forms-item>
<button
@
click=
"smsSend"
>
发短信啦!
</button>
<view
class=
"uni-button-group"
>
<button
type=
"primary"
class=
"uni-button"
style=
"width: 100px;"
@
click=
"submit"
>
提交
</button>
<navigator
open-type=
"navigateBack"
style=
"margin-left: 15px;"
>
...
...
@@ -66,8 +67,6 @@
return
result
}
export
default
{
data
()
{
let
formData
=
{
...
...
@@ -109,7 +108,19 @@
}
},
methods
:
{
smsSend
()
{
uniCloud
.
callFunction
({
name
:
'
fe-retrievePassword
'
,
data
:
{
phone
:
'
15860855025
'
,
password
:
'
123456
'
}
})
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
"
demodemodmeodmeodmeod
"
)
});
},
/**
* 验证表单并提交
*/
...
...
alpha/admin/uniCloud-aliyun/cloudfunctions/f
rontend
-login/index.js
→
alpha/admin/uniCloud-aliyun/cloudfunctions/f
e
-login/index.js
浏览文件 @
ce0c4895
文件已移动
alpha/admin/uniCloud-aliyun/cloudfunctions/f
rontend
-login/package.json
→
alpha/admin/uniCloud-aliyun/cloudfunctions/f
e
-login/package.json
浏览文件 @
ce0c4895
文件已移动
alpha/admin/uniCloud-aliyun/cloudfunctions/f
rontend
-register/index.js
→
alpha/admin/uniCloud-aliyun/cloudfunctions/f
e
-register/index.js
浏览文件 @
ce0c4895
文件已移动
alpha/admin/uniCloud-aliyun/cloudfunctions/f
rontend
-register/package.json
→
alpha/admin/uniCloud-aliyun/cloudfunctions/f
e
-register/package.json
浏览文件 @
ce0c4895
文件已移动
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-retrievePassword/index.js
0 → 100644
浏览文件 @
ce0c4895
// 发送单条短信示例
'
use strict
'
;
exports
.
main
=
async
(
event
,
context
)
=>
{
try
{
const
res
=
await
uniCloud
.
sendSms
({
appid
:
'
__UNI__2A45DD3
'
,
smsKey
:
'
b4d94cfbbb60074d7f2675f640fb60ca
'
,
smsSecret
:
'
b53adc6b88bb62031e67f60c1f52570d
'
,
phone
:
'
13950014724
'
,
templateId
:
'
uni_sms_test
'
,
// 请替换为自己申请的模板id
data
:
{
name
:
'
DCloud
'
,
code
:
'
123456
'
,
expMinute
:
'
3
'
,
}
})
console
.
log
(
res
)
// 调用成功,请注意这时不代表发送成功
return
res
}
catch
(
err
)
{
// 调用失败
console
.
log
(
err
.
errCode
)
console
.
log
(
err
.
errMsg
)
return
{
code
:
err
.
errCode
,
msg
:
err
.
errMsg
}
}
};
\ No newline at end of file
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-retrievePassword/package.json
0 → 100644
浏览文件 @
ce0c4895
{
"name"
:
"fe-retrievePassword"
,
"dependencies"
:
{},
"extensions"
:
{
"uni-cloud-jql"
:
{}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录