diff --git a/common/api/user.js b/common/api/user.js index 174c82c..4b6dc40 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -7,16 +7,58 @@ export default { sms_code: sms_code }); }, + // 启动页 + pageList({document_code}) { + return vm.$u.post('StartUp/pageList', {}); + }, + // 首页协议 + documentInfo({document_code}) { + return vm.$u.post('StartUp/documentInfo', { + document_code : document_code + }); + }, + //获取验证码接口 + sendSmsCode({member_mobile, smslog_type}) { + return vm.$u.post('sms/sendSmsCode', { + member_mobile: member_mobile, + smslog_type: smslog_type + }); + }, + // 用户验证码登录 phoneLogin({member_mobile, sms_code}) { return vm.$u.post('auth/phoneLogin', { member_mobile: member_mobile, sms_code: sms_code }); }, - sendSmsCode({member_mobile, sms_type}) { - return vm.$u.get('sms/sendSmsCode', { + //手机号(用户)注册 + phoneRegister({member_mobile, sms_code}) { + return vm.$u.post('auth/phoneRegister', { member_mobile: member_mobile, - sms_type: sms_type + sms_code: sms_code + }); + }, + // 微信授权登录 + wechatLogin({member_wxopenid, member_nickname,member_avatar}) { + return vm.$u.post('auth/wechatLogin', { + member_wxopenid: member_wxopenid, + member_nickname: member_nickname, + member_avatar : member_avatar + }); + }, + // qq授权登录 + qqLogin({member_qqopenid, member_nickname,member_avatar}) { + return vm.$u.post('auth/qqLogin', { + member_qqopenid: member_qqopenid, + member_nickname: member_nickname, + member_avatar : member_avatar + }); + }, + // 绑定手机号 + mobileBind({member_mobile,sms_code}) { + return vm.$u.post('auth/mobileBind', { + member_mobile: member_mobile, + sms_code: sms_code }); } } diff --git a/components/logininput/identifying.vue b/components/logininput/identifying.vue new file mode 100644 index 0000000..67a15d5 --- /dev/null +++ b/components/logininput/identifying.vue @@ -0,0 +1,105 @@ + + + + + + diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue index ba078b1..858f2a0 100644 --- a/components/remaining/remaining.vue +++ b/components/remaining/remaining.vue @@ -47,8 +47,23 @@ }; }, onLoad() { + + }, methods: { + apiwelcome(){ + this.$u.api.documentInfo({ + document_code:'agreement' + }).then((res)=>{ + console.log('协议',res) + + }) + // 启动页 + this.$u.api.pageList({}).then((res)=>{ + console.log('协议',res) + + }) + }, // 3秒倒计时 remaining_time(){ this.timer=setInterval(() => { @@ -89,6 +104,7 @@ this.remaining_time() // 获取屏幕高度 this.getSystemInfo() + this.apiwelcome() } } diff --git a/manifest.json b/manifest.json index 728df69..42288db 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "deming", - "appid" : "", + "appid" : "__UNI__10450AF", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -17,40 +17,49 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules" : { + "OAuth" : {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ "android" : { "permissions" : [ - "", - "", - "", - "", - "", - "", + "", "", - "", + "", + "", "", + "", + "", "", - "", + "", + "", + "", "", "", + "", + "", + "", "", - "", + "", + "", "", - "", - "", - "", - "", - "", + "", "" ] }, /* ios打包配置 */ "ios" : {}, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "ad" : {}, + "oauth" : { + "qq" : { + "appid" : "101884160" + } + } + } } }, /* 快应用特有相关 */ @@ -72,7 +81,7 @@ "mp-toutiao" : { "usingComponents" : true }, - "uniStatistics": { - "enable": false + "uniStatistics" : { + "enable" : false } } diff --git a/pageA/login/login.vue b/pageA/login/login.vue index 0944401..3156644 100644 --- a/pageA/login/login.vue +++ b/pageA/login/login.vue @@ -8,24 +8,20 @@ 手机登录 - + - + - - - - {{tips}} - + 我已详细阅读并同意 - 《用户协议》 + 《用户协议》 《隐私协议》 《使用协议》 @@ -36,17 +32,17 @@ - {{login}} + {{login}} - + QQ登录 @@ -59,26 +55,127 @@ +