@ -0,0 +1,15 @@ | |||||
// 伴宠师-我的流程 | |||||
import request from '@/utils/request' | |||||
// 获取我的评价列表数据带分页 | |||||
export function appletCommentList(params) { | |||||
return request({ | |||||
headers: { | |||||
"isToken": true | |||||
}, | |||||
url: "/applet/info/appletCommentList", | |||||
method: 'get', | |||||
params | |||||
}) | |||||
} |
@ -0,0 +1,12 @@ | |||||
import request from '@/utils/request' | |||||
// 查询我的宠物列表 | |||||
export function petList() { | |||||
return request({ | |||||
headers: { | |||||
"isToken": true | |||||
}, | |||||
url: "/applet/pet/list", | |||||
method: 'get' | |||||
}) | |||||
} |
@ -0,0 +1,14 @@ | |||||
// 订单模块 - 接单大厅流程 | |||||
import request from '@/utils/request' | |||||
// 小程序-接单大厅流程 | |||||
export function orderList(params) { | |||||
return request({ | |||||
headers: { | |||||
"isToken": true | |||||
}, | |||||
url: "/applet/order/list", | |||||
method: 'get', | |||||
params | |||||
}) | |||||
} |
@ -1,68 +1,71 @@ | |||||
{ | { | ||||
"name" : "uni-vuu3", | |||||
"appid" : "__UNI__BCA90DD", | |||||
"description" : "", | |||||
"versionName" : "1.0.0", | |||||
"versionCode" : "100", | |||||
"transformPx" : false, | |||||
"app-plus" : { | |||||
/* 5+App特有相关 */ | |||||
"usingComponents" : true, | |||||
"nvueCompiler" : "uni-app", | |||||
"nvueStyleCompiler" : "uni-app", | |||||
"splashscreen" : { | |||||
"alwaysShowBeforeRender" : true, | |||||
"waiting" : true, | |||||
"autoclose" : true, | |||||
"delay" : 0 | |||||
}, | |||||
"modules" : {}, | |||||
/* 模块配置 */ | |||||
"distribute" : { | |||||
/* 应用发布信息 */ | |||||
"android" : { | |||||
/* android打包配置 */ | |||||
"permissions" : [ | |||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", | |||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", | |||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", | |||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", | |||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>", | |||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", | |||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", | |||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", | |||||
"<uses-feature android:name=\"android.hardware.camera\"/>", | |||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" | |||||
] | |||||
}, | |||||
"ios" : {}, | |||||
/* ios打包配置 */ | |||||
"sdkConfigs" : {} | |||||
} | |||||
}, | |||||
/* SDK配置 */ | |||||
"quickapp" : {}, | |||||
/* 快应用特有相关 */ | |||||
"mp-weixin" : { | |||||
/* 小程序特有相关 */ | |||||
"appid" : "wx01f0f43759922fda", | |||||
"setting" : { | |||||
"urlCheck" : false, | |||||
"postcss" : true, | |||||
"minified" : true | |||||
}, | |||||
"usingComponents" : true, | |||||
"mergeVirtualHostAttributes" : true, | |||||
"permission" : { | |||||
"scope.userLocation" : { | |||||
"desc" : "获取用户地址" | |||||
} | |||||
} | |||||
}, | |||||
"vueVersion" : "3" | |||||
} | |||||
"name": "uni-vuu3", | |||||
"appid": "__UNI__BCA90DD", | |||||
"description": "", | |||||
"versionName": "1.0.0", | |||||
"versionCode": "100", | |||||
"transformPx": false, | |||||
"app-plus": { | |||||
/* 5+App特有相关 */ | |||||
"usingComponents": true, | |||||
"nvueCompiler": "uni-app", | |||||
"nvueStyleCompiler": "uni-app", | |||||
"splashscreen": { | |||||
"alwaysShowBeforeRender": true, | |||||
"waiting": true, | |||||
"autoclose": true, | |||||
"delay": 0 | |||||
}, | |||||
"modules": {}, | |||||
/* 模块配置 */ | |||||
"distribute": { | |||||
/* 应用发布信息 */ | |||||
"android": { | |||||
/* android打包配置 */ | |||||
"permissions": [ | |||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", | |||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", | |||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", | |||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", | |||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>", | |||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", | |||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", | |||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", | |||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", | |||||
"<uses-feature android:name=\"android.hardware.camera\"/>", | |||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" | |||||
] | |||||
}, | |||||
"ios": {}, | |||||
/* ios打包配置 */ | |||||
"sdkConfigs": {} | |||||
} | |||||
}, | |||||
/* SDK配置 */ | |||||
"quickapp": {}, | |||||
/* 快应用特有相关 */ | |||||
"mp-weixin": { | |||||
/* 小程序特有相关 */ | |||||
"appid": "wx01f0f43759922fda", | |||||
"setting": { | |||||
"urlCheck": false, | |||||
"postcss": true, | |||||
"minified": true | |||||
}, | |||||
"usingComponents": true, | |||||
"mergeVirtualHostAttributes": true, | |||||
"permission": { | |||||
"scope.userLocation": { | |||||
"desc": "获取用户地址" | |||||
} | |||||
}, | |||||
"requiredPrivateInfos": [ | |||||
"chooseLocation" | |||||
] | |||||
}, | |||||
"vueVersion": "3" | |||||
} |
@ -0,0 +1,232 @@ | |||||
<template> | |||||
<view class="personal-pet"> | |||||
<view v-if="petLists.length > 0" class="personal-pet-list"> | |||||
<view v-for="(item, index) in petLists" :key="index"> | |||||
<view | |||||
:class="['personal-pet-list-item', item.gender === '男生' ? '.personal-pet-list-item_backgroud_m' : '.personal-pet-list-item_backgroud_f']"> | |||||
<view class="personal-pet-info"> | |||||
<view> | |||||
<u-avatar :src="item.headImage? item.headImage : defaultPhoto" size="60" shape="circle"></u-avatar> | |||||
</view> | |||||
<view class="personal-pet-info-1"> | |||||
<view class="personal-pet-info-2"> | |||||
<view class="personal-pet-name"> | |||||
{{ item.nickName }} | |||||
</view> | |||||
<view class="personal-pet-sex"> | |||||
<img :src="item.sex === 0 ? '../../static/images/details/boy.svg' : '../../static/images/details/girl.svg'" | |||||
alt="sex" style="width: 16px;height: 16px;" /> | |||||
</view> | |||||
</view> | |||||
<view class="personal-pet-info-3" style="width: 100%;"> | |||||
<view class="ellipsis" style="max-width: 25%;"> | |||||
{{ item.type || '未知' }} | |||||
</view> | |||||
<view class="personal-pet-info-age" style="max-width: 90px;"> | |||||
{{ item.type || '未知' }} | |||||
</view> | |||||
<view class="ellipsis" style="max-width: 25%;"> | |||||
{{ item.weight + 'kg' }} | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="personal-pet-info-disposition ellipsis"> | |||||
性格: {{ item.personality }} | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view v-else class="personal-pet-none"> | |||||
<img src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/catdog.png" alt="pet" | |||||
style="width: 149px;height: 124px;" mode="widthFix" /> | |||||
<view class="personal-pet-none-text">这里还没有您的宠物,请点击添加吧~</view> | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script setup> | |||||
import { | |||||
ref, | |||||
onMounted | |||||
} from 'vue'; | |||||
import { | |||||
petList | |||||
} from "@/api/pet/index.js"; | |||||
import { | |||||
onShow, | |||||
onPullDownRefresh | |||||
} from "@dcloudio/uni-app" | |||||
// 定义响应式数据 | |||||
const defaultPhoto = ref('https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/catdog.png'); | |||||
const petLists = ref([]); | |||||
const deleteId = ref(''); | |||||
const petType = ref(''); | |||||
// 获取宠物列表 | |||||
const getPetListData = async () => { | |||||
petLists.value = []; | |||||
try { | |||||
const res = await petList(); | |||||
if (res && res.data) { | |||||
petLists.value = res.data; | |||||
} | |||||
} catch (error) { | |||||
console.error('获取宠物列表失败', error); | |||||
} | |||||
}; | |||||
// 添加宠物 | |||||
const addPet = () => { | |||||
show.value = true; | |||||
}; | |||||
// 编辑宠物 | |||||
const editPet = (item) => { | |||||
if (item.petType === '猫猫' || item.petType === 'cat') { | |||||
uni.navigateTo({ | |||||
url: `/pages/personalCenter/petInfo?petType=cat&optionType=edit&petId=${item.id}` | |||||
}); | |||||
} | |||||
if (item.petType === '狗狗' || item.petType === 'dog') { | |||||
uni.navigateTo({ | |||||
url: `/pages/personalCenter/petInfo?petType=dog&optionType=edit&petId=${item.id}` | |||||
}); | |||||
} | |||||
}; | |||||
// 删除宠物 | |||||
const deletePet = (item) => { | |||||
showDel.value = true; | |||||
deleteId.value = item.id; | |||||
}; | |||||
// 生命周期钩子 | |||||
onMounted(() => { | |||||
getPetListData(); | |||||
}); | |||||
onShow(() => { | |||||
getPetListData(); | |||||
}); | |||||
onPullDownRefresh(() => { | |||||
getPetListData(); | |||||
}); | |||||
</script> | |||||
<style lang="scss"> | |||||
.personal-pet { | |||||
position: relative; | |||||
height: 100%; | |||||
padding-bottom: 90px; | |||||
.personal-pet-list { | |||||
.personal-pet-list-add { | |||||
width: 100%; | |||||
height: 44px; | |||||
background-color: #FFFFFF; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
align-items: center; | |||||
padding: 0 15px; | |||||
.personal-pet-list-add-btn { | |||||
font-size: 14px; | |||||
color: #AAA; | |||||
display: flex; | |||||
align-items: center; | |||||
} | |||||
} | |||||
.personal-pet-list-item_backgroud_m { | |||||
background: linear-gradient(179deg, #EDF5FE 0.75%, #FFF 34.11%); | |||||
} | |||||
.personal-pet-list-item_backgroud_f { | |||||
background: linear-gradient(179deg, #FFF4F6 0.75%, #FFF 34.11%); | |||||
} | |||||
.personal-pet-list-item { | |||||
margin: 10px 10px 0 10px; | |||||
border-radius: 5px; | |||||
padding: 20px 10px 10px; | |||||
.personal-pet-info { | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: flex-start; | |||||
.personal-pet-info-1 { | |||||
margin-left: 10px; | |||||
.personal-pet-info-2 { | |||||
display: flex; | |||||
flex-wrap: wrap; | |||||
.personal-pet-name { | |||||
color: #333; | |||||
font-size: 16px; | |||||
margin-right: 10px; | |||||
} | |||||
} | |||||
.personal-pet-info-3 { | |||||
display: flex; | |||||
align-items: baseline; | |||||
font-size: 14px; | |||||
margin-top: 5px; | |||||
color: #7D8196; | |||||
.personal-pet-info-age { | |||||
padding: 0 10px; | |||||
margin: 0 10px; | |||||
border-left: solid 2px #7D8196; | |||||
border-right: solid 2px #7D8196; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
.personal-pet-info-disposition { | |||||
padding: 10px; | |||||
color: #7D8196; | |||||
font-size: 14px; | |||||
background: #f9f9f9; | |||||
border-radius: 5px; | |||||
margin-top: 10px; | |||||
} | |||||
.personal-pet-info-btns { | |||||
display: flex; | |||||
justify-content: flex-end; | |||||
margin-top: 10px; | |||||
.personal-pet-info-btn { | |||||
display: flex; | |||||
font-size: 14px; | |||||
color: #7D8196; | |||||
margin-left: 20px; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
.personal-pet-none { | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
flex-wrap: wrap; | |||||
margin-top: 40%; | |||||
.personal-pet-none-text { | |||||
color: #666; | |||||
text-align: center; | |||||
font-size: 14px; | |||||
width: 100%; | |||||
margin-top: 10px; | |||||
} | |||||
} | |||||
} | |||||
</style> |
@ -0,0 +1,57 @@ | |||||
<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> |
@ -1,71 +0,0 @@ | |||||
<template> | |||||
<up-list | |||||
@scrolltolower="scrolltolower" | |||||
> | |||||
<up-list-item> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</up-list-item> | |||||
</up-list> | |||||
</template> | |||||
<script setup> | |||||
const scrolltolower = () => { | |||||
} | |||||
</script> | |||||
<style scoped lang="scss"> | |||||
@import "../index"; | |||||
</style> |
@ -1,71 +0,0 @@ | |||||
<template> | |||||
<up-list | |||||
@scrolltolower="scrolltolower" | |||||
> | |||||
<up-list-item> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</up-list-item> | |||||
</up-list> | |||||
</template> | |||||
<script setup> | |||||
const scrolltolower = () => { | |||||
} | |||||
</script> | |||||
<style scoped lang="scss"> | |||||
@import "../index"; | |||||
</style> |
@ -1,71 +0,0 @@ | |||||
<template> | |||||
<up-list | |||||
@scrolltolower="scrolltolower" | |||||
> | |||||
<up-list-item> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view class="mb28 container-list-item"> | |||||
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> | |||||
<view>待接单</view> | |||||
<view>本单酬劳 | |||||
<text style="color: #FF530A">¥260</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">重庆市南岸区长嘉汇</view> | |||||
<view class="mb28">订单为系统派发,请确认订单信息后再抢单</view> | |||||
<view class="flex flex-between"> | |||||
<up-button text="无法接单" shape="circle" plain class="mr20"></up-button> | |||||
<up-button type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</up-list-item> | |||||
</up-list> | |||||
</template> | |||||
<script setup> | |||||
const scrolltolower = () => { | |||||
} | |||||
</script> | |||||
<style scoped lang="scss"> | |||||
@import "../index"; | |||||
</style> |
@ -1,18 +1,14 @@ | |||||
let current = "develop"; | |||||
let current = "trial"; | |||||
const accountInfo = wx.getAccountInfoSync(); | const accountInfo = wx.getAccountInfoSync(); | ||||
current = accountInfo.miniProgram.envVersion; | |||||
// current = accountInfo.miniProgram.envVersion; | |||||
const api = { | const api = { | ||||
develop: "http://h5.xzaiyp.top/prod-api", // 开发 | |||||
develop: "http://youyi-test.natapp1.cc/prod-api", // 开发 | |||||
trial: "http://h5.xzaiyp.top/prod-api", //测试 | trial: "http://h5.xzaiyp.top/prod-api", //测试 | ||||
release: "http://h5.xzaiyp.top/prod-api", // 线上 | release: "http://h5.xzaiyp.top/prod-api", // 线上 | ||||
} | } | ||||
console.log('--current', current) | |||||
const currentUrl = api[current]; | const currentUrl = api[current]; | ||||
console.log('--currentUrl', currentUrl) | |||||
export { | export { | ||||
currentUrl | currentUrl | ||||
}; | }; |