Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
d2b59d07
Commit
d2b59d07
authored
Jun 12, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
1486ce1a
d45ef3f0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
100 additions
and
85 deletions
+100
-85
App.vue
App.vue
+4
-6
comment-list.vue
pages/goods/comment-list.vue
+22
-17
goods.vue
pages/goods/goods.vue
+23
-20
refunds-detail.vue
pages/order/after-sale/refunds-detail.vue
+47
-37
refunds.vue
pages/order/after-sale/refunds.vue
+1
-2
index.vue
pages/share/index/index.vue
+2
-2
level.vue
pages/share/level/level.vue
+1
-1
img-share-status.png
static/images/icon/img-share-status.png
+0
-0
no-level-bg.png
static/images/icon/no-level-bg.png
+0
-0
No files found.
App.vue
View file @
d2b59d07
...
...
@@ -24,18 +24,16 @@ export default {
this
.
basedata
=
uni
.
getStorageSync
(
"basedata"
);
this
.
formatTabbar
();
}
else
{
this
.
request
(
this
.
request
2
(
{
url
:
""
,
data
:
{
r
:
"api/index/config"
,
},
url
:
'/api/Mall/GetHome'
,
data
:
{
},
},
(
res
)
=>
{
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
this
.
basedata
=
res
.
data
;
this
.
formatTabbar
();
//this.pageTitle = res.data.mall.name;
}
);
}
...
...
pages/goods/comment-list.vue
View file @
d2b59d07
...
...
@@ -20,12 +20,12 @@
<view
class=
"content"
v-for=
"(x, i) in comments"
:key=
"i"
>
<view
class=
"u-box"
>
<view
class=
"user"
>
<u-avatar
:src=
"x.
avatar
"
:size=
"50"
></u-avatar>
<text
style=
"margin-left: 10px;"
>
{{
x
.
nickn
ame
}}
</text>
<u-avatar
:src=
"x.
UserPhotoPath
"
:size=
"50"
></u-avatar>
<text
style=
"margin-left: 10px;"
>
{{
x
.
UserN
ame
}}
</text>
</view>
<view
class=
"timer"
>
{{
x
.
tim
e
}}
</view>
<view
class=
"timer"
>
{{
x
.
CreateDat
e
}}
</view>
</view>
<view
class=
"ucontent"
>
{{
x
.
c
ontent
}}
</view>
<view
class=
"ucontent"
>
{{
x
.
C
ontent
}}
</view>
<view
class=
"imagebox"
v-for=
"(y, yi) in x.formatPic"
:key=
"yi"
>
<view
class=
"item"
...
...
@@ -90,6 +90,12 @@ export default {
loading
:
"努力加载中"
,
nomore
:
"没有更多评论了"
,
},
msg
:{
pageIndex
:
1
,
pageSize
:
20
,
GoodsId
:
0
,
CommentGrade
:
0
}
};
},
onLoad
(
option
)
{
...
...
@@ -140,28 +146,27 @@ export default {
this
.
isover
=
false
;
this
.
loading
=
true
;
this
.
showLoading
=
this
.
page
!=
1
;
this
.
request
(
this
.
msg
.
GoodsId
=
this
.
id
;
this
.
request2
(
{
url
:
""
,
data
:
{
r
:
"api/goods/comments-list"
,
goods_id
:
this
.
id
,
page
:
this
.
page
,
status
:
this
.
commentCount
.
length
>
0
?
this
.
commentCount
[
this
.
current
].
index
:
0
,
},
url
:
"/api/AppletOrder/GetAppletGoodsCommentPageList"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
this
.
comments
=
res
.
data
.
comments
;
this
.
comments
=
res
.
data
.
pageData
;
this
.
comments
.
forEach
((
x
)
=>
{
x
.
formatPic
=
this
.
formatPic
(
x
.
pic_url
);
x
.
formatPic
=
this
.
formatPic
(
x
.
CommentImgList
);
});
//TODO 缺陷待处理
this
.
commentCount
=
res
.
data
.
comment_count
;
// this.commentCount = res.data.comment_count;
this
.
commentCount
=
res
.
data
.
pageData
;
this
.
pageCount
=
Math
.
ceil
(
parseFloat
(
this
.
commentCount
[
0
].
count
)
/
10.0
// parseFloat(this.commentCount[0].count) / 10.0
parseFloat
(
res
.
data
.
count
)
/
10.0
);
this
.
commentCount
.
forEach
((
x
)
=>
{
x
.
name
=
x
.
name
+
"("
+
x
.
cou
nt
+
")"
;
x
.
name
=
x
.
UserName
+
"("
+
x
.
Conte
nt
+
")"
;
});
this
.
showLoading
=
true
;
if
(
this
.
pageCount
==
1
)
{
...
...
pages/goods/goods.vue
View file @
d2b59d07
...
...
@@ -139,17 +139,17 @@
<view
class=
"sku-box u-skeleton-rect"
v-if=
"comments.
comments.
length == 0 && setting.is_comment == '1'"
v-if=
"comments.length == 0 && setting.is_comment == '1'"
>
<view
class=
"label"
>
暂无评论信息
</view>
</view>
<view
class=
"comment"
v-if=
"comments.
comments.
length > 0"
>
<view
class=
"comment"
v-if=
"comments.length > 0"
>
<view
class=
"chead"
>
<u-section
:bold=
"false"
:sub-color=
"secondary"
:show-split=
"false"
:title=
"`商品评价(${comments.
comments.
length})`"
:title=
"`商品评价(${comments.length})`"
sub-title=
"查看更多"
@
click=
"clickCommentHandler"
font-size=
"24"
...
...
@@ -159,16 +159,16 @@
<view
class=
"u-box"
>
<view
class=
"user"
>
<u-avatar
:src=
"comments
.comments[0].avatar
"
:src=
"comments
[0].UserPhotoPath
"
:size=
"50"
></u-avatar>
<text
style=
"margin-left: 10px;"
>
{{
comments
.comments[0].nickn
ame
comments
[0].UserN
ame
}}
</text>
</view>
<view
class=
"timer"
>
{{ comments
.comments[0].tim
e }}
</view>
<view
class=
"timer"
>
{{ comments
[0].CreateDat
e }}
</view>
</view>
<view
class=
"ucontent"
>
{{ comments
.comments[0].c
ontent }}
</view>
<view
class=
"ucontent"
>
{{ comments
[0].C
ontent }}
</view>
</view>
</view>
<u-divider
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"transparent"
...
...
@@ -219,7 +219,7 @@
v-if=
"!isExsitGoods"
></u-empty>
<share
:
good-
id=
"id"
:id=
"id"
v-if=
"showShare"
:good-name=
"g.name"
:images=
"g.pic_url"
...
...
@@ -258,7 +258,13 @@ export default {
prevPage
:
""
,
//自定义接手传递
opTionObj
:
{},
showShare
:
false
showShare
:
false
,
msg
:{
pageIndex
:
1
,
pageSize
:
20
,
GoodsId
:
0
,
CommentGrade
:
0
}
};
},
components
:
{
...
...
@@ -269,7 +275,6 @@ export default {
share
,
},
onLoad
(
option
)
{
console
.
log
(
option
,
"optionnnn"
);
this
.
opTionObj
=
option
;
this
.
id
=
option
.
GoodsId
?
option
.
GoodsId
:
29
;
//40887 59512 46942
this
.
init
();
...
...
@@ -333,7 +338,6 @@ export default {
this
.
skuimage
.
push
(
x
.
pic_url
);
}
});
console
.
log
(
this
.
skuimage
);
var
richtext
=
this
.
g
.
detail
;
richtext
=
richtext
.
replace
(
/<img/g
,
...
...
@@ -372,18 +376,16 @@ export default {
});
},
initComments
()
{
this
.
request
(
this
.
msg
.
GoodsId
=
this
.
id
;
console
.
log
(
this
.
msg
,
'msg'
);
this
.
request2
(
{
url
:
""
,
data
:
{
r
:
"api/goods/comments-list"
,
goods_id
:
this
.
id
,
page
:
1
,
status
:
0
,
},
url
:
"/api/AppletOrder/GetAppletGoodsCommentPageList"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
this
.
comments
=
res
.
data
;
console
.
log
(
res
,
'pinglun'
);
this
.
comments
=
res
.
data
.
pageData
;
// this.initRecommend();
}
);
...
...
@@ -398,6 +400,7 @@ export default {
},
(
res
)
=>
{
this
.
recommend
=
res
.
data
.
List
;
console
.
log
(
this
.
recommend
,
'recommeds'
);
}
);
},
...
...
pages/order/after-sale/refunds-detail.vue
View file @
d2b59d07
...
...
@@ -36,25 +36,25 @@
<view
style=
"margin-top: 40rpx;"
class=
"block"
v-if=
"d.ReOrderStatus
Name=='已换货
'"
v-if=
"d.ReOrderStatus
=='3
'"
>
<view
class=
"good-title"
>
换货物流
</view>
<view
class=
"good-title"
>
{{
d
.
Type
==
1
?
'退货物流'
:
'换货物流'
}}
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
快递公司
</view>
<view
class=
"val"
>
{{
d
.
T
ExpressList
[
0
].
ExpressName
}}
{{
d
.
Type
==
1
?
d
.
TExpressList
[
0
].
ExpressName
:
d
.
H
ExpressList
[
0
].
ExpressName
}}
</view>
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
快递单号
</view>
<view
class=
"val"
>
{{
d
.
T
ExpressList
[
0
].
ExpressNumber
}}
{{
d
.
Type
==
1
?
d
.
TExpressList
[
0
].
ExpressNumber
:
d
.
H
ExpressList
[
0
].
ExpressNumber
}}
</view>
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
商家留言
</view>
<view
class=
"key"
>
快递类型
</view>
<view
class=
"val"
style=
"color:#c0392b"
>
{{
d
.
merchant_remark
}}
{{
d
.
Type
==
1
?
(
d
.
TExpressList
[
0
].
Type
==
1
?
'快递'
:
"其他"
)
:
(
d
.
HExpressList
[
0
].
Type
==
1
?
'快递'
:
"其他"
)
}}
</view>
</view>
</view>
...
...
@@ -81,7 +81,7 @@
>
¥
{{
d
.
OrderInfo
.
Number
}}
</text
>
</view>
</view>
</view>
</view>
<view
class=
"customer"
>
<button
...
...
@@ -140,19 +140,19 @@
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
收件地址
</view>
<view
class=
"val"
>
{{
d
.
refundAddress
.
address
}}
</view>
<view
class=
"val"
>
{{
RecipientInfo
.
DistrictAddress
}}{{
RecipientInfo
.
Address
}}
</view>
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
收件人
</view>
<view
class=
"val"
>
{{
d
.
refundAddress
.
n
ame
}}
</view>
<view
class=
"val"
>
{{
RecipientInfo
.
N
ame
}}
</view>
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
联系电话
</view>
<view
class=
"val"
>
{{
d
.
refundAddress
.
mobile
}}
</view>
<view
class=
"val"
>
{{
RecipientInfo
.
Mobile
}}
</view>
</view>
<view
class=
"filed"
>
<view
class=
"key"
>
快递备注
</view>
<view
class=
"val"
>
{{
d
.
refundAddress
.
remark
}}
</view>
<view
class=
"val"
>
{{
RecipientInfo
.
Remarks
}}
</view>
</view>
</
template
>
</view>
...
...
@@ -176,7 +176,7 @@
v-model=
"showExpress"
:default-selector=
"[0]"
:range=
"expressList"
range-key=
"
n
ame"
range-key=
"
N
ame"
:safe-area-inset-bottom=
"true"
@
confirm=
"chosenExpressHandler"
></u-picker>
...
...
@@ -283,6 +283,7 @@ export default {
submitStatus
:
false
,
expressList
:
[],
showExpress
:
false
,
RecipientInfo
:{},
forms
:
{
ReOrderId
:
-
1
,
ExpressId
:
-
1
,
...
...
@@ -333,29 +334,21 @@ export default {
tmplIds
:
that
.
d
.
template_message_list
,
complete
(
res
)
{
let
msg
=
""
;
if
(
that
.
forms
.
ExpressId
==
-
1
)
{
msg
=
"请选择快递公司"
;
}
else
if
(
that
.
forms
.
ExpressNumber
==
""
)
{
msg
=
"请输入快递单号"
;
}
if
(
msg
==
""
)
{
let
h
=
that
.
apiheader
();
h
[
"content-type"
]
=
"application/x-www-form-urlencoded"
;
that
.
request
(
that
.
request2
(
{
url
:
""
,
header
:
h
,
data
:
{
r
:
"api/order/refund-send"
,
id
:
that
.
id
,
express
:
that
.
forms
.
expressName
,
customer_name
:
""
,
express_no
:
that
.
forms
.
ExpressNumber
,
},
method
:
"POST"
,
url
:
'/api/AppletOrder/SetAppletOrderSendGoods'
,
data
:
that
.
forms
},
(
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
resultCode
==
1
)
{
that
.
$refs
.
uTips
.
show
({
title
:
"已提交快递信息,请等待商家签收"
,
type
:
"success"
,
...
...
@@ -364,7 +357,7 @@ export default {
that
.
init
();
}
else
{
that
.
$refs
.
uTips
.
show
({
title
:
res
.
m
sg
,
title
:
res
.
m
essage
,
type
:
"error"
,
duration
:
"2300"
,
});
...
...
@@ -387,8 +380,9 @@ export default {
this
.
showExpress
=
true
;
},
chosenExpressHandler
(
i
)
{
this
.
forms
.
ExpressId
=
this
.
expressList
[
i
[
0
]].
id
;
this
.
forms
.
expressName
=
this
.
expressList
[
i
[
0
]].
name
;
this
.
forms
.
ExpressId
=
this
.
expressList
[
i
].
ID
;
this
.
forms
.
expressName
=
this
.
expressList
[
i
].
Name
;
},
previewImage
(
i
,
images
)
{
uni
.
previewImage
({
...
...
@@ -426,17 +420,33 @@ export default {
this
.
loading
=
false
;
this
.
currentStatus
=
this
.
d
.
ReOrderStatus
-
1
;
this
.
getExpressInfo
()
// if (this.d.ReOrderStatusName == 1) {
// this.currentStatus += 1;
// } else if (this.d.ReOrderStatusName == "待退款" || this.d.status_text == "已换货") {
// this.currentStatus += 2
;
// } else if (this.d.status_text == "已退款") {
// this.currentStatus += 3;
// }
this
.
forms
.
ReOrderId
=
res
.
data
.
ReOrderId
if
(
res
.
data
.
ReOrderStatus
==
2
){
this
.
init2
()
this
.
getExpressInfo
()
;
}
}
);
},
init2
(){
this
.
request2
(
{
url
:
'/api/AppletOrder/GetAppletOrderBuyerToDeliverInfo'
,
data
:
{
ReOrderId
:
this
.
id
}
},
(
res
)
=>
{
this
.
RecipientInfo
=
res
.
data
.
RecipientInfo
;
}
);
},
getExpressInfo
(){
this
.
request2
(
{
...
...
pages/order/after-sale/refunds.vue
View file @
d2b59d07
...
...
@@ -141,8 +141,7 @@ export default {
fontSize
:
"13px"
,
width
:
"100%"
,
},
action
:
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285&r=api/attachment/upload"
,
action
:
this
.
host2
+
'/api/File/UploadTencent'
,
};
},
onLoad
(
option
)
{
...
...
pages/share/index/index.vue
View file @
d2b59d07
...
...
@@ -8,14 +8,14 @@
</view>
</view>
<view
v-if=
"sharestatus.Status==2"
style=
"width: 100%;display: flex;flex-direction: column;align-items: center;"
>
<image
:src=
"bg_im
g"
style=
"width: 100%;height: 165px;"
></image>
<image
src=
"../../../static/images/icon/img-share-status.pn
g"
style=
"width: 100%;height: 165px;"
></image>
<Text
style=
'margin-top: 70px;'
>
谢谢您的支持,请等待审核
</Text>
<view
style=
"display: flex;align-items: center;justify-content: center;margin-top: 60rpx;"
>
<u-button
shape=
"circle"
type=
"error"
size=
"medium"
@
click=
'goshoping'
>
去商城逛逛
</u-button>
</view>
</view>
<view
v-if=
"sharestatus.Status==4"
style=
"width: 100%;display: flex;flex-direction: column;align-items: center;"
>
<image
:src=
"bg_im
g"
style=
"width: 100%;height: 165px;"
></image>
<image
src=
"../../../static/images/icon/img-share-status.pn
g"
style=
"width: 100%;height: 165px;"
></image>
<Text
style=
'margin-top: 70px;'
>
{{
sharestatus
.
Msg
}}
</Text>
<!--
<view
style=
"display: flex;align-items: center;justify-content: center;margin-top: 60rpx;"
>
<u-button
shape=
"circle"
type=
"error"
size=
"medium"
@
click=
'goshoping'
>
去商城逛逛
</u-button>
...
...
pages/share/level/level.vue
View file @
d2b59d07
<
template
>
<view
:style=
"
{'height':contentHeight}" class="levelStyle">
<image
:src=
"level_b
g"
v-if=
"level=='' "
style=
"width: 100%;height: 100%;"
></image>
<image
src=
"../../../static/images/icon/no-level-bg.pn
g"
v-if=
"level=='' "
style=
"width: 100%;height: 100%;"
></image>
<view
:style=
"
{ 'background-image': 'url(' + level_bg2 + ')', backgroundSize: '100%' }" v-if='level_bg2!="" ' class="imgbg">
<Text
class=
'leveltop'
>
满足以下条件即可升级
</Text>
<view
class=
'levelc'
>
...
...
static/images/icon/img-share-status.png
0 → 100644
View file @
d2b59d07
37.9 KB
static/images/icon/no-level-bg.png
0 → 100644
View file @
d2b59d07
31.8 KB
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