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
1a37eb24
Commit
1a37eb24
authored
Mar 30, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改退单相关
parent
7566f11a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
50 additions
and
87 deletions
+50
-87
index.js
src/config/index.js
+2
-2
order.js
src/pages/order/order.js
+15
-12
order.wxml
src/pages/order/order.wxml
+1
-1
orderDetail.js
src/pages/orderDetail/orderDetail.js
+3
-2
refundDetail.js
src/pages/refundDetail/refundDetail.js
+21
-5
refundDetail.wxml
src/pages/refundDetail/refundDetail.wxml
+1
-1
project.config.json
src/project.config.json
+3
-3
pointActivityGroup.json
...geA/page/pages/pointActicityGroup/pointActivityGroup.json
+1
-1
pointExchangeCoupon.js
...geA/page/pages/pointExchangeCoupon/pointExchangeCoupon.js
+2
-30
Http.js
src/utils/Http.js
+0
-8
wxService.js
src/utils/wxService.js
+1
-22
No files found.
src/config/index.js
View file @
1a37eb24
...
...
@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应
const
PROJECT_ENV
=
'
prod
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4
//2006 泰华 , wx40fec8944623c8b3
...
...
@@ -24,7 +24,7 @@ const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门
//2992 山东盛联微商城 wx53dedc202ae0d0c2
//2002 巴黎贝甜 wx21968cb3a486d4ab
const
BRANCH_ID
=
3001
const
BRANCH_ID
=
1002
const
isMall
=
true
// const needMock = '' //
...
...
src/pages/order/order.js
View file @
1a37eb24
...
...
@@ -337,27 +337,30 @@ wxService.page({
const
params
=
{}
wxService
.
post
(
`/sale/refund/buyer/history?pageNum=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
if
(
res
)
{
cons
t
{
result
,
data
}
=
res
.
data
le
t
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
();
data
=
data
?
data
:
[];
data
.
forEach
(
item
=>
{
let
skuList
=
item
.
skuList
,
tradeVOSku
=
item
.
tradeVO
.
skuVOList
;
skuList
.
forEach
(
item
=>
{
let
filter
=
tradeVOSku
.
filter
(
c
=>
c
.
skuId
==
item
.
skuId
);
if
(
filter
.
length
>
0
)
{
item
.
skuImgUrl
=
filter
[
0
].
skuImgUrl
;
item
.
productName
=
filter
[
0
].
productName
;
item
.
skuSpec
=
filter
[
0
].
skuSpec
;
item
.
price
=
filter
[
0
].
price
;
item
.
count
=
filter
[
0
].
count
;
}
});
})
this
.
setData
({
orderList
:
this
.
data
.
pageNo
==
1
?
[...
data
]
:
[...
this
.
data
.
orderList
,
...
data
],
noMoreFlag
:
data
.
length
<
pageSize
?
true
:
false
},
()
=>
{
// console.log(this.data.orderList)
// let hasFilter = this.data.orderList.filter(item => item.status != 'C' && item.status != 'D');
// if (hasFilter.length > 0){
// this.data.swiperItem[4].hasTips = true;
// }
// else{
// this.data.swiperItem[4].hasTips = false;
// }
// console.log(hasFilter)
this
.
setData
({
no_data
:
this
.
data
.
orderList
.
length
?
true
:
false
,
// swiperItem: this.data.swiperItem
});
})
}
...
...
src/pages/order/order.wxml
View file @
1a37eb24
...
...
@@ -64,7 +64,7 @@
>
<scroll-view scroll-x="true">
<view class="uploadWrap" scroll-x="true">
<block wx:for='{{item.
tradeVO.skuVO
List}}' wx:for-item="sub" wx:key="s">
<block wx:for='{{item.
sku
List}}' wx:for-item="sub" wx:key="s">
<view class="upload_Item">
<image
class="upload_Item_img"
...
...
src/pages/orderDetail/orderDetail.js
View file @
1a37eb24
...
...
@@ -357,7 +357,8 @@ wxService.page({
wx
.
showLoading
({
title
:
'加载中'
,
mask
:
true
})
});
wxService
.
post
(
`/sale/trade/buyer/confirm/
${
id
}
`
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
...
...
@@ -368,7 +369,7 @@ wxService.page({
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
initOrderList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
,
this
.
data
.
trade
)
this
.
getOrderDetail
(
this
.
data
.
id
);
},
200
)
}
else
{
wx
.
showToast
({
...
...
src/pages/refundDetail/refundDetail.js
View file @
1a37eb24
...
...
@@ -87,12 +87,28 @@ wxService.page({
})
wxService
.
post
(
`/sale/refund/buyer/
${
id
}
`
).
then
(
res
=>
{
if
(
res
)
{
cons
t
{
result
,
data
}
=
res
.
data
le
t
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
refundDetail
:
data
})
wx
.
hideLoading
();
data
=
data
?
data
:
null
;
if
(
data
){
let
skuList
=
data
.
skuList
,
tradeVOSku
=
data
.
tradeVO
.
skuVOList
;
skuList
.
forEach
(
item
=>
{
let
filter
=
tradeVOSku
.
filter
(
c
=>
c
.
skuId
==
item
.
skuId
);
if
(
filter
.
length
>
0
){
item
.
skuImgUrl
=
filter
[
0
].
skuImgUrl
;
item
.
productName
=
filter
[
0
].
productName
;
item
.
skuSpec
=
filter
[
0
].
skuSpec
;
item
.
price
=
filter
[
0
].
price
;
item
.
count
=
filter
[
0
].
count
;
}
});
console
.
log
(
skuList
)
this
.
setData
({
refundDetail
:
data
})
}
}
}
})
...
...
src/pages/refundDetail/refundDetail.wxml
View file @
1a37eb24
...
...
@@ -56,7 +56,7 @@
<text class="total-price">¥{{refundDetail.amount? refundDetail.amount : refundDetail.previewAmount}}</text>
</view>
</view>
<block wx:for="{{refundDetail.
tradeVO.skuVO
List}}" wx:for-item="item" wx:key="{{item}}">
<block wx:for="{{refundDetail.
sku
List}}" wx:for-item="item" wx:key="{{item}}">
<view class="pro-list">
<image class="pro-img" src="{{item.skuImgUrl}}" />
<view class="pro-info">
...
...
src/project.config.json
View file @
1a37eb24
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
313ec36b710125d4
"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
@@ -43,7 +43,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
85
,
"current"
:
16
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -149,7 +149,7 @@
"id"
:
16
,
"name"
:
"商品详情页"
,
"pathName"
:
"pages/productDetail/productDetail"
,
"query"
:
"id=6
47096699302580224
"
,
"query"
:
"id=6
93123742469066752
"
,
"scene"
:
null
},
{
...
...
src/subPackageA/page/pages/pointActicityGroup/pointActivityGroup.json
View file @
1a37eb24
{
"navigationBarTitleText"
:
"积分
活动中心
"
,
"navigationBarTitleText"
:
"积分
商城
"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"empty"
:
"/component/empty/empty"
,
...
...
src/subPackageA/page/pages/pointExchangeCoupon/pointExchangeCoupon.js
View file @
1a37eb24
...
...
@@ -75,35 +75,7 @@ wxService.page({
});
});
},
//查询指定积分换物活动兑换数量
findExchangeNumByIds
(
integralGoodsList
)
{
//获取ids
let
ids
=
integralGoodsList
.
map
(
g
=>
{
return
g
.
id
;
});
wxService
.
post
(
`/member/pointsRedemptionProductSetting/getExchangeCount`
,
ids
).
then
(
res
=>
{
if
(
res
)
{
let
data
=
res
.
data
.
data
?
res
.
data
.
data
:
null
;
if
(
data
)
{
for
(
let
k
in
data
)
{
let
id
=
k
,
value
=
data
[
k
];
for
(
let
i
=
0
;
i
<
integralGoodsList
.
length
;
i
++
)
{
if
(
integralGoodsList
[
i
].
id
==
id
)
{
integralGoodsList
[
i
].
canExchange
=
integralGoodsList
[
i
].
stock
>
value
;
}
}
}
}
}
this
.
setData
({
integralGoodsList
:
integralGoodsList
,
});
});
},
//获取积分活动分组详情
getActivityGroupInfo
(){
wxService
.
get
(
`/merchant/groupingActivities/findById?id=
${
this
.
data
.
activityId
}
`
).
then
(
res
=>
{
...
...
@@ -131,7 +103,7 @@ wxService.page({
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
integralCouponList
:
data
.
reverse
()
integralCouponList
:
data
});
}
}
...
...
src/utils/Http.js
View file @
1a37eb24
...
...
@@ -154,12 +154,8 @@ class Http {
checkStatus
(
resp
)
{
let
status
=
resp
.
statusCode
if
(
status
>=
200
&&
status
<
300
)
{
// return resp;
return
Promise
.
resolve
(
resp
)
}
else
{
// var error = new Error(`status: ${resp.statusCode}`)
// error.response = resp
// return Promise.reject(resp.statusCode)
return
Promise
.
reject
({
state
:
resp
.
data
.
result
,
msg
:
resp
.
data
.
desc
...
...
@@ -213,10 +209,6 @@ class Http {
}
getToken
()
{
// if (!this.token) {
// const token = wx.getStorageSync('token')
// this.token = token
// }
return
wx
.
getStorageSync
(
'token'
)
}
...
...
src/utils/wxService.js
View file @
1a37eb24
...
...
@@ -62,28 +62,7 @@ class WXService extends Http {
wx
.
hideLoading
()
}).
catch
(
res
=>
{
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'未登录'
)
>
-
1
)
{
wx
.
removeStorageSync
(
'_baseUserInfo'
)
// if (!this.getUserInfoLimitCount) {
// this.getUserInfoLimitCount = 1
// } else {
// this.getUserInfoLimitCount++
// }
// console.log('count', this.getUserInfoLimitCount)
// if (this.getUserInfoLimitCount > 3) {
// wx.showToast({
// title: '会员系统异常,请联系管理员',
// icon: 'none',
// duration: 2000
// })
// } else {
// // 重新登陆之前判断是否登陆过 重新登陆
// const baseUserInfo = this.getBaseUserInfo()
// if (baseUserInfo) {
// // this.reLogin()
// return false
// }
// }
wx
.
removeStorageSync
(
'_baseUserInfo'
);
this
.
reLogin
();
}
else
if
(
res
.
msg
&&
res
.
msg
.
indexOf
(
'请重新授权'
)
>
-
1
)
{
...
...
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