Browse Source

上传收益记录和提现页面/新增公共css样式

master
chenkun 11 months ago
parent
commit
5c2fe68592
8 changed files with 255 additions and 71 deletions
  1. +10
    -0
      common.css
  2. +2
    -1
      pages/index/center.vue
  3. +8
    -21
      pages/mine/addBankCard.vue
  4. +71
    -10
      pages/mine/incomeRecord.vue
  5. +9
    -3
      pages/mine/purse.vue
  6. +12
    -25
      pages/mine/sonPage/promotion/promotionDetail.vue
  7. +143
    -11
      pages/mine/withdraw.vue
  8. BIN
      static/image/incomeRecord/1.png

+ 10
- 0
common.css View File

@ -0,0 +1,10 @@
.bottomBtn {
position: fixed;
bottom: 5%;
left: 25%;
width: 50%;
height: 80rpx;
text-align: center;
color: #ffffff;
background: linear-gradient(to right, #3c69f1, #5f3bf5);
}

+ 2
- 1
pages/index/center.vue View File

@ -106,7 +106,8 @@ export default {
{name: 'star', imageUrl: '/static/image/center/1.png', title: '我的银行卡',
gotoPageUrl: '/mine/addBankCard'
},
{name: 'star', imageUrl: '/static/image/center/1.png', title: '我的钱包'},
{name: 'star', imageUrl: '/static/image/center/1.png', title: '我的钱包',
gotoPageUrl: '/mine/purse'},
],
//
otherList: [


+ 8
- 21
pages/mine/addBankCard.vue View File

@ -35,12 +35,19 @@
<input class="input" placeholder="请输入身份证号" v-model="idCard" />
</view>
<button class="next-button" @click="onNextClick">下一步</button>
<!--<button class="next-button" @click="onNextClick">下一步</button>-->
</view>
<!--下一步按钮-->
<button @click="onNextClick" class="bottomBtn">
下一步
</button>
</view>
</template>
<script>
import '../../common.css'; // CSS
export default {
data() {
return {
@ -107,26 +114,6 @@ export default {
border-radius: 4px;
}
}
.next-button {
position: fixed;
bottom: 20px; // 20px
left: 16px; //
right: 16px; //
background: $uni-linear-gradient-btn-color; //
color: white; //
text-align: center; //
padding: 10px 0; //
font-size: 18px; //
z-index: 1000; //
display: flex;
justify-content: center;
align-items: center;
width: 50%;
height: 80rpx;
border-radius: 10rpx;
}
}


+ 71
- 10
pages/mine/incomeRecord.vue View File

@ -1,19 +1,80 @@
<template>
<view>
收益记录
</view>
<view class="incomeRecord">
<!--顶部导航栏-->
<navbar leftClick @leftClick="$utils.navigateBack" title="收益记录"/>
<!--内容区域-->
<view class="content">
<view class="title">收益记录</view>
<view class="list">
<view class="item" v-for="(item,index) in 20" :key="index">
<view class="left">
<image src="/static/image/incomeRecord/1.png" style="width: 70%;height: 70%;"></image>
</view>
<view class="center">
<view>小李</view>
<view>2024.02.02</view>
</view>
<view class="right">
<view>收益金额</view>
<view>¥10000</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
export default {
data() {
return {};
}
}
</script>
<style lang="scss" scoped>
.incomeRecord {
.content {
padding: 0 40rpx;
height: calc(100vh - 240rpx);
.title {
font-weight: bold;
margin-top: 5%;
}
.list {
padding-top: 50rpx;
.item {
display: flex;
gap: 20rpx;
//height: 80rpx;
margin-bottom: 40rpx;
.left {
display: flex;
justify-content: center;
align-items: flex-start;
width: 15%;
}
.center {
width: 60%;
}
.right {
width: 30%;
text-align: center;
}
}
}
}
}
</style>

+ 9
- 3
pages/mine/purse.vue View File

@ -59,11 +59,17 @@
<!--收益记录和去提现-->
<span class="income-record" @click="gotoIncomeRecordPage">收益记录</span>
<button class="withdraw-button" @click="gotoWithdrawPage">去提现</button>
<!--去提现按钮-->
<button @click="gotoWithdrawPage" class="bottomBtn">
去提现
</button>
</view>
</template>
<script>
import '../../common.css'; // CSS
export default {
data() {
return {};
@ -71,11 +77,11 @@ export default {
methods: {
//
gotoIncomeRecordPage() {
this.$utils.navigateTo('/pages/mine/incomeRecord');
this.$utils.navigateTo('/mine/incomeRecord');
},
//
gotoWithdrawPage() {
this.$utils.navigateTo('/pages/mine/withdraw');
this.$utils.navigateTo('/mine/withdraw');
}
}
}


+ 12
- 25
pages/mine/sonPage/promotion/promotionDetail.vue View File

@ -35,16 +35,8 @@
</view>
<!-- 继续发布按钮-->
<view class="bottom">
<button @click="continueToPublish" class="continueBtn">
继续发布
</button>
</view>
<!--确认发布弹框-->
<uv-popup ref="popup" mode="center" custom-style="height: 400rpx;" :closeOnClickOverlay="false" >
<uv-popup ref="popup" mode="center" custom-style="height: 400rpx;" :closeOnClickOverlay="false">
<view class="content">
<view class="title">
推广选项
@ -81,10 +73,16 @@
</view>
<!--继续推广按钮-->
<button @click="continueToPromotion" class="bottomBtn">
继续推广
</button>
</view>
</template>
<script>
import '../../../../common.css'; // CSS
export default {
onLoad: function (options) {
// id
@ -112,8 +110,8 @@ export default {
console.log('confirm', e);
this.form.cycle = e.value[0]
},
// 广
continueToPublish() {
// 广
continueToPromotion() {
this.$refs.popup.open();
},
//
@ -178,8 +176,6 @@ export default {
}
.content {
display: flex;
flex-direction: column;
@ -204,22 +200,13 @@ export default {
}
.confirmBottom {
position: fixed;
bottom: 38%;
left: 30%;
width: 38%;
height: 100rpx;
.confirmPromotionBtn {
color: #ffffff;
background: $uni-linear-gradient-btn-color;
}
}
}
}
/deep/.uv-popup .uv-popup__content{
/deep/ .uv-popup .uv-popup__content {
border-radius: 20rpx;
}
</style>

+ 143
- 11
pages/mine/withdraw.vue View File

@ -1,19 +1,151 @@
<template>
<view>
提现
</view>
<view class="withdraw">
<!--顶部导航栏-->
<navbar leftClick @leftClick="$utils.navigateBack" title="提现"/>
<!--内容区-->
<view class="content">
<!--上部分-->
<view class="content-top">
<view class="aaa">
<view class="top">1240,045</view>
<view class="bottom">可提现金额</view>
</view>
</view>
<!--下部分-->
<view class="content-bottom">
<view class="inputComponent">
<view class="left">填写提现金额</view>
<view class="centerAndRight">
<view class="center">
<uv-input placeholder="输入金额" v-model="withdrawMoney"
border="none" @change="moneyChange"></uv-input>
</view>
<view class="right">全部提现</view>
</view>
</view>
</view>
</view>
<!--提现按钮-->
<button @click="withdrawPage" class="bottomBtn">
提现
</button>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
import '../../common.css'; // CSS
export default {
data() {
return {
withdrawMoney: "",
};
},
methods: {
//
moneyChange(e) {
console.log(e)
this.withdrawMoney = e
},
//
withdrawPage() {
// this.$utils.navigateTo('/mine/withdraw');
}
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.withdraw {
.content {
.content-top {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 60rpx;
background-color: #f8faff;
height: 10vh;
.aaa {
color: #000000;
.top {
font-size: 50rpx;
}
.bottom {
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
}
}
}
.content-bottom {
border-radius: 50rpx 50rpx 0 0;
box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */
background-color: #fff;
height: calc(90vh - 240rpx);
//width: 100vw;
padding: 40rpx;
.inputComponent {
display: flex;
//gap: 20rpx;
//border: 1px solid red;
.left {
display: flex;
justify-content: flex-start;
align-items: center;
font-size: 30rpx;
width: 50%;
margin-right: 20rpx;
}
.centerAndRight {
display: flex;
width: 50%;
.center {
width: 60%;
}
.right {
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 32rpx;
margin-left: 20rpx;
width: 40%;
background: $uni-linear-gradient-color;
-webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
-webkit-text-fill-color: transparent; /*给文字设置成透明*/
}
}
}
}
}
}
</style>

BIN
static/image/incomeRecord/1.png View File

Before After
Width: 19  |  Height: 14  |  Size: 310 B

Loading…
Cancel
Save