消息
This commit is contained in:
16
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
16
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -10,9 +10,23 @@ const _sfc_main = {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
this.requestSomething();
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
requestSomething() {
|
||||
common_vendor.wx$1.request({
|
||||
url: "http://192.168.0.218:8086/user/login",
|
||||
// 请求的 URL
|
||||
method: "POST",
|
||||
// 请求方式
|
||||
success: (res) => {
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:37", "请求成功", res.data);
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/Home/Home.vue:40", "请求失败", err);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
|
||||
@@ -20,18 +20,17 @@
|
||||
height: 114.5rpx;
|
||||
}
|
||||
.Advertisement.data-v-7ffebbf4 {
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
z-index: 100;
|
||||
}
|
||||
.contentList.data-v-7ffebbf4 {
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1300rpx;
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1300rpx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user