Browse Source

feat: 添加登录状态检查及未登录提示

refactor(login): 修改授权按钮文字
fix(withdrawal): 禁用提现功能并显示提示
feat(orderTakingManage): 添加未登录提示及登录跳转
feat(myOrdersManage): 添加未登录提示及登录跳转
refactor(userManage): 优化登录状态显示及跳转逻辑
master
前端-胡立永 5 days ago
parent
commit
69fcac8960
6 changed files with 373 additions and 216 deletions
  1. +4
    -1
      otherPages/binding/withdrawal/index.vue
  2. +1
    -1
      pages/login/index.vue
  3. +90
    -37
      pages/myOrdersManage/index.vue
  4. +86
    -9
      pages/orderTakingManage/index.vue
  5. +190
    -166
      pages/userManage/index.vue
  6. +2
    -2
      utils/getUrl.js

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

@ -27,7 +27,10 @@
lineHeight: '45rpx',
}"></up-parse>
</view>
<up-button class="buttom" type="warning" text="提现" shape="circle" @click="cashClick"></up-button>
<up-button class="buttom" type="warning" text="暂未开放" shape="circle"
style="color: #fff;background-color: #999;border: none;"
></up-button>
<!-- <up-button class="buttom" type="warning" text="提现" shape="circle" @click="cashClick"></up-button> -->
</view>
<uni-popup ref="inputDialogRef" type="dialog">


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

@ -5,7 +5,7 @@
<image class="d" :src="configList?.logo_icon?.paramValueImage" mode="aspectFill"></image>
</view>
<view class="login-submit">
<up-button class="mt24" type="primary" text="微信授权登陆" @click="loginWx" shape="circle"
<up-button class="mt24" type="primary" text="授权登陆" @click="loginWx" shape="circle"
color="#FFBF60"></up-button>
</view>
<view class="flex-rowc">


+ 90
- 37
pages/myOrdersManage/index.vue View File

