Showing
4 changed files
with
80 additions
and
6 deletions
@@ -141,7 +141,7 @@ const addressModify = (req, res, next) => { | @@ -141,7 +141,7 @@ const addressModify = (req, res, next) => { | ||
141 | let orderCode = req.query.orderCode; | 141 | let orderCode = req.query.orderCode; |
142 | 142 | ||
143 | orderDetailModel.orderDetailData(uid, orderCode).then(result => { | 143 | orderDetailModel.orderDetailData(uid, orderCode).then(result => { |
144 | - res.render('address-modify', Object.assign(result, { | 144 | + res.render('order-address-modify', Object.assign(result, { |
145 | pageHeader: headerModel.setNav({ | 145 | pageHeader: headerModel.setNav({ |
146 | navTitle: '修改地址', | 146 | navTitle: '修改地址', |
147 | navBtn: false | 147 | navBtn: false |
@@ -9,17 +9,22 @@ | @@ -9,17 +9,22 @@ | ||
9 | <label for="phone">联系电话:</label> | 9 | <label for="phone">联系电话:</label> |
10 | <input name="phone" type="text" value="182****333"> | 10 | <input name="phone" type="text" value="182****333"> |
11 | </div> | 11 | </div> |
12 | - <div class="form-group"> | 12 | + <div class="form-group disable"> |
13 | <label for="province">所在省:</label> | 13 | <label for="province">所在省:</label> |
14 | - <input name="province" type="text" value="江苏省"> | 14 | + <input name="province" type="text" value="江苏省" class="disable" readonly> |
15 | </div> | 15 | </div> |
16 | <div class="form-group"> | 16 | <div class="form-group"> |
17 | <label for="area">所在地区:</label> | 17 | <label for="area">所在地区:</label> |
18 | - <input name="area" type="text" value="南京市建邺区城区"> | 18 | + <input name="area" type="text" value="南京市建邺区城区" readonly> |
19 | </div> | 19 | </div> |
20 | <div class="form-group"> | 20 | <div class="form-group"> |
21 | - <label for="address">详细地址:</label> | ||
22 | - <input name="address" type="text" value="嘉陵江东街18号南京国家广告产业园"> | 21 | + <label for="address" class="label-address">详细地址:</label> |
22 | + <textarea name="address" type="text" value="" maxlength="255">嘉陵江东街18号南京国家广告产业园12栋17层 | ||
23 | + </textarea> | ||
24 | + </div> | ||
23 | </div> | 25 | </div> |
26 | + <div class="tip"><span class="iconfont icon-info"></span>修改地址仅可修改一次,且会影响送货时间,请您谅解!</div> | ||
27 | + <div class="btn-sure-line"> | ||
28 | + <button id="btnSure" class="btn-sure">确认修改</button> | ||
24 | </div> | 29 | </div> |
25 | </div> | 30 | </div> |
1 | .address-modify { | 1 | .address-modify { |
2 | + position: fixed; | ||
3 | + width: 100%; | ||
4 | + top: 90px; | ||
5 | + bottom: 0; | ||
6 | + background-color: #f0f0f0; | ||
7 | + | ||
8 | + .icon-info:before { | ||
9 | + content: "\e61f"; | ||
10 | + } | ||
11 | + | ||
2 | .tip { | 12 | .tip { |
13 | + color: #aeaeae; | ||
14 | + font-size: 14px; | ||
15 | + line-height: 60px; | ||
16 | + padding-left: 30px; | ||
3 | 17 | ||
18 | + .icon-info { | ||
19 | + margin-right: 5px; | ||
4 | } | 20 | } |
21 | + } | ||
22 | + | ||
5 | .form { | 23 | .form { |
24 | + border-top: 1px solid #e7e7e7; | ||
25 | + border-bottom: 1px solid #e7e7e7; | ||
26 | + background-color: #fff; | ||
6 | 27 | ||
7 | .form-group { | 28 | .form-group { |
29 | + line-height: 80px; | ||
30 | + border-bottom: 1px solid #e7e7e7; | ||
31 | + margin-left: 30px; | ||
32 | + } | ||
33 | + | ||
34 | + .disable { | ||
35 | + color: #a2a2a2; | ||
36 | + } | ||
37 | + | ||
38 | + .form-group:last-child { | ||
39 | + border-bottom: none; | ||
40 | + } | ||
8 | 41 | ||
42 | + label { | ||
43 | + width: 20%; | ||
9 | } | 44 | } |
10 | 45 | ||
46 | + input { | ||
47 | + width: 77%; | ||
48 | + line-height: 60px; | ||
49 | + } | ||
50 | + | ||
51 | + .label-address { | ||
52 | + float: left; | ||
53 | + } | ||
54 | + | ||
55 | + textarea { | ||
56 | + right: 0; | ||
57 | + width: 77%; | ||
58 | + resize: none; | ||
59 | + padding-top: 22px; | ||
60 | + height: 120px; | ||
61 | + } | ||
62 | + } | ||
63 | + | ||
64 | + .btn-sure-line { | ||
65 | + text-align: center; | ||
66 | + margin-top: 40px; | ||
67 | + | ||
68 | + .btn-sure { | ||
69 | + background: #444; | ||
70 | + color: #fff; | ||
71 | + padding: 22px 160px; | ||
72 | + border-radius: 4px; | ||
73 | + } | ||
11 | } | 74 | } |
12 | } | 75 | } |
-
Please register or login to post a comment