Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
26feccaed4f3bfc9dd38122c51a0181b2aa5ee16
1 parent
461849ae
修改地址优化
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
33 deletions
static/js/me/address-act.js
template/m.yohobuy.com/actions/index/home/address-act.phtml
template/m.yohobuy.com/partials/me/address/edit-address.phtml
static/js/me/address-act.js
View file @
26fecca
...
...
@@ -89,14 +89,13 @@ $addressForm.on('submit', function() {
if
(
res
.
code
!==
200
)
{
tip
.
show
(
res
.
message
||
'网络出了点问题~'
);
isSubmiting
=
false
;
loading
.
hideLoadingMask
();
}
else
{
window
.
location
.
href
=
'/home/address'
;
}
}).
fail
(
function
()
{
tip
.
show
(
'网络出了点问题~'
);
isSubmiting
=
false
;
}).
always
(
function
()
{
loading
.
hideLoadingMask
();
});
return
false
;
});
...
...
template/m.yohobuy.com/actions/index/home/address-act.phtml
View file @
26fecca
...
...
@@ -2,7 +2,7 @@
<div
class=
"my-address-page yoho-page"
>
<div
class=
"my-edit-address-page page-wrap"
>
<form
class=
"edit-address"
>
<input
type=
"hidden"
name=
"id"
value=
"{{address.id}}"
>
<input
type=
"hidden"
name=
"id"
value=
"{{address.
address_
id}}"
>
<label
class=
"username"
>
收件人姓名
<input
type=
"text"
name=
"consignee"
maxlength=
"20"
value=
"{{address.consignee}}"
>
...
...
template/m.yohobuy.com/partials/me/address/edit-address.phtml
deleted
100644 → 0
View file @
461849a
<div class="my-edit-address-page page-wrap hide">
{{# address}}
<form class="edit-address">
<input type="hidden" name="id" value="">
<label class="username">
收件人姓名
<input type="text" name="consignee" maxlength="20" value="{{consignee}}">
</label>
<label class="mobile">
手机号码
<input type="text" name="mobile" value="{{mobile}}">
</label>
<label class="area">
省市区
<input type="hidden" name="area_code" value="{{area_code}}">
<input type="text" name="area" value="{{area}}" readonly>
<span class="iconfont"></span>
</label>
<label class="address">
详细地址
<textarea name="address" maxlength="100">{{address}}</textarea>
</label>
</form>
{{/ address}}
<div class="submit">
确认
</div>
</div>
\ No newline at end of file
Please
register
or
login
to post a comment