# Conflicts:
#	siteinfo.js
main
liudan 2 years ago
commit 7238db5633
  1. 8
      api/modules/base.js
  2. 63
      manifest.json
  3. 6
      pages/login.vue
  4. 4
      siteinfo.js

@ -10,6 +10,14 @@ export default {
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) {
return req.post("index/getLoginProtocol", param)

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

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

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

Loading…
Cancel
Save