Commit 1b82c8ad by 杨北旺

提交个人中心

1 parent 843b65aa
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</block> </block>
</view> </view>
</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 <van-picker
title="选择部门" title="选择部门"
show-toolbar show-toolbar
......
...@@ -77,10 +77,17 @@ page { ...@@ -77,10 +77,17 @@ page {
} }
} }
} }
.tip_msg{
font-weight: 400;
font-size: 24rpx;
color: #666666;
margin-top: 16rpx;
margin-left: 32rpx;
}
.sumbit_btn { .sumbit_btn {
margin: 0 auto; margin: 0 auto;
margin-top: 120rpx; margin-top: 70rpx;
width: calc(100% - 32rpx); width: calc(100% - 32rpx);
height: 88rpx; height: 88rpx;
background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%); background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
<view class="input_wrapper"> <view class="input_wrapper">
<view class="title">输入提现的积分值</view> <view class="title">输入提现的积分值</view>
<view class="int_widget flex_scb"> <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 class="btn flex_cc" bind:tap="toTixianAll">全部提现</view>
</view> </view>
</view> </view>
<view class="tip_msg">当前可提现积分:{{withdrawalScore}}</view>
<view class="sumbit_btn flex_cc" bind:tap="toSumbitData">提交</view> <view class="sumbit_btn flex_cc" bind:tap="toSumbitData">提交</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ Component({ ...@@ -13,7 +13,7 @@ Component({
*/ */
data: { data: {
IMGURL: IMG_URL, IMGURL: IMG_URL,
withdrawalScore:0 withdrawalScore:0,
}, },
/** /**
...@@ -22,6 +22,10 @@ Component({ ...@@ -22,6 +22,10 @@ Component({
methods: { methods: {
toTiXian(){ toTiXian(){
let {user,withdrawalScore} = this.data let {user,withdrawalScore} = this.data
if(!user.bindStatus){
this.triggerEvent('showModal',true)
return
}
wx.$router.go('packageMine.withdrawal.index',{withdrawalScore,user}) wx.$router.go('packageMine.withdrawal.index',{withdrawalScore,user})
}, },
toWatchNote(){ toWatchNote(){
......
{ {
"component": true, "component": true
"usingComponents": {}
} }
\ No newline at end of file \ No newline at end of file
...@@ -39,6 +39,24 @@ Component({ ...@@ -39,6 +39,24 @@ Component({
withdrawalScore:100, withdrawalScore:100,
type:-1 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) wx.$eventbus.emit('WITHDRALWAL',data.score.currentScore)
......
...@@ -5,6 +5,7 @@ Page({ ...@@ -5,6 +5,7 @@ Page({
*/ */
data: { data: {
navStyle, navStyle,
showModal: false
}, },
navbarReady(e) { navbarReady(e) {
let { let {
...@@ -45,7 +46,17 @@ Page({ ...@@ -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.getUserInfo()
this.toAddEvent() this.toAddEvent()
}, },
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"usingComponents": { "usingComponents": {
"user-info-widget":"./components/userInfo/userInfo", "user-info-widget":"./components/userInfo/userInfo",
"count-info-widget":"./components/countInfo/countInfo", "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 \ No newline at end of file
...@@ -2,6 +2,12 @@ page { ...@@ -2,6 +2,12 @@ page {
background: #FFFFFF; background: #FFFFFF;
} }
.bar-text {
font-weight: 600;
font-size: 34rpx;
color: #2D2D2E;
}
.container { .container {
position: relative; position: relative;
} }
...@@ -11,4 +17,42 @@ page { ...@@ -11,4 +17,42 @@ page {
left: 0; left: 0;
right: 0; right: 0;
top: 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 \ No newline at end of file
<view class="container"> <view class="container">
<!-- 导航栏 --> <!-- 导航栏 -->
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="个人中心"> <navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="个人中心">
<text>个人中心</text> <view class="bar-text">个人中心</view>
</navigation-bar> </navigation-bar>
<!-- 顶部背景图 --> <!-- 顶部背景图 -->
<view class="topBg"> <view class="topBg">
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<!-- 个人基础信息 --> <!-- 个人基础信息 -->
<user-info-widget user="{{user}}" boxStyle="{{user_box_style}}"></user-info-widget> <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> <list-info-widget></list-info-widget>
</view>
\ No newline at end of file \ 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 \ No newline at end of file
{ {
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": false,
"urlCheck": false, "urlCheck": false,
"lazyloadPlaceholderEnable": true "lazyloadPlaceholderEnable": true
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!