Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
水星冲浪手88
uni-starter
提交
75bde22a
U
uni-starter
项目概览
水星冲浪手88
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
75bde22a
编写于
11月 11, 2021
作者:
DCloud_JSON
提交者:
study夏羽
12月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
重新整理后第1次提交
上级
c40982b1
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
215 addition
and
249 deletion
+215
-249
components/uni-send-sms-code/uni-send-sms-code.vue
components/uni-send-sms-code/uni-send-sms-code.vue
+35
-65
manifest.json
manifest.json
+4
-8
pages/grid/grid.vue
pages/grid/grid.vue
+44
-45
pages/list/list.nvue
pages/list/list.nvue
+9
-5
pages/ucenter/login-page/phone-code/phone-code.vue
pages/ucenter/login-page/phone-code/phone-code.vue
+22
-23
pages/ucenter/login-page/pwd-login/pwd-login.vue
pages/ucenter/login-page/pwd-login/pwd-login.vue
+47
-47
pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
+25
-25
pages/ucenter/login-page/register/register.vue
pages/ucenter/login-page/register/register.vue
+16
-16
pages/ucenter/settings/settings.vue
pages/ucenter/settings/settings.vue
+3
-3
pages/ucenter/userinfo/bind-mobile/bind-mobile.vue
pages/ucenter/userinfo/bind-mobile/bind-mobile.vue
+10
-12
未找到文件。
components/uni-send-sms-code/uni-send-sms-code.vue
浏览文件 @
75bde22a
...
...
@@ -53,6 +53,7 @@
};
},
computed
:
{
innerText
()
{
if
(
this
.
reverseNumber
==
0
)
return
this
.
$t
(
'
common.getVerifyCode
'
);
return
this
.
$t
(
'
smsCode.resendVerifyCode
'
)
+
'
(
'
+
this
.
reverseNumber
+
'
s)
'
;
...
...
@@ -84,9 +85,9 @@
"
type
"
:
this
.
codeType
},
},
}).
then
(({
result
})
=>
{
success
:
({
result
})
=>
{
console
.
log
(
result
);
if
(
result
.
code
===
0
)
{
if
(
result
.
code
===
0
)
{
uni
.
showToast
({
title
:
this
.
$t
(
'
smsCode.sendSuccessTip
'
),
icon
:
'
none
'
...
...
@@ -94,42 +95,14 @@
this
.
reverseNumber
=
Number
(
this
.
count
);
this
.
getCode
();
this
.
$emit
(
'
getCode
'
);
}
else
{
}
else
{
uni
.
showModal
({
content
:
result
.
msg
,
showCancel
:
false
});
}
return
result
}
})
// uniCloud.callFunction({
// name:'uni-id-cf',
// data:{
// action:'sendSmsCode',
// params:{
// "mobile": this.phone,
// "type": this.codeType
// },
// },
// success: ({result}) => {
// console.log(result);
// if(result.code===0){
// uni.showToast({
// title: this.$t('smsCode.sendSuccessTip'),
// icon: 'none'
// });
// this.reverseNumber = Number(this.count);
// this.getCode();
// this.$emit('getCode');
// }else{
// uni.showModal({
// content: result.msg,
// showCancel: false
// });
// }
// }
// })
},
getCode
()
{
if
(
this
.
reverseNumber
==
0
)
{
...
...
@@ -147,14 +120,13 @@
</
script
>
<
style
lang=
"scss"
scoped
>
/* #ifndef APP-NVUE */
view
{
/* #ifndef APP-NVUE */
view
{
display
:
flex
;
box-sizing
:
border-box
;
flex-direction
:
column
;
}
/* #endif */
}
/* #endif */
.short-code-btn
{
width
:
200rpx
;
height
:
85rpx
;
...
...
@@ -164,12 +136,10 @@
justify-content
:
center
;
align-items
:
center
;
}
.inner-text
{
font-size
:
28rpx
;
color
:
#AAAAAA
;
}
.inner-text-active
{
color
:
#007aff
;
}
...
...
manifest.json
浏览文件 @
75bde22a
{
"name"
:
"
统一应用基本项目
"
,
"name"
:
"
uuuu
"
,
"appid"
:
"请点击重新获取"
,
"description"
:
"云端一体应用快速开发模版"
,
"versionName"
:
"1.0.0"
,
...
...
@@ -8,28 +8,23 @@
"app-plus"
:
{
"locales"
:
{
"en"
:
{
//
英文
"name"
:
"uni-starter"
,
//
应用名称
"name"
:
"uni-starter"
,
"android"
:
{
"strings"
:
{
//Android平台自定义字符串
"CustomKey"
:
"CustomValue"
}
},
"ios"
:
{
"privacyDescription"
:
{
//iOS平台隐私访问描述信息
"NSPhotoLibraryUsageDescription"
:
"access to the user’s photo library(read)"
},
"infoPlist"
:
{
//iOS平台自定义InfoPlist.strings
"CustomKey"
:
"CustomValue"
}
}
},
"zh"
:
{
//
中文(简体)
"name"
:
"统一应用基本项目"
//
应用名称
"name"
:
"统一应用基本项目"
}
},
"privacy"
:
{
...
...
@@ -224,3 +219,4 @@
"_spaceID"
:
""
,
"vueVersion"
:
"2"
}
pages/grid/grid.vue
浏览文件 @
75bde22a
...
...
@@ -78,7 +78,6 @@
},
methods
:
{
change
(
e
)
{
// console.log("e: ",e);
uni
.
showToast
({
title
:
this
.
$t
(
'
grid.clickTip
'
)
+
"
"
+
`
${
e
.
detail
.
index
}
`
+
"
"
+
this
.
$t
(
'
grid.clickTipGrid
'
),
icon
:
'
none
'
...
...
pages/list/list.nvue
浏览文件 @
75bde22a
...
...
@@ -22,7 +22,6 @@
<!-- #ifdef APP-NVUE -->
<refreshBox @refresh="refresh" :loading="loading"></refreshBox>
<!-- #endif -->
<!-- 列表渲染 -->
<uni-list-item :to="'/pages/list/detail?id='+item._id+'&title='+item.title" v-for="(item,index) in data"
:key="index">
...
...
@@ -42,7 +41,6 @@
</view>
</template>
</uni-list-item>
<!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 -->
<uni-list-item>
<template v-slot:body>
...
...
@@ -116,8 +114,12 @@
// title:"获取定位中"
// });
//默认h5端不获取定位
// let location = await gps.getLocation({geocode:true})
// console.log(location);
// #ifndef H5
let location = await gps.getLocation({
geocode: true
})
console.log(location);
// #endif
// if(location){
// uni.showToast({
// title: JSON.stringify(location),
...
...
@@ -150,6 +152,7 @@
// #ifdef APP-NVUE
this.showRefresh = false
// #endif
console.log('end');
})
console.log('refresh');
...
...
@@ -240,3 +243,4 @@
/* #endif */
}
</style>
pages/ucenter/login-page/phone-code/phone-code.vue
浏览文件 @
75bde22a
...
...
@@ -84,7 +84,6 @@
// }
// }
// })
}
}
}
...
...
pages/ucenter/login-page/pwd-login/pwd-login.vue
浏览文件 @
75bde22a
pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
浏览文件 @
75bde22a
pages/ucenter/login-page/register/register.vue
浏览文件 @
75bde22a
pages/ucenter/settings/settings.vue
浏览文件 @
75bde22a
pages/ucenter/userinfo/bind-mobile/bind-mobile.vue
浏览文件 @
75bde22a
...
...
@@ -23,26 +23,26 @@
return
{
currenPhoneArea
:
''
,
formData
:
{
phone
:
""
,
code
:
""
phone
:
""
,
code
:
""
}
}
},
computed
:
{
tipText
()
{
return
this
.
$t
(
'
common.verifyCodeSend
'
)
+
`
${
this
.
currenPhoneArea
}
${
this
.
formData
.
phone
}
。`
+
this
.
$t
(
'
common.passwordDigits
'
)
return
this
.
$t
(
'
common.verifyCodeSend
'
)
+
`
${
this
.
currenPhoneArea
}
${
this
.
formData
.
phone
}
。`
+
this
.
$t
(
'
common.passwordDigits
'
)
},
canSubmit
()
{
return
true
//this.isPhone() && this.isCode();
return
true
//this.isPhone() && this.isCode();
}
},
onLoad
(
event
)
{
uni
.
setNavigationBarTitle
({
title
:
this
.
$t
(
'
bindMobile.navigationBarTitle
'
)
title
:
this
.
$t
(
'
bindMobile.navigationBarTitle
'
)
})
},
onReady
()
{},
onReady
()
{
},
methods
:
{
...
mapMutations
({
setUserInfo
:
'
user/login
'
...
...
@@ -116,13 +116,11 @@
padding
:
50
rpx
;
padding-top
:
10px
;
}
/* #ifndef APP-NVUE || VUE3 */
/* #ifndef APP-NVUE || VUE3 */
.box
/
deep
/
.uni-easyinput__content
{
height
:
50px
;
}
/* #endif */
/* #endif */
.input-box
{
width
:
100%
;
margin-top
:
16px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录