Browse Source

优化

pull/9/head
longjieli 2 months ago
parent
commit
62e4f07cb0
38 changed files with 165 additions and 140 deletions
  1. +2
    -2
      api/date/index.js
  2. +38
    -7
      otherPages/authentication/connectAddress/index.vue
  3. +1
    -1
      otherPages/authentication/examination/base.vue
  4. +1
    -1
      otherPages/authentication/examination/errorDetail.vue
  5. +1
    -1
      otherPages/authentication/examination/train.vue
  6. +2
    -2
      otherPages/binding/grade/detail.vue
  7. +6
    -6
      otherPages/binding/grade/index.vue
  8. +7
    -7
      otherPages/binding/wallet/index.vue
  9. +1
    -1
      otherPages/binding/withdrawal/index.vue
  10. +1
    -1
      otherPages/myOrdersManage/bond/index.vue
  11. +1
    -1
      otherPages/myOrdersManage/bond/refund.vue
  12. +1
    -1
      otherPages/myOrdersManage/clock/detail.vue
  13. +22
    -14
      otherPages/myOrdersManage/date/detail.vue
  14. +1
    -1
      otherPages/myOrdersManage/service/base.vue
  15. +1
    -1
      otherPages/myOrdersManage/service/dog.vue
  16. +3
    -3
      otherPages/myOrdersManage/transaction/index.vue
  17. +2
    -2
      otherPages/myOrdersManage/withdrawal/index.vue
  18. +1
    -1
      otherPages/orderTakingManage/create/index.vue
  19. +5
    -5
      otherPages/orderTakingManage/detail/index.vue
  20. +2
    -2
      otherPages/orderTakingManage/evaluate/index.vue
  21. +1
    -1
      otherPages/orderTakingManage/pet/detail.vue
  22. +3
    -3
      otherPages/orderTakingManage/pet/index.vue
  23. +3
    -2
      otherPages/userManage/pet/components/petBaseInfo.vue
  24. +1
    -1
      otherPages/userManage/pet/components/petHealthInfo.vue
  25. +3
    -3
      otherPages/userManage/pet/index.vue
  26. +1
    -0
      otherPages/userManage/pet/petInfo.vue
  27. +2
    -2
      otherPages/userManage/record/index.vue
  28. +1
    -1
      otherPages/workbenchManage/myLevel/commponents/levelInfo.vue
  29. +8
    -8
      otherPages/workbenchManage/myUser/components/haveOrder.vue
  30. +2
    -2
      otherPages/workbenchManage/myUser/components/noOrder.vue
  31. +1
    -1
      otherPages/workbenchManage/myUser/index.vue
  32. +6
    -6
      otherPages/workbenchManage/myWallet/index.vue
  33. +20
    -21
      pages/login/wxUserInfo.vue
  34. +2
    -8
      pages/myOrdersManage/index.vue
  35. +2
    -8
      pages/orderTakingManage/index.vue
  36. +7
    -10
      pages/userManage/index.vue
  37. +1
    -1
      pages/workbenchManage/index.vue
  38. +2
    -2
      utils/useMixin.js

+ 2
- 2
api/date/index.js View File

@ -22,8 +22,8 @@ export function insertOutDate(data) {
// 接单地址-不接单日期列表数据查询 // 接单地址-不接单日期列表数据查询
export function outDateList() { export function outDateList() {
return request({ return request({
'url': '/applet/outDate/outDateList',
'method': 'get'
'url': '/applet/outDate/outDateList',
'method': 'get',
}) })
} }


+ 38
- 7
otherPages/authentication/connectAddress/index.vue View File

@ -43,7 +43,7 @@
<image src="@/static/images/ydd/edit.png" mode="widthFix" style="width: 20rpx;"></image> <image src="@/static/images/ydd/edit.png" mode="widthFix" style="width: 20rpx;"></image>
<text class="size-22 color-777 ml10">编辑</text> <text class="size-22 color-777 ml10">编辑</text>
</view> </view>
<view @click="fetchDeleteAddress(item.id)" class="flex-rowl" style="margin-left: 50rpx;">
<view @click="clickDelHandle(item.id)" class="flex-rowl" style="margin-left: 50rpx;">
<image src="@/static/images/ydd/cancel.png" mode="widthFix" style="width: 20rpx;"></image> <image src="@/static/images/ydd/cancel.png" mode="widthFix" style="width: 20rpx;"></image>
<text class="size-22 color-777 ml10">删除</text> <text class="size-22 color-777 ml10">删除</text>
</view> </view>
@ -61,6 +61,14 @@
</view> </view>
</view> </view>
</view> </view>
<Modal @confirm="confirmDel" @cancel="cancel" ref="modal">
<template>
<view class="tip">
确认要删除此地址?
</view>
</template>
</Modal>
</template> </template>
<script setup> <script setup>
@ -75,8 +83,11 @@
getAddressList, getAddressList,
deleteAddress deleteAddress
} from "@/api/address/address.js" } from "@/api/address/address.js"
import Modal from "@/components/Modal/index.vue"
const list = ref([]) const list = ref([])
const modal = ref(null)
const deleteId = ref(null);
const fetchAddressList = async () => { const fetchAddressList = async () => {
try { try {
@ -96,20 +107,22 @@
} }
const toAdd = (item) => { const toAdd = (item) => {
if(item) {
if (item) {
uni.navigateTo({ uni.navigateTo({
url: `/otherPages/authentication/connectAddress/detail?item=${JSON.stringify(item)}` url: `/otherPages/authentication/connectAddress/detail?item=${JSON.stringify(item)}`
}) })
}else {
} else {
uni.navigateTo({ uni.navigateTo({
url: '/otherPages/authentication/connectAddress/detail' url: '/otherPages/authentication/connectAddress/detail'
}) })
} }
} }
const fetchDeleteAddress = async (id) => {
let response = await deleteAddress({ id });
if(response.code == 200) {
const fetchDeleteAddress = async () => {
let response = await deleteAddress({
id: deleteId.value
});
if (response.code == 200) {
uni.showToast({ uni.showToast({
title: '删除成功!', title: '删除成功!',
icon: "none" icon: "none"
@ -121,6 +134,19 @@
onShow(() => { onShow(() => {
fetchAddressList() fetchAddressList()
}) })
const clickDelHandle = (delId) => {
modal.value.open();
deleteId.value = delId;
}
const cancelDel = () => {
//
}
const confirmDel = () => {
fetchDeleteAddress();
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -159,4 +185,9 @@
text-overflow: ellipsis; // text-overflow: ellipsis; //
white-space: nowrap; // white-space: nowrap; //
} }
.tip {
text-align: center;
padding: 25rpx 0rpx;
}
</style> </style>

+ 1
- 1
otherPages/authentication/examination/base.vue View File

@ -15,7 +15,7 @@
选择题 选择题
</view> </view>
</view> </view>
<view class="">
<view >
<questionCard <questionCard
v-for="(item, qIdx) in list" v-for="(item, qIdx) in list"
:key="`question-${qIdx}`" :key="`question-${qIdx}`"


+ 1
- 1
otherPages/authentication/examination/errorDetail.vue View File

@ -7,7 +7,7 @@
<view class="label size-22 level" :style="{borderRadius:'10rpx'}"> <view class="label size-22 level" :style="{borderRadius:'10rpx'}">
{{ group.title }} {{ group.title }}
</view> </view>
<view class="">
<view >
<questionCard <questionCard
v-for="(item, qIdx) in group.children" v-for="(item, qIdx) in group.children"
:key="`${gIdx}-question-${qIdx}`" :key="`${gIdx}-question-${qIdx}`"


+ 1
- 1
otherPages/authentication/examination/train.vue View File

@ -16,7 +16,7 @@
主观题 主观题
</view> </view>
</view> </view>
<view class="">
<view >
<questionCard <questionCard
v-for="(item, qIdx) in list" v-for="(item, qIdx) in list"
:key="`question-${qIdx}`" :key="`question-${qIdx}`"


+ 2
- 2
otherPages/binding/grade/detail.vue View File

@ -29,12 +29,12 @@
<view class="text-item"> <view class="text-item">
仍需至少注册 仍需至少注册
</view> </view>
<view class="">
<view >
5 5
</view> </view>
</view> </view>
</view> </view>
<view class="">
<view >
</view> </view>
</view> </view>


+ 6
- 6
otherPages/binding/grade/index.vue View File

@ -27,7 +27,7 @@
</view> </view>
<view class="flex-b margin_top_3"> <view class="flex-b margin_top_3">
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
当月注册用户 当月注册用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">
@ -35,7 +35,7 @@
</view> </view>
</view> </view>
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
当月下单用户 当月下单用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">
@ -43,7 +43,7 @@
</view> </view>
</view> </view>
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
当月有效用户 当月有效用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">
@ -61,7 +61,7 @@
</view> </view>
<view class="flex-b margin_top_3"> <view class="flex-b margin_top_3">
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
累积注册用户 累积注册用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">
@ -69,7 +69,7 @@
</view> </view>
</view> </view>
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
累积下单用户 累积下单用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">
@ -77,7 +77,7 @@
</view> </view>
</view> </view>
<view class="justify col_999"> <view class="justify col_999">
<view class="">
<view >
累积有效用户 累积有效用户
</view> </view>
<view class="margin_top_10"> <view class="margin_top_10">


+ 7
- 7
otherPages/binding/wallet/index.vue View File

@ -13,10 +13,10 @@
初级合伙人 初级合伙人
</view> </view>
<view class="time level"> <view class="time level">
<view class="">
<view >
当前分成比例:25% 当前分成比例:25%
</view> </view>
<view class="">
<view >
晋级后分成比例:30% 晋级后分成比例:30%
</view> </view>
</view> </view>
@ -24,7 +24,7 @@
</view> </view>
<view class="top box-size" :style="{borderRadius:'16rpx'}"> <view class="top box-size" :style="{borderRadius:'16rpx'}">
<view class="level account"> <view class="level account">
<view class="">
<view >
钱包余额 钱包余额
</view> </view>
<view class="level text"> <view class="level text">
@ -46,18 +46,18 @@
</view> </view>
<view class="level flex--justify divide"> <view class="level flex--justify divide">
<view class="level"> <view class="level">
<view class="">
<view >
本月订单分成:&nbsp;&nbsp; 本月订单分成:&nbsp;&nbsp;
</view> </view>
¥<view class="">
¥<view >
0.00 0.00
</view> </view>
</view> </view>
<view class="level"> <view class="level">
<view class="">
<view >
累积订单分成:&nbsp;&nbsp; 累积订单分成:&nbsp;&nbsp;
</view> </view>
¥<view class="">
¥<view >
0.00 0.00
</view> </view>
</view> </view>


+ 1
- 1
otherPages/binding/withdrawal/index.vue View File

@ -2,7 +2,7 @@
<!-- <div>提现</div> --> <!-- <div>提现</div> -->
<view class="box"> <view class="box">
<view class="top" :style="{ borderRadius: '16rpx' }"> <view class="top" :style="{ borderRadius: '16rpx' }">
<view class="">
<view >
提现金额 提现金额
</view> </view>
<view class="level"> <view class="level">


+ 1
- 1
otherPages/myOrdersManage/bond/index.vue View File

@ -33,7 +33,7 @@
履约保证金用于处理轻度违约行为以及交易纠纷;具体规则可在<text 履约保证金用于处理轻度违约行为以及交易纠纷;具体规则可在<text
:style="{color:'#FFBF60'}">履约保证金协议</text>中查看如平台有任何私自克扣/乱扣费的情况可向市场监督局投诉平台会对违约做出公正的判罚同时接受公正的处理 :style="{color:'#FFBF60'}">履约保证金协议</text>中查看如平台有任何私自克扣/乱扣费的情况可向市场监督局投诉平台会对违约做出公正的判罚同时接受公正的处理
</view> </view>
<view class="">
<view >
若在服务过程中由于伴宠师自身原因发生用户的隐私或财产被侵犯等涉及法律相关问题并不是保证金可以解决的;如若发生恶性事件平台会坚决走法律程序判定责任并追责请各位伴宠师严于律己 若在服务过程中由于伴宠师自身原因发生用户的隐私或财产被侵犯等涉及法律相关问题并不是保证金可以解决的;如若发生恶性事件平台会坚决走法律程序判定责任并追责请各位伴宠师严于律己
</view> </view>
</view> </view>


+ 1
- 1
otherPages/myOrdersManage/bond/refund.vue View File

@ -3,7 +3,7 @@
<view class="container"> <view class="container">
<view class="top" :style="{ borderRadius: '8rpx' }"> <view class="top" :style="{ borderRadius: '8rpx' }">
<view class="level account"> <view class="level account">
<view class="">
<view >
账户总览 账户总览
</view> </view>
</view> </view>


+ 1
- 1
otherPages/myOrdersManage/clock/detail.vue View File

@ -1,7 +1,7 @@
<template> <template>
<!-- <view>打卡记录</view> --> <!-- <view>打卡记录</view> -->
<view class="container level mt24 box-size"> <view class="container level mt24 box-size">
<view class="">
<view >
<image src="" mode="" :style="{width:'60rpx',height:'52rpx',backgroundColor:'red'}"></image> <image src="" mode="" :style="{width:'60rpx',height:'52rpx',backgroundColor:'red'}"></image>
</view> </view>
<view class="ml10"> <view class="ml10">


+ 22
- 14
otherPages/myOrdersManage/date/detail.vue View File

@ -14,18 +14,18 @@
</view> </view>
<view v-if="selectDateList.length" class="level center"> <view v-if="selectDateList.length" class="level center">
<view class="">
<view >
<view class="text1" :style="{ textAlign: 'right' }"> <view class="text1" :style="{ textAlign: 'right' }">
{{ selectDateList.length }} {{ selectDateList.length }}
</view> </view>
共不接单时间 共不接单时间
</view> </view>
<view class="level center_item"> <view class="level center_item">
<!-- <view class="">
<up-icon name="edit-pen" color="#2979ff" size="22"></up-icon>
<view >
<!-- <up-icon name="edit-pen" color="#2979ff" size="22"></up-icon> -->
修改 修改
</view> -->
<view @click="cleanDates" class="">
</view>
<view @click="cleanDates" >
<!-- <up-icon name="trash" color="#2979ff" size="22"></up-icon> --> <!-- <up-icon name="trash" color="#2979ff" size="22"></up-icon> -->
清空 清空
</view> </view>
@ -67,10 +67,9 @@
onLoad((options) => { onLoad((options) => {
addressId.value = options.addressId addressId.value = options.addressId
}); });
onShow(() => { onShow(() => {
let response = outDateList();
console.log("返回数据",response)
getOutDateList();
}) })
const addressId = ref(0) const addressId = ref(0)
@ -153,18 +152,15 @@
groupedDates.value = sortedGroupedDates; groupedDates.value = sortedGroupedDates;
} }
//
const cleanDates = () => { const cleanDates = () => {
selectDateList.value = []; selectDateList.value = [];
gruopDate(selectDateList.value); gruopDate(selectDateList.value);
} }
//
const submit = async () => { const submit = async () => {
if (!selectDateList.value.length) {
return uni.showToast({
title: '请选择日期',
icon: "none"
})
} else if (!addressId.value) {
if (!addressId.value) {
return uni.showToast({ return uni.showToast({
title: '地址标识不能为空', title: '地址标识不能为空',
icon: "none" icon: "none"
@ -182,6 +178,18 @@
uni.navigateBack(-1); uni.navigateBack(-1);
} }
} }
const getOutDateList = async () => {
let response = await outDateList();
if (response.code == 200 && response.data) {
let list = response.data.filter(item => item.date !== null && item.date !== undefined);
list = list.map(item => item.date);
//
selectDateList.value = [...new Set(list)];
console.log(selectDateList)
gruopDate(selectDateList.value);
}
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">


+ 1
- 1
otherPages/myOrdersManage/service/base.vue View File

@ -48,7 +48,7 @@
</view> </view>
<view class="size-30 mt24 flex-between"> <view class="size-30 mt24 flex-between">
<view :style="{color:'#999999'}">更换尿垫</view> <view :style="{color:'#999999'}">更换尿垫</view>
<view class=""></view>
<view ></view>
</view> </view>
<view class="size-30 mt24 flex-between"> <view class="size-30 mt24 flex-between">
<view :style="{color:'#999999'}">尿垫更换频率</view> <view :style="{color:'#999999'}">尿垫更换频率</view>


+ 1
- 1
otherPages/myOrdersManage/service/dog.vue View File

@ -14,7 +14,7 @@
</view> </view>
<view class="size-30 mt24 flex-between"> <view class="size-30 mt24 flex-between">
<view :style="{color:'#999999'}">下雨天是否遛狗</view> <view :style="{color:'#999999'}">下雨天是否遛狗</view>
<view class=""></view>
<view ></view>
</view> </view>
<view class="size-30 mt32 fw400"> <view class="size-30 mt32 fw400">
狗狗雨具摆放位置 狗狗雨具摆放位置


+ 3
- 3
otherPages/myOrdersManage/transaction/index.vue View File

@ -14,8 +14,8 @@
<view v-for="(item,index) in list" :key="index" class="Recharge flex"> <view v-for="(item,index) in list" :key="index" class="Recharge flex">
<view class="flex"> <view class="flex">
<image src="https://img1.baidu.com/it/u=3034232350,1041791648&fm=253&fmt=auto&app=138&f=PNG?w=500&h=500"
mode=""></image>
<image style="width: 80rpx;height: 80rpx" src="https://img1.baidu.com/it/u=3034232350,1041791648&fm=253&fmt=auto&app=138&f=PNG?w=500&h=500"
mode="aspectFill"></image>
<view class="text1"> <view class="text1">
<view class="text2"> <view class="text2">
{{ item.title }} {{ item.title }}
@ -26,7 +26,7 @@
</view> </view>
</view> </view>
<view class="text3"> <view class="text3">
{{ item.type == '收入' ? '+' : '-' }}{{ item.amount }}
{{ item.amount }}
</view> </view>
</view> </view>
</view> </view>


+ 2
- 2
otherPages/myOrdersManage/withdrawal/index.vue View File

@ -2,7 +2,7 @@
<!-- <div>提现</div> --> <!-- <div>提现</div> -->
<view class="box"> <view class="box">
<view class="top" :style="{ borderRadius: '16rpx' }"> <view class="top" :style="{ borderRadius: '16rpx' }">
<view class="">
<view >
提现金额 提现金额
</view> </view>
<view class="level"> <view class="level">
@ -28,7 +28,7 @@
提现 提现
</view> </view>
</view> </view>
<view class="">
<view >
<!-- <u-popup :show="show" mode="center" @close="close" @open="open"> --> <!-- <u-popup :show="show" mode="center" @close="close" @open="open"> -->
</view> </view>
</template> </template>


+ 1
- 1
otherPages/orderTakingManage/create/index.vue View File

@ -8,7 +8,7 @@
<view class="img"> <view class="img">
<image src="/static/images/ydd/profile.png" mode="" style="width: 157rpx;height: 157rpx;" <image src="/static/images/ydd/profile.png" mode="" style="width: 157rpx;height: 157rpx;"
:style="{borderRadius:'100rpx'}"></image> :style="{borderRadius:'100rpx'}"></image>
<view class="">
<view >
点击更换头像 点击更换头像
<view class="top_item"> <view class="top_item">
<image src="/static/images/ydd/photograph.png" mode="" style="width: 55rpx;height: 55rpx;" <image src="/static/images/ydd/photograph.png" mode="" style="width: 55rpx;height: 55rpx;"


+ 5
- 5
otherPages/orderTakingManage/detail/index.vue View File

@ -41,7 +41,7 @@
<view> <view>
服务日期 服务日期
</view> </view>
<view class="">
<view >
12-012-08 12-012-08
</view> </view>
</view> </view>
@ -51,7 +51,7 @@
<view> <view>
服务地址 服务地址
</view> </view>
<view class="">
<view >
{{ orderDetail.address }} {{ orderDetail.address }}
</view> </view>
</view> </view>
@ -73,7 +73,7 @@
<view class="img" :style="{borderRadius:'100rpx'}"> <view class="img" :style="{borderRadius:'100rpx'}">
<image :src="pet.headImage" mode=""></image> <image :src="pet.headImage" mode=""></image>
</view> </view>
<view class="">
<view >
<view class="flex name"> <view class="flex name">
<view class="name_text"> <view class="name_text">
{{ pet.nickName }} {{ pet.nickName }}
@ -196,10 +196,10 @@
服务宠物 服务宠物
</view> </view>
<view class="desc"> <view class="desc">
<view class="">
<view >
中华田园犬 中华田园犬
</view> </view>
<view class="">
<view >
中华田园犬2 中华田园犬2
</view> </view>
</view> </view>


+ 2
- 2
otherPages/orderTakingManage/evaluate/index.vue View File

@ -19,14 +19,14 @@
<view class="name"> <view class="name">
猫小姐 猫小姐
</view> </view>
<view class="">
<view >
<up-rate :count="count" v-model="value" active-color="#FFBF60" gutter="6"></up-rate> <up-rate :count="count" v-model="value" active-color="#FFBF60" gutter="6"></up-rate>
</view> </view>
</view> </view>
<view class="time"> <view class="time">
{{ item.createTime }} {{ item.createTime }}
</view> </view>
<view class="">
<view >
{{ item.comment }} {{ item.comment }}
</view> </view>
</view> </view>


+ 1
- 1
otherPages/orderTakingManage/pet/detail.vue View File

@ -8,7 +8,7 @@
<view class="img"> <view class="img">
<image :src="petInfo.headImage" mode="" style="width: 157rpx;height: 157rpx;" <image :src="petInfo.headImage" mode="" style="width: 157rpx;height: 157rpx;"
:style="{borderRadius:'100rpx'}"></image> :style="{borderRadius:'100rpx'}"></image>
<!-- <view class="">
<!-- <view >
点击更换头像 点击更换头像
<view class="top_item"> <view class="top_item">
<image src="/static/images/tabBar/Group 1000001460@2x.png" mode="" <image src="/static/images/tabBar/Group 1000001460@2x.png" mode=""


+ 3
- 3
otherPages/orderTakingManage/pet/index.vue View File

@ -14,18 +14,18 @@
{{ item.nickName }} {{ item.nickName }}
</view> </view>
<view class="personal-pet-sex"> <view class="personal-pet-sex">
<img :src="item.sex === 0 ? '../static/images/sex/boy.svg' : '@/static/images/sex/girl.svg'"
<img :src="item.sex === 0 ? '../../../static/images/sex/boy.svg' : '../../../static/images/sex/girl.svg'"
alt="sex" style="width: 16px;height: 16px;" /> alt="sex" style="width: 16px;height: 16px;" />
</view> </view>
</view> </view>
<view class="personal-pet-info-3" style="width: 100%;"> <view class="personal-pet-info-3" style="width: 100%;">
<view class="ellipsis" style="max-width: 25%;">
<view style="max-width: 25%;">
{{ item.type || '未知' }} {{ item.type || '未知' }}
</view> </view>
<view class="personal-pet-info-age" style="max-width: 90px;"> <view class="personal-pet-info-age" style="max-width: 90px;">
{{ item.type || '未知' }} {{ item.type || '未知' }}
</view> </view>
<view class="ellipsis" style="max-width: 25%;">
<view style="max-width: 25%;">
{{ item.weight + 'kg' }} {{ item.weight + 'kg' }}
</view> </view>
</view> </view>


+ 3
- 2
otherPages/userManage/pet/components/petBaseInfo.vue View File

@ -1,5 +1,5 @@
<template> <template>
<view class="">
<view >
<view class="personal-pet-basic-info"> <view class="personal-pet-basic-info">
<view class="personal-pet-info-title border-bottom"> <view class="personal-pet-info-title border-bottom">
宠物基本信息 宠物基本信息
@ -70,7 +70,7 @@
<view class="personal-pet-breed-btns"> <view class="personal-pet-breed-btns">
<view class="personal-pet-breed-btn"> <view class="personal-pet-breed-btn">
<u-button color="#FFF4E4" @click="breedSelectClose"> <u-button color="#FFF4E4" @click="breedSelectClose">
<view style="color: #FFF4E4;">
<view style="color: #A9A9A9;">
取消 取消
</view> </view>
</u-button> </u-button>
@ -287,6 +287,7 @@
box-sizing: border-box; box-sizing: border-box;
background-color: #FFFFFF; background-color: #FFFFFF;
padding: 20rpx 20rpx 40rpx 20rpx; padding: 20rpx 20rpx 40rpx 20rpx;
left: 0;
width: 100%; width: 100%;
height: 160rpx; height: 160rpx;
position: fixed; position: fixed;


+ 1
- 1
otherPages/userManage/pet/components/petHealthInfo.vue View File

@ -1,5 +1,5 @@
<template> <template>
<view class="">
<view >
<view class="personal-pet-health-info"> <view class="personal-pet-health-info">
<view class="personal-pet-info-title border-bottom"> <view class="personal-pet-info-title border-bottom">
宠物健康情况 宠物健康情况


+ 3
- 3
otherPages/userManage/pet/index.vue View File

@ -19,13 +19,13 @@
</view> </view>
</view> </view>
<view class="personal-pet-info-3" style="width: 100%;"> <view class="personal-pet-info-3" style="width: 100%;">
<view class="" style="max-width: 35%;">
<view style="max-width: 35%;">
{{ item.type || '未知' }} {{ item.type || '未知' }}
</view> </view>
<view class="personal-pet-info-age" style="max-width: 90px;"> <view class="personal-pet-info-age" style="max-width: 90px;">
{{ item.age || '未知' }} {{ item.age || '未知' }}
</view> </view>
<view class="" style="max-width: 25%;">
<view style="max-width: 25%;">
体重{{ item.weight }}kg 体重{{ item.weight }}kg
</view> </view>
</view> </view>
@ -65,7 +65,7 @@
</button> </button>
</view> </view>
<!-- <view class="">
<!-- <view >
<u-picker :showToolbar='false' :show="show" :columns="petTypes" @change="petTypeChange" @cancel="cancel" <u-picker :showToolbar='false' :show="show" :columns="petTypes" @change="petTypeChange" @cancel="cancel"
@confirm="confirm"></u-picker> @confirm="confirm"></u-picker>
</view> --> </view> -->


+ 1
- 0
otherPages/userManage/pet/petInfo.vue View File

@ -371,6 +371,7 @@
.breed-select { .breed-select {
background-color: #fff; background-color: #fff;
box-sizing: border-box;
width: 100%; width: 100%;
padding: 20px; padding: 20px;
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;


+ 2
- 2
otherPages/userManage/record/index.vue View File

@ -31,11 +31,11 @@
</view> </view>
</view> </view>
<view class="flex-rowr"> <view class="flex-rowr">
<view class="">
<view >
<image src="" mode="" :style="{width:'17rpx',height:'19rpx'}"></image> <image src="" mode="" :style="{width:'17rpx',height:'19rpx'}"></image>
</view> </view>
<view class="ml10 mr20" :style="{color:'#707070',fontSize:'22rpx'}">编辑</view> <view class="ml10 mr20" :style="{color:'#707070',fontSize:'22rpx'}">编辑</view>
<view class="">
<view >
<up-icon name="edit-pen" color="#2979ff" size="58"></up-icon> <up-icon name="edit-pen" color="#2979ff" size="58"></up-icon>
</view> </view>
<view class="ml10" :style="{color:'#707070',fontSize:'22rpx'}">删除</view> <view class="ml10" :style="{color:'#707070',fontSize:'22rpx'}">删除</view>


+ 1
- 1
otherPages/workbenchManage/myLevel/commponents/levelInfo.vue View File

@ -10,7 +10,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="">
<view >
<up-swiper :list="list3" previousMargin="30" nextMargin="30" circular :autoplay="false" radius="10" height="300rpx" <up-swiper :list="list3" previousMargin="30" nextMargin="30" circular :autoplay="false" radius="10" height="300rpx"
@change="swiperChange"></up-swiper> @change="swiperChange"></up-swiper>
</view> </view>


+ 8
- 8
otherPages/workbenchManage/myUser/components/haveOrder.vue View File

@ -14,34 +14,34 @@
</view> </view>
<up-line color="#C7C7C7"></up-line> <up-line color="#C7C7C7"></up-line>
<view class="have-order-time flex-b size-26 color-999"> <view class="have-order-time flex-b size-26 color-999">
<view class="">
<view >
注册时间 注册时间
</view> </view>
<view class="">
<view >
{{ item.createTime }} {{ item.createTime }}
</view> </view>
</view> </view>
<view class="have-order-time flex-b size-26 color-999" v-show="item.isShow"> <view class="have-order-time flex-b size-26 color-999" v-show="item.isShow">
<view class="">
<view >
最近一次下单 最近一次下单
</view> </view>
<view class="">
<view >
{{ item.recentlyPayTime }} {{ item.recentlyPayTime }}
</view> </view>
</view> </view>
<view class="have-order-time flex-b size-26 color-999" v-show="item.isShow"> <view class="have-order-time flex-b size-26 color-999" v-show="item.isShow">
<view class="">
<view >
累计消费金额 累计消费金额
</view> </view>
<view class="">
<view >
{{ item.reward_money }} {{ item.reward_money }}
</view> </view>
</view> </view>
<view class="have-order-time flex-b size-26 color-999" v-show="item.isShow"> <view class="have-order-time flex-b size-26 color-999" v-show="item.isShow">
<view class="">
<view >
累计消报酬 累计消报酬
</view> </view>
<view class="">
<view >
{{ item.accumulate_money }} {{ item.accumulate_money }}
</view> </view>
</view> </view>


+ 2
- 2
otherPages/workbenchManage/myUser/components/noOrder.vue View File

@ -7,10 +7,10 @@
</view> </view>
<up-line color="#C7C7C7"></up-line> <up-line color="#C7C7C7"></up-line>
<view class="no-order-time flex-b size-26 color-999"> <view class="no-order-time flex-b size-26 color-999">
<view class="">
<view >
注册时间 注册时间
</view> </view>
<view class="">
<view >
{{ item.createTime }} {{ item.createTime }}
</view> </view>
</view> </view>


+ 1
- 1
otherPages/workbenchManage/myUser/index.vue View File

@ -42,7 +42,7 @@
</up-tabs> </up-tabs>
</view> </view>
<view class="">
<view >
<noOrder :list="state.list" v-if="state.state == 0" /> <noOrder :list="state.list" v-if="state.state == 0" />
<haveOrder :list="state.list" v-if="state.state == 1" /> <haveOrder :list="state.list" v-if="state.state == 1" />
</view> </view>


+ 6
- 6
otherPages/workbenchManage/myWallet/index.vue View File

@ -2,9 +2,9 @@
<view class="bind-user"> <view class="bind-user">
<view class="bind-user-header"> <view class="bind-user-header">
<view class="flex mb28 ml20 "> <view class="flex mb28 ml20 ">
<up-image width="140rpx" height="140rpx" :src="state.baseInfo.info.userImage" shape="circle"></up-image>
<up-image width="140rpx" height="140rpx" :src="state?.baseInfo?.info?.userImage" shape="circle"></up-image>
<view class="header-name"> <view class="header-name">
<view class="font32 mb20 color-040">{{ state.baseInfo.info.userName }}</view>
<view class="font32 mb20 color-040">{{ state?.baseInfo?.info?.userName }}</view>
<view class="label1"> <view class="label1">
{{ state.baseInfo.partner_level }} {{ state.baseInfo.partner_level }}
</view> </view>
@ -46,18 +46,18 @@
</view> </view>
<view class="level divide"> <view class="level divide">
<view class="level flex-rowl"> <view class="level flex-rowl">
<view class="">
<view >
本月订单分成:&nbsp;&nbsp; 本月订单分成:&nbsp;&nbsp;
</view> </view>
¥<view class="">
¥<view >
{{state.baseInfo.new_money}} {{state.baseInfo.new_money}}
</view> </view>
</view> </view>
<view class="level flex-rowl"> <view class="level flex-rowl">
<view class="">
<view >
累积订单分成:&nbsp;&nbsp; 累积订单分成:&nbsp;&nbsp;
</view> </view>
¥<view class="">
¥<view >
{{state.baseInfo.old_money}} {{state.baseInfo.old_money}}
</view> </view>
</view> </view>


+ 20
- 21
pages/login/wxUserInfo.vue View File

@ -10,36 +10,36 @@
<button class="chooseAvatar" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"> <button class="chooseAvatar" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
<view class="line"> <view class="line">
<view class="">
<view >
头像 头像
</view> </view>
<view class="">
<view >
<image :src="userInfoForm.headImage" v-if="userInfoForm.headImage" <image :src="userInfoForm.headImage" v-if="userInfoForm.headImage"
style="width: 60rpx;height: 60rpx;" mode=""></image>
style="width: 60rpx;height: 60rpx;border-radius: 50%;" mode=""></image>
<!-- <image src="../static/auth/headImage.png" v-else style="width: 50rpx;height: 50rpx;" mode=""></image> --> <!-- <image src="../static/auth/headImage.png" v-else style="width: 50rpx;height: 50rpx;" mode=""></image> -->
</view> </view>
</view> </view>
</button> </button>
<view class="line"> <view class="line">
<view class="">
<view >
昵称 昵称
</view> </view>
<view class="">
<view >
<input type="nickname" placeholder="请输入昵称" style="text-align: right;" id="nickName" <input type="nickname" placeholder="请输入昵称" style="text-align: right;" id="nickName"
v-model="userInfoForm.nickName" /> v-model="userInfoForm.nickName" />
</view> </view>
</view> </view>
<view class="line"> <view class="line">
<view class="">
<view >
手机号 手机号
</view> </view>
<view class="" v-if="userInfoForm.phone">
<view v-if="userInfoForm.phone">
<input placeholder="请输入手机号" style="text-align: right;" disabled v-model="userInfoForm.phone" /> <input placeholder="请输入手机号" style="text-align: right;" disabled v-model="userInfoForm.phone" />
</view> </view>
<view class="" v-else>
<view v-else>
<button class="getPhoneNumber" open-type="getPhoneNumber" @getphonenumber="getPhone"> <button class="getPhoneNumber" open-type="getPhoneNumber" @getphonenumber="getPhone">
获取电话号码 获取电话号码
</button> </button>
@ -56,7 +56,8 @@
import { import {
ref, ref,
getCurrentInstance, getCurrentInstance,
computed
computed,
onMounted
} from 'vue' } from 'vue'
import { import {
ossUpload ossUpload
@ -78,12 +79,6 @@
const store = useStore() const store = useStore()
const userInfo = ref({
phone: "",
nickName: "",
headImage: ""
})
const userInfoForm = ref({ const userInfoForm = ref({
headImage: '', headImage: '',
nickName: '', nickName: '',
@ -93,15 +88,19 @@
const configList = computed(() => { const configList = computed(() => {
return store.getters.configList return store.getters.configList
}) })
const userInfo = computed(() => {
return store.getters.userInfo
})
onShow(() => { onShow(() => {
// onShow // onShow
}) })
onLoad(() => { onLoad(() => {
userInfoForm.value.phone = userInfo.value.phone || ''
userInfoForm.value.nickName = userInfo.value.nickName || ''
userInfoForm.value.headImage = userInfo.value.headImage || ''
userInfoForm.value.phone = userInfo.value?.userTelephone || ''
userInfoForm.value.nickName = userInfo.value?.userName || ''
userInfoForm.value.headImage = configList.value?.applet_info?.paramValueImage || ''
}) })
const onChooseAvatar = (res) => { const onChooseAvatar = (res) => {
@ -126,6 +125,7 @@
properties: ["value"], properties: ["value"],
}) })
.exec((res) => { .exec((res) => {
console.log(res)
const nickName = res?.[0]?.value const nickName = res?.[0]?.value
userInfoForm.value.nickName = nickName userInfoForm.value.nickName = nickName
@ -152,6 +152,7 @@
userTelephone: userInfoForm.value.phone userTelephone: userInfoForm.value.phone
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
store.dispatch("getUserInfo")
uni.switchTab({ uni.switchTab({
url: "/pages/workbenchManage/index" url: "/pages/workbenchManage/index"
}) })
@ -219,17 +220,15 @@
} }
.getPhoneNumber { .getPhoneNumber {
// all: unset;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
// background: $uni-linear-gradient-btn-color;
// background: $uni-color;
color: #fff; color: #fff;
width: 200rpx; width: 200rpx;
height: 60rpx; height: 60rpx;
border-radius: 30rpx; border-radius: 30rpx;
font-size: 24rpx; font-size: 24rpx;
background-color: #FFBF60;
} }
} }
</style> </style>

+ 2
- 8
pages/myOrdersManage/index.vue View File

@ -50,9 +50,7 @@
import { import {
onShow onShow
} from "@dcloudio/uni-app" } from "@dcloudio/uni-app"
import {
getIsLogin
} from "@/utils/auth.js"
import { getLoginStatus } from "@/utils/useMixin.js"
// import personOrder from "./components/personOrder.vue"; // import personOrder from "./components/personOrder.vue";
// import lossOrder from "./components/lossOrder.vue"; // import lossOrder from "./components/lossOrder.vue";
@ -62,11 +60,7 @@
} from "@/api/order/order.js" } from "@/api/order/order.js"
onShow(() => { onShow(() => {
if (!getIsLogin()) {
uni.navigateTo({
url: "/pages/login/index"
})
}
if (!getLoginStatus())return;
}) })
const current = ref(0) const current = ref(0)


+ 2
- 8
pages/orderTakingManage/index.vue View File

@ -29,9 +29,7 @@
import { import {
onShow onShow
} from "@dcloudio/uni-app" } from "@dcloudio/uni-app"
import {
getIsLogin
} from "@/utils/auth.js"
import { getLoginStatus } from "@/utils/useMixin.js"
import { import {
orderList orderList
} from "@/api/receivingHall/index.js" } from "@/api/receivingHall/index.js"
@ -67,11 +65,7 @@
const orderlist = ref([]); const orderlist = ref([]);
onShow(() => { onShow(() => {
if (!getIsLogin()) {
uni.navigateTo({
url: "/pages/login/index"
})
}
if (!getLoginStatus()) return;
getOrderList(); getOrderList();
}) })


+ 7
- 10
pages/userManage/index.vue View File

@ -33,7 +33,7 @@
width="68rpx" height="68rpx"></up-image> width="68rpx" height="68rpx"></up-image>
服务酬劳 服务酬劳
</view> </view>
<view class="mb20">{{ userInfo.price }}</view>
<view class="mb20">{{ userInfo.price }}</view>
<view class="flex flex-between but"> <view class="flex flex-between but">
<view @click="toWithdrawDeposit">提现</view> <view @click="toWithdrawDeposit">提现</view>
<view>|</view> <view>|</view>
@ -46,7 +46,7 @@
width="68rpx" height="68rpx"></up-image> width="68rpx" height="68rpx"></up-image>
保证金 保证金
</view> </view>
<view class="mb20">{{ userInfo.baoPrice }}</view>
<view class="mb20">{{ userInfo.baoPrice }}</view>
<view @click="toBail" class="but">保证金中心</view> <view @click="toBail" class="but">保证金中心</view>
</view> </view>
</view> </view>
@ -139,6 +139,7 @@
getToken, getToken,
removeIsLogin removeIsLogin
} from "../../utils/auth"; } from "../../utils/auth";
import { getLoginStatus } from "@/utils/useMixin.js"
import tab from "../../plugins/tab"; import tab from "../../plugins/tab";
import Modal from "@/components/Modal/index.vue" import Modal from "@/components/Modal/index.vue"
import { import {
@ -153,12 +154,8 @@
} from "@/api/pet/index.js" } from "@/api/pet/index.js"
onShow(() => { onShow(() => {
if (!getIsLogin()) {
uni.navigateTo({
url: "/pages/login/index"
})
}
getPetList();
if (!getLoginStatus()) return;
getPet();
}) })
onMounted(() => { onMounted(() => {
@ -221,7 +218,7 @@
}) })
} }
const getPetList = async () => {
const getPet = async () => {
let response = await getpetList(); let response = await getpetList();
pet.value = response?.data[0] || {}; pet.value = response?.data[0] || {};
} }
@ -296,6 +293,6 @@
.tip { .tip {
text-align: center; text-align: center;
padding: 25rpx 0rpx;
padding-bottom: 20rpx;
} }
</style> </style>

+ 1
- 1
pages/workbenchManage/index.vue View File

@ -46,7 +46,7 @@
</view> </view>
</view> </view>
<!-- 申请之后 --> <!-- 申请之后 -->
<view class="flex-rowl flex-wrap" v-if="userInfo.userBcs===1">
<view class="flex-rowl flex-wrap" v-if="userInfo.userBcs == 1" >
<view class="icon-list" v-for="item in iconState.list2" :key="item.id" @click="handleGoto(item)"> <view class="icon-list" v-for="item in iconState.list2" :key="item.id" @click="handleGoto(item)">
<up-image class="mb20" :show-loading="true" :src="item.image" width="68rpx" <up-image class="mb20" :show-loading="true" :src="item.image" width="68rpx"
height="68rpx"></up-image> height="68rpx"></up-image>


+ 2
- 2
utils/useMixin.js View File

@ -67,8 +67,8 @@ export const getLoginStatus = () => {
if (getIsLogin() && getToken()) { if (getIsLogin() && getToken()) {
return true return true
} else { } else {
modal.confirm("请先登录").then(res=>{
tab.navigateTo('/pages/login/index')
uni.navigateTo({
url: '/pages/login/index'
}) })
return false return false
} }

Loading…
Cancel
Save