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
cdb28491
Commit
cdb28491
authored
Jun 06, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into feature-zyw
# Conflicts: # src/project.config.json
parents
200dfa4f
f9536d51
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
333 additions
and
161 deletions
+333
-161
app.json
src/app.json
+1
-0
IntegralMall.wxml
src/pages/IntegralMall/IntegralMall.wxml
+2
-2
IntegralMall.wxss
src/pages/IntegralMall/IntegralMall.wxss
+6
-4
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+1
-0
couponCodeDetail.js
src/pages/couponCodeDetail/couponCodeDetail.js
+50
-0
couponCodeDetail.json
src/pages/couponCodeDetail/couponCodeDetail.json
+5
-0
couponCodeDetail.wxml
src/pages/couponCodeDetail/couponCodeDetail.wxml
+19
-0
couponCodeDetail.wxss
src/pages/couponCodeDetail/couponCodeDetail.wxss
+86
-0
couponDetail.js
src/pages/couponDetail/couponDetail.js
+28
-21
couponDetail.json
src/pages/couponDetail/couponDetail.json
+2
-1
couponDetail.wxml
src/pages/couponDetail/couponDetail.wxml
+21
-39
couponDetail.wxss
src/pages/couponDetail/couponDetail.wxss
+62
-72
coupons.js
src/pages/coupons/coupons.js
+7
-2
coupons.wxml
src/pages/coupons/coupons.wxml
+2
-2
integralWater.wxml
src/pages/integralWater/integralWater.wxml
+1
-1
integralWater.wxss
src/pages/integralWater/integralWater.wxss
+7
-6
memberOfOwn.wxml
src/pages/memberOfOwn/memberOfOwn.wxml
+1
-1
memberOfOwn.wxss
src/pages/memberOfOwn/memberOfOwn.wxss
+21
-5
mySpend.js
src/pages/mySpend/mySpend.js
+3
-3
project.config.json
src/project.config.json
+8
-2
No files found.
src/app.json
View file @
cdb28491
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"pages/deliveryService/deliveryService"
,
"pages/deliveryService/deliveryService"
,
"pages/coupons/coupons"
,
"pages/coupons/coupons"
,
"pages/couponDetail/couponDetail"
,
"pages/couponDetail/couponDetail"
,
"pages/couponCodeDetail/couponCodeDetail"
,
"pages/consumptionDetails/consumptionDetails"
,
"pages/consumptionDetails/consumptionDetails"
,
"pages/IntegralMall/IntegralMall"
,
"pages/IntegralMall/IntegralMall"
,
"pages/integralMallDetail/integralMallDetail"
,
"pages/integralMallDetail/integralMallDetail"
,
...
...
src/pages/IntegralMall/IntegralMall.wxml
View file @
cdb28491
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
<image wx:else src='/assets/imgs/qr-code.png'></image>
<image wx:else src='/assets/imgs/qr-code.png'></image>
</view>
</view>
<view class='coupon-info'>
<view class='coupon-info'>
<view class='coupon-time fs-24'>{{item.point}}积分</view>
<view class='coupon-name fs-28'>{{item.title}}</view>
<view class='coupon-name fs-28'>{{item.title}}</view>
<view class='coupon-time fs-24'>{{item.startTime}}</view>
<view class='coupon-desc fs-24' data-id="{{item.id}}" bindtap="goCouponDetail">查看详情 >>></view>
<view class='coupon-desc fs-24' data-id="{{item.id}}" bindtap="goCouponDetail">查看详情</view>
</view>
</view>
<view class='coupon-code fs-24' data-id="{{item.id}}" data-point="{{item.point}}" bindtap='exchange'>立即兑换</view>
<view class='coupon-code fs-24' data-id="{{item.id}}" data-point="{{item.point}}" bindtap='exchange'>立即兑换</view>
</view>
</view>
...
...
src/pages/IntegralMall/IntegralMall.wxss
View file @
cdb28491
...
@@ -63,16 +63,18 @@
...
@@ -63,16 +63,18 @@
left: 236rpx;
left: 236rpx;
}
}
.coupon-name{
.coupon-name{
color:#
05c35b
;
color:#
333
;
}
}
.coupon-time{
.coupon-time{
color:#
999999
;
color:#
fc921e
;
margin-top: 10rpx;
margin-top: 10rpx;
font-size: 26rpx;
}
}
.coupon-desc{
.coupon-desc{
color:#
666666
;
color:#
999
;
margin-top:
6
rpx;
margin-top:
20
rpx;
width: 360rpx;
width: 360rpx;
font-size: 24rpx;
}
}
.coupon-code{
.coupon-code{
color: #ffffff;
color: #ffffff;
...
...
src/pages/consumptionDetails/consumptionDetails.js
View file @
cdb28491
...
@@ -44,6 +44,7 @@ wxService.page({
...
@@ -44,6 +44,7 @@ wxService.page({
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
})
})
// brandId dev_1002 711_2005
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=2005`
).
then
(
res
=>
{
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=2005`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
if
(
result
==
0
){
...
...
src/pages/couponCodeDetail/couponCodeDetail.js
0 → 100644
View file @
cdb28491
// pages/couponCodeDetail.js
const
app
=
getApp
()
const
wxService
=
require
(
'../../utils/wxService'
)
const
utils
=
require
(
'../../utils/util'
)
const
envInfo
=
require
(
'../../config/index'
).
envInfo
var
wxbarcode
=
require
(
'../../codeUtils/index.js'
);
wxService
.
page
({
/**
* 页面的初始数据
*/
data
:
{
couponDetailTitle
:
''
,
cardno
:
''
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
const
{
title
,
cardno
}
=
this
.
options
this
.
setData
({
couponDetailTitle
:
title
,
cardno
})
this
.
getCouponDetail
(
cardno
)
// 条形码
wxbarcode
.
barcode
(
'barcode'
,
cardno
,
600
,
180
);
},
// 查询单个优惠券
getCouponDetail
(
cardno
){
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
post
(
`/coupon/coupon/get?cardNo=
${
cardno
}
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
}
else
{
wx
.
hideLoading
()
wx
.
showToast
({
title
:
`
${
res
.
desc
}
`
,
icon
:
'none'
})
}
}).
finally
(()
=>
{})
}
})
\ No newline at end of file
src/pages/couponCodeDetail/couponCodeDetail.json
0 → 100644
View file @
cdb28491
{
"navigationBarTitleText"
:
"券码详情页"
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/pages/couponCodeDetail/couponCodeDetail.wxml
0 → 100644
View file @
cdb28491
<!--pages/couponCodeDetail.wxml-->
<view class="container-coupon page">
<view class="panel">
<view class="qrcode">
<view class='avatar-img'>
<image src='/assets/imgs/avatar.png'></image>
</view>
<view class='title fs-36'>{{couponDetailTitle}}</view>
</view>
<view class='line'>
<image src='/assets/imgs/line.png'></image>
</view>
<view class="barcode">
<canvas canvas-id="barcode" />
</view>
<view class='bottom-code'>{{cardno}}</view>
</view>
</view>
\ No newline at end of file
src/pages/couponCodeDetail/couponCodeDetail.wxss
0 → 100644
View file @
cdb28491
/* pages/couponCodeDetail/couponCodeDetail.wxss */
@import './../../base/base.wxss';
page {
background-color: #fff;
}
.page {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container-coupon {
padding-bottom: 10rpx;
}
.panel {
width:642rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
margin: 52rpx 60rpx;
box-sizing: border-box;
border-radius: 10rpx;
background-color: #fff;
box-shadow: 0 0 30rpx 10rpx rgba(0,0,0,0.1);
}
.barcode {
display: flex;
height: 320rpx;
flex-direction: column;
justify-content: center;
align-items: center;
padding:0 20rpx;
box-sizing: border-box;
}
.barnum {
width: 670rpx;
height: 100rpx;
line-height: 100rpx;
font-size: 38rpx;
font-weight: bold;
text-align: center;
letter-spacing: 10rpx;
white-space: nowrap;
}
.barcode > canvas {
width: 600rpx;
height: 200rpx;
}
.qrcode {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
}
.bottom-code{
font-size: 40rpx;
color: #05c35b;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
margin-top: 30rpx;
padding-bottom: 140rpx;
}
.avatar-img image{
width: 81rpx;
height: 81rpx;
margin-top: 58rpx;
}
.title{
color: #333333;
margin-top: 66rpx;
}
.line image{
width: 100%;
height: 42rpx;
margin: 40rpx 0;
}
src/pages/couponDetail/couponDetail.js
View file @
cdb28491
// pages/coupon
s
.js
// pages/coupon
Detail/couponDetail
.js
const
app
=
getApp
()
const
app
=
getApp
()
const
wxService
=
require
(
'../../utils/wxService'
)
const
wxService
=
require
(
'../../utils/wxService'
)
const
utils
=
require
(
'../../utils/util'
)
const
utils
=
require
(
'../../utils/util'
)
const
envInfo
=
require
(
'../../config/index'
).
envInfo
const
envInfo
=
require
(
'../../config/index'
).
envInfo
var
wxbarcode
=
require
(
'../../codeUtils/index.js'
);
wxService
.
page
({
wxService
.
page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
couponDetailTitle
:
''
,
isExchange
:
false
,
c
ardno
:
''
c
ouponDetail
:{}
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
const
{
title
,
cardno
}
=
this
.
options
const
{
cardno
}
=
this
.
options
this
.
getCouponDetail
(
cardno
)
},
//立即兑换
exchange
(){
this
.
setData
({
this
.
setData
({
couponDetailTitle
:
title
,
isExchange
:
true
cardno
})
})
this
.
getCouponDetail
(
cardno
)
// 条形码
wxbarcode
.
barcode
(
'barcode'
,
cardno
,
600
,
180
);
},
},
//
查询单个优惠券
//
卡券详情
getCouponDetail
(
cardno
){
getCouponDetail
(
id
){
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
})
})
wxService
.
post
(
`/coupon/coupon/get?cardNo=
${
cardno
}
`
).
then
(
res
=>
{
wxService
.
post
(
`/coupon/coupon/get?cardNo=
${
id
}
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
if
(
result
==
0
){
wx
.
hideLoading
()
wx
.
hideLoading
()
}
else
{
data
.
coupon
.
startTime
=
data
.
coupon
.
startTime
.
substring
(
0
,
10
)
wx
.
hideLoading
()
data
.
coupon
.
endTime
=
data
.
coupon
.
endTime
.
substring
(
0
,
10
)
wx
.
showToast
({
this
.
setData
({
title
:
`
${
res
.
desc
}
`
,
couponDetail
:
data
icon
:
'none'
})
})
}
}
}).
finally
(()
=>
{})
}).
finally
(()
=>
{
wx
.
hideLoading
()
})
},
handelPresentCouponCode
(
e
)
{
let
data
=
e
.
currentTarget
.
dataset
wxService
.
router
(
`/pages/couponCodeDetail/couponCodeDetail`
).
search
(
data
)
}
}
})
})
\ No newline at end of file
src/pages/couponDetail/couponDetail.json
View file @
cdb28491
{
{
"navigationBarTitleText"
:
"
券码详情页
"
,
"navigationBarTitleText"
:
"
我的卡券
"
,
"usingComponents"
:
{}
"usingComponents"
:
{}
}
}
\ No newline at end of file
src/pages/couponDetail/couponDetail.wxml
View file @
cdb28491
<!--pages/userCenter.wxml-->
<!--pages/couponDetail/couponDetail.wxml-->
<!--<view class='page-couponDetail'>
<view class='page-integral-detail'>
<view class='coupon-detail-content'>
<view class='coupon-wrap'>
<view class='coupon-detail-header'>
<view class='coupon-list'>
<view class='avatar-img'>
<image class='coupon-bg' src='/assets/imgs/coupon-bg.png' />
<image src='/assets/imgs/avatar.png'></image>
<view class='coupon-img'>
</view>
<image wx:if="{{couponDetail.couponDetail.style.takeCouponBgimg}}" src='{{couponDetail.couponDetail.style.takeCouponBgimg}}'></image>
<view class='title fs-36'>{{couponDetailTitle}}</view>
<image wx:else src='/assets/imgs/qr-code.png'></image>
</view>
</view>
<view class='line'>
<view class='coupon-info'>
<image src='/assets/imgs/line.png'></image>
<view class='coupon-name fs-28'>{{couponDetail.couponSetting.title}}</view>
</view>
<view class='coupon-desc fs-28'>{{couponDetail.coupon.startTime}} 至 {{couponDetail.coupon.endTime}}</view>
<view class='qr-code'>
</view>
<view class='code-img'>
<view class='coupon-code fs-24' bindtap='exchange' bindtap="handelPresentCouponCode">出示券码</view>
<canvas canvas-id="barcode" />
</view>
</view>
<view class='integral-detail' wx:if="{{couponDetail.couponDetail.style.takeCouponBgimg}}">
<view class='bottom-code'>{{cardno}}</view>
<image src='{{couponDetail.couponDetail.style.takeCouponBgimg}}' mode="widthFix" style="width: 100%;"></image>
</view>
</view>
</view>
<button type='primary' class="redeem-now" bindtap='exchange' bindtap="handelPresentCouponCode">出示券码</button>
</view>-->
</view>
</view>
<view class="container-coupon page">
<view class="panel">
<view class="qrcode">
<view class='avatar-img'>
<image src='/assets/imgs/avatar.png'></image>
</view>
<view class='title fs-36'>{{couponDetailTitle}}</view>
</view>
<view class='line'>
<image src='/assets/imgs/line.png'></image>
</view>
<view class="barcode">
<canvas canvas-id="barcode" />
</view>
<view class='bottom-code'>{{cardno}}</view>
</view>
</view>
\ No newline at end of file
src/pages/couponDetail/couponDetail.wxss
View file @
cdb28491
/* pages/couponDetail/couponDetail.wxss */
/* pages/couponDetail/couponDetail.wxss */
@import './../../base/base.wxss';
@import './../../base/base.wxss';
page {
.coupon-wrap{
background-color: #fff;
padding: 20rpx;
clear: both;
}
}
.
page
{
.
redeem-now
{
display: flex
;
font-size: 28rpx!important
;
flex-direction: column
;
height: 88rpx
;
justify-content: center
;
line-height: 88rpx
;
align-items: center
;
background-color: rgb(0, 188, 112)!important
;
}
}
.coupon-list{
.container-coupon {
width: 712rpx;
padding-bottom: 10rpx;
height: 209rpx;
position: relative;
margin-bottom: 20rpx;
}
}
.coupon-bg{
.panel {
width: 712rpx;
width:642rpx;
height: 209rpx;
display: flex;
position: absolute;
flex-direction: column;
top: 0;
justify-content: space-between;
left: 0;
align-items: stretch;
z-index: -1;
margin: 52rpx 60rpx;
box-sizing: border-box;
border-radius: 10rpx;
background-color: #fff;
box-shadow: 0 0 30rpx 10rpx rgba(0,0,0,0.1);
}
}
.coupon-img image{
.barcode {
width: 172rpx;
display: flex;
height: 172rpx;
height: 320rpx;
position: absolute;
flex-direction: column;
top: 18rpx;
justify-content: center;
left: 16rpx;
align-items: center;
padding:0 20rpx;
box-sizing: border-box;
}
}
.coupon-info{
.barnum {
position: absolute;
width: 670rpx;
top: 30rpx;
height: 100rpx;
left: 236rpx;
line-height: 100rpx;
}
font-size: 38rpx;
.coupon-name{
font-weight: bold;
color:#000;
text-align: center;
letter-spacing: 10rpx;
white-space: nowrap;
}
}
.coupon-desc{
.barcode > canvas {
width: 360rpx;
width: 600rpx
;
color:#999999
;
height: 200rpx;
margin-top: 10rpx;
}
}
.coupon-code{
.qrcode {
color: #ffffff;
display: flex;
position: absolute;
flex-direction: column;
right: 20rpx;
justify-content: flex-end;
top: 30rpx;
align-items: center;
width: 24rpx;
word-wrap: break-word;
font-weight: bold;
}
}
.integral-detail{
.bottom-code{
margin-top: 90rpx;
font-size: 40rpx;
color: #05c35b;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
margin-top: 30rpx;
padding-bottom: 140rpx;
}
}
.avatar-img image{
.integral-list{
width: 81rpx;
margin-bottom: 60rpx;
height: 81rpx;
margin-top: 58rpx;
}
}
.title{
.integral-title,.integral-desc{
color: #333333;
display: inline-block;
margin-top: 66rpx;
}
}
.line image{
.integral-title{
width: 100%;
color: #999999;
height: 42rpx;
vertical-align: top;
margin: 40rpx 0;
margin-right: 50rpx;
text-align: right;
width: 120rpx;
}
}
.integral-desc{
width: 500rpx;
color: #666666;
}
\ No newline at end of file
src/pages/coupons/coupons.js
View file @
cdb28491
...
@@ -51,7 +51,6 @@ wxService.page({
...
@@ -51,7 +51,6 @@ wxService.page({
// invalidCouponList: [],
// invalidCouponList: [],
})
})
}
}
// 可使用
// 可使用
if
(
current
==
0
){
if
(
current
==
0
){
this
.
getCouponList
(
1
,
10
,
1
)
this
.
getCouponList
(
1
,
10
,
1
)
...
@@ -68,11 +67,17 @@ wxService.page({
...
@@ -68,11 +67,17 @@ wxService.page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
// 可使用 已失效
this
.
getCouponList
(
1
,
10
,
1
)
this
.
getCouponList
(
1
,
10
,
1
)
this
.
getCouponList
(
1
,
10
,
0
)
},
handelPresentCouponDetail
(
e
)
{
let
{
cardno
}
=
e
.
currentTarget
.
dataset
wxService
.
router
(
`/pages/couponDetail/couponDetail`
).
search
({
cardno
})
},
},
handelPresentCouponCode
(
e
)
{
handelPresentCouponCode
(
e
)
{
let
data
=
e
.
currentTarget
.
dataset
let
data
=
e
.
currentTarget
.
dataset
wxService
.
router
(
`/pages/coupon
Detail/coupon
Detail`
).
search
(
data
)
wxService
.
router
(
`/pages/coupon
CodeDetail/couponCode
Detail`
).
search
(
data
)
},
},
//获取优惠券列表
//获取优惠券列表
...
...
src/pages/coupons/coupons.wxml
View file @
cdb28491
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
wx:for-index="k"
wx:for-index="k"
wx:key="{{k}}"
wx:key="{{k}}"
>
>
<view data-title="{{item.title}}" data-cardNo="{{item.cardNo}}"
bindtap="handelPresentCouponCode
">
<view data-title="{{item.title}}" data-cardNo="{{item.cardNo}}"
data-id="{{item.couponId}}" bindtap="handelPresentCouponDetail
">
<image class='coupon-bg' src='/assets/imgs/coupon-bg.png'/>
<image class='coupon-bg' src='/assets/imgs/coupon-bg.png'/>
<view class='coupon-img'>
<view class='coupon-img'>
<image wx:if="{{item.takeCouponBgimg}}" class='coupon-bg' src='{{item.takeCouponBgimg}}' />
<image wx:if="{{item.takeCouponBgimg}}" class='coupon-bg' src='{{item.takeCouponBgimg}}' />
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<view class='coupon-time fs-24'>{{item.startTime}} 至 {{item.endTime}}</view>
<view class='coupon-time fs-24'>{{item.startTime}} 至 {{item.endTime}}</view>
<view class='coupon-desc fs-24'>{{item.notice}}</view>
<view class='coupon-desc fs-24'>{{item.notice}}</view>
</view>
</view>
<view class='coupon-code fs-24'>出示劵码</view>
<view class='coupon-code fs-24'
bindtap="handelPresentCouponCode"
>出示劵码</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
src/pages/integralWater/integralWater.wxml
View file @
cdb28491
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<view class="detail-title">{{item.changeTypeDesc}}</view>
<view class="detail-title">{{item.changeTypeDesc}}</view>
<view class="detail-time">{{item.createTime}}</view>
<view class="detail-time">{{item.createTime}}</view>
</view>
</view>
<view class="detail-num {{item.operation==true ? 'add' : 'less'}}">{{item.operation*item.changeValue}}</view>
<view class="detail-num {{item.operation==true ? 'add' : 'less'}}">{{item.operation
== 1? '+':''}}{{item.operation
*item.changeValue}}</view>
</view>
</view>
<no-more wx:if="{{noMore}}"/>
<no-more wx:if="{{noMore}}"/>
</view>
</view>
...
...
src/pages/integralWater/integralWater.wxss
View file @
cdb28491
...
@@ -22,14 +22,14 @@
...
@@ -22,14 +22,14 @@
padding-top: 34rpx;
padding-top: 34rpx;
}
}
.integral-vip-rules{
.integral-vip-rules{
width:1
4
0rpx;
width:1
0
0rpx;
height:3
5
rpx;
height:3
3
rpx;
line-height: 3
5
rpx;
line-height: 3
3
rpx;
display: inline-block;
display: inline-block;
text-align: center;
text-align: center;
margin-left:
29
%;
margin-left:
38
%;
color: rgb(64, 205, 147);
color: rgb(64, 205, 147);
font-size:
28
rpx;
font-size:
19
rpx;
font-weight: 700;
font-weight: 700;
border: 4rpx solid rgb(64, 205, 147);
border: 4rpx solid rgb(64, 205, 147);
padding: 5rpx 8rpx;
padding: 5rpx 8rpx;
...
@@ -75,7 +75,8 @@
...
@@ -75,7 +75,8 @@
.detail-num{
.detail-num{
font-size: 25rpx;
font-size: 25rpx;
text-align: left;
text-align: left;
width:26%;
width:10%;
padding-top:20rpx;
}
}
.add {
.add {
color: #fc921e;
color: #fc921e;
...
...
src/pages/memberOfOwn/memberOfOwn.wxml
View file @
cdb28491
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<view><label class='address-label'>地址</label></view>
<view><label class='address-label'>地址</label></view>
<view class="textarea-wrp">
<view class="textarea-wrp">
<span wx:if="{{memberInfo.address}}">{{memberInfo.address}}</span>
<span wx:if="{{memberInfo.address}}">{{memberInfo.address}}</span>
<textarea wx:if="{{!memberInfo.address}}" bindblur="bindTextAreaBlur" name="address" auto-height maxlength='30'/>
<textarea wx:if="{{!memberInfo.address}}" bindblur="bindTextAreaBlur"
placeholder="请填写真实收件地址"
name="address" auto-height maxlength='30'/>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
src/pages/memberOfOwn/memberOfOwn.wxss
View file @
cdb28491
/* pages/userCenter.wxss */
/* pages/userCenter.wxss */
@import './../../base/base.wxss';
@import './../../base/base.wxss';
.textarea-wrp {
padding-left: 46rpx;
}
.own-content{
.own-content{
padding:
6
0rpx 50rpx 0;
padding:
3
0rpx 50rpx 0;
}
}
.user-info{
.user-info{
position: relative;
position: relative;
...
@@ -28,19 +31,23 @@
...
@@ -28,19 +31,23 @@
padding: 37rpx 46rpx;
padding: 37rpx 46rpx;
}
}
.user-avatar{
.user-avatar{
width:
10
0rpx;
width:
9
0rpx;
height:
10
0rpx;
height:
9
0rpx;
overflow:hidden;
overflow:hidden;
border-radius: 50%;
border-radius: 50%;
display: inline-block;
display: inline-block;
margin-right: 18rpx;
margin-right: 18rpx;
margin-left: 30rpx;
margin-left: 30rpx;
}
}
.userinfo-nickname {
font-size: 28rpx;
color:#333;
}
.user-name-content{
.user-name-content{
display: inline-block;
display: inline-block;
}
}
.user-name{
.user-name{
margin-bottom:
25
rpx;
margin-bottom:
11
rpx;
}
}
.icon-edit{
.icon-edit{
width: 28rpx;
width: 28rpx;
...
@@ -90,11 +97,15 @@
...
@@ -90,11 +97,15 @@
.form-label,.form-input,.form-picker{
.form-label,.form-input,.form-picker{
display: inline-block;
display: inline-block;
vertical-align: middle;
vertical-align: middle;
font-size:26rpx;
}
}
.form-label{
.form-label{
width: 150rpx;
width: 150rpx;
}
}
.form-label, .address-label {
color: #333;
}
.btn-primary{
.btn-primary{
width: 650rpx;
width: 650rpx;
margin-top: 100rpx;
margin-top: 100rpx;
...
@@ -107,6 +118,9 @@
...
@@ -107,6 +118,9 @@
border-bottom: 1px solid #ccc;
border-bottom: 1px solid #ccc;
padding: 30rpx 0;
padding: 30rpx 0;
}
}
.form-picker-section .form-label{
vertical-align: top;
}
.birthday-desc{
.birthday-desc{
color: red;
color: red;
font-size: 20rpx;
font-size: 20rpx;
...
@@ -126,11 +140,12 @@
...
@@ -126,11 +140,12 @@
width: 100%;
width: 100%;
margin-bottom: 60rpx;
margin-bottom: 60rpx;
display: flex;
display: flex;
padding-top: 10rpx;
}
}
textarea {
textarea {
width:280px;
width:280px;
padding:
25
rpx 0;
padding:
33
rpx 0;
margin-right: 20rpx;
margin-right: 20rpx;
}
}
...
@@ -156,3 +171,4 @@ canvas{
...
@@ -156,3 +171,4 @@ canvas{
top: 20rpx;
top: 20rpx;
left: 70rpx;
left: 70rpx;
}
}
src/pages/mySpend/mySpend.js
View file @
cdb28491
...
@@ -26,8 +26,9 @@ wxService.page({
...
@@ -26,8 +26,9 @@ wxService.page({
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
// const { orderNo } = this.options
// const { orderNo } = this.options
const
orderNo
=
'700000000013545'
// 取会员id
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
orderNo
=
memberId
if
(
orderNo
){
if
(
orderNo
){
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
orderNo
)
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
orderNo
)
}
}
...
@@ -36,7 +37,6 @@ wxService.page({
...
@@ -36,7 +37,6 @@ wxService.page({
const
{
orderNo
}
=
e
.
currentTarget
.
dataset
const
{
orderNo
}
=
e
.
currentTarget
.
dataset
// pages/consumptionDetails/consumptionDetails
// pages/consumptionDetails/consumptionDetails
wxService
.
router
(
`/pages/consumptionDetails/consumptionDetails?orderNo=
${
orderNo
}
`
)
wxService
.
router
(
`/pages/consumptionDetails/consumptionDetails?orderNo=
${
orderNo
}
`
)
},
},
//获取消费列表
//获取消费列表
initOrderList
(
pageNo
,
pageSize
,
orderNo
){
initOrderList
(
pageNo
,
pageSize
,
orderNo
){
...
...
src/project.config.json
View file @
cdb28491
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
4
,
"current"
:
1
4
,
"list"
:
[
"list"
:
[
{
{
"id"
:
-1
,
"id"
:
-1
,
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
{
{
"id"
:
3
,
"id"
:
3
,
"name"
:
"券码详情页"
,
"name"
:
"券码详情页"
,
"pathName"
:
"pages/coupon
Detail/coupon
Detail"
,
"pathName"
:
"pages/coupon
CodeDetail/couponCode
Detail"
,
"query"
:
"cardno=24390355190533807720&title=新券"
"query"
:
"cardno=24390355190533807720&title=新券"
},
},
{
{
...
@@ -124,6 +124,12 @@
...
@@ -124,6 +124,12 @@
"name"
:
"外卖"
,
"name"
:
"外卖"
,
"pathName"
:
"pages/deliveryService/deliveryService"
,
"pathName"
:
"pages/deliveryService/deliveryService"
,
"query"
:
""
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"优惠券详情"
,
"pathName"
:
"pages/couponDetail/couponDetail"
,
"query"
:
"cardno=60022785092189546586"
}
}
]
]
}
}
...
...
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