Commit 1b82c8ad by 杨北旺

提交个人中心

1 parent 843b65aa
......@@ -28,7 +28,7 @@
</block>
</view>
</view>
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 40%" >
<van-popup show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 55%" >
<van-picker
title="选择部门"
show-toolbar
......
......@@ -77,10 +77,17 @@ page {
}
}
}
.tip_msg{
font-weight: 400;
font-size: 24rpx;
color: #666666;
margin-top: 16rpx;
margin-left: 32rpx;
}
.sumbit_btn {
margin: 0 auto;
margin-top: 120rpx;
margin-top: 70rpx;
width: calc(100% - 32rpx);
height: 88rpx;
background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
......
......@@ -18,9 +18,10 @@
<view class="input_wrapper">
<view class="title">输入提现的积分值</view>
<view class="int_widget flex_scb">
<input type="digit" bindblur="checkNum" value="{{sumbitScore}}" focus="{{true}}" bindinput="toFillCount" class="intClass" maxlength="20" placeholder="当前可提现积分:{{withdrawalScore}}" placeholder-class="input-placeholder"/>
<input type="digit" bindblur="checkNum" value="{{sumbitScore}}" focus="{{true}}" bindinput="toFillCount" class="intClass" maxlength="20" placeholder="请输入" placeholder-class="input-placeholder"/>
<view class="btn flex_cc" bind:tap="toTixianAll">全部提现</view>
</view>
</view>
<view class="tip_msg">当前可提现积分:{{withdrawalScore}}</view>
<view class="sumbit_btn flex_cc" bind:tap="toSumbitData">提交</view>
</view>
\ No newline at end of file
......@@ -13,7 +13,7 @@ Component({
*/
data: {
IMGURL: IMG_URL,
withdrawalScore:0
withdrawalScore:0,
},
/**
......@@ -22,6 +22,10 @@ Component({
methods: {
toTiXian(){
let {user,withdrawalScore} = this.data
if(!user.bindStatus){
this.triggerEvent('showModal',true)
return
}
wx.$router.go('packageMine.withdrawal.index',{withdrawalScore,user})
},
toWatchNote(){
......
{
"component": true,
"usingComponents": {}
"component": true
}
\ No newline at end of file
......@@ -39,6 +39,24 @@ Component({
withdrawalScore:100,
type:-1
},
{
infoName:'购买商品',
updatedTime:'2022-10-13 17:03:20',
withdrawalScore:100,
type:-1
},
{
infoName:'购买商品',
updatedTime:'2022-10-13 17:03:20',
withdrawalScore:100,
type:-1
},
{
infoName:'购买商品',
updatedTime:'2022-10-13 17:03:20',
withdrawalScore:100,
type:-1
},
]
}
wx.$eventbus.emit('WITHDRALWAL',data.score.currentScore)
......
......@@ -5,6 +5,7 @@ Page({
*/
data: {
navStyle,
showModal: false
},
navbarReady(e) {
let {
......@@ -45,7 +46,17 @@ Page({
}
})
},
onLoad: function (options) {
toShowBindModal(e) {
this.setData({
showModal: e.detail
})
},
toCloseModal(){
this.setData({
showModal:false
})
},
onLoad: function (options) {
this.getUserInfo()
this.toAddEvent()
},
......
......@@ -4,6 +4,7 @@
"usingComponents": {
"user-info-widget":"./components/userInfo/userInfo",
"count-info-widget":"./components/countInfo/countInfo",
"list-info-widget":"./components/listInfo/listInfo"
"list-info-widget":"./components/listInfo/listInfo",
"van-popup": "@vant/weapp/popup/index"
}
}
\ No newline at end of file
......@@ -2,6 +2,12 @@ page {
background: #FFFFFF;
}
.bar-text {
font-weight: 600;
font-size: 34rpx;
color: #2D2D2E;
}
.container {
position: relative;
}
......@@ -11,4 +17,42 @@ page {
left: 0;
right: 0;
top: 0;
}
.popclass {
position: relative;
border-radius: 24rpx 24rpx 0 0;
z-index: 999;
.modal_title {
font-weight: 500;
font-size: 40rpx;
color: #333333;
box-sizing: border-box;
padding-top: 48rpx;
padding-left: 49rpx;
}
.modal_tip {
font-weight: 400;
font-size: 32rpx;
color: #333333;
margin-top: 64rpx;
padding-left: 49rpx;
}
.modal_btn {
margin: 0;
width: calc(100% - 98rpx);
height: 88rpx;
margin: 0 auto;
margin-top: 120rpx;
background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
border-radius: 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
}
}
\ No newline at end of file
<view class="container">
<!-- 导航栏 -->
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="个人中心">
<text>个人中心</text>
<view class="bar-text">个人中心</view>
</navigation-bar>
<!-- 顶部背景图 -->
<view class="topBg">
......@@ -10,7 +10,12 @@
<!-- 个人基础信息 -->
<user-info-widget user="{{user}}" boxStyle="{{user_box_style}}"></user-info-widget>
<!-- 积分信息 -->
<count-info-widget user="{{user}}" boxStyle="{{count_box_style}}"></count-info-widget>
<count-info-widget bind:showModal="toShowBindModal" user="{{user}}" boxStyle="{{count_box_style}}"></count-info-widget>
<!-- 收益明细信息 -->
<list-info-widget></list-info-widget>
</view>
\ No newline at end of file
</view>
<van-popup bind:click-overlay="toCloseModal" show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 35%" >
<view class="modal_title">提示</view>
<view class="modal_tip">您未绑定微信,请先完成绑定</view>
<button class="modal_btn">去绑定</button>
</van-popup>
\ No newline at end of file
{
"setting": {
"compileHotReLoad": true,
"compileHotReLoad": false,
"urlCheck": false,
"lazyloadPlaceholderEnable": true
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!