猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

57 lines
1.7 KiB

<template>
<up-list @scrolltolower="scrolltolower">
<up-list-item v-for="item in orderList">
<view class="mb28 container-list-item">
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx">
<view>待接单</view>
<view>本单酬劳
<text style="color: #FF530A">¥{{ item.price }}</text>
</view>
</view>
<view class="container-list">
<view class="flex-between flex mb28">
<up-image style="flex-shrink:0" class="mr20" width="70px" height="70px"
src="https://cdn.catmdogd.com/Work/image/work/tx.png" shape="circle"></up-image>
<view>
<view class="font28 col3">服务天数: 共2天 I 12-07,12-08</view>
<view style="margin: 18rpx 0">期望上门时间:早</view>
<view>中华田园犬(小型犬) | 专业喂养+提前熟悉+陪玩</view>
</view>
</view>
<view class="mb28 address">{{ item.address }}</view>
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view>
<view class="flex flex-between">
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button>
<up-button @click="toOrderDetail" type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button>
</view>
</view>
</view>
</up-list-item>
</up-list>
</template>
<script setup>
const scrolltolower = () => {
}
const props = defineProps({
orderList : {
type : Array,
default : () => []
}
})
console.log("props",props)
// 跳转订单详情
const toOrderDetail = () => {
uni.navigateTo({
url: "/otherPages/orderTakingManage/detail/index"
});
}
</script>
<style scoped lang="scss">
@import "../index";
</style>