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 8ff86788
authored
Oct 14, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交个人中心
1 parent
5996a8c7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
18 deletions
packageMine/pages/withdrawal/index.js
packageMine/pages/withdrawal/index.wxml
packageMine/pages/withdrawalSuccess/index.js
packageMine/pages/withdrawalSuccess/index.wxml
pages/tab/mine/components/userInfo/userInfo.js
pages/tab/mine/components/userInfo/userInfo.wxml
pages/tab/mine/mine.js
packageMine/pages/withdrawal/index.js
View file @
8ff8678
...
@@ -8,6 +8,9 @@ Page({
...
@@ -8,6 +8,9 @@ Page({
sumbitScore
:
''
sumbitScore
:
''
},
},
toSumbitData
()
{
toSumbitData
()
{
let
{
sumbitScore
}
=
this
.
data
if
(
!
sumbitScore
)
return
wx
.
$api
.
showToast
(
'请输入提现积分'
)
if
(
sumbitScore
==
0
)
return
wx
.
$api
.
showToast
(
'提现积分不能为0'
)
wx
.
$router
.
go
(
'packageMine.withdrawalSuccess.index'
)
wx
.
$router
.
go
(
'packageMine.withdrawalSuccess.index'
)
},
},
onRoute
(
options
)
{
onRoute
(
options
)
{
...
...
packageMine/pages/withdrawal/index.wxml
View file @
8ff8678
<wxs module="strSubstr">
var getString = function(str,len=8){
if(!str)return ''
if(str.length<len+1)return str
var newStr = str.substring(0,len)+'...'
return newStr
}
module.exports.getString = getString
</wxs>
<view class="container">
<view class="container">
<view class="tip_wrapper flex_scb">
<view class="tip_wrapper flex_scb">
<view class="label">提现人</view>
<view class="label">提现人</view>
<view class="tip flex_sc">
<view class="tip flex_sc">
<image mode="aspectFill" class="icon" src="{{user.headImgUrl}}" />
<image mode="aspectFill" class="icon" src="{{user.headImgUrl}}" />
<text>{{
user.nickName
}}</text>
<text>{{
strSubstr.getString(user.nickName)
}}</text>
</view>
</view>
</view>
</view>
<view class="input_wrapper">
<view class="input_wrapper">
...
...
packageMine/pages/withdrawalSuccess/index.js
View file @
8ff8678
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
Page
({
data
:
{
data
:
{
IMGURL
:
IMG_URL
,
},
},
toWatchNote
(){
toWatchNote
(){
wx
.
$router
.
go
(
'packageMine.withdrawalNote.index'
)
wx
.
$router
.
go
(
'packageMine.withdrawalNote.index'
)
},
},
toBackMine
(){
wx
.
switchTab
({
url
:
'/pages/tab/mine/mine'
,
});
}
})
})
\ No newline at end of file
\ No newline at end of file
packageMine/pages/withdrawalSuccess/index.wxml
View file @
8ff8678
...
@@ -5,6 +5,6 @@
...
@@ -5,6 +5,6 @@
<view class="tip_text">到达您的微信零钱,请留意到账情况</view>
<view class="tip_text">到达您的微信零钱,请留意到账情况</view>
<view class="btn_group flex_cc">
<view class="btn_group flex_cc">
<view class="btn_left flex_cc" bind:tap="toWatchNote">查看提现记录</view>
<view class="btn_left flex_cc" bind:tap="toWatchNote">查看提现记录</view>
<view class="btn_right flex_cc">返回我的积分</view>
<view class="btn_right flex_cc"
bind:tap="toBackMine"
>返回我的积分</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/userInfo/userInfo.js
View file @
8ff8678
...
@@ -17,21 +17,21 @@ Component({
...
@@ -17,21 +17,21 @@ Component({
toEditPage
()
{
toEditPage
()
{
wx
.
$router
.
go
(
'packageMine.editBasicInfo.index'
,
{
user
:
this
.
data
.
user
})
wx
.
$router
.
go
(
'packageMine.editBasicInfo.index'
,
{
user
:
this
.
data
.
user
})
},
},
toAddEvent
()
{
//
toAddEvent() {
wx
.
$eventbus
.
on
(
'SETTING'
,
(
res
)
=>
{
//
wx.$eventbus.on('SETTING', (res) => {
let
user
=
this
.
data
.
user
//
let user = this.data.user
if
(
res
)
{
//
if (res) {
Object
.
assign
(
user
,
res
.
user
)
//
Object.assign(user, res.user)
this
.
setData
({
//
this.setData({
user
//
user
})
//
})
}
//
}
})
//
})
}
//
}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
toAddEvent
()
//
this.toAddEvent()
}
}
}
}
})
})
pages/tab/mine/components/userInfo/userInfo.wxml
View file @
8ff8678
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<view class="wecat_wrap flex_cc">
<view class="wecat_wrap flex_cc">
<block wx:if="{{user.bindStatus}}">
<block wx:if="{{user.bindStatus}}">
<image class="icon" src="{{IMGURL}}wechat_active_icon.png" />
<image class="icon" src="{{IMGURL}}wechat_active_icon.png" />
<text>{{
user.brandName
}}</text>
<text>{{
strSubstr.getString(user.brandName)
}}</text>
</block>
</block>
<block wx:else>
<block wx:else>
<image class="icon" src="{{IMGURL}}wechat_icon.png" />
<image class="icon" src="{{IMGURL}}wechat_icon.png" />
...
...
pages/tab/mine/mine.js
View file @
8ff8678
...
@@ -28,14 +28,26 @@ Page({
...
@@ -28,14 +28,26 @@ Page({
seriseName
:
'销售部'
,
seriseName
:
'销售部'
,
merchantName
:
'广联数科4S店广联数科4S店广联数科4S店广联数科4S店'
,
merchantName
:
'广联数科4S店广联数科4S店广联数科4S店广联数科4S店'
,
brandName
:
'绑定的名称名称'
,
brandName
:
'绑定的名称名称'
,
bindStatus
:
1
bindStatus
:
0
}
}
this
.
setData
({
this
.
setData
({
user
:
USERINFO
user
:
USERINFO
})
})
},
},
toAddEvent
()
{
wx
.
$eventbus
.
on
(
'SETTING'
,
(
res
)
=>
{
let
user
=
this
.
data
.
user
if
(
res
)
{
Object
.
assign
(
user
,
res
.
user
)
this
.
setData
({
user
})
}
})
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
getUserInfo
()
this
.
getUserInfo
()
this
.
toAddEvent
()
},
},
})
})
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