安卓前端作业

一、代码介绍:

1.1、登录页面代码:

1.2注册页面代码:

1.3、主页代码:

1.4、奖励设置代码:

1.5、事件编辑界面:

1.6、事件添加界面:

二、效果图展示:

1.登录页效果图:

2.注册效果图如下:

3.主页效果如下:

3.奖励界面效果:

4.事件编辑效果:

5、事件添加界面:

一、代码介绍:

1.1、登录页面代码:

     <template>

<view class="backColor">

<view class="loverStory">

<text class="headTxt">Lover Story</text>

<view class="admin">

<input type="text" placeholder="请输入账号" class="inTxt"/>

</view>

<view class="passWord">

<input type="password" placeholder="请输入密码" class="inTxt"/>

</view>

<view class="btn">

<button class="loginBtn" @tap="loginTing">登录</button>

</view>

<view class="logImg">

<image src="/static/backImage/image 2.png"></image>

</view>

</view>

</view>

</template>

<script>

export default {

data() {

return {

}

},

methods: {

loginTing(){

uni.navigateTo({

url:'/pages/first/first'

})

/* uni.login({

success: (res) => {

console.log(res.code);

uni.request({

url:"http://localhost:8080/login",

method:"GET",

// header:{

// "Content-Type":"x-www-form-urlencoded"

// },

data:{

code:res.code

},

success: (e) => {

if(e.data.code === 200){

console.log(e);

uni.setStorageSync("token",e.data.data)

}

}

})

}

}) */

}

}

}

</script>

<style lang="scss">

