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 a780c152
authored
Oct 12, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
个人中心
1 parent
89bd9f45
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
501 additions
and
178 deletions
common.wxss
pages/tab/mine/components/countInfo/countInfo.js
pages/tab/mine/components/countInfo/countInfo.json
pages/tab/mine/components/countInfo/countInfo.scss
pages/tab/mine/components/countInfo/countInfo.wxml
pages/tab/mine/components/listInfo/listInfo.js
pages/tab/mine/components/listInfo/listInfo.json
pages/tab/mine/components/listInfo/listInfo.scss
pages/tab/mine/components/listInfo/listInfo.wxml
pages/tab/mine/components/userInfo/userInfo.js
pages/tab/mine/components/userInfo/userInfo.json
pages/tab/mine/components/userInfo/userInfo.scss
pages/tab/mine/components/userInfo/userInfo.wxml
pages/tab/mine/mine.js
pages/tab/mine/mine.json
pages/tab/mine/mine.scss
pages/tab/mine/mine.wxml
project.private.config.json
common.wxss
View file @
a780c15
...
@@ -96,7 +96,16 @@
...
@@ -96,7 +96,16 @@
font-size: 24rpx;
font-size: 24rpx;
height: 100%;
height: 100%;
}
}
.flex_sc {
display: flex;
align-items: center;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
@keyframes show-box {
@keyframes show-box {
0% {
0% {
opacity: 0;
opacity: 0;
...
...
pages/tab/mine/components/countInfo/countInfo.js
0 → 100644
View file @
a780c15
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
options
:
{
addGlobalClass
:
true
},
properties
:
{
boxStyle
:
String
},
/**
* 组件的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/mine/components/countInfo/countInfo.json
0 → 100644
View file @
a780c15
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/countInfo/countInfo.scss
0 → 100644
View file @
a780c15
.integral_widget
{
position
:
relative
;
z-index
:
2
;
.wrapper
{
position
:
relative
;
width
:
calc
(
100%
-
64rpx
);
margin-left
:
33rpx
;
.bg_icon
{
width
:
100%
;
height
:
100%
;
}
.btn_wrap
{
position
:
absolute
;
top
:
48rpx
;
right
:
28rpx
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#434343
;
.right_icon
{
width
:
24rpx
;
height
:
24rpx
;
}
}
.tip
{
position
:
absolute
;
top
:
32rpx
;
left
:
40rpx
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
letter-spacing
:
0
;
line-height
:
44rpx
;
}
.money
{
position
:
absolute
;
top
:
84rpx
;
left
:
40rpx
;
font-weight
:
Bold
;
font-size
:
72rpx
;
color
:
#FFFFFF
;
}
.note_btn
{
position
:
absolute
;
right
:
60rpx
;
top
:
152rpx
;
font-weight
:
500
;
font-size
:
24rpx
;
color
:
#FFFFFF
;
line-height
:
36rpx
;
text-decoration
:
underline
;
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/countInfo/countInfo.wxml
0 → 100644
View file @
a780c15
<view style="{{boxStyle}}" class="integral_widget">
<view class="wrapper">
<image mode="widthFix" class="bg_icon" src="{{IMGURL}}intergral_bg_icon.png" />
<view class="btn_wrap flex_sc">
<text>我要提现</text>
<image class="right_icon" src="{{IMGURL}}right_arrow_icon.png" />
</view>
<view class="tip">我的积分</view>
<view class="money">5655999.99</view>
<view class="note_btn">提现记录</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/listInfo/listInfo.js
0 → 100644
View file @
a780c15
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
options
:
{
addGlobalClass
:
true
},
properties
:
{
},
/**
* 组件的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
,
listData
:[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/mine/components/listInfo/listInfo.json
0 → 100644
View file @
a780c15
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/listInfo/listInfo.scss
0 → 100644
View file @
a780c15
.list_widget
{
position
:
relative
;
z-index
:
3
;
margin-top
:
-70rpx
;
.image_wrap
{
position
:
relative
;
.box
{
width
:
335rpx
;
height
:
152rpx
;
.icon
{
width
:
72rpx
;
height
:
72rpx
;
margin-right
:
16rpx
;
}
.text_wrap
{
.price
{
font-weight
:
Bold
;
font-size
:
44rpx
;
color
:
#333333
;
text-align
:
center
;
line-height
:
64rpx
;
}
.tip
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#6E6E7A
;
}
}
}
.left_box
{
position
:
absolute
;
left
:
32rpx
;
top
:
32rpx
;
}
.right_box
{
position
:
absolute
;
right
:
32rpx
;
top
:
32rpx
;
}
}
.title_wrap
{
margin-top
:
24rpx
;
margin-bottom
:
8rpx
;
.icon
{
width
:
176rpx
;
height
:
64rpx
;
}
}
.list_data_widget
{
box-sizing
:
border-box
;
padding
:
0
48rpx
;
.element
{
width
:
100%
;
border-bottom
:
2rpx
solid
#f2f2f2
;
padding
:
28rpx
0
;
position
:
relative
;
.title
{
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#333333
;
line-height
:
44rpx
;
}
.date
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#999999
;
line-height
:
36rpx
;
}
.price
{
position
:
absolute
;
right
:
0
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
color
:
#FE5662
;
font-size
:
40rpx
;
display
:
flex
;
align-items
:
flex-end
;
.mini
{
font-size
:
32rpx
;
}
}
}
.no_more_tip
{
margin-top
:
40rpx
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#BEBEBE
;
line-height
:
36rpx
;
text-align
:
center
;
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/listInfo/listInfo.wxml
0 → 100644
View file @
a780c15
<view class="list_widget">
<view class="image_wrap">
<image mode="widthFix" class="banner_icon" src="{{IMGURL}}list_bg_icon.png" />
<view class="box flex_cc left_box">
<image class="icon" src="{{IMGURL}}num_icon_1.png" />
<view class="text_wrap">
<view class="price">5263.22</view>
<view class="tip">累计收益积分</view>
</view>
</view>
<view class="box flex_cc right_box">
<image class="icon" src="{{IMGURL}}num_icon_2.png" />
<view class="text_wrap">
<view class="price">5263.22</view>
<view class="tip">累计提现积分</view>
</view>
</view>
</view>
<view class="title_wrap flex_cc">
<image mode="widthFix" class="icon" src="{{IMGURL}}title_icon.png" />
</view>
<view class="list_data_widget">
<block wx:for="{{listData}}" wx:key="index">
<view class="element">
<view class="title">系统赠送</view>
<view class="date">202-08-01 14:32:37</view>
<view class="price">
<text class="mini">+</text>
<text>105.56</text>
</view>
</view>
</block>
<view class="no_more_tip">没有更多啦</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/userInfo/userInfo.js
0 → 100644
View file @
a780c15
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
options
:
{
addGlobalClass
:
true
},
properties
:
{
boxStyle
:
String
},
/**
* 组件的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
,
user
:{
status
:
1
}
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/mine/components/userInfo/userInfo.json
0 → 100644
View file @
a780c15
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/userInfo/userInfo.scss
0 → 100644
View file @
a780c15
.userInfo_widget
{
width
:
100%
;
height
:
232rpx
;
position
:
relative
;
z-index
:
2
;
box-sizing
:
border-box
;
padding-top
:
16rpx
;
.wrap
{
padding
:
0
32rpx
;
position
:
relative
;
.header_icon
{
width
:
104rpx
;
height
:
104rpx
;
border-radius
:
50%
;
}
.info_text
{
margin-left
:
24rpx
;
.label
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#333333
;
}
.edit_icon
{
width
:
32rpx
;
height
:
32rpx
;
margin-left
:
24rpx
;
}
.contact_widget
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#7A8299
;
margin-top
:
8rpx
;
.wecat_wrap
{
height
:
40rpx
;
padding
:
0
12rpx
;
background
:
rgba
(
111
,
111
,
111
,
0
.10
);
border-radius
:
20rpx
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#999999
;
margin-left
:
16rpx
;
.icon
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
8rpx
;
}
}
}
}
.logout
{
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
144rpx
;
height
:
48rpx
;
background
:
#FAFAFA
;
border-radius
:
24rpx
0
0
24rpx
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#868686
;
}
}
.store_widget
{
margin-top
:
24
.62rpx
;
.line
{
width
:
2rpx
;
height
:
28rpx
;
background
:
#D3D5DB
;
margin-left
:
48rpx
;
margin-right
:
40
.8rpx
;
}
.label
{
.icon
{
width
:
28
.8rpx
;
height
:
26
.7rpx
;
margin-right
:
13
.6rpx
;
}
.tip
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#7A8299
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/components/userInfo/userInfo.wxml
0 → 100644
View file @
a780c15
<view style="{{boxStyle}}" class="userInfo_widget">
<view class="wrap flex_sc">
<image mode="aspectFill" class="header_icon" src="{{IMGURL}}discovery_prod1.png" />
<view class="info_text">
<view class="label flex_sc">
<text>百晓生</text>
<image mode="aspectFill" class="edit_icon" src="{{IMGURL}}center_edit_icon.png" />
</view>
<view class="contact_widget flex_sc">
<view class="text">18269445456</view>
<view class="wecat_wrap flex_cc">
<block wx:if="{{user.status}}">
<image class="icon" src="{{IMGURL}}wechat_active_icon.png" />
<text>世权都是三点</text>
</block>
<block wx:else>
<image class="icon" src="{{IMGURL}}wechat_icon.png" />
<text>未绑定</text>
</block>
</view>
</view>
</view>
<view class="logout flex_cc">退出登录</view>
</view>
<view class="store_widget flex_cc">
<view class="flex_sc label">
<image class="icon" src="{{IMGURL}}shop_icon.png" />
<view class="tip">广联数科4s店</view>
</view>
<view class="line"></view>
<view class="flex_sc label">
<image class="icon" src="{{IMGURL}}merchant_icon.png" />
<view class="tip">业务部</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/mine.js
View file @
a780c15
// pages/tab/mine/mine.js
const
navStyle
=
"background-color: transparent;"
;
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
navStyle
,
},
},
/**
navbarReady
(
e
)
{
* 生命周期函数--监听页面加载
let
{
*/
height
onLoad
:
function
(
options
)
{},
}
=
e
.
detail
;
/**
this
.
setData
({
* 生命周期函数--监听页面初次渲染完成
user_box_style
:
`padding-top:
${
height
+
10
}
px`
,
*/
});
onReady
:
function
()
{},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
},
onPageScroll
:
function
(
e
)
{
/**
this
.
setData
({
* 生命周期函数--监听页面隐藏
navStyle
:
e
.
scrollTop
>=
38
?
""
:
navStyle
,
*/
});
onHide
:
function
()
{},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
},
onLoad
:
function
(
options
)
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
},
})
})
pages/tab/mine/mine.json
View file @
a780c15
{
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
tru
e
,
"enablePullDownRefresh"
:
fals
e
,
"usingComponents"
:
{
"usingComponents"
:
{
"user-info-widget"
:
"./components/userInfo/userInfo"
,
"count-info-widget"
:
"./components/countInfo/countInfo"
,
"list-info-widget"
:
"./components/listInfo/listInfo"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/mine.scss
View file @
a780c15
page
{
background
:
#FFFFFF
;
}
.container
{
position
:
relative
;
}
.topBg
{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/mine.wxml
View file @
a780c15
<view class="navigation-bar">
<view class="container">
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="个人中心">个人中心</navigation-bar>
<!-- 导航栏 -->
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="个人中心">
<text>个人中心</text>
</navigation-bar>
<!-- 顶部背景图 -->
<view class="topBg">
<image mode="widthFix" src="{{IMGURL}}mine_center_bg.png" />
</view>
<!-- 个人基础信息 -->
<user-info-widget boxStyle="{{user_box_style}}"></user-info-widget>
<!-- 积分信息 -->
<count-info-widget boxStyle="{{user_box_style}}"></count-info-widget>
<!-- 收益明细信息 -->
<list-info-widget></list-info-widget>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
<view class="layout" wx:if="{{user_box_style}}">
<view class="user-box" style="{{user_box_style}}">
<view class="user-info">
<view class="avatar">
<block wx:if="{{userInfo && userInfo.headImgUrl}}">
<image webp src="{{userInfo.headImgUrl}}"></image>
</block>
<block wx:else>
<image webp src="{{IMGURL}}mine/default-avatar.jpg?v={{img_version}}"></image>
</block>
</view>
<view class="info {{userInfo?'':'auth'}}">
<block wx:if="{{userInfo}}">
<view class="nickName">
{{userInfo.nickName || '微信用户'}}
<view class="vip text-center">已认证</view>
</view>
<view class="phone">{{userInfo.phone}}</view>
</block>
<block wx:else>点击登录</block>
</view>
<block wx:if="{{!userInfo}}">
<view class="auth-button" bindtap="login"></view>
<!-- <button open-type="getPhoneNumber" bindtap="login" bindgetphonenumber="getPhoneNumber" class="auth-button"></button> -->
</block>
<block wx:if="{{userInfo && !userInfo.nickName}}">
<view class="auth-button" bindtap="showAuthModal"></view>
</block>
</view>
<view class="coupon-info flex">
<view class="item flex" bindtap="goto" data-url="coupon">
{{total || '0'}}
<view>我的优惠券/张</view>
</view>
<view class="item flex" bindtap="goto" data-url="boutique">
{{gitTotal || '0'}}
<view>精品礼券/张</view>
</view>
</view>
</view>
<!-- 广汇车辆 -->
<block wx:if="{{carFlag}}">
<view class="car-box box GH">
<block wx:if="{{!carList.length}}">
<view class="add-car text-center">
添加爱车专属优惠
<view class="btn flex" bindtap="goto" data-url="GHVehicleInfo">
<view class="sprite-icon icon-mine-add"></view>
添加
</view>
</view>
</block>
<block wx:else>
<view class="car-info">
<view class="title">
我的爱车
<view class="edit" bindtap="goto" data-url="GHVehicleInfo" data-name="list">
管理
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</view>
<view class="my-car">
<gh-car-card item="{{carList[0]}}" selectedCar="null"></gh-car-card>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{merchantDetail}}">
<view class="merchant-box box">
<view class="title">
<view class="name text-hide">{{merchantDetail.storeName}}</view>
</view>
<view class="address">{{merchantDetail.address}}</view>
<view class="serve-item">
<block wx:if="{{merchantDetail.appointmentPhone}}">
<view class="item flex" bindtap="phoneCall" data-phone="{{merchantDetail.appointmentPhone}}">
<view class="sprite-icon icon-mine-gh-phone"></view>
通话
</view>
</block>
<block wx:if="{{merchantDetail.merchantAddress}}">
<view class="item flex" bindtap="openLocation" data-item="{{merchantDetail}}">
<view class="sprite-icon icon-mine-gh-gps"></view>
导航
</view>
</block>
<block wx:if="{{consultant == null}}">
<view class="item-counselor flex" bindtap="openConsultant" data-item="{{merchantDetail}}">
<view class="icon">
<image webp src="{{IMGURL}}mine/serve.png?v={{img_version}}"></image>
</view>
选择服务顾问
</view>
</block>
</view>
<block wx:if="{{consultant != null}}">
<view class="counselor">
<view class="userInfo">
<view class="counselor-avatar">
<block wx:if="{{consultant.avatar}}">
<image webp src="{{consultant.avatar}}"></image>
</block>
<block wx:else>
<image webp src="{{IMGURL}}mine/default-avatar.png?v={{img_version}}"></image>
</block>
</view>
<view>{{consultant.consultantName}}</view>
</view>
<view class="userInfo">
<view class="user-phone" bindtap="phoneCall" data-phone="{{consultant.phone}}">
<view class="sprite-icon icon-mine-gh-phone"></view>
通话
</view>
<view class="more" bindtap="goCounselor">更多</view>
</view>
</view>
</block>
</view>
</block>
<view class="user-items box">
<block wx:for="{{utilList}}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{item}}">
<view class="label">
<view class="sprite-icon icon-mine-{{item.icon || item.url}} icon"></view>
{{item.text}}
</view>
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</block>
</view>
</view>
<login show="{{showLogin}}"></login>
<authorize scopeType="userInfo" title="是否授权用户昵称&头像" confirmText="授权" cancelText="拒绝" show="{{showAuth}}" bindsuccess="authSuccess"></authorize>
\ No newline at end of file
\ No newline at end of file
project.private.config.json
View file @
a780c15
{
{
"setting"
:
{
"setting"
:
{
"compileHotReLoad"
:
tru
e
,
"compileHotReLoad"
:
fals
e
,
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"lazyloadPlaceholderEnable"
:
true
"lazyloadPlaceholderEnable"
:
true
},
},
...
@@ -55,11 +55,18 @@
...
@@ -55,11 +55,18 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"个人中心"
,
"pathName"
:
"pages/tab/mine/mine"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
},
},
"projectname"
:
"store-assistant"
,
"projectname"
:
"store-assistant"
,
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"libVersion"
:
"2.2
4.4
"
"libVersion"
:
"2.2
6.1
"
}
}
\ No newline at end of file
\ No newline at end of file
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