1
This commit is contained in:
parent
cf67a67dba
commit
c59c67e42d
@ -7,4 +7,11 @@ export function getUserBusiCard() {
|
||||
url: '/member/busiCard/listByUser',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 查询当前登录用户的名片
|
||||
export function getUserAddress() {
|
||||
return request({
|
||||
url: '/member/address/listByUser',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
@ -16,10 +16,10 @@
|
||||
<view v-for="(item,index) in dataList" class="addr-item-box">
|
||||
<view class="addr-item-top">
|
||||
<view class="item-info">
|
||||
<view class="text little-1">广东省 深圳市 宝安区 新安街道</view>
|
||||
<view class="text">宝安中心区画像年华A栋</view>
|
||||
<view class="text little-1">{{ item.city }}</view>
|
||||
<view class="text">{{ item.detail }}</view>
|
||||
<view class="text little-2 item-flex">
|
||||
网二 17777777777 <view v-if="item.isDefault=='1'" class="item-icon">默认</view>
|
||||
{{ item.name }} {{ item.tel }} <view v-if="item.isDefault=='1'" class="item-icon">默认</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-opt">
|
||||
@ -43,6 +43,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserAddress } from '@/api/business/member.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -78,7 +79,22 @@
|
||||
}]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.initData();
|
||||
},
|
||||
methods: {
|
||||
initData(){
|
||||
getUserAddress().then(res=>{
|
||||
this.dataList = res.data
|
||||
}).catch((e)=>{
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
duration: 2000,
|
||||
title: e
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
addNew() {
|
||||
this.$tab.navigateTo(`/pages/mine/addr/addr-detail`)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user