.backColor{

width: 100%;

height: 800px;

background: linear-gradient(197.99deg, #2C9AFF -14.52%, #9C74F3 16.96%, #EC81B4 54.17%, #F1BC97 74.34%, #F4E283 100%);

.loverStory{

.headTxt{

color: white;

font-size: 36px;

margin-top: 109px;

margin-left: 24px;

line-height: 36px;

font-weight: 500;

}

.admin{

margin-top: 60px;

margin-left: 24px;

width: 85%;

height: 52px;

border-radius: 41px;

border: #FFFFFF 1px solid;

background-color: #FFFFFF;

mix-blend-mode: normal;

opacity: 0.3;//透明

.inTxt{

margin-top: 17px;

margin-left: 22px;

width: 90px;

height: 18px;

font-style: normal;

font-weight: 400;

line-height: 18px;

font-family: 'PingFang SC';

}

}

.passWord{

margin-top: 24px;

margin-left: 24px;

width: 85%;

height: 52px;

border-radius: 41px;

border: #FFFFFF 1px solid;

background-color: #FFFFFF;

mix-blend-mode: normal;

opacity: 0.3;//透明

.inTxt{

margin-top: 17px;

margin-left: 22px;

width: 90px;

height: 18px;

font-style: normal;

font-weight: 400;

line-height: 18px;

font-family: 'PingFang SC';

}

}

.btn{

.loginBtn{

position: absolute;

width: 327px;

height: 52px;

margin-left: 24px;

margin-top: 73px;

background: #FFFFFF;

opacity: 0.7;

border-radius: 32px;

}

}

.logImg{

position: absolute;

width: 302px;

height: 289px;

margin-left: 36px;

margin-top: 130px;

/* background: url(image 2.png);

backdrop-filter: blur(2.5px); */

}

}

}

</style>

1.2跳转页代码:

在button属性中添加“@tap="loginTing"”,具体如下:

@tap="loginTing"

loginTing(){

uni.navigateTo({

url:'/pages/first/first'

})

 1.2注册页面代码:

<template>

<view class="backColor">

<view class="txt"> Lover Story</view>

<view class="phoneNum">

手机号

<input type="text" placeholder="请输入账号" class="inTxt"/>

</view>

<view class="passWord">

设置密码

<input type="password" placeholder="请输入密码" class="inTxt"/>

</view>

<view class="btn">

<button class="reg">

注册

</button>

</view>

</view>

</template>

<script>

export default {

data() {

return {

}

},

methods: {

}

}

</script>

<style lang="scss">

.backColor{

width: 100%;

height: 800px;

background: linear-gradient(197.99deg, #2C9AFF -14.52%, #9C74F3 16.96%, #EC81B4 54.17%, #F1BC97 74.34%, #F4E283 100%);

.txt{

color: white;

font-size: 36px;

margin-left: 24px;

line-height: 36px;

font-weight: 500;

}

.phoneNum{

position: absolute;

width: 192px;

height: 28px;

font-style: normal;

font-weight: 500;

font-size: 18px;

line-height: 18px;

margin-top: 80px;

margin-left: 30px;

color: white;

.inTxt{

position: absolute;

width: 315px;

height: 0px;

margin-top: 16px;

border:none;   

border-bottom: 1px solid rgba(255, 255, 255, 0.8)

}

}

.passWord{

margin-top: 196px;

margin-left: 30px;

position: absolute;

width: 192px;

height: 28px;

font-style: normal;

font-weight: 500;

font-size: 18px;

line-height: 18px;

color: white;

.inTxt{

position: absolute;

width: 315px;

height: 0px;

margin-top: 16px;

border:none;   

border-bottom: 1px solid rgba(255, 255, 255, 0.8)

}

}

.btn{

.reg{

margin-top: 307px;

position: absolute;

width: 327px;

height: 52px;

margin-left: 24px;

background: #FFFFFF;

opacity: 0.7;

border-radius: 32px;

}

}

}

</style>

1.3、主页代码:

<template>

<view class="backColor">

<!-- 心动值 -->

<view class="header">

<view class="loveNuber">心动值:

<input type="text" class="getNuber"/>

</view>

</view>

<!-- 心跳值 -->

<view class="neck" v-show="isSelect == false" >

<text class="txt">心跳值</text>

<image class="hardImg" src="../../static/backImage/Frame.png"></image>

<text class="txt1" @tap="nextPage1">兑换奖励</text>

<image class="arrowImg" src="../../static/backImage/back.png" ></image>

</view>

<view class="neck" v-show="isSelect == true">

<text class="txt">给Ta设置</text>

<image class="hardImg" src="../../static/backImage/Frame.png"></image>

<text class="txt1" @tap="nextPage2">心跳值奖励</text>

<image class="arrowImg" src="../../static/backImage/back.png"></image>

</view>

<!-- 圆角框 -->

<view class="tab-content">

<view class="tab-content-main">

<view class="tab-content-main-left" @tap="selectEvent(1)" :style="{color:isSelect == false?'#FA57B6':'#FFFFFF',backgroundColor:isSelect == false?'#FFFFFF':''}">

我的心跳值:45

</view>

<view class="tab-content-main-right" @tap="selectEvent(2)" :style="{color:isSelect == true?'#FA57B6':'#FFFFFF',backgroundColor:isSelect == true?'#FFFFFF':''}">

Ta的心跳值:46

</view>

</view>

</view>

<!-- 图 -->

<view class="map">

<image class="outside" src="../../static/backImage/Graph.png"></image>

</view>

<!-- 左边的内容区域 -->

<view class="content-left" v-show="isSelect == false">

<view class="content-main">

<!-- 左边 -->

<view class="content-main-left">

<!-- 序号 -->

<view class="content-main-left-num">1</view>

<!-- 标题和时间 -->

<view class="content-main-left-tt">

<view class="content-main-left-tt-title">烧烤撸串</view>

<view class="content-main-left-tt-time">2021-07-04 下午</view>

</view>

</view>

<!-- 右边 -->

<view class="content-main-right">

<!-- 符号 -->

<image class="content-main-right-img" src="/static/backImage/jiahao.png"></image>

<!-- 当前分数 -->

<view class="content-main-right-currentnum">5</view>

<!-- 爱心和总分 -->

<view class="content-main-right-lt">

<image class="content-main-right-lt-img" src="../../static/backImage/pinkHard.png"></image>

<view class="content-main-right-lt-txt">45</view>

</view>

<image class="content-main-right-back" src="../../static/backImage/back-pink.png"></image>

</view>

</view>

</view>

<!-- 右边的内容区域 -->

<view class="content-right" v-show="isSelect == true">

<view class="addEndReduce">

<!-- 加减符号 -->

<view class="content-main-add">

<image class="addImage" src="/static/backImage/Group 3.png" @tap="nextPage3"></image>

</view>

<view class="content-main-reduce">

<image class="reduceImage" src="/static/backImage/Group 4.png" @tap="nextPage4"></image>

</view>

</view>

<view class="content-main">

<!-- 左边 -->

<view class="content-main-left">

<!-- 序号 -->

<view class="content-main-left-num">1</view>

<!-- 标题和时间 -->

<view class="content-main-left-tt">

<view class="content-main-left-tt-title">烧烤撸串</view>

<view class="content-main-left-tt-time">2021-07-04 下午</view>

</view>

</view>

<!-- 右边 -->

<view class="content-main-right">

<!-- 符号 -->

<image class="content-main-right-img" src="/static/backImage/jiahao.png"></image>

<!-- 当前分数 -->

<view class="content-main-right-currentnum">5</view>

<!-- 爱心和总分 -->

<view class="content-main-right-lt">

<image class="content-main-right-lt-img" src="../../static/backImage/pinkHard.png"></image>

<view class="content-main-right-lt-txt">45</view>

</view>

<image class="content-main-right-back" src="../../static/backImage/back-pink.png"></image>

</view>

</view>

</view>

</view>

</template>

<script>

export default {

data() {

return {

/* 动态绑定 */

isSelect:false

}

},

onLoad() {

},

methods: {

/* 设置选择:被选中时出现,未选中时隐藏 */

selectEvent(index){

if(index == 1){

this.isSelect = false

}else{

this.isSelect = true

}

},

/* 跳转至你给他设置的奖励 */

nextPage1(){

uni.navigateTo({

url:"/pages/meRword/meRword"

})

},

/* 跳转至ta给你设置的奖励 */

nextPage2(){

uni.navigateTo({

url:"/pages/taReword/taReword"

})

},

/* 跳转至添加加分项 */

nextPage3(){

uni.navigateTo({

url:"/pages/addHappyThing/addHappyThing"

})

},

/* 跳转至扣分项 */

nextPage4(){

uni.navigateTo({

url:"/pages/addBadThing/addBadThing"

})

}

}

}

</script>

<style lang="scss">

.backColor{

width: 100%;

height: 800px;

background: linear-gradient(197.99deg, #2C9AFF -14.52%, #9C74F3 16.96%, #EC81B4 54.17%, #F1BC97 74.34%, #F4E283 100%);

box-sizing: border-box;

/* background-image: url("/static/backImage/backColor.jpg"); */

.header{

display: flex;

flex-direction: column;

font-size: 60rpx;

.loveNuber{

color: white;

margin-left: 24rpx;

margin-top: 104rpx;

display: flex;

flex-direction: row;

.getNuber{

width: 20%;

font-size: 60rpx;

}

}

}

.neck{

margin-top: 18px;

display: flex;

flex-direction: row;

.txt{

color: white;

margin-left: 24rpx;

font-size: 30rpx;

margin-top: 18rpx;

}

.hardImg{

margin-top: 18rpx;

margin-left: 10rpx;

width: 16px;

height: 16px;

}

.txt1{

color: white;

margin-left: 20rpx;

font-size: 30rpx;

margin-top: 18rpx;

}

.arrowImg{

margin-top: 23rpx;

margin-left: 20rpx;

width: 10px;

height: 16px;

}

}

.tab-content{

margin-top: 24px;

width: 100%;

height: 36px;

padding-left: 24px;

padding-right: 24px;

box-sizing: border-box;

.tab-content-main{

width: 100%;

height: 100%;

display: flex;

.tab-content-main-left{

width: 50%;

height: 100%;

border: 3px solid white;

border-right-width: 0;

box-sizing: border-box;

border-top-left-radius: 36px;

border-bottom-left-radius: 36px;

display: flex;

justify-content: center;

align-items: center;

}

.tab-content-main-right{

width: 50%;

height: 100%;

border: 3px solid white;

border-left-width: 0;

box-sizing: border-box;

border-top-right-radius: 36px;

border-bottom-right-radius: 36px;

display: flex;

justify-content: center;

align-items: center;

}

}

}

.outside{

margin-top: 157rpx;

margin-bottom: 39px;

width: 100%;

height: 200px;

}

.content-left{

width: 100%;

height: 50px;

margin: auto;

padding-left:24px ;

padding-right: 24px;

box-sizing: border-box;

.content-main{

padding-top: 10px;

padding-bottom: 10px;

padding-left: 24px;

padding-right: 24px;

box-sizing: border-box;

width: 100%;

height: 100%;

display: flex;

justify-content: space-between;

border-radius: 36px;

background-color: #FFFFFF;

.content-main-left{

/* width: 100%; */

max-width: 130px;//限定最大宽度

overflow: hidden; /*超过区域就隐藏*/

white-space: nowrap; /*规定段落中的文本不进行换行*/

text-overflow: ellipsis;/*显示省略符号来代表被修剪的文本。*/

height: 100%;

display: flex;

.content-main-left-tt{

height: 100%;

display: flex;

flex-direction: column;

justify-content:space-between;

.content-main-left-tt-title{

font-weight: 400;

font-size: 16px;

line-height: 16px;

text-align: center;

color: #121B36;

}

.content-main-left-tt-time{

font-weight: 400;

font-size: 10px;

line-height: 10px;

text-align: center;

color: #000000;

opacity: 0.2;

}

}

.content-main-left-num{

display: flex;

align-items: center;

margin-right: 23px;

}

}

.content-main-right{

width: 100px;

height: 100%;

display: flex;

align-items: center;

justify-content: flex-end;

.content-main-right-back{

margin-left: 26.64px;

width: 10px;

height: 16px;

}

.content-main-right-img{

width: 6px;

height: 6px;

margin-right: 16px;

}

.content-main-right-currentnum{

font-style: normal;

font-weight: 400;

font-size: 14px;

line-height: 14px;

text-align: center;

color: #FA57B6;

margin-right: 8px;

}

.content-main-right-lt{

display: flex;

flex-direction: column;

justify-content: space-between;

align-items: center;

.content-main-right-lt-img{

width: 14px;

height: 14px;

}

.content-main-right-lt-txt{

font-style: normal;

font-weight: 500;

font-size: 14px;

line-height: 14px;

text-align: center;

color: #121B36;

}

}

}

}

}

.content-right{

width: 100%;

height: 308px;

margin: auto;

padding-top: 36px;

padding-left:24px ;

padding-right: 24px;

box-sizing: border-box;

border-radius: 36px 36px 0 0 ;

background-color: #FFFFFF;

.addEndReduce{

margin-left: 210px;

display: flex;

flex-direction: row;

width: 88px;

height: 44px;

.content-main-add{

width: 100%;

height: 44px;

.addImage{

width: 44px;

height: 44px;

margin-right: 35px;

}

}

.content-main-reduce{

width: 100%;

height: 44px;

.reduceImage{

width: 44px;

height: 44px;

}

}

}

.content-main{

padding-top: 10px;

padding-bottom: 10px;

padding-left: 24px;

padding-right: 24px;

box-sizing: border-box;

width: 100%;

height: 55px;

display: flex;

justify-content: space-between;

border-radius: 36px;

background-color: #FFFFFF;

.content-main-left{

max-width: 130px;//限定最大宽度

overflow: hidden; /*超过区域就隐藏*/

white-space: nowrap; /*规定段落中的文本不进行换行*/

text-overflow: ellipsis;/*显示省略符号来代表被修剪的文本。*/

height: 100%;

display: flex;

.content-main-left-tt{

height: 100%;

display: flex;

flex-direction: column;

justify-content:space-between;

justify-content: center;

.content-main-left-tt-title{

font-weight: 400;

font-size: 16px;

line-height: 16px;

text-align: center;

color: #121B36;

}

.content-main-left-tt-time{

font-weight: 400;

font-size: 10px;

line-height: 10px;

text-align: center;

color: #000000;

opacity: 0.2;

}

}

.content-main-left-num{

display: flex;

align-items: center;

margin-right: 23px;

}

}

.content-main-right{

width: 100px;

height: 100%;

display: flex;

align-items: center;

justify-content: flex-end;

.content-main-right-back{

margin-left: 26.64px;

width: 10px;

height: 16px;

}

.content-main-right-img{

width: 6px;

height: 6px;

margin-right: 16px;

}

.content-main-right-currentnum{

font-style: normal;

font-weight: 400;

font-size: 14px;

line-height: 14px;

text-align: center;

color: #FA57B6;

margin-right: 8px;

}

.content-main-right-lt{

display: flex;

flex-direction: column;

justify-content: space-between;

align-items: center;

.content-main-right-lt-img{

width: 14px;

height: 14px;

}

.content-main-right-lt-txt{

font-style: normal;

font-weight: 500;

font-size: 14px;

line-height: 14px;

text-align: center;

color: #121B36;

}

}

}

}

}

}

</style>

1.4、奖励设置代码:

<template>

<view class="backColor">

<view class="back">

<image class="backImg" src="/static/backImage/backhome.png"></image>

</view>

<view class="content" >

<text class="content-txt">我的</text>

<image class="hardImg" src="../../static/backImage/Frame.png"></image>

<text class="txt1">跳值:

<text class="txt1-num">45</text>

</text>

</view>

<!-- 外框 -->

<view class="content-main">

<view class="content-main-tt">

<!-- 标题 -->

<view class="content-main-tt-title">

您获得的每一次心跳,都是Ta的每一次♥动

</view>

<!-- 券 -->

<view class="content-main-tt-ting">

<!-- 左边分数 -->

<view class="content-main-tt-ting-left">

30分

</view>

<!-- 中间事件 -->

<view class="content-main-tt-ting-center">

电影双人劵

</view>

<!-- 右边按钮 -->

<view class="content-main-tt-ting-right">

<button class="btn">领取</button>

</view>

</view>

<!-- 领取按钮 -->

<view class="receive">

<button class="receive-btn">

一键提交

</button>

</view>

</view>

</view>

</view>

</template>

<script>

export default {

data() {

return {

}

},

methods: {

}

}

</script>

<style lang="scss">

/* 总体背景 */

.backColor{

width: 100%;

height: 800px;

background: linear-gradient(197.99deg, #2C9AFF -14.52%, #9C74F3 16.96%, #EC81B4 54.17%, #F1BC97 74.34%, #F4E283 100%);

display: flex;

flex-direction: column;

box-sizing: border-box;

/* home键 */

.backImg{

width: 9px;

height: 16px;

margin-top: 68px;

margin-left: 24px;

}

/* 标题 */

.content{

/* margin-top: 10px; */

display: flex;

box-sizing: border-box;

margin-bottom: 24px;

.content-txt{

position: absolute;

width: 72px;

height: 36px;

margin-left: 24px;

margin-top: 25px;

font-style: normal;

font-weight: 500;

font-size: 36px;

line-height: 36px;

text-align: center;

color: #FFFFFF;

}

.hardImg{

margin-left: 107.65px;

margin-top: 30px;

width: 32.72px;

height: 28.93px;

display:flex;

justify-content: center;

}

.txt1{

position: absolute;

width: 152px;

height: 36px;

margin-left: 130px;

margin-top: 25px;

font-style: normal;

font-weight: 500;

font-size: 36px;

line-height: 36px;

text-align: center;

color: #FFFFFF;

.txt1-num{

position: absolute;

width: 20px;

height: 36px;

font-style: normal;

font-weight: 500;

font-size: 36px;

line-height: 36px;

text-align: center;

color: #FFFFFF;

}

}

}

/* 下半部分 */

.content-main{

width: 100%;

height: 643px;

background-color: #FFFFFF;

border-radius: 36px 36px 0 0;

.content-main-tt{

width: 100%;

height: 100%;

display: flex;

flex-direction: column;

box-sizing: border-box;

/* justify-content: center; */

align-items: center;

padding-left: 24px;

padding-top: 24px;

padding-right: 24px;

padding-bottom: 24px;

.content-main-tt-title{

position: absolute;

width: 270px;

height: 14px;

/* padding-left: 24px; */

/* padding-top: 24px; */

font-style: normal;

font-weight: 400;

font-size: 14px;

line-height: 14px;

/* text-align: center; */

color: #121B36;

opacity: 0.6;

}

.content-main-tt-ting{

width: 100%;

height: 50px;

background-color: #FECDCA;

margin-top: 24px;

border-radius: 36px;

padding-left: 24px;

padding-top: 16px;

display: flex;

flex-direction: row;

/* box-sizing: border-box; */

.content-main-tt-ting-left{

/* font-style: normal; */

font-weight: 600;

font-size: 24px;

line-height: 30px;

/* text-align: center; */

color: #FFFFFF;

}

.content-main-tt-ting-center{

font-style: normal;

font-weight: 600;

font-size: 18px;

line-height: 18px;

display: flex;

padding-top: 6px;

padding-left: 42px;

color: #FF825A;

}

.content-main-tt-ting-right{

margin-left: 34px;

.btn{

width: 60px;

height: 30px;

font-size: 12px;

border-radius: 36px;

background-color: #FF825A;

}

}

}

.receive{

margin-top: 235px;

padding-right: 24px;

display: flex;

justify-content: center;

align-items: center;

box-sizing: border-box;

padding-left: 24px;

width: 100%;

height: 50px;

.receive-btn{

padding-top: 12px;

width: 100%;

height: 100%;

border-radius: 36px;

background-color: #FF825A;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

text-align: center;

color: #FFFFFF;

}

}

}

}

}

</style>

1.5、事件编辑界面:

<template>

<view class="content">

<view class="content-backgroundColor">

<!-- home键 -->

<view class="back">

<!-- 图标 -->

<image class="backImag" src="../../static/backImage/backhome.png"></image>

<!-- 提示文本 -->

<view class="content-txt">

添加心碎事件

</view>

</view>

<!-- 时间 -->

<view class="content-time">

<view class="content-time-title">

时间:

<view class="content-time-s">

2021年07月04日 下午

</view>

</view>

</view>

<!-- 下边框 -->

<view class="content-main">

<view class="content-main-title">

标题:

<view class="content-main-input">

<input class="inputTxt" type="text" placeholder="请输入..."/>

<button class="modify">修改</button>

</view>

</view>

<view class="content-main-describe">

<view class="content-main-describe-title">

描述:

<button class="content-main-describe-btn">修改</button>

</view>

<view class="content-main-background">

<input class="inputText" type="text" placeholder="请输入..."/>

</view>

<view class="content-main-describe-btns">

<button class="butt">确认提交</button>

</view>

</view>

</view>

</view>

</view>

</template>

<script>

export default {

data() {

return {

}

},

methods: {

}

}

</script>

<style lang="scss">

.content{

.content-backgroundColor{

padding-top: 68px;

/* padding-left: 24px; */

padding-right: 24px;

width: 100%;

height: 800px;

background: #A2C7FE;

.back{

padding-left: 24px;

width: 100%;

height: 16px;

display: flex;

flex-direction: row;

box-sizing: border-box;

.backImag{

padding-right: 24px;

width: 9px;

height: 16px;

}

.content-txt{

/* font-style: normal; */

font-weight: 500;

font-size: 16px;

line-height: 22px;

display: flex;

margin-left: 85px;

color: #FFFFFF;

}

}

.content-time{

padding-top: 21px;

padding-left: 24px;

padding-right: 24px;

padding-bottom: 24px;

.content-time-title{

font-style: normal;

font-weight: 600;

font-size: 36px;

line-height: 36px;

color: #FFFFFF;

}

.content-time-s{

margin-top: 12px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #FFFFFF;

}

}

.content-main{

width: 100%;

height: 670px;

background-color: #FFFFFF;

border-radius: 36px 36px 0 0;

.content-main-title{

padding-top: 24px;

margin-left: 24px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #121B36;

.content-main-input{

display: flex;

flex-direction: row;

align-items: center;

width: 100%;

height: 100%;

box-sizing: border-box;

.inputTxt{

width: 55%;

height: 18px;

margin-top: 12px;

font-weight: 600;

font-size: 18px;

line-height: 18px;

color: rgba(18, 27, 54, 0.6);

}

.modify{

width: 60px;

height: 24px;

background: #A2C7FE;

mix-blend-mode: normal;

border-radius: 36px;

font-weight: 600;

font-size: 5px;

line-height: 38px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

}

}

}

}

.content-main-describe{

padding-top: 24px;

padding-left: 24px;

padding-right: 24px;

padding-bottom: 24px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #121B36;

.content-main-describe-title{

display: flex;

flex-direction: row;

.content-main-describe-btn{

width: 60px;

height: 24px;

background: #A2C7FE;

mix-blend-mode: normal;

border-radius: 36px;

font-weight: 600;

font-size: 5px;

line-height: 38px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

margin-left: 170px;

}

}

.content-main-background{

display: flex;

flex-direction: row;

justify-content: center;

align-items: center;

width: 100%;

height: 100%;

box-sizing: border-box;

.inputText{

width: 55%;

height: 18px;

margin-top: 12px;

font-weight: 600;

font-size: 18px;

line-height: 18px;

color: rgba(18, 27, 54, 0.6);

border: 10px solid #F7F7F7;

border-radius: 18px;

width: 100%;

height: 286px;

word-wrap: break-word;

word-break: normal;

background-image: url("../../static/backImage/image 3.png");

}

}

.content-main-describe-btns{

/* display: flex;

justify-content: center;

align-items: center; */

/* padding-top: 13px;

padding-left: 116px;

padding-right: 116px;

padding-bottom: 13px; */

margin-top: 53px;

.butt{

/* margin-top: 53px; */

width: 100%;

height: 50px;

background: #A2C7FE;

border-radius: 36px;

font-weight: 600;

font-size: 24px;

line-height: 24px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

}

}

}

}

}

</style>

1.6、事件添加界面:

<template>

<view class="content">

<view class="content-backgroundColor">

<!-- home键 -->

<view class="back">

<!-- 图标 -->

<image class="backImag" src="../../static/backImage/backhome.png"></image>

<!-- 提示文本 -->

<view class="content-txt">

添加心动事件

</view>

</view>

<!-- 时间 -->

<view class="content-time">

<view class="content-time-title">

时间:

<view class="content-time-s">

2021年07月04日 下午

</view>

</view>

</view>

<!-- 下边框 -->

<view class="content-main">

<view class="content-main-title">

标题:

<view class="content-main-input">

<input class="inputTxt" type="text" placeholder="请输入..."/>

<button class="modify">修改</button>

</view>

</view>

<view class="content-main-describe">

<view class="content-main-describe-title">

描述:

<button class="content-main-describe-btn">修改</button>

</view>

<view class="content-main-background">

<input class="inputText" type="text" placeholder="请输入..."/>

</view>

<view class="content-main-describe-btns">

<button class="butt">确认提交</button>

</view>

</view>

</view>

</view>

</view>

</template>

<script>

export default {

data() {

return {

}

},

methods: {

}

}

</script>

<style lang="scss">

.content{

.content-backgroundColor{

padding-top: 68px;

/* padding-left: 24px; */

padding-right: 24px;

width: 100%;

height: 800px;

background: linear-gradient(197.99deg, #2C9AFF -14.52%, #9C74F3 16.96%, #EC81B4 54.17%, #F1BC97 74.34%, #F4E283 100%);

.back{

padding-left: 24px;

width: 100%;

height: 16px;

display: flex;

flex-direction: row;

box-sizing: border-box;

.backImag{

padding-right: 24px;

width: 9px;

height: 16px;

}

.content-txt{

/* font-style: normal; */

font-weight: 500;

font-size: 16px;

line-height: 22px;

display: flex;

margin-left: 85px;

color: #FFFFFF;

}

}

.content-time{

padding-top: 21px;

padding-left: 24px;

padding-right: 24px;

padding-bottom: 24px;

.content-time-title{

font-style: normal;

font-weight: 600;

font-size: 36px;

line-height: 36px;

color: #FFFFFF;

}

.content-time-s{

margin-top: 12px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #FFFFFF;

}

}

.content-main{

width: 100%;

height: 670px;

background-color: #FFFFFF;

border-radius: 36px 36px 0 0;

.content-main-title{

padding-top: 24px;

margin-left: 24px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #121B36;

.content-main-input{

display: flex;

flex-direction: row;

align-items: center;

width: 100%;

height: 100%;

box-sizing: border-box;

.inputTxt{

width: 55%;

height: 18px;

margin-top: 12px;

font-weight: 600;

font-size: 18px;

line-height: 18px;

color: rgba(18, 27, 54, 0.6);

}

.modify{

width: 60px;

height: 24px;

background: #FECACA;

mix-blend-mode: normal;

border-radius: 36px;

font-weight: 600;

font-size: 5px;

line-height: 38px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

}

}

}

}

.content-main-describe{

padding-top: 24px;

padding-left: 24px;

padding-right: 24px;

padding-bottom: 24px;

font-style: normal;

font-weight: 600;

font-size: 24px;

line-height: 24px;

color: #121B36;

.content-main-describe-title{

display: flex;

flex-direction: row;

.content-main-describe-btn{

width: 60px;

height: 24px;

background: #FECACA;

mix-blend-mode: normal;

border-radius: 36px;

font-weight: 600;

font-size: 5px;

line-height: 38px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

margin-left: 170px;

}

}

.content-main-background{

display: flex;

flex-direction: row;

justify-content: center;

align-items: center;

width: 100%;

height: 100%;

box-sizing: border-box;

.inputText{

width: 55%;

height: 18px;

margin-top: 12px;

font-weight: 600;

font-size: 18px;

line-height: 18px;

color: rgba(18, 27, 54, 0.6);

border: 10px solid #F7F7F7;

border-radius: 18px;

width: 100%;

height: 286px;

word-wrap: break-word;

word-break: normal;

background-image: url("../../static/backImage/image 3.png");

}

}

.content-main-describe-btns{

/* display: flex;

justify-content: center;

align-items: center; */

/* padding-top: 13px;

padding-left: 116px;

padding-right: 116px;

padding-bottom: 13px; */

margin-top: 53px;

.butt{

/* margin-top: 53px; */

width: 100%;

height: 50px;

background: #FECACA;

border-radius: 36px;

font-weight: 600;

font-size: 24px;

line-height: 24px;

display: flex;

justify-content: center;

align-items: center;

color: #FFFFFF;

}

}

}

}

}

</style>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值