@ -2,14 +2,14 @@
<view>
<view class="header-buts flex flex-center">
<view class="flex buts-box">
<view class="buts" :class="{'buts-active':activeIndex===1}" @click="clickTab(1)">总订单</view>
<view class="buts" :class="{'buts-active':activeIndex===2}" @click="clickTab(2)">日订单</view>
<view class="buts" :class="{'buts-active':activeIndex===1}" @click="handleClickTab(1)">总订单</view>
<view class="buts" :class="{'buts-active':activeIndex===2}" @click="handleClickTab(2)">日订单</view>
</view>
</view>
<up-sticky bgColor="#fff" v-if="activeIndex == 1">
<view class="container-tabs">
<up-tabs @click="classIfyClickTab" :list="tabList1" lineWidth="68rpx" :activeStyle="{
<up-tabs @click="handleClassifyClickTab" :list="tabList1" lineWidth="68rpx" :activeStyle="{
color: '#FFFFFF',
fontWeight: 'bold',
transform: 'scale(1.05)'
@ -32,14 +32,25 @@
color: '#FFFFFF',
transform: 'scale(1)'
}" :itemStyle="{height:'88rpx',padding:'0 52rpx', width : '400rpx'}"
@click="classIfyClickTab"
@click="handleClassifyClickTab"
lineColor="#FFFFFF"></up-tabs>
</view>
</up-sticky>
<view class="container">
<!-- 加载中状态 -->
<view v-if="loading" class="loading-container">
<!-- 未登录提示 -->
<view v-if="!isLogin" class="login-tip-container">
<view class="login-tip-content">
<up-image class="login-image" width="120rpx" height="120rpx"
src="https://image.hhlm1688.com/img/work/log/headImage.png" shape="circle"></up-image>
<view class="login-tip">请先登录查看订单数据</view>
<up-button @click="goToLogin" type="primary" text="立即登录"
shape="circle" color="#FFBF60" class="login-btn"></up-button>
</view>
</view>
<!-- 已登录但加载中状态 -->
<view v-else-if="loading" class="loading-container">
<up-loading-icon size="36" mode="circle" color="#FFAA48"></up-loading-icon>
<text class="loading-text">加载中...</text>
</view>
@ -64,8 +75,6 @@
<text class="empty-text">暂无订单数据</text>
</view>
</view>
<!-- <orderListByData :list="list" v-else /> -->
</view>
</view>
</template>
@ -86,8 +95,10 @@
import {
getLoginStatus
} from "@/utils/useMixin.js"
// import personOrder from "./components/personOrder.vue";
// import lossOrder from "./components/lossOrder.vue";
import {
getIsLogin,
getToken
} from "@/utils/auth";
import {
myList
} from "@/api/receivingHall/index.js"
@ -108,8 +119,10 @@
})
onShow(() => {
if (!getLoginStatus()) return;
getList();
checkLoginStatus();
if (isLogin.value) {
getList();
}
})
const current = ref(0)
@ -118,6 +131,7 @@
const dateOrderList = ref([])
const loading = ref(false) // loading
const requestId = ref(0) //
const isLogin = ref(false) //
const store = useStore();
const userInfo = computed(() => {
@ -158,7 +172,34 @@
},
])
//
const checkLoginStatus = () => {
if (getIsLogin() && getToken()) {
isLogin.value = true
} else {
isLogin.value = false
}
}
//
const goToLogin = () => {
uni.navigateTo({
url: "/pages/login/index"
})
}
//
const checkLoginAndRedirect = () => {
if (!isLogin.value) {
goToLogin()
return false
}
return true
}
function getList() {
if (!isLogin.value) return;
loading.value = true; //
requestId.value++; //
const currentRequestId = requestId.value; // ID
@ -231,39 +272,22 @@
loading.value = false; //
}
})
// getOrderDateList({
// status: index,
// userId: userInfo.value.userId
// })
// .then(res => {
// if (res.code == 200) {
// dateOrderList.value = res.data
// //
// let totalOrders = 0;
// dateOrderList.value.forEach(item => {
// totalOrders += item.num || 0;
// });
// tabList2[index].badge.value = totalOrders;
// }
// })
// .finally(() => {
// if(activeIndex.value == 2){
// loading.value = false; //
// }
// })
}
}
function clickTab(index) {
function handleClickTab(index) {
current.value = 0;
activeIndex.value = index;
getList();
if (checkLoginAndRedirect()) {
getList();
}
}
const classIfyClickTab = (item) => {
const handleClassifyClickTab = (item) => {
current.value = item.index;
getList();
if (checkLoginAndRedirect()) {
getList();
}
}
</script>
@ -302,4 +326,33 @@
font-size: 28rpx;
}
}
.login-tip-container {
display: flex;
align-items: center;
justify-content: center;
padding: 80rpx 40rpx;
.login-tip-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 60rpx;
border-radius: 20rpx;
.login-image {
margin-bottom: 30rpx;
}
.login-tip {
font-size: 28rpx;
color: #666;
margin-bottom: 30rpx;
}
.login-btn {
width: 240rpx;
}
}
}
</style>

+ 86
- 9
pages/orderTakingManage/index.vue View File

@ -9,12 +9,24 @@
}" :inactiveStyle="{
color: '#FFFFFF',
transform: 'scale(1)'
}" :itemStyle="{height:'88rpx',width : '33%'}" lineColor="#FFFFFF" @click="clickEvent"></up-tabs>
}" :itemStyle="{height:'88rpx',width : '33%'}" lineColor="#FFFFFF" @click="handleClickEvent"></up-tabs>
</view>
</up-sticky>
<view class="container">
<List :orderList="orderlist" :current="current" @update="updateList"></List>
<!-- 未登录提示 -->
<view v-if="!isLogin" class="login-tip-container">
<view class="login-tip-content">
<up-image class="login-image" width="120rpx" height="120rpx"
src="https://image.hhlm1688.com/img/work/log/headImage.png" shape="circle"></up-image>
<view class="login-tip">请先登录查看接单数据</view>
<up-button @click="goToLogin" type="primary" text="立即登录"
shape="circle" color="#FFBF60" class="login-btn"></up-button>
</view>
</view>
<!-- 已登录状态 -->
<List v-else :orderList="orderlist" :current="current" @update="updateList"></List>
</view>
</view>
</template>
@ -30,6 +42,10 @@
onShow
} from "@dcloudio/uni-app"
import { getLoginStatus } from "@/utils/useMixin.js"
import {
getIsLogin,
getToken
} from "@/utils/auth";
import {
orderList
} from "@/api/receivingHall/index.js"
@ -41,6 +57,7 @@ import dayjs from "dayjs";
import { getOrderServiceText, getProductNameText } from '@/utils/serviceTime.js'
const current = ref(0)
const isLogin = ref(false) //
const list = reactive([{
name: '系统派单',
badge: {
@ -67,12 +84,41 @@ import { getOrderServiceText, getProductNameText } from '@/utils/serviceTime.js'
const orderlist = ref([]);
onShow(() => {
if (!getLoginStatus()) return;
getOrderList();
checkLoginStatus();
if (isLogin.value) {
getOrderList();
}
})
//
const checkLoginStatus = () => {
if (getIsLogin() && getToken()) {
isLogin.value = true
} else {
isLogin.value = false
}
}
//
const goToLogin = () => {
uni.navigateTo({
url: "/pages/login/index"
})
}
//
const checkLoginAndRedirect = () => {
if (!isLogin.value) {
goToLogin()
return false
}
return true
}
//
const getOrderList = async () => {
if (!isLogin.value) return;
let response = await orderList({
type: current.value,
userIdJson: userInfo.value.userId,
@ -91,19 +137,50 @@ import { getOrderServiceText, getProductNameText } from '@/utils/serviceTime.js'
})
}
}
const clickEvent = (item) => {
const handleClickEvent = (item) => {
current.value = item.index;
getOrderList();
if (checkLoginAndRedirect()) {
getOrderList();
}
}
const updateList = () => {
getOrderList();
if (checkLoginAndRedirect()) {
getOrderList();
}
}
</script>
<style scoped lang="scss">
@import "index.scss";
.login-tip-container {
display: flex;
align-items: center;
justify-content: center;
padding: 80rpx 40rpx;
.login-tip-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 60rpx;
border-radius: 20rpx;
.login-image {
margin-bottom: 30rpx;
}
.login-tip {
font-size: 28rpx;
color: #666;
margin-bottom: 30rpx;
}
.login-btn {
width: 240rpx;
}
}
}
</style>

+ 190
- 166
pages/userManage/index.vue View File

@ -1,165 +1,158 @@
<template>
<view>
<view class="user-header">
<view class="flex flex-between login">
<view style="width: 120rpx;">
<up-image class="mr20" width="120rpx" height="120rpx" :src="userInfo.userImage"
shape="circle"></up-image>
</view>
<view style="width: calc(100% - 120rpx); padding-left: 20rpx;box-sizing: border-box;">
<view class="base-leavel">
<text>{{getIsLogin()?userInfo.userName:"欢迎来到版宠师"}}</text>
<view class="user-header">
<view class="flex flex-between login">
<view style="width: 120rpx;">
<up-image class="mr20" width="120rpx" height="120rpx" :src="userInfo.userImage || 'https://image.hhlm1688.com/img/work/log/headImage.png'"
shape="circle"></up-image>
</view>
<view>
<image v-if="petMaster" class="role-tag" :src="petMaster" mode="aspectFill"></image>
<image v-if="partnerMaster" class="role-tag" :src="partnerMaster" mode="aspectFill"></image>
<view style="width: calc(100% - 120rpx); padding-left: 20rpx;box-sizing: border-box;">
<view class="base-leavel">
<text>{{isLogin ? userInfo.userName : "欢迎来到版宠师"}}</text>
</view>
<view v-if="isLogin">
<image v-if="petMaster" class="role-tag" :src="petMaster" mode="aspectFill"></image>
<image v-if="partnerMaster" class="role-tag" :src="partnerMaster" mode="aspectFill"></image>
</view>
<!-- <view>
手机号:{{ userInfo?.userTelephone }}
</view> -->
</view>
<!-- <view>
手机号:{{ userInfo?.userTelephone }}
<!-- <view style="width: 140rpx">
<up-button v-else @click="logout" :customStyle="{borderColor:'#fff'}" type="primary" text="退出登录"
shape="circle" color="#FFBF60"></up-button>
</view> -->
</view>
<!-- <view style="width: 140rpx">
<up-button v-else @click="logout" :customStyle="{borderColor:'#fff'}" type="primary" text="退出登录"
shape="circle" color="#FFBF60"></up-button>
</view> -->
</view>
<view class="header-money">
<view class="header-money-list">
<view class="header-money-item flex flex-evenly">
<view style="text-align: center">
<view class="mb20 flex">
<!-- <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon4.png"
width="68rpx" height="68rpx"></up-image> -->
<up-image :show-loading="true" src="/static/images/user/a2.png"
style="margin-right: 14rpx;"
width="50rpx" height="50rpx"></up-image>
服务酬劳
<view class="header-money">
<view class="header-money-list">
<view class="header-money-item flex flex-evenly">
<view style="text-align: center">
<view class="mb20 flex">
<!-- <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon4.png"
width="68rpx" height="68rpx"></up-image> -->
<up-image :show-loading="true" src="/static/images/user/a2.png"
style="margin-right: 14rpx;"
width="50rpx" height="50rpx"></up-image>
服务酬劳
</view>
<view class="mb20">{{ isLogin ? userInfo.price || '0' : '--' }}</view>
<view class="flex flex-between but">
<view @click="handleWithdraw">提现</view>
<view>|</view>
<view @click="handleRunningWater">明细</view>
</view>
</view>
<view class="mb20">{{ userInfo.price }}</view>
<view class="flex flex-between but">
<view @click="toWithdrawDeposit">提现</view>
<view>|</view>
<view @click="toRunningWater">明细</view>
</view>
</view>
<view style="text-align: center">
<view class="mb20 flex">
<!-- <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon4.png"
width="68rpx" height="68rpx"></up-image> -->
<view style="text-align: center">
<view class="mb20 flex">
<!-- <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon4.png"
width="68rpx" height="68rpx"></up-image> -->
<up-image :show-loading="true" src="/static/images/user/a1.png"
style="margin-right: 14rpx;"
width="50rpx" height="50rpx"></up-image>
<up-image :show-loading="true" src="/static/images/user/a1.png"
style="margin-right: 14rpx;"
width="50rpx" height="50rpx"></up-image>
保证金
保证金
</view>
<view class="mb20">{{ isLogin ? userInfo.baoPrice || '0' : '--' }}</view>
<view @click="handleBail" class="but">保证金中心</view>
</view>
<view class="mb20">{{ userInfo.baoPrice }}</view>
<view @click="toBail" class="but">保证金中心</view>
</view>
</view>
</view>
</view>
</view>
<view class="user-container">
<view class="bgf pd4 radius20 mb28">
<view class="mb28 flex flex-between">
<view class="font36">我的爱宠</view>
<view @click="toMyPet" style="color: #707070">更多 ></view>
</view>
<view>
<!-- <up-button v-if="getIsLogin()" class="mb20" size="large" style="width: 500rpx" type="primary"
text="请添加您的爱宠" shape="circle"
color="linear-gradient(to right, rgb(255 ,191 ,96 ,1), rgb(255, 51, 186))"></up-button> -->
<view class="user-container">
<view class="bgf pd4 radius20 mb28">
<view class="mb28 flex flex-between">
<view class="font36">我的爱宠</view>
<view @click="handleMyPet" style="color: #707070">更多 ></view>
</view>
<view>
<view v-if="isLogin && petList.length">
<scroll-view scroll-x class="pet-scroll-container" show-scrollbar="false">
<view class="pet-scroll-content">
<view class="cw-box radius20 pd20 flex pet-item"
v-for="(pet, inde) in petList"
@click="handleEditPet(pet)"
:key="pet.id">
<up-image class="mr20" width="120rpx" style="flex-shrink: 0" height="120rpx"
:src="pet?.headImage" shape="circle"></up-image>
<view style="width: 280rpx">
<view class="font32 mb20 pet-name-container">
{{ pet.nickName }}
<text class="pet-gender" :class="{'pet-gender-male': pet.sex === 0, 'pet-gender-female': pet.sex === 1}">
{{ pet.sex === 0 ? '♂' : '♀' }}
</text>
</view>
<view class="font24 ellipsis">{{ pet.type }} | {{ pet.age }}</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view v-if="isLogin && petList.length">
<scroll-view scroll-x class="pet-scroll-container" show-scrollbar="false">
<view class="pet-scroll-content">
<view class="cw-box radius20 pd20 flex pet-item"
v-for="(pet, inde) in petList"
@click="editPet(pet)"
:key="pet.id">
<up-image class="mr20" width="120rpx" style="flex-shrink: 0" height="120rpx"
:src="pet?.headImage" shape="circle"></up-image>
<view style="width: 280rpx">
<view class="font32 mb20 pet-name-container">
{{ pet.nickName }}
<text class="pet-gender" :class="{'pet-gender-male': pet.sex === 0, 'pet-gender-female': pet.sex === 1}">
{{ pet.sex === 0 ? '♂' : '♀' }}
</text>
</view>
<view class="font24 ellipsis">{{ pet.type }} | {{ pet.age }}</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="no-pet-tip radius20 pd20 flex" v-else>
<up-image class="mr20" width="80rpx" height="80rpx" src="https://image.hhlm1688.com/img/work/log/headImage.png" shape="circle"></up-image>
<view class="no-pet-text">您还没有添加您的爱宠信息呢</view>
<view class="add-pet-btn" @click="toMyPet">去添加</view>
<view class="no-pet-tip radius20 pd20 flex" v-else>
<up-image class="mr20" width="80rpx" height="80rpx" src="https://image.hhlm1688.com/img/work/log/headImage.png" shape="circle"></up-image>
<view class="no-pet-text">{{isLogin ? '您还没有添加您的爱宠信息呢' : '登录后查看您的爱宠'}}</view>
<view class="add-pet-btn" @click="handleMyPet">{{isLogin ? '去添加' : '去登录'}}</view>
</view>
</view>
</view>
</view>
<view class="bgf pd40 radius20">
<view class="font36 mb28">服务中心</view>
<view class="flex flex-between font28 flex-wrap">
<view class="icon-list" @click="toNext">
<!-- <up-image class="mb20" src="https://cdn.catmdogd.com/Work/image/work/icon1.png" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/1.png" width="58rpx"
height="58rpx"></up-image>
<view>我的评价</view>
</view>
<view @click="platformProtocol" class="icon-list">
<!-- <up-image class="mb20" :show-loading="true"
src="https://cdn.catmdogd.com/Work/image/work/icon2.png" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/2.png" width="58rpx"
height="58rpx"></up-image>
<view>平台协议</view>
</view>
<button plain class="btn-share" open-type="contact">
<view class="icon-list">
<!-- <up-image class="mb20" :show-loading="true"
src="https://cdn.catmdogd.com/Work/image/work/icon3.png" width="68rpx"
<view class="bgf pd40 radius20">
<view class="font36 mb28">服务中心</view>
<view class="flex flex-between font28 flex-wrap">
<view class="icon-list" @click="handleEvaluate">
<!-- <up-image class="mb20" src="https://cdn.catmdogd.com/Work/image/work/icon1.png" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/4.png" width="58rpx"
<up-image class="mb20" src="/static/images/user/1.png" width="58rpx"
height="58rpx"></up-image>
<view>联系客服</view>
</view>
</button>
<button plain class="btn-share" open-type="share">
<view class="icon-list">
<view>我的评价</view>
</view>
<view @click="platformProtocol" class="icon-list">
<!-- <up-image class="mb20" :show-loading="true"
src="https://t9.baidu.com/it/u=2834693008,3232051400&fm=193" width="68rpx"
src="https://cdn.catmdogd.com/Work/image/work/icon2.png" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/5.png" width="58rpx"
<up-image class="mb20" src="/static/images/user/2.png" width="58rpx"
height="58rpx"></up-image>
<view>分享好友</view>
<view>平台协议</view>
</view>
</button>
</view>
<!-- <view class="flex flex-between font28 flex-wrap mt20">
<view class="icon-list" @click="logout">
<up-image class="mb20"
src="https://cdn.catmdogd.com/2025/04/01ab556ca51d2a4f82896c1e6fd0034a8b7shDr3f7qeDQ527d93075294e7237cee8b6c7d613be8.png"
width="68rpx" height="68rpx" bgColor="#ffffff"></up-image>
<view>退出登录</view>
<button plain class="btn-share" open-type="contact">
<view class="icon-list">
<!-- <up-image class="mb20" :show-loading="true"
src="https://cdn.catmdogd.com/Work/image/work/icon3.png" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/4.png" width="58rpx"
height="58rpx"></up-image>
<view>联系客服</view>
</view>
</button>
<button plain class="btn-share" open-type="share">
<view class="icon-list">
<!-- <up-image class="mb20" :show-loading="true"
src="https://t9.baidu.com/it/u=2834693008,3232051400&fm=193" width="68rpx"
height="68rpx"></up-image> -->
<up-image class="mb20" src="/static/images/user/5.png" width="58rpx"
height="58rpx"></up-image>
<view>分享好友</view>
</view>
</button>
</view>
</view> -->
<!-- <view class="flex flex-between font28 flex-wrap mt20">
<view class="icon-list" @click="logout">
<up-image class="mb20"
src="https://cdn.catmdogd.com/2025/04/01ab556ca51d2a4f82896c1e6fd0034a8b7shDr3f7qeDQ527d93075294e7237cee8b6c7d613be8.png"
width="68rpx" height="68rpx" bgColor="#ffffff"></up-image>
<view>退出登录</view>
</view>
</view> -->
</view>
</view>
</view>
</view>
<up-popup :show="show" @close="close" :round="10">
@ -202,8 +195,10 @@
} from "@/api/pet/index.js"
onShow(() => {
if (!getLoginStatus()) return;
getPet();
checkLoginStatus();
if (isLogin.value) {
getPet();
}
})
onMounted(() => {
@ -240,6 +235,7 @@
//
const petMaster = computed(() => {
if (!isLogin.value) return ''
const { userBcs, userBcsRole } = userInfo.value
if (!userBcs) {
@ -252,6 +248,7 @@
})
//
const partnerMaster = computed(() => {
if (!isLogin.value) return ''
const { userHh } = userInfo.value
if (!userHh) {
@ -263,24 +260,69 @@
return configList.value?.[key]?.paramValueImage
})
if (getIsLogin() && getToken()) {
userInfo.value = getStorage("userInfo")
isLogin.value = true
//
const checkLoginStatus = () => {
if (getIsLogin() && getToken()) {
isLogin.value = true
} else {
isLogin.value = false
}
}
const toNext = () => {
//
const checkLoginAndRedirect = () => {
if (!isLogin.value) {
uni.navigateTo({
url: "/pages/login/index"
})
return false
}
return true
}
//
const handleEvaluate = () => {
if (!checkLoginAndRedirect()) return
uni.navigateTo({
url: "/otherPages/orderTakingManage/evaluate/index"
})
}
const toRunningWater = () => {
//
const handleRunningWater = () => {
if (!checkLoginAndRedirect()) return
uni.navigateTo({
url: "/otherPages/myOrdersManage/transaction/index"
})
}
const editPet = (item) => {
//
const handleWithdraw = () => {
if (!checkLoginAndRedirect()) return
uni.navigateTo({
url: "/otherPages/binding/withdrawal/index"
})
}
//
const handleBail = () => {
if (!checkLoginAndRedirect()) return
uni.navigateTo({
url: "/otherPages/myOrdersManage/bond/index"
})
}
//
const handleMyPet = () => {
if (!checkLoginAndRedirect()) return
uni.navigateTo({
url: '/otherPages/userManage/pet/index'
});
}
//
const handleEditPet = (item) => {
if (!checkLoginAndRedirect()) return
if (item.petType === '猫咪' || item.petType === 0) {
uni.navigateTo({
url: `/otherPages/userManage/pet/petInfo?petType=0&optionType=edit&petId=${item.id}`
@ -294,6 +336,8 @@
};
const getPet = async () => {
if (!isLogin.value) return;
let response = await getpetList({
userId: userInfo.value.userId
});
@ -304,28 +348,6 @@
modal.value.open();
}
//
const toWithdrawDeposit = () => {
uni.navigateTo({
url: "/otherPages/binding/withdrawal/index"
// url: "/otherPages/myOrdersManage/withdrawal/index"
})
}
//
const toBail = () => {
uni.navigateTo({
url: "/otherPages/myOrdersManage/bond/index"
})
}
//
const toMyPet = () => {
uni.navigateTo({
url: '/otherPages/userManage/pet/index'
});
}
const close = () => {
show.value = false;
}
@ -348,6 +370,8 @@
// 退
}
</script>
<style scoped lang="scss">
@import "index";


+ 2
- 2
utils/getUrl.js View File

@ -1,6 +1,6 @@
let current = "trial";
let current = "release";
const accountInfo = wx.getAccountInfoSync();
current = accountInfo.miniProgram.envVersion;
// current = accountInfo.miniProgram.envVersion;
const api = {
develop:"http://127.0.0.1:8002",


Loading…
Cancel
Save