|
@@ -86,6 +86,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import Base_url from "@/api/request.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -120,7 +121,7 @@ export default {
|
|
|
"password": this.loginForm.password
|
|
|
}
|
|
|
uni.request({
|
|
|
- url: 'http://localhost:8012/BH_CLIS/landed3.action',
|
|
|
+ url: Base_url + 'landed3.action',
|
|
|
method: 'POST',
|
|
|
data:obj,
|
|
|
// data: obj,
|
|
@@ -133,6 +134,7 @@ export default {
|
|
|
wx.setStorageSync('userName', this.loginForm.username);
|
|
|
wx.setStorageSync('password', this.loginForm.password);
|
|
|
wx.setStorageSync('accountId', res.data.data.accountId);
|
|
|
+ wx.setStorageSync('userId', res.data.data.userId);
|
|
|
if (res.data.data.customerVOS.length > 0) {
|
|
|
wx.setStorageSync('customerVOS', res.data.data.customerVOS);
|
|
|
}
|
|
@@ -164,6 +166,7 @@ export default {
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
console.error('登录请求失败:', err)
|
|
|
+ console.log(err)
|
|
|
uni.showToast({
|
|
|
title: '网络错误',
|
|
|
icon: 'none'
|