Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop
Showing
3 changed files
with
19 additions
and
6 deletions
@@ -133,7 +133,6 @@ | @@ -133,7 +133,6 @@ | ||
133 | .exchange-details { | 133 | .exchange-details { |
134 | margin-top: 20px; | 134 | margin-top: 20px; |
135 | border-top: 1px solid #eee; | 135 | border-top: 1px solid #eee; |
136 | - border-bottom: 1px solid #eee; | ||
137 | 136 | ||
138 | h2 { | 137 | h2 { |
139 | height: 88px; | 138 | height: 88px; |
@@ -151,7 +150,6 @@ | @@ -151,7 +150,6 @@ | ||
151 | } | 150 | } |
152 | 151 | ||
153 | .exchange-product { | 152 | .exchange-product { |
154 | - border-top: 1px solid #eee; | ||
155 | border-bottom: 1px solid #eee; | 153 | border-bottom: 1px solid #eee; |
156 | 154 | ||
157 | .goods-info { | 155 | .goods-info { |
@@ -260,7 +258,6 @@ | @@ -260,7 +258,6 @@ | ||
260 | position: relative; | 258 | position: relative; |
261 | padding-top: 20px; | 259 | padding-top: 20px; |
262 | margin-bottom: 20px; | 260 | margin-bottom: 20px; |
263 | - border-top: 1px solid #eee; | ||
264 | word-wrap: break-word; | 261 | word-wrap: break-word; |
265 | 262 | ||
266 | p:first-of-type { | 263 | p:first-of-type { |
@@ -289,7 +286,6 @@ | @@ -289,7 +286,6 @@ | ||
289 | line-height: 88px; | 286 | line-height: 88px; |
290 | font-size: 34px; | 287 | font-size: 34px; |
291 | border-top: 1px solid #eee; | 288 | border-top: 1px solid #eee; |
292 | - border-bottom: 1px solid #eee; | ||
293 | 289 | ||
294 | .amount-modeinfo { | 290 | .amount-modeinfo { |
295 | span { | 291 | span { |
@@ -302,10 +298,15 @@ | @@ -302,10 +298,15 @@ | ||
302 | background: #f6f6f6; | 298 | background: #f6f6f6; |
303 | display: block; | 299 | display: block; |
304 | font-size: 26px; | 300 | font-size: 26px; |
301 | + margin: 0 -30px; | ||
302 | + padding-left: 30px; | ||
303 | + height: 44px; | ||
304 | + line-height: 44px; | ||
305 | } | 305 | } |
306 | 306 | ||
307 | .primary { | 307 | .primary { |
308 | display: block; | 308 | display: block; |
309 | + border-bottom: 1px solid #eee; | ||
309 | 310 | ||
310 | .right { | 311 | .right { |
311 | float: right; | 312 | float: right; |
1 | <template> | 1 | <template> |
2 | + <template v-if="show"> | ||
2 | <div class="status-desc"> | 3 | <div class="status-desc"> |
3 | <p>{{detail.statusName}}</p> | 4 | <p>{{detail.statusName}}</p> |
4 | <p>申请时间: {{detail.createTime}}</p> | 5 | <p>申请时间: {{detail.createTime}}</p> |
@@ -102,6 +103,7 @@ | @@ -102,6 +103,7 @@ | ||
102 | <div v-if="detail.canCancel ==='Y'" class="exchange-options"> | 103 | <div v-if="detail.canCancel ==='Y'" class="exchange-options"> |
103 | <button @click="cancel">取消申请</button> | 104 | <button @click="cancel">取消申请</button> |
104 | </div> | 105 | </div> |
106 | + </template> | ||
105 | </template> | 107 | </template> |
106 | 108 | ||
107 | <script> | 109 | <script> |
@@ -117,6 +119,7 @@ | @@ -117,6 +119,7 @@ | ||
117 | data() { | 119 | data() { |
118 | return { | 120 | return { |
119 | id: '', | 121 | id: '', |
122 | + show: false, | ||
120 | sourceOrderCode: '', | 123 | sourceOrderCode: '', |
121 | detail: {} | 124 | detail: {} |
122 | }; | 125 | }; |
@@ -161,7 +164,8 @@ | @@ -161,7 +164,8 @@ | ||
161 | type: this.type | 164 | type: this.type |
162 | } | 165 | } |
163 | }).then(res => { | 166 | }).then(res => { |
164 | - if (res.data) { | 167 | + if (res.code === 200) { |
168 | + this.show = true; | ||
165 | this.detail = res.data; | 169 | this.detail = res.data; |
166 | if (!this.detail.goodsList) { | 170 | if (!this.detail.goodsList) { |
167 | return; | 171 | return; |
@@ -174,8 +178,14 @@ | @@ -174,8 +178,14 @@ | ||
174 | // return util.getImgHost(p) + '?imageView2/2/w/154/h/154'; | 178 | // return util.getImgHost(p) + '?imageView2/2/w/154/h/154'; |
175 | // }) | 179 | // }) |
176 | }); | 180 | }); |
181 | + } else if (result.code !== 500) { | ||
182 | + tip(result.message); | ||
183 | + } else { | ||
184 | + tip('数据获取失败'); | ||
177 | } | 185 | } |
178 | - }); | 186 | + }).fail(() => { |
187 | + tip('网络错误'); | ||
188 | + });; | ||
179 | } | 189 | } |
180 | }; | 190 | }; |
181 | </script> | 191 | </script> |
-
Please register or login to post a comment