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
8eb554a4
Commit
8eb554a4
authored
Mar 17, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下单问题
parent
6b93300b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
47 deletions
+63
-47
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+23
-11
confirmOrder.wxml
src/pages/confirmOrder/confirmOrder.wxml
+15
-3
logistics.js
src/pages/logistics/logistics.js
+9
-2
logistics.json
src/pages/logistics/logistics.json
+1
-0
logistics.wxml
src/pages/logistics/logistics.wxml
+11
-26
logistics.wxss
src/pages/logistics/logistics.wxss
+1
-1
order.js
src/pages/order/order.js
+1
-3
orderDetail.js
src/pages/orderDetail/orderDetail.js
+2
-0
refund.js
src/pages/refund/refund.js
+0
-1
No files found.
src/pages/confirmOrder/confirmOrder.js
View file @
8eb554a4
...
@@ -23,6 +23,11 @@ wxService.page({
...
@@ -23,6 +23,11 @@ wxService.page({
noSelectPrice
:
''
,
noSelectPrice
:
''
,
plusSpread
:
''
,
plusSpread
:
''
,
goodsAddress
:
false
,
goodsAddress
:
false
,
uAddress
:
{
name
:
''
,
phone
:
''
,
address
:
''
,
},
citys
:
null
,
citys
:
null
,
cityView
:
''
,
cityView
:
''
,
multiIndex
:
[
0
,
0
,
0
],
multiIndex
:
[
0
,
0
,
0
],
...
@@ -55,6 +60,12 @@ wxService.page({
...
@@ -55,6 +60,12 @@ wxService.page({
wx
.
hideShareMenu
();
wx
.
hideShareMenu
();
this
.
getMyLocationInfo
();
this
.
getMyLocationInfo
();
},
},
//输入
onInput
(
e
){
let
key
=
e
.
target
.
dataset
.
name
;
let
value
=
e
.
detail
.
value
;
this
.
data
.
uAddress
[
key
]
=
value
;
},
////获取位置信息并获取附近门店信息
////获取位置信息并获取附近门店信息
getMyLocationInfo
(
cb
)
{
getMyLocationInfo
(
cb
)
{
let
_this
=
this
;
let
_this
=
this
;
...
@@ -307,30 +318,30 @@ wxService.page({
...
@@ -307,30 +318,30 @@ wxService.page({
const
{
goodsAddress
}
=
this
.
data
const
{
goodsAddress
}
=
this
.
data
// 保存地址 && 支付
// 保存地址 && 支付
if
(
goodsAddress
)
{
if
(
goodsAddress
)
{
if
(
!
e
.
detail
.
value
.
name
)
{
if
(
!
this
.
data
.
uAddress
.
name
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
`请输入姓名`
,
title
:
`请输入
收货人
姓名`
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
}
}
if
(
!
e
.
detail
.
value
.
phone
)
{
if
(
!
this
.
data
.
uAddress
.
phone
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
`请输入电话`
,
title
:
`请输入
收货人
电话`
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
}
}
if
(
!
this
.
data
.
cityView
)
{
if
(
!
this
.
data
.
cityView
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
`请选择地区`
,
title
:
`请选择
收货
地区`
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
}
}
if
(
!
e
.
detail
.
value
.
address
)
{
if
(
!
this
.
data
.
uAddress
.
address
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
`请输入详细地址`
,
title
:
`请输入
收货
详细地址`
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
...
@@ -340,12 +351,12 @@ wxService.page({
...
@@ -340,12 +351,12 @@ wxService.page({
this
.
setData
({
this
.
setData
({
params
:
{
params
:
{
userId
:
memberId
,
userId
:
memberId
,
name
:
e
.
detail
.
value
.
name
,
name
:
this
.
data
.
uAddress
.
name
,
phone
:
e
.
detail
.
value
.
phone
,
phone
:
this
.
data
.
uAddress
.
phone
,
province
:
this
.
data
.
params
.
province
,
province
:
this
.
data
.
params
.
province
,
city
:
this
.
data
.
params
.
city
,
city
:
this
.
data
.
params
.
city
,
district
:
this
.
data
.
params
.
district
,
district
:
this
.
data
.
params
.
district
,
address
:
e
.
detail
.
value
.
address
,
address
:
this
.
data
.
uAddress
.
address
,
type
:
this
.
data
.
isSelect
?
1
:
0
type
:
this
.
data
.
isSelect
?
1
:
0
}
}
});
});
...
@@ -737,8 +748,9 @@ wxService.page({
...
@@ -737,8 +748,9 @@ wxService.page({
let
amount
=
data
.
amount
||
0
let
amount
=
data
.
amount
||
0
wx
.
requestPayment
(
Object
.
assign
({
wx
.
requestPayment
(
Object
.
assign
({
success
(
res
)
{
success
(
res
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
// 支付成功页面
// 支付成功页面
//消息订阅
//消息订阅
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgMapping/getListByParams'
}
`
,
{
wxService
.
post
(
`
${
'/merchant/message/wxSubMsgMapping/getListByParams'
}
`
,
{
...
...
src/pages/confirmOrder/confirmOrder.wxml
View file @
8eb554a4
...
@@ -15,8 +15,15 @@
...
@@ -15,8 +15,15 @@
<view class="address-wrap" wx:if="{{currentType == 'delivery'}}">
<view class="address-wrap" wx:if="{{currentType == 'delivery'}}">
<block wx:if="{{goodsAddress}}">
<block wx:if="{{goodsAddress}}">
<view class="address-section">
<view class="address-section">
<input class="address-input" name="name" placeholder="请输入收货人姓名" />
<input class="address-input" name="name"
<input class="address-input" name="phone" placeholder="请输入手机号码" />
data-name="name" value='{{uAddress.name}}'
bindinput='onInput'
placeholder="请输入收货人姓名" />
<input class="address-input" name="phone"
data-name="phone"
bindinput='onInput'
value='{{uAddress.phone}}'
placeholder="请输入手机号码" />
</view>
</view>
<view class="address-section">
<view class="address-section">
<picker
<picker
...
@@ -43,7 +50,12 @@
...
@@ -43,7 +50,12 @@
</picker>
</picker>
</view>
</view>
<view class="address-section">
<view class="address-section">
<input class="address-input address-detail" name="address" placeholder="请输入路名门牌号" />
<input class="address-input address-detail"
name="address"
bindinput='onInput'
data-name="address"
value='{{uAddress.address}}'
placeholder="请输入路名门牌号" />
</view>
</view>
</block>
</block>
<block wx:if="{{!goodsAddress}}">
<block wx:if="{{!goodsAddress}}">
...
...
src/pages/logistics/logistics.js
View file @
8eb554a4
...
@@ -15,7 +15,10 @@ wxService.page({
...
@@ -15,7 +15,10 @@ wxService.page({
orderCode
:
''
,
orderCode
:
''
,
orderLogisticsNo
:
''
,
orderLogisticsNo
:
''
,
params
:
null
,
params
:
null
,
hasLogisticInfo
:
false
hasLogisticInfo
:
false
,
logisticCompanyName
:
''
,
logisticNo
:
''
,
},
},
/**
/**
...
@@ -33,11 +36,15 @@ wxService.page({
...
@@ -33,11 +36,15 @@ wxService.page({
let
detail
=
JSON
.
parse
(
params
)
let
detail
=
JSON
.
parse
(
params
)
// supplierCode code
// supplierCode code
if
(
detail
.
id
){
if
(
detail
.
id
){
this
.
data
.
logisticCompanyName
=
detail
.
logistic
.
supplierName
?
detail
.
logistic
.
supplierName
:
'暂无'
;
this
.
data
.
logisticNo
=
detail
.
logistic
.
code
?
detail
.
logistic
.
code
:
'暂无'
;
this
.
setData
({
this
.
setData
({
params
,
params
,
orderId
:
detail
.
id
,
orderId
:
detail
.
id
,
orderCode
:
detail
.
logistic
.
supplierCode
,
orderCode
:
detail
.
logistic
.
supplierCode
,
orderLogisticsNo
:
detail
.
logistic
.
code
orderLogisticsNo
:
detail
.
logistic
.
code
,
logisticCompanyName
:
this
.
data
.
logisticCompanyName
,
logisticNo
:
this
.
data
.
logisticNo
,
},()
=>
{
},()
=>
{
const
{
orderCode
,
orderLogisticsNo
}
=
this
.
data
const
{
orderCode
,
orderLogisticsNo
}
=
this
.
data
this
.
getLogisticsInfo
(
orderCode
,
orderLogisticsNo
)
this
.
getLogisticsInfo
(
orderCode
,
orderLogisticsNo
)
...
...
src/pages/logistics/logistics.json
View file @
8eb554a4
{
{
"navigationBarTitleText"
:
"物流详情"
,
"navigationBarTitleText"
:
"物流详情"
,
"usingComponents"
:
{
"usingComponents"
:
{
"empty"
:
"/component/empty/empty"
,
"go-home"
:
"/component/goHome/goHome"
,
"go-home"
:
"/component/goHome/goHome"
,
"go-guid"
:
"/component/goGuid/goGuid"
"go-guid"
:
"/component/goGuid/goGuid"
}
}
...
...
src/pages/logistics/logistics.wxml
View file @
8eb554a4
<!--pages/logistics/logistics.wxml-->
<!--pages/logistics/logistics.wxml-->
<view class="page-logistics"
wx:if="{{orderId && hasLogisticInfo}}"
>
<view class="page-logistics" >
<view class="header-wrap">
<view class="header-wrap">
<image class="header-bg" src="https://img3.bigaka.com/prd/3001/202003/20200309/300106606827-975c-4d80-a176-c1830857107b.jpg" />
<image class="header-bg" src="https://img3.bigaka.com/prd/3001/202003/20200309/300106606827-975c-4d80-a176-c1830857107b.jpg" />
<view class="logistics-status">
<view class="logistics-status">
<view class="status">物流公司:{{logis
Data.company
}}</view>
<view class="status">物流公司:{{logis
ticCompanyName
}}</view>
<view class="desc">物流单号:{{logis
Data.n
o}}</view>
<view class="desc">物流单号:{{logis
ticN
o}}</view>
<view class="copy" bindtap="copy" data-content="89687687687687786">复制</view>
<view class="copy" bindtap="copy" data-content="89687687687687786">复制</view>
</view>
</view>
</view>
</view>
<!-- 物流时间轴 -->
<!-- 物流时间轴 -->
<view class='expressRecord'>
<view class='expressRecord'
wx:if="{{orderId && hasLogisticInfo}}"
>
<view class='expressRecord-single-close' wx:for="{{logisData.list}}" wx:key="{{index}}">
<view class='expressRecord-single-close' wx:for="{{logisData.list}}" wx:key="{{index}}">
<view class='expressRecord-single-noReach-online-top-close'>
<view class='expressRecord-single-noReach-online-top-close'>
<view class="online-top-close {{index ==0 ? 'online-top-closing' : ''}}" />
<view class="online-top-close {{index ==0 ? 'online-top-closing' : ''}}" />
<view class="dot-icon">
<view class="dot-icon">
<!-- 订单提交成功 -->
<!-- <image class="dot-icon-close" src="/assets/imgs/7_1_0/submit-order.png"></image> -->
<!-- <image class="dot-icon-closing" src="/assets/imgs/7_1_0/submit-order-primary.png"></image> -->
<!-- 订单发货 -->
<!-- <image class="dot-icon-close" src="/assets/imgs/7_1_0/deliver.png"></image> -->
<!-- <image class="dot-icon-closing" src="/assets/imgs/7_1_0/deliver-success.png"></image> -->
<!-- 运输 -->
<!-- <image class="dot-icon-close" src="/assets/imgs/7_1_0/transport.png"></image> -->
<!-- <image class="dot-icon-closing" src="/assets/imgs/7_1_0/transport-success.png"></image> -->
<!-- 签收 -->
<!-- <image class="dot-icon-close" src="/assets/imgs/7_1_0/sign.png"></image> -->
<!-- <image class="dot-icon-closing" src="/assets/imgs/7_1_0/sign-success.png"></image> -->
<!-- 交易完成 -->
<image class="dot-icon-closing" src="/assets/imgs/7_1_0/trade-success.png" />
<image class="dot-icon-closing" src="/assets/imgs/7_1_0/trade-success.png" />
</view>
</view>
<view class='dot-close' wx:if="{{false}}" />
<view class='dot-close' wx:if="{{false}}" />
...
@@ -55,14 +38,16 @@
...
@@ -55,14 +38,16 @@
</view>
</view>
</view>
</view>
<view class="button-wrap">
<
!-- <
view class="button-wrap">
<button class="btn btn-primary btn-lg" bindtap="handelConfirmReceipt">确认收货</button>
<button class="btn btn-primary btn-lg" bindtap="handelConfirmReceipt">确认收货</button>
<button class="btn btn-lg btn-gray" bindtap="handelReturnGood">申请退款</button>
<button class="btn btn-lg btn-gray" bindtap="handelReturnGood">申请退款</button>
</view>
</view> -->
</view>
<view wx:else class="df no-logis">
当前暂无物流信息
</view>
</view>
<!-- <view wx:if="{{!orderId || !hasLogisticInfo}}" class="df no-logis">
</view> -->
<!-- 空 -->
<empty text="当前暂无快递物流信息,请耐心等待~" wx:if="{{!orderId || !hasLogisticInfo}}"/>
<!--goHome-->
<!--goHome-->
<go-home/>
<go-home/>
...
...
src/pages/logistics/logistics.wxss
View file @
8eb554a4
...
@@ -30,7 +30,7 @@ page{
...
@@ -30,7 +30,7 @@ page{
font-weight: bold;
font-weight: bold;
}
}
.logistics-status .desc{
.logistics-status .desc{
font-size: 2
6
rpx;
font-size: 2
8
rpx;
margin-top: 8rpx;
margin-top: 8rpx;
display: inline-block;
display: inline-block;
}
}
...
...
src/pages/order/order.js
View file @
8eb554a4
...
@@ -211,9 +211,7 @@ wxService.page({
...
@@ -211,9 +211,7 @@ wxService.page({
item
.
count
=
item
.
canRefundNum
;
item
.
count
=
item
.
canRefundNum
;
});
});
// let obj = {
delete
copyOrderInfo
.
orderStore
;
// id :
// }
let
params
=
JSON
.
stringify
(
copyOrderInfo
);
let
params
=
JSON
.
stringify
(
copyOrderInfo
);
...
...
src/pages/orderDetail/orderDetail.js
View file @
8eb554a4
...
@@ -293,6 +293,8 @@ wxService.page({
...
@@ -293,6 +293,8 @@ wxService.page({
item
.
count
=
item
.
canRefundNum
;
item
.
count
=
item
.
canRefundNum
;
});
});
delete
copyOrderInfo
.
orderStore
;
let
params
=
JSON
.
stringify
(
copyOrderInfo
);
let
params
=
JSON
.
stringify
(
copyOrderInfo
);
// 退款申请
// 退款申请
wxService
.
router
(
`/pages/logistics/logistics`
).
search
({
params
})
wxService
.
router
(
`/pages/logistics/logistics`
).
search
({
params
})
...
...
src/pages/refund/refund.js
View file @
8eb554a4
...
@@ -129,7 +129,6 @@ wxService.page({
...
@@ -129,7 +129,6 @@ wxService.page({
}
}
}
}
})
})
},
},
//获取退款原因列表
//获取退款原因列表
getReasonList
()
{
getReasonList
()
{
...
...
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