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
75abd0ef
Commit
75abd0ef
authored
Nov 03, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a6525538
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
53 deletions
+68
-53
pages.json
pages.json
+1
-1
returnModifyAddress.vue
pages/MallMange/returnModifyAddress.vue
+61
-49
picDetail.vue
pages/school/picDetail.vue
+6
-3
No files found.
pages.json
View file @
75abd0ef
...
...
@@ -813,7 +813,7 @@
},
{
"path"
:
"modifyAddress"
//修改地址
},
{
"path"
:
"return
Address"
//
退货地址
"path"
:
"return
ModifyAddress"
//修改
退货地址
},
{
"path"
:
"address"
//退货地址列表
},
{
...
...
pages/MallMange/returnAddress.vue
→
pages/MallMange/return
Modify
Address.vue
View file @
75abd0ef
...
...
@@ -2,19 +2,19 @@
<view
class=
"AddaddressStyle"
:style=
"
{ height: contentHeight }">
<view
class=
"addcenter"
>
<view
class=
"addcenter_item2"
>
<
Text>
收货人
</Text
>
<input
class=
"uni-input inputM"
v-model=
"modifyMsg.
Consigne
e"
/>
<
view><text
style=
"color: #f56c6c; margin-right: 4rpx;font-size:24rpx"
>
*
</text>
收货人
</view
>
<input
class=
"uni-input inputM"
v-model=
"modifyMsg.
Nam
e"
/>
</view>
<view
style=
"width: 100%; height: 1px; background: #f5f5f5"
/>
<view
class=
"addcenter_item2"
>
<
Text>
联系电话
</Text
>
<
view><text
style=
"color: #f56c6c; margin-right: 4rpx;font-size:24rpx"
>
*
</text>
联系电话
</view
>
<input
class=
"uni-input inputM"
v-model=
"modifyMsg.Mobile"
/>
</view>
<view
style=
"width: 100%; height: 1px; background: #f5f5f5"
/>
<!-- TODO 动态获取地址数据 -->
<view
class=
"addcenter_item"
>
<
Text>
所在地区
</Text
>
<
view><text
style=
"color: #f56c6c; margin-right: 4rpx;font-size:24rpx"
>
*
</text>
所在地区
</view
>
<view
style=
"display: flex; flex-direction: row; align-items: center"
@
click=
"addressShow = true"
...
...
@@ -29,10 +29,18 @@
<view
style=
"width: 100%; height: 1px; background: #f5f5f5"
/>
<view
class=
"addcenter_item2"
style=
"align-items: flex-start"
>
<Text>
详细地址
</Text>
<input
class=
"inputM"
v-model=
"modifyMsg.Address"
/>
</view>
<view
style=
"width: 100%; height: 1px; background: #f5f5f5"
/>
<view
class=
"addcenter_item2"
style=
"align-items: flex-start"
>
<Text>
备注
</Text>
<textarea
style=
"height: 50px"
class=
"inputM"
v-model=
"modifyMsg.
ShoppingAddres
s"
v-model=
"modifyMsg.
Remark
s"
/>
</view>
</view>
...
...
@@ -50,29 +58,20 @@ export default {
},
data
()
{
return
{
pageTitle
:
"
修改
地址"
,
pageTitle
:
"
编辑退货
地址"
,
contentHeight
:
0
,
mainColor
:
""
,
msg
:
{
Id
:
0
,
Name
:
""
,
Mobile
:
""
,
Province
:
""
,
City
:
""
,
District
:
""
,
Address
:
""
,
},
address
:
""
,
Pickershwo
:
false
,
addressShow
:
false
,
modifyMsg
:
{
OrderId
:
0
,
Consigne
e
:
""
,
ID
:
0
,
Nam
e
:
""
,
Mobile
:
""
,
Province
:
""
,
City
:
""
,
District
:
""
,
ShoppingAddress
:
""
,
Address
:
""
,
Remarks
:
""
,
ProvinceId
:
0
,
CityId
:
0
,
DistrictId
:
0
,
},
};
},
...
...
@@ -84,25 +83,41 @@ export default {
});
},
onLoad
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
if
(
option
.
AddressId
)
{
this
.
getAddressInfo
(
option
.
AddressId
);
}
if
(
option
.
OrderId
)
{
this
.
modifyMsg
.
OrderId
=
option
.
OrderId
;
this
.
getData
();
if
(
option
.
Id
)
{
this
.
modifyMsg
.
ID
=
option
.
Id
;
this
.
getData
(
option
.
Id
);
}
},
methods
:
{
preserve
()
{
if
(
!
this
.
modifyMsg
.
Name
){
uni
.
showToast
({
title
:
'请输入姓名'
,
icon
:
'none'
});
return
}
if
(
!
this
.
modifyMsg
.
Mobile
){
uni
.
showToast
({
title
:
'请输入电话'
,
icon
:
'none'
});
return
}
if
(
this
.
modifyMsg
.
ProvinceId
===
0
){
uni
.
showToast
({
title
:
'请选择所在地区'
,
icon
:
'none'
});
return
}
let
pages
=
getCurrentPages
();
// 当前页面
let
beforePage
=
pages
[
pages
.
length
-
2
];
// 前一个页面
uni
.
showNavigationBarLoading
();
this
.
requestAdmin
(
"/api/
order/SetOrderShopingAddress
"
,
"/api/
MallBase/AddOrUpdateLogisticsDelivery
"
,
this
.
modifyMsg
,
(
res
)
=>
{
console
.
log
(
110
,
res
);
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
...
...
@@ -120,33 +135,30 @@ export default {
},
addresspick
(
obj
)
{
this
.
modifyMsg
.
Province
=
obj
.
province
.
ID
;
this
.
modifyMsg
.
City
=
obj
.
city
.
ID
;
this
.
modifyMsg
.
Province
Id
=
obj
.
province
.
ID
;
this
.
modifyMsg
.
City
Id
=
obj
.
city
.
ID
;
if
(
obj
.
area
!=
undefined
)
{
this
.
modifyMsg
.
District
=
obj
.
area
.
ID
;
this
.
modifyMsg
.
District
Id
=
obj
.
area
.
ID
;
this
.
address
=
obj
.
province
.
Name
+
","
+
obj
.
city
.
Name
+
","
+
obj
.
area
.
Name
;
}
else
{
this
.
modifyMsg
.
District
=
""
;
this
.
modifyMsg
.
District
Id
=
""
;
this
.
address
=
obj
.
province
.
Name
+
","
+
obj
.
city
.
Name
;
}
console
.
log
(
128
,
this
.
modifyMsg
)
},
getData
()
{
getData
(
ID
)
{
this
.
requestAdmin
(
"/api/order/GetGoodsOrderInfo"
,
{
OrderId
:
this
.
modifyMsg
.
OrderId
,
},
"/api/MallBase/GetLogisticsDelivery"
,
{
ID
:
ID
},
(
res
)
=>
{
let
OrderInfo
=
res
.
data
.
OrderInfo
;
this
.
address
=
OrderInfo
.
DistrictAddress
.
split
(
" "
).
join
(
","
);
this
.
modifyMsg
.
Consignee
=
OrderInfo
.
Consignee
;
this
.
modifyMsg
.
Mobile
=
OrderInfo
.
Mobile
;
this
.
modifyMsg
.
ShoppingAddress
=
OrderInfo
.
ShoppingAddress
;
this
.
modifyMsg
.
Province
=
OrderInfo
.
Province
;
this
.
modifyMsg
.
City
=
OrderInfo
.
City
;
this
.
modifyMsg
.
District
=
OrderInfo
.
District
;
console
.
log
(
OrderInfo
);
this
.
modifyMsg
.
Name
=
res
.
data
.
Name
;
this
.
modifyMsg
.
Mobile
=
res
.
data
.
Mobile
;
this
.
modifyMsg
.
Address
=
res
.
data
.
Address
;
this
.
modifyMsg
.
ProvinceId
=
res
.
data
.
ProvinceId
;
this
.
modifyMsg
.
CityId
=
res
.
data
.
CityId
;
this
.
modifyMsg
.
DistrictId
=
res
.
data
.
DistrictId
;
this
.
address
=
res
.
data
.
ProvinceName
+
','
+
res
.
data
.
CityName
+
','
+
res
.
data
.
DistrictName
;
}
);
},
...
...
pages/school/picDetail.vue
View file @
75abd0ef
...
...
@@ -187,18 +187,21 @@ export default {
//图片
if
(
x
.
groupList
&&
x
.
groupList
.
length
>
0
)
{
x
.
groupList
.
forEach
((
j
)
=>
{
this
.
imgList
.
push
(...
j
.
FileList
);
// this.imgList.push(...j.FileList);
this
.
imgList
=
this
.
imgList
.
concat
(
j
.
FileList
)
});
}
}
else
{
if
(
x
.
groupList
&&
x
.
groupList
.
length
>
0
)
{
x
.
groupList
.
forEach
((
j
)
=>
{
this
.
videolist
.
push
(...
j
.
FileList
);
// this.videolist.push(...j.FileList);
this
.
videolist
=
this
.
videolist
.
concat
(
j
.
FileList
)
});
}
}
});
console
.
log
(
this
.
imgList
,
this
.
videolist
);
console
.
log
(
1
,
this
.
imgList
);
console
.
log
(
2
,
this
.
videolist
);
this
.
imgList
.
map
((
e
)
=>
{
this
.
preImg
.
push
(
e
.
Path
);
});
...
...
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