|
@@ -3,6 +3,9 @@
|
|
|
<view class="My_search-box">
|
|
|
<My_search :value="content.where.condition" @onSearch="onSearch" />
|
|
|
</view>
|
|
|
+ <view class="tips" v-if="tips">
|
|
|
+ {{ tips }}
|
|
|
+ </view>
|
|
|
<My_listbox ref="List" @getlist="getList" bottomHeight="70">
|
|
|
<view class="item" v-for="(item, index) in list" :key="item.contactsid">
|
|
|
<view class="head" hover-class="navigator-hover" @click="onClick(item)">
|
|
@@ -59,12 +62,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
list: [],
|
|
|
+ tips: "",
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: options.title || '收货地址',
|
|
|
});
|
|
|
+ this.tips = options.tips || '';
|
|
|
this.getList(true)
|
|
|
},
|
|
|
onShow() {
|
|
@@ -80,6 +85,7 @@ export default {
|
|
|
console.log("收货地址列表", res)
|
|
|
this.$refs.List.RefreshToComplete()
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
+ this.$refs.List.setHeight()
|
|
|
this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
|
|
|
this.content = this.$refs.List.paging(this.content, res)
|
|
|
})
|
|
@@ -173,6 +179,15 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
+.tips {
|
|
|
+ line-height: 17px;
|
|
|
+ font-family: Source Han Sans SC, Source Han Sans SC;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #666666;
|
|
|
+ margin-top: 10px;
|
|
|
+ padding-left: 10px;
|
|
|
+}
|
|
|
+
|
|
|
.item {
|
|
|
margin-top: 10px;
|
|
|
width: 100vw;
|