Skip to content

Commit

Permalink
修复引入路径
Browse files Browse the repository at this point in the history
  • Loading branch information
dyq086 committed May 30, 2018
1 parent 1d23ef0 commit df6455f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
10 changes: 1 addition & 9 deletions src/components/address_add.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<script>
import wepy from 'wepy';
import tip from '@/utils/tip';
import api from "../api/api";
import api from "@/api/api";
import {
USER_SPECICAL_INFO
} from '@/utils/constant';
Expand All @@ -89,18 +89,13 @@ export default class AddressAdd extends wepy.component {
}

async addAddress(address) {

let that = this;
console.log("=======province=======");
console.log(that.province);
let userSpecialInfo = wepy.getStorageSync(USER_SPECICAL_INFO) || {};
let isDefult = 0;
if (this.isDefult) {
isDefult = 1;
}
let openId = userSpecialInfo.openid;
console.log("address:");
console.log(address);
const json = await api.saveAddress({
query: {
openId: openId,
Expand Down Expand Up @@ -152,15 +147,12 @@ export default class AddressAdd extends wepy.component {
this.$invoke('areaPicker', 'openAddressPicker');
},
areaPickerArray(province, city, area) {
console.log("ddddddddd11111111");
this.province = province;
this.city = city;
this.area = area;

this.provinceCode = province.code;
this.cityCode = city.code;
this.areaCode = area.code;
console.log(this.provinceCode);
this.$apply();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/address_edit.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<script>
import wepy from 'wepy'
import tip from '@/utils/tip'
import api from "../api/api"
import api from "@/api/api"
import {
USER_SPECICAL_INFO
} from '@/utils/constant';
Expand Down
2 changes: 1 addition & 1 deletion src/components/address_list.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import wepy from 'wepy'
import SwipeDelete from './common/wepy-swipe-delete'
import tip from '@/utils/tip'
import api from "../api/api";
import api from "@/api/api";
import {
USER_SPECICAL_INFO,
ADDRESS_ID
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/wepy-sign-time.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

<script>
import wepy from 'wepy'
import tip from '@/../utils/tip'
import tip from '@/utils/tip'
import {
SYSTEM_INFO,
USER_SPECICAL_INFO
} from '@/../utils/constant';
import api from '@/../api/api';
} from '@/utils/constant';
import api from '@/api/api';

export default class WepySignTime extends wepy.component {
data = {
Expand Down
1 change: 0 additions & 1 deletion src/components/filterSlider.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
},
selSKU(e) {
var sku = e.currentTarget.dataset.sku;
console.log("sku---"+sku);
this.$emit('filterSku', sku);
this.swictchOverlay();
}
Expand Down

0 comments on commit df6455f

Please sign in to comment.