消息
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<view class="Advertisement">
|
||||
<advertisement></advertisement>
|
||||
</view>
|
||||
<view class="contentList">
|
||||
<view class="contentList">
|
||||
<contentList></contentList>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
@@ -26,10 +26,21 @@ export default {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
this.requestSomething();
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
requestSomething() {
|
||||
wx.request({
|
||||
url: "http://192.168.0.218:8086/user/login", // 请求的 URL
|
||||
method: "POST", // 请求方式
|
||||
success: (res) => {
|
||||
console.log("请求成功", res.data); // 处理成功的响应
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("请求失败", err); // 处理失败的响应
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
@@ -63,19 +74,18 @@ export default {
|
||||
height: 114.5rpx;
|
||||
}
|
||||
.Advertisement {
|
||||
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 {
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1300rpx;
|
||||
position: fixed;
|
||||
top: 300rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1300rpx;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user