Commit f15b022d authored by 罗超's avatar 罗超

2

parent e0ec6863
...@@ -930,6 +930,9 @@ export default { ...@@ -930,6 +930,9 @@ export default {
let EduSchoolId = uni.getStorageSync("EduSchoolId") let EduSchoolId = uni.getStorageSync("EduSchoolId")
? uni.getStorageSync("EduSchoolId").EduSchoolId ? uni.getStorageSync("EduSchoolId").EduSchoolId
: 0; : 0;
let EduId = uni.getStorageSync("jxhData")
? uni.getStorageSync("jxhData").Id
: 0;
that.request2( that.request2(
{ {
url: "/api/AppletLogin/Login", url: "/api/AppletLogin/Login",
...@@ -945,6 +948,7 @@ export default { ...@@ -945,6 +948,7 @@ export default {
CounponPassword: CounponPassword, CounponPassword: CounponPassword,
KeyWord: KeyWord, KeyWord: KeyWord,
EduSchoolId: EduSchoolId, EduSchoolId: EduSchoolId,
EduId:EduId,
}, },
}, },
(res) => { (res) => {
......
...@@ -953,6 +953,7 @@ ...@@ -953,6 +953,7 @@
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0; let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0;
let KeyWord = uni.getStorageSync("KeyWord") ? uni.getStorageSync("KeyWord").KeyWord : ''; let KeyWord = uni.getStorageSync("KeyWord") ? uni.getStorageSync("KeyWord").KeyWord : '';
let EduSchoolId = uni.getStorageSync("EduSchoolId") ? uni.getStorageSync("EduSchoolId").EduSchoolId : 0; let EduSchoolId = uni.getStorageSync("EduSchoolId") ? uni.getStorageSync("EduSchoolId").EduSchoolId : 0;
let EduId = uni.getStorageSync("jxhData")? uni.getStorageSync("jxhData").Id: 0;
that.request2({ that.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
data: { data: {
...@@ -967,6 +968,7 @@ ...@@ -967,6 +968,7 @@
CounponPassword:CounponPassword, CounponPassword:CounponPassword,
KeyWord:KeyWord, KeyWord:KeyWord,
EduSchoolId:EduSchoolId, EduSchoolId:EduSchoolId,
EduId:EduId,
} }
}, },
res => { res => {
......
...@@ -3,8 +3,8 @@ export default { ...@@ -3,8 +3,8 @@ export default {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285" Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
// Vue.prototype.host2 = "http://192.168.20.24:8200" // Vue.prototype.host2 = "http://192.168.20.24:8200"
// Vue.prototype.host2 = "http://192.168.20.8:8088" Vue.prototype.host2 = "http://192.168.10.02:8088"
Vue.prototype.host2 = "https://mallApi.oytour.com" // Vue.prototype.host2 = "https://mallApi.oytour.com"
Vue.prototype.UploadConfig = function() { //本地上传配置 Vue.prototype.UploadConfig = function() { //本地上传配置
return { return {
...@@ -60,7 +60,8 @@ export default { ...@@ -60,7 +60,8 @@ export default {
this.getLogin_t(u) this.getLogin_t(u)
} }
} else if (res.data.resultCode != 1) { } else if (res.data.resultCode != 1) {
if (res.data.message != '') {
if (res.data.message) {
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: "none", icon: "none",
...@@ -132,6 +133,7 @@ export default { ...@@ -132,6 +133,7 @@ export default {
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword :
0; 0;
let KeyWord = uni.getStorageSync("KeyWord") ? uni.getStorageSync("KeyWord").KeyWord : ''; let KeyWord = uni.getStorageSync("KeyWord") ? uni.getStorageSync("KeyWord").KeyWord : '';
let EduId = uni.getStorageSync("jxhData") ? uni.getStorageSync("jxhData").Id : 0;
this.request2({ this.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
data: { data: {
...@@ -145,6 +147,7 @@ export default { ...@@ -145,6 +147,7 @@ export default {
UserPageType: Up, UserPageType: Up,
CounponPassword: CounponPassword, CounponPassword: CounponPassword,
KeyWord: KeyWord, KeyWord: KeyWord,
EduId:EduId,
} }
}, },
res => { res => {
...@@ -162,7 +165,7 @@ export default { ...@@ -162,7 +165,7 @@ export default {
// 获取小程序APPID // 获取小程序APPID
Vue.prototype.GetMiniAppId = function() { Vue.prototype.GetMiniAppId = function() {
let appObj = {}; let appObj = {};
let appType = 1; let appType = 6;
switch (appType) { switch (appType) {
case 1: //赞羊 case 1: //赞羊
appObj = { appObj = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment