|
@@ -19,14 +19,15 @@
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
<view class="address-box" v-for="(item,index) in list" :key="index">
|
|
|
- <text class="store-name" selectable="true">{{item.name}}</text>
|
|
|
+ <text class="store-name" selectable="true" user-select={true}>{{item.name}}</text>
|
|
|
<view class="store-address">
|
|
|
<text>地址:{{item.addressAll}}</text>
|
|
|
<view @click="copyDeliveryFlowId(item.addressAll)">复制</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-loadmore :line="true" v-if="list.length>10" :status="status" :loading-text="'努力加载中'" :nomore-text="'已经到底了'" />
|
|
|
+ <u-loadmore :line="true" v-if="list.length>10" :status="status" :loading-text="'努力加载中'"
|
|
|
+ :nomore-text="'已经到底了'" />
|
|
|
</view>
|
|
|
<view class="flex empty" v-if="!list.length">
|
|
|
<view class="center">
|
|
@@ -36,7 +37,7 @@
|
|
|
<view class="center-font">暂无门店</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
|
<address-popup :address-show="addressShow" @cancel="cancel" @confirmAddress="confirmAddress" />
|
|
|
</view>
|
|
|
</template>
|
|
@@ -57,7 +58,7 @@
|
|
|
info: {},
|
|
|
total: 0,
|
|
|
pageNum: 1,
|
|
|
- status: 'nomore',//上拉刷新状态
|
|
|
+ status: 'nomore', //上拉刷新状态
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -75,12 +76,13 @@
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
});
|
|
|
- $http.post(`/api/v1/mp/user/mine/coupon/channel/list?pageNum=${this.pageNum}&pageSize=20`, { ...this.info, couponId: this.couponId }).then(
|
|
|
+ $http.post(`/api/v1/mp/user/mine/coupon/channel/list?pageNum=${this.pageNum}&pageSize=20`, { ...this.info,
|
|
|
+ couponId: this.couponId }).then(
|
|
|
res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
this.list = this.list.concat(res.rows)
|
|
|
- this.list.forEach(item=>{
|
|
|
+ this.list.forEach(item => {
|
|
|
item.addressAll = `${item.province} ${item.city} ${item.area} ${item.address}`
|
|
|
})
|
|
|
this.total = res.total
|
|
@@ -105,15 +107,18 @@
|
|
|
this.pageList()
|
|
|
},
|
|
|
copyDeliveryFlowId(data) {
|
|
|
- uni.setClipboardData({data});
|
|
|
+ uni.setClipboardData({ data });
|
|
|
+ // #ifdef MP-ALIPAY
|
|
|
+ this.$refs.uToast.show({ message: "内容已复制" })
|
|
|
+ // #endif
|
|
|
},
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
- if(this.total < this.pageNum * 20) return ;
|
|
|
+ if (this.total < this.pageNum * 20) return;
|
|
|
this.status = 'loading';
|
|
|
++this.pageNum
|
|
|
- if(this.total < this.pageNum * 20) this.status = 'nomore';
|
|
|
- else this.status = 'loading';
|
|
|
+ if (this.total < this.pageNum * 20) this.status = 'nomore';
|
|
|
+ else this.status = 'loading';
|
|
|
this.getList()
|
|
|
},
|
|
|
}
|
|
@@ -159,7 +164,7 @@
|
|
|
}
|
|
|
|
|
|
.store-address {
|
|
|
-
|
|
|
+
|
|
|
text {
|
|
|
font-size: 24rpx;
|
|
|
color: #999;
|