|
@@ -48,6 +48,7 @@
|
|
|
<script>
|
|
|
import $http from '@/utils/request.js'
|
|
|
import log from '@/common/log.js'
|
|
|
+ import appId from '@/config/appId.js'
|
|
|
import Auth from '../../components/auth/auth.vue'
|
|
|
export default {
|
|
|
components: {
|
|
@@ -75,7 +76,8 @@
|
|
|
$http.post('/api/v1/mp/user/wxauth/mobile', {
|
|
|
...e.detail,
|
|
|
identity: 1,
|
|
|
- noToken: true
|
|
|
+ noToken: true,
|
|
|
+ appSource: appId,
|
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
@@ -107,7 +109,8 @@
|
|
|
...e.detail,
|
|
|
loginCode: res.code,
|
|
|
identity: 1,
|
|
|
- noToken: true
|
|
|
+ noToken: true,
|
|
|
+ appSource: appId,
|
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
@@ -166,7 +169,7 @@
|
|
|
},
|
|
|
|
|
|
getBaseInfo() {
|
|
|
- $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
|
|
|
+ $http.post('/api/v1/mp/user/getLoginUserinfo', { appSource: appId }).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
uni.setStorageSync('userInfo', res.data)
|
|
@@ -186,7 +189,7 @@
|
|
|
})
|
|
|
},
|
|
|
getBaseInfoAli() {
|
|
|
- $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
|
|
|
+ $http.post('/api/v1/mp/user/getLoginUserinfo', { appSource: appId }).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
uni.setStorageSync('userInfo', res.data)
|