Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈轩
9 years ago
Commit
afc4295d9d0113aece083f006763353dc36103e9
1 parent
8b4de8c1
exchange address
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
public/vue/component/header.vue
public/vue/home/exchange.vue
public/vue/component/header.vue
View file @
afc4295
<template>
<div class="header
{{class}}
">
<div class="header
" :class="class
">
<div class="header-left">
<slot name="left">
<i class="icon icon-left" @click="goBack"></i>
...
...
public/vue/home/exchange.vue
View file @
afc4295
...
...
@@ -120,10 +120,21 @@
},
methods: {
changeAddress() {
const self = this;
yoho.goAddress({
type: '1'
}, (address) => {
// Todo
if(address) {
self.$set('address', {
addressId: address.address_id,
area: address.area,
zipCode: address.zip_code,
mobile: address.mobile,
address: address.address,
consigneeName: address.consignee_name
});
}
}, () => {
tip('更换地址失败~');
});
...
...
@@ -160,7 +171,7 @@
submitData() {
const data = {
order_code: this.orderCode,
address_id: this.address.address
_i
d,
address_id: this.address.address
I
d,
address: this.address.address,
consigee_name: this.address.consignee,
area_code: this.address.areaCode,
...
...
Please
register
or
login
to post a comment