优化页面
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<template>
|
||||
<view class="contact">
|
||||
<h1>联系方式</h1>
|
||||
<view class="bg">
|
||||
<image class="bgImg" src="../../../static/HomeBackground.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="title">联系客服</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -15,17 +21,46 @@
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.contact{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -102,31 +102,7 @@ export default {
|
||||
slidetext: "我发布的PK", // 导航栏文字
|
||||
pkmyRecordlist: [], // PK记录列表
|
||||
pkInvitationRecordlist: [], // PK记录列表
|
||||
pkRecordlist: [{
|
||||
winnerId: "1",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "123",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "456",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "123",
|
||||
senderB: "456",
|
||||
},
|
||||
{
|
||||
winnerId: "2",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "789",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "101",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "789",
|
||||
senderB: "101",
|
||||
},
|
||||
], // PK记录列表
|
||||
pkRecordlist: [], // PK记录列表
|
||||
userinfo: {}, // 用户信息
|
||||
page: 0, // 页码
|
||||
};
|
||||
|
||||
@@ -215,7 +215,7 @@ export default {
|
||||
this.Display = false;
|
||||
this.Hint = false;
|
||||
this.nameAnchor = "";
|
||||
this.genders = "";
|
||||
this.genders = 0;
|
||||
this.numberCoins = "";
|
||||
this.remarks = "";
|
||||
this.datetimesingle = "";
|
||||
@@ -234,7 +234,7 @@ export default {
|
||||
//判断是否为空
|
||||
if (
|
||||
this.nameAnchor == "" && this.nameAnchor == null ||
|
||||
this.genders == "" && this.genders == null ||
|
||||
this.genders == 0 && this.genders == null ||
|
||||
this.numberCoins =="" && this.numberCoins == null ||
|
||||
this.datetimesingle == "" && this.datetimesingle == null ||
|
||||
this.countrys == "" && his.countrys == null ||
|
||||
|
||||
66
pages/Mine/minecomponents/serviceProtocol.vue
Normal file
66
pages/Mine/minecomponents/serviceProtocol.vue
Normal file
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<view class="service-protocol">
|
||||
<view class="bg">
|
||||
<image class="bgImg" src="../../../static/HomeBackground.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="title">服务协议</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
// 返回上一页
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user