提交 75bde22a 编写于 作者: DCloud_JSON's avatar DCloud_JSON 提交者: study夏羽

重新整理后第1次提交

上级 c40982b1
......@@ -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;
}
......
{
"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"
}
......@@ -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'
......
......@@ -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>
......@@ -84,7 +84,6 @@
// }
// }
// })
}
}
}
......
......@@ -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: 50rpx;
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.
先完成此消息的编辑!
想要评论请 注册