main
liudan 2 years ago
parent 69731be883
commit 03dafa19d8
  1. 8
      api/modules/base.js
  2. 63
      manifest.json
  3. 6
      pages/login.vue
  4. 3
      siteinfo.js

@ -10,6 +10,14 @@ export default {
appLogin(param) { appLogin(param) {
return req.post("index/appLogin", param) return req.post("index/appLogin", param)
}, },
//短信登陆
msgLogin(param) {
return req.post("index/msmLogin", param)
},
//发送验证码
setCode(param){
return req.post("index/sendMsm", param)
},
// 登录协议 // 登录协议
getLoginProtocol(param) { getLoginProtocol(param) {
return req.post("index/getLoginProtocol", param) return req.post("index/getLoginProtocol", param)

@ -34,36 +34,39 @@
"enable" : true "enable" : true
} }
}, },
// "h5" : { "h5" : {
// "title" : "", "router" : {
// "domain" : "https://massage.cncnconnect.com/", "mode" : "hash"
// "devServer" : { },
// "https" : true "title" : "",
// }, "domain" : "https://massage.cncnconnect.com/",
// "router" : { "devServer" : {
// "base" : "/h5/" "https" : true
// }, },
// // "devServer" : { // "router" : {
// // "disableHostCheck" : true, // "base" : "/h5/"
// // "proxy" : { // },
// // "/api" : { "devServer" : {
// // "target" : "https://massage.cncnconnect.com", // "disableHostCheck" : true,
// // "changeOrigin" : true, "proxy" : {
// // "secure" : false, "/api" : {
// // "pathRewrite" : { "target" : "https://xixi-api.njrenzhou.cn",
// // "^/api" : "" "changeOrigin" : true,
// // } "secure" : false,
// // } "pathRewrite" : {
// // } "^/api" : ""
// // }, }
// "sdkConfigs" : { }
// "maps" : { }
// "qqmap" : { },
// "key" : "4IJBZ-DLACP-3QBDS-LI4FT-U2MZZ-5KFFA" "sdkConfigs" : {
// } "maps" : {
// } "qqmap" : {
// } "key" : "4IJBZ-DLACP-3QBDS-LI4FT-U2MZZ-5KFFA"
// }, }
}
}
},
"app-plus" : { "app-plus" : {
/* 5+App */ /* 5+App */
"compatible" : { "compatible" : {

@ -223,7 +223,7 @@
codeChange(text) { codeChange(text) {
this.tips = text; this.tips = text;
}, },
getCode() { async getCode() {
var phoneReg = /(^1\d{10}$)|(^[0-9]\d{7}$)/; var phoneReg = /(^1\d{10}$)|(^[0-9]\d{7}$)/;
if(!phoneReg.test(this.phone)) { if(!phoneReg.test(this.phone)) {
uni.$u.toast('请输入正确的手机号码'); uni.$u.toast('请输入正确的手机号码');
@ -234,6 +234,10 @@
uni.showLoading({ uni.showLoading({
title: '正在获取验证码' title: '正在获取验证码'
}) })
let res = await this.$api.base.setCode({
phone:this.phone
})
console.log(res,"999")
setTimeout(() => { setTimeout(() => {
uni.hideLoading(); uni.hideLoading();
// this.start() // this.start()

@ -5,5 +5,6 @@ module.exports = {
"version": "3.0", "version": "3.0",
"gzh_appid": "wx290579913189dc88", "gzh_appid": "wx290579913189dc88",
// "siteroot": "https://anmo.soqq.com.cn/index.php", // "siteroot": "https://anmo.soqq.com.cn/index.php",
"siteroot": "https://djdj.njrenzhou.cn/index.php" // "siteroot": "https://djdj.njrenzhou.cn/index.php",
"siteroot": "https://xixi-api.njrenzhou.cn",
}; };

Loading…
Cancel
Save