feat: 首页调整
This commit is contained in:
parent
cfd85de890
commit
972f54416e
|
|
@ -33,6 +33,7 @@
|
|||
<view class="distance flex-c" v-else>{{formatDistance(item.order_info.lat, item.order_info.lng)}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="discount flex-l" v-if="item.order_info.receive_type === 1">已支付订金:{{item.order_info.online_amount}}元抵扣{{item.order_info.discount_amount}}元</view>
|
||||
<view class="btn-ctr flex-sb">
|
||||
<me-button @click="" text="确认接单" width="460rpx" icon-type="icon-flashlight"></me-button>
|
||||
<me-button @click="" active-color="var(--contentBgColor)" text="拒 绝" width="166rpx" text-color="var(--titleColor)"></me-button>
|
||||
|
|
@ -49,7 +50,7 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import {onLoad, onShow, onPullDownRefresh} from '@dcloudio/uni-app'
|
||||
import {onLoad, onShow, onReachBottom} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
||||
import MeIcon from "../../components/me-icon/me-icon";
|
||||
import MeButton from "../../components/me-button/me-button";
|
||||
|
|
@ -153,6 +154,13 @@ const formatDistance = (lat, lng) => {
|
|||
const res = helpers.getDistances(userLocation.lat, userLocation.lng, lat, lng);
|
||||
return `${res.distance}${res.unit}`;
|
||||
}
|
||||
|
||||
onReachBottom(() => {
|
||||
if (data.page < data.last_page) {
|
||||
data.page = data.page + 1
|
||||
getList()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user