Commit 0b795cb9 authored by Mac's avatar Mac

登录的处理

parent c8d5c290
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
getLogin(obj) { getLogin(obj) {
var that = this; var that = this;
let pid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0; let pid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId")?uni.getStorageSync("SmallShopId").SmallShopId:0; let SmallShopId = uni.getStorageSync("SmallShopId")?uni.getStorageSync("SmallShopId").SmallShopId:0;
that.request2( that.request2(
{ {
...@@ -130,6 +131,7 @@ export default { ...@@ -130,6 +131,7 @@ export default {
Moblie: '', Moblie: '',
SuperiorId: pid, SuperiorId: pid,
SmallShopId:SmallShopId, SmallShopId:SmallShopId,
UserPageType: Up,
} }
}, },
res => { res => {
......
...@@ -448,6 +448,7 @@ export default { ...@@ -448,6 +448,7 @@ export default {
getLogin(obj) { getLogin(obj) {
var that = this; var that = this;
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0; let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") let SmallShopId = uni.getStorageSync("SmallShopId")
? uni.getStorageSync("SmallShopId").SmallShopId ? uni.getStorageSync("SmallShopId").SmallShopId
: 0; : 0;
...@@ -462,6 +463,7 @@ export default { ...@@ -462,6 +463,7 @@ export default {
Moblie: "", Moblie: "",
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up,
}, },
}, },
(res) => { (res) => {
......
...@@ -340,6 +340,7 @@ export default { ...@@ -340,6 +340,7 @@ export default {
getLogin() { getLogin() {
var that = this; var that = this;
let pid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0; let pid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId")?uni.getStorageSync("SmallShopId").SmallShopId:0; let SmallShopId = uni.getStorageSync("SmallShopId")?uni.getStorageSync("SmallShopId").SmallShopId:0;
that.request2( that.request2(
{ {
...@@ -352,6 +353,7 @@ export default { ...@@ -352,6 +353,7 @@ export default {
Moblie: '', Moblie: '',
SuperiorId: pid, SuperiorId: pid,
SmallShopId:SmallShopId, SmallShopId:SmallShopId,
UserPageType: Up,
} }
}, },
res => { res => {
......
...@@ -3,8 +3,9 @@ export default { ...@@ -3,8 +3,9 @@ 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.0.110:8200" // Vue.prototype.host2 = "http://192.168.0.110:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com" // Vue.prototype.host2 = "https://mallApi.oytour.com"
Vue.prototype.host2 = "https://mallApi.oytour.com" Vue.prototype.host2 = "http://192.168.1.9:8088"
//Vue.prototype.host2 = "http://192.168.2.16:8088" // Vue.prototype.host2 = "http://192.168.1.21"
// Vue.prototype.host2 = "http://192.168.1.27:8200"
Vue.prototype.request = function(param, success, failed) { Vue.prototype.request = function(param, success, failed) {
//网络请求 //网络请求
uni.request({ uni.request({
...@@ -86,6 +87,7 @@ export default { ...@@ -86,6 +87,7 @@ export default {
// token失效再次登录接口 // token失效再次登录接口
Vue.prototype.getLogin_t = function(obj) { Vue.prototype.getLogin_t = function(obj) {
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0; let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0; let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
this.request2({ this.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
...@@ -97,6 +99,7 @@ export default { ...@@ -97,6 +99,7 @@ export default {
Moblie: '', Moblie: '',
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up,
} }
}, },
res => { res => {
......
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