Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
7eea8329
Commit
7eea8329
authored
Oct 23, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cell
parent
bd458e35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+5
-2
userCenter.wxss
src/pages/userCenter/userCenter.wxss
+6
-0
util.js
src/utils/util.js
+1
-1
No files found.
src/pages/userCenter/userCenter.wxml
View file @
7eea8329
...
...
@@ -30,6 +30,11 @@
<plus sku-list="{{skuVOList}}" plus-bgi="{{pItem.plus}}" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
</view>
</block>
<view class="cell-me">
<cell bind:startmessage='startmessage' isMask="0" styleType="1" buttonText="0" bind:completemessage="completemessage" plugid='c9918b9af349c100b285d1b9a4d19ec6' />
</view>
</view>
<guide-page-modal show="{{guidePageModalShow}}" />
<share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/>
...
...
@@ -37,4 +42,3 @@
<!-- 底部补充高度 防止被遮盖 -->
<view class="bottom-fixed" style="padding-bottom:{{paddingBottom}}"></view>
<!--联系我 客服ID-->
<cell bind:startmessage='startmessage' bind:completemessage="completemessage" plugid='c9918b9af349c100b285d1b9a4d19ec6' />
\ No newline at end of file
src/pages/userCenter/userCenter.wxss
View file @
7eea8329
...
...
@@ -3,6 +3,11 @@
page{
/* padding-bottom: 320rpx; */
}
.cell-me {
position: absolute;
right: 0;
top: 50%;
}
.bottom-fixed{
padding-bottom: 40rpx;
}
...
...
@@ -10,6 +15,7 @@ page{
.user-center{
box-sizing: border-box;
height: 100%;
position: relative;
}
.main-content{
...
...
src/utils/util.js
View file @
7eea8329
...
...
@@ -278,7 +278,6 @@ function getUserInfoByBtn(userInfo) {
return
wxService
.
Promise
.
reject
(
userInfo
.
errMsg
)
}
return
wxService
.
login
().
then
((
res
)
=>
{
console
.
log
(
'code'
,
res
)
logger
.
log
(
' wx getUserInfoByBtn success res --->'
,
res
)
return
Promise
.
all
([
Promise
.
resolve
(
userInfo
),
Promise
.
resolve
(
res
)])
}).
then
((
res
)
=>
{
...
...
@@ -304,6 +303,7 @@ function getUserInfoByBtn(userInfo) {
},
(
err
)
=>
{
return
Promise
.
reject
(
err
)
}).
then
(
response
=>
{
console
.
log
(
'登陆response'
,
response
)
logger
.
log
(
'getCrmUserInfo response'
,
response
)
if
(
response
.
data
.
data
.
rspCode
===
-
1
)
{
return
Promise
.
reject
(
response
.
data
.
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment