Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1b82c8ad
authored
Oct 14, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交个人中心
1 parent
843b65aa
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
102 additions
and
12 deletions
packageMine/pages/editBasicInfo/index.wxml
packageMine/pages/withdrawal/index.scss
packageMine/pages/withdrawal/index.wxml
pages/tab/mine/components/countInfo/countInfo.js
pages/tab/mine/components/countInfo/countInfo.json
pages/tab/mine/components/listInfo/listInfo.js
pages/tab/mine/mine.js
pages/tab/mine/mine.json
pages/tab/mine/mine.scss
pages/tab/mine/mine.wxml
project.private.config.json
packageMine/pages/editBasicInfo/index.wxml
View file @
1b82c8a
...
...
@@ -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
...
...
packageMine/pages/withdrawal/index.scss
View file @
1b82c8a
...
...
@@ -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
:
12
0rpx
;
margin-top
:
7
0rpx
;
width
:
calc
(
100%
-
32rpx
);
height
:
88rpx
;
background-image
:
linear-gradient
(
-60deg
,
#556AF5
0%
,
#7197FF
100%
);
...
...
packageMine/pages/withdrawal/index.wxml
View file @
1b82c8a
...
...
@@ -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
pages/tab/mine/components/countInfo/countInfo.js
View file @
1b82c8a
...
...
@@ -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
(){
...
...
pages/tab/mine/components/countInfo/countInfo.json
View file @
1b82c8a
{
"component"
:
true
,
"usingComponents"
:
{}
"component"
:
true
}
\ No newline at end of file
pages/tab/mine/components/listInfo/listInfo.js
View file @
1b82c8a
...
...
@@ -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
)
...
...
pages/tab/mine/mine.js
View file @
1b82c8a
...
...
@@ -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
()
},
...
...
pages/tab/mine/mine.json
View file @
1b82c8a
...
...
@@ -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
pages/tab/mine/mine.scss
View file @
1b82c8a
...
...
@@ -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
pages/tab/mine/mine.wxml
View file @
1b82c8a
<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
project.private.config.json
View file @
1b82c8a
{
"setting"
:
{
"compileHotReLoad"
:
tru
e
,
"compileHotReLoad"
:
fals
e
,
"urlCheck"
:
false
,
"lazyloadPlaceholderEnable"
:
true
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment