优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="Mask data-v-96d38e2b" bindtap="{{x}}"><view class="data-v-96d38e2b" catchtap="{{w}}"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Title data-v-96d38e2b">发布新PK</view><view class="Individual data-v-96d38e2b"><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" bindinput="{{d}}" placeholder="主播名称"/><view wx:if="{{e}}" class="Hint data-v-96d38e2b">请填写主播名称</view></view><view class="Gender data-v-96d38e2b"><wht-select wx:if="{{g}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{f}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-96d38e2b">请选择性别</view></view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins country data-v-96d38e2b"><wht-select wx:if="{{j}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{i}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Coins data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币:</view><uni-number-box wx:if="{{m}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-number-box><view class="number-box-unit data-v-96d38e2b">K</view></view><view wx:if="{{n}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{q}}" class="data-v-96d38e2b" bindchange="{{o}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"/><view wx:if="{{r}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{t}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{v}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
<view wx:if="{{a}}" class="Mask create-module data-v-96d38e2b" bindtap="{{D}}"><view catchtap="{{C}}" class="containers data-v-96d38e2b"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Title data-v-96d38e2b">发布新PK</view><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" cursor-color="#ffffff" placeholder-style="color:#ffffff" bindinput="{{d}}" placeholder="主播名称"/><view wx:if="{{e}}" class="Hint data-v-96d38e2b">请填写主播名称</view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins country data-v-96d38e2b"><wht-select wx:if="{{g}}" class="data-v-96d38e2b" style="width:350rpx" bindchange="{{f}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Gender data-v-96d38e2b"><view class="Gendercs data-v-96d38e2b"><view class="Gendercss data-v-96d38e2b"><wht-select wx:if="{{j}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{i}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-96d38e2b"><image wx:if="{{k}}" class="Gendericon data-v-96d38e2b" src="{{l}}" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-96d38e2b" src="{{n}}" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-96d38e2b" src="{{p}}" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-96d38e2b">请选择性别</view></view></view><view class="goldCoin data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">单位:</view><view class="number-box-unit data-v-96d38e2b">K</view></view><view wx:if="{{t}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{x}}" class="data-v-96d38e2b" bindchange="{{v}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"/><view wx:if="{{y}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{A}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{B}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
@@ -1,4 +1,20 @@
|
||||
|
||||
/* 定义动画 */
|
||||
@keyframes slide-in-96d38e2b {
|
||||
from {
|
||||
transform: translateY(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* 应用动画到组件 */
|
||||
.create-module.data-v-96d38e2b {
|
||||
animation: slide-in-96d38e2b 0.3s ease-in-out;
|
||||
}
|
||||
.Mask.data-v-96d38e2b {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
@@ -7,15 +23,29 @@
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
.Hint.data-v-96d38e2b {
|
||||
color: red;
|
||||
color: rgb(255, 0, 0);
|
||||
font-size: 20rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.Hintcss.data-v-96d38e2b{
|
||||
color: rgb(255, 0, 0);
|
||||
font-size: 20rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.containers.data-v-96d38e2b {
|
||||
background-color: #ffffff;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
.container.data-v-96d38e2b {
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
background-image: linear-gradient(135deg, #00ff4025, #00d5ff3b);
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 1300rpx;
|
||||
border-radius: 50rpx;
|
||||
box-shadow: 0 0 10rpx #ccc;
|
||||
}
|
||||
.Fork.data-v-96d38e2b {
|
||||
width: 50rpx;
|
||||
@@ -26,58 +56,131 @@
|
||||
}
|
||||
.Title.data-v-96d38e2b {
|
||||
width: 100%;
|
||||
height: 30rpx;
|
||||
font-size: 50rpx;
|
||||
height: 80rpx;
|
||||
font-size: 70rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 40rpx;
|
||||
margin-bottom: 40rpx;
|
||||
/* 设置渐变背景 */
|
||||
background-image: linear-gradient(135deg, #ffff00, #00d9ff);
|
||||
/* 关键属性组合 */
|
||||
-webkit-background-clip: text; /* 兼容 iOS/Android */
|
||||
background-clip: text;
|
||||
/* 文字颜色设为透明 */
|
||||
color: transparent;
|
||||
/* 防止背景溢出 */
|
||||
display: inline-block;
|
||||
padding: 8rpx 16rpx;
|
||||
text-shadow: 0 6rpx 8rpx rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.Individual.data-v-96d38e2b {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
}
|
||||
.NameAnchor.data-v-96d38e2b {
|
||||
width: 90%;
|
||||
margin: 40rpx;
|
||||
}
|
||||
.time.data-v-96d38e2b {
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.NameAnchorcss.data-v-96d38e2b {
|
||||
width: 300rpx;
|
||||
width: 99%;
|
||||
height: 85rpx;
|
||||
border: 1rpx solid #ccc;
|
||||
border-radius: 10rpx;
|
||||
background-image: linear-gradient(135deg, #d9ff007a, #00ffb364);
|
||||
border-top: 2rpx solid #ffbf0049;
|
||||
border-bottom: 2rpx solid #125b003a;
|
||||
border-left: 2rpx solid #ffbf0050;
|
||||
border-right: 2rpx solid #125b0036;
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
color:#ffffff;
|
||||
}
|
||||
.Gender.data-v-96d38e2b {
|
||||
width: 300rpx;
|
||||
height: 80rpx;
|
||||
margin: 40rpx;
|
||||
}
|
||||
.Accountnumber.data-v-96d38e2b {
|
||||
display: flex;
|
||||
}
|
||||
.Coins.data-v-96d38e2b {
|
||||
margin-top: 40rpx;
|
||||
margin-bottom: 40rpx;
|
||||
width: 400rpx;
|
||||
height: 65rpx;
|
||||
width: 310rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.Gendercs.data-v-96d38e2b{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
/* align-items: center; */
|
||||
}
|
||||
.country.data-v-96d38e2b{
|
||||
margin-left: 40rpx;
|
||||
.Gendercss.data-v-96d38e2b{
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
.Gendericoncss.data-v-96d38e2b{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
border: 1rpx solid #ff9d0067;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.Gendericon.data-v-96d38e2b{
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
/* margin-top: 10rpx;
|
||||
margin-right: 40rpx; */
|
||||
}
|
||||
.Accountnumber.data-v-96d38e2b {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 60rpx;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.Coins.data-v-96d38e2b {
|
||||
width: 330rpx;
|
||||
height: 65rpx;
|
||||
/* display: flex; */
|
||||
margin-right: 50rpx;
|
||||
/* flex-direction: column; */
|
||||
}
|
||||
.country.data-v-96d38e2b {
|
||||
margin-left:10rpx;
|
||||
}
|
||||
.goldCoin.data-v-96d38e2b {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.number-box.data-v-96d38e2b {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.number-box-title.data-v-96d38e2b {
|
||||
margin-right: 20rpx;
|
||||
/* margin-right: 20rpx; */
|
||||
/* 设置渐变背景 */
|
||||
background-image: linear-gradient(135deg, #00ff227a, #a200ff64);
|
||||
/* 关键属性组合 */
|
||||
-webkit-background-clip: text; /* 兼容 iOS/Android */
|
||||
background-clip: text;
|
||||
/* 文字颜色设为透明 */
|
||||
color: transparent;
|
||||
/* 防止背景溢出 */
|
||||
display: inline-block;
|
||||
padding: 8rpx 16rpx;
|
||||
}
|
||||
.number-box-unit.data-v-96d38e2b {
|
||||
color: #ffb30067;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
border: 1rpx solid #ff9d006f;
|
||||
border-radius: 50%;
|
||||
line-height: 48rpx;
|
||||
text-align: center;
|
||||
/* color: #003cff5a; */
|
||||
}
|
||||
.Remarkscss.data-v-96d38e2b {
|
||||
width: 90%;
|
||||
@@ -88,10 +191,18 @@
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.Publish.data-v-96d38e2b {
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 40rpx;
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
}
|
||||
.Publishcss.data-v-96d38e2b {
|
||||
background-color: #0048ff94;
|
||||
background-image: linear-gradient(135deg, #00ffb354, #c300ff37);
|
||||
/* color: #33ff00; */
|
||||
color: #ffffff;
|
||||
border-bottom: 2rpx solid #c300ff37;
|
||||
border-top: 2rpx solid #00ffb354;
|
||||
border-right: 2rpx solid #c300ff37;
|
||||
border-left: 2rpx solid #00ffb354;
|
||||
font-weight: bold;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,11 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
// 输入昵称
|
||||
inputName(e) {
|
||||
this.name = e.detail.value;
|
||||
@@ -52,7 +57,7 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
this.userinfo = res;
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:71", err);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:77", err);
|
||||
});
|
||||
if (this.userinfo) {
|
||||
const res = await components_request.request({
|
||||
@@ -91,7 +96,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: $data.userinfo,
|
||||
b: common_vendor.o$1((...args) => $options.Userinfo && $options.Userinfo(...args)),
|
||||
c: common_vendor.o$1((...args) => $options.inputName && $options.inputName(...args)),
|
||||
d: common_vendor.o$1((...args) => $options.wxLogin && $options.wxLogin(...args))
|
||||
d: common_vendor.o$1((...args) => $options.wxLogin && $options.wxLogin(...args)),
|
||||
e: common_vendor.o$1((...args) => $options.cancel && $options.cancel(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c55a289"]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="container data-v-3c55a289"><button class="login-btn data-v-3c55a289" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-3c55a289" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-3c55a289" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-3c55a289" bindtap="{{d}}">修改</button></view>
|
||||
<view class="container data-v-3c55a289"><button class="login-btn data-v-3c55a289" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-3c55a289" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-3c55a289" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-3c55a289" bindtap="{{d}}">修改</button><button class="weui-btn data-v-3c55a289" bindtap="{{e}}">取消</button></view>
|
||||
@@ -4,7 +4,6 @@ const components_formatDate = require("../../components/formatDate.js");
|
||||
const components_VerifyLogin = require("../../components/VerifyLogin.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {
|
||||
item: {}
|
||||
@@ -14,7 +13,7 @@ const _sfc_main = {
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item;
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:65", "接收到的数据:", this.item);
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:64", "接收到的数据:", this.item);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user