提交代码

This commit is contained in:
有果 2026-03-26 16:25:05 +08:00
parent 2a180c72db
commit c4629781da
4 changed files with 172 additions and 129 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="popup"> <view class="popup">
<uv-popup ref="popup" customStyle="width: 688rpx; height: auto; padding:32rpx;" round="16rpx" <uv-popup ref="popup" customStyle="width: 620rpx; height: auto; padding:32rpx;" round="16rpx"
:closeOnClickOverlay="false" :safeAreaInsetBottom="false"> :closeOnClickOverlay="false" :safeAreaInsetBottom="false">
<view class="modal-container"> <view class="modal-container">
@ -34,7 +34,7 @@
lineHeight: '86rpx', lineHeight: '86rpx',
color: '#fff', color: '#fff',
fontSize: '32rpx', fontSize: '32rpx',
}" shape="circle" @click="confirm"> }" color="#FB322E" shape="circle" @click="confirm">
{{ props.confirmText || $t('common.confirm') }} {{ props.confirmText || $t('common.confirm') }}
</uv-button> </uv-button>
<!-- <view <!-- <view

View File

@ -188,7 +188,7 @@
"detail.total": "总共费用", "detail.total": "总共费用",
"detail.next": "下一步", "detail.next": "下一步",
"detail.read": "我已经阅读并同意 ", "detail.read": "我已经阅读并同意 ",
"detail.agreement": "订仓协议", "detail.agreement": "订仓协议",
"detail.agreeTip": "请阅读并同意《订仓协议》", "detail.agreeTip": "请阅读并同意《订仓协议》",
"detail.orderNum": "订单序号", "detail.orderNum": "订单序号",
"detail.type": "仓库", "detail.type": "仓库",

View File

@ -64,10 +64,10 @@
<view class="font32 fontb name"> <view class="font32 fontb name">
{{ unitTypeData[state.active].name }} {{ unitTypeData[state.active].name }}
</view> </view>
<view class="font26 fontb textGary" style="padding: 0 28rpx;"> <view class="font26 fontb textGary" style="padding: 0 28rpx;padding-right: 0;">
{{ unitTypeData[state.active].volumeRange }} {{ unitTypeData[state.active].volumeRange }}
</view> </view>
<view class="font26 fontb textGary">{{ unitTypeData[state.active].description }}</view> <view class="font26 fontb textGary">({{ unitTypeData[state.active].description }})</view>
</view> </view>
</view> </view>
<view class="orderInfo sflist card" v-if="unitTypeData.length"> <view class="orderInfo sflist card" v-if="unitTypeData.length">
@ -182,7 +182,7 @@
</uv-radio> </uv-radio>
</view> </view>
<view class="price mgb10"> <view class="price mgb10">
<text class="font28 textGary fontb" style="text-decoration: line-through #000;padding-right: 20rpx;"> {{ <text class="font28 textGary fontb" style="text-decoration: line-through;text-decoration-color: rgb(0, 0, 0);padding-right: 20rpx;"> {{
item.price item.price
}}/</text> }}/</text>
<text class="font28 fontb" style="color: #D2021B;"> {{ item.currentPrice }}/</text> <text class="font28 fontb" style="color: #D2021B;"> {{ item.currentPrice }}/</text>
@ -371,13 +371,17 @@
:text="$t('common.loading')"></uv-loading-icon> :text="$t('common.loading')"></uv-loading-icon>
</view> </view>
</scroll-view> </scroll-view>
<view class="roll-btn" @click="handleRoll"> <!-- <view class="roll-btn" @click="handleRoll">
<uv-icon name="arrow-down" size="24" color="#FFFFFF"></uv-icon> <uv-icon name="arrow-down" size="24" color="#FFFFFF"></uv-icon>
</view> </view> -->
<view class="bottom-read agree" v-if="state.isRead" @click="handleAgree">{{ $t("detail.agreeTerm") }}</view> <view class="bottom-read agree" v-if="state.isRead" @click="handleAgree">{{ $t("detail.agreeTerm") }}</view>
<view class="bottom-read" v-else>{{ $t("detail.scrollRead") }}</view> <view class="bottom-read" v-else>{{ $t("detail.scrollRead") }}</view>
</view> </view>
</uv-popup> </uv-popup>
<myModal v-model="state.showhasOrderModal" :content="$t('common.cantUselocker')" :cancelShow="false"></myModal>
<myModal v-model="state.showhasunpaidOrderModal" :content="$t('common.unpaidOrderTips')" @confirm="unpaidOrder" :cancelShow="false"></myModal>
</view> </view>
</template> </template>
@ -385,8 +389,8 @@
import { ref, computed, nextTick, watch } from "vue"; import { ref, computed, nextTick, watch } from "vue";
import { onTabItemTap, getDistance, makePhoneCall, mergeFiveGoatStores, parseUrlParams } from "/utils/common.js"; import { onTabItemTap, getDistance, makePhoneCall, mergeFiveGoatStores, parseUrlParams } from "/utils/common.js";
import myCustomtTabBar from "@/components/myCustomtTabBar.vue"; import myCustomtTabBar from "@/components/myCustomtTabBar.vue";
import wxNavbar from "@/components/wxNavbar.vue"; // import wxNavbar from "@/components/wxNavbar.vue";
import siteDetail from '@/components/siteDetail.vue'; // import siteDetail from '@/components/siteDetail.vue';
import { onLoad, onShow, onShareAppMessage, onUnload } from "@dcloudio/uni-app"; import { onLoad, onShow, onShareAppMessage, onUnload } from "@dcloudio/uni-app";
import { baseImageUrl, projectInfo, isKingKong, setOrderDays } from "@/config/index.js"; import { baseImageUrl, projectInfo, isKingKong, setOrderDays } from "@/config/index.js";
import { useLoginApi } from "/Apis/home.js"; import { useLoginApi } from "/Apis/home.js";
@ -395,6 +399,7 @@ import { navigateTo } from '@/utils/navigateTo';
// //
import { useMainStore } from "@/store/index.js"; import { useMainStore } from "@/store/index.js";
import { navbarHeightAndStatusBarHeight, shareParam } from "@/utils/common.js"; import { navbarHeightAndStatusBarHeight, shareParam } from "@/utils/common.js";
import myModal from "@/components/myModal.vue";
import { couponApi } from "@/Apis/coupon.js"; import { couponApi } from "@/Apis/coupon.js";
import { useLocation } from "@/hooks/useLocation"; import { useLocation } from "@/hooks/useLocation";
import { useLoginApi as useLoginApi2 } from "@/Apis/login"; import { useLoginApi as useLoginApi2 } from "@/Apis/login";
@ -459,6 +464,8 @@ const state = ref({
zhuangxiuzhong: false, zhuangxiuzhong: false,
priceData: {}, priceData: {},
hasVerify: false, hasVerify: false,
showhasOrderModal:false,
showhasunpaidOrderModal:false,
}); });
const goOrder = async () => { const goOrder = async () => {
@ -559,11 +566,12 @@ const goOrder = async () => {
} else { } else {
if(res.code === 206){ if(res.code === 206){
reset(); reset();
uni.showToast({ // uni.showToast({
title: '仓位已出租,请重新选择其他仓位!', // title: '',
icon: 'none', // icon: 'none',
duration: 5000 // duration: 5000
}) // })
state.value.showhasOrderModal = true;
// uni.showModal({ // uni.showModal({
// title: t('common.title'), // title: t('common.title'),
@ -575,21 +583,18 @@ const goOrder = async () => {
// }) // })
} }
if (res.code === 1001) { if (res.code === 1001) {
uni.showToast({ state.value.showhasunpaidOrderModal = true;
title: t('common.unpaidOrderTips'),
icon: 'none',
duration: 5000
})
setTimeout(() => {
uni.switchTab({
url: '/pages/unlock/index?type=unpaid',
})
},3000)
return return
} }
} }
}); });
} }
const unpaidOrder = async () => {
getApp().globalData.tabParams = { type: 'unpaid' }
uni.switchTab({
url: '/pages/unlock/index',
})
}
const reset = () => { const reset = () => {
state.value.lockerId = null; state.value.lockerId = null;
state.value.priceData = {}; state.value.priceData = {};
@ -774,6 +779,7 @@ const goSite = () => {
}); });
}; };
const goUnlock = () => { const goUnlock = () => {
getApp().globalData.tabParams = { type: 'paid' }
uni.navigateTo({ uni.navigateTo({
url: "/pages/unlock/index", url: "/pages/unlock/index",
}); });
@ -787,7 +793,7 @@ const getLockerBySiteId = () => {
mask: true mask: true
}) })
getSiteApi getSiteApi
.GetLockerBySiteId({ siteId: state.value.siteId, unitTypeId: state.value.unitTypeId }) .GetLockerBySiteId({ siteId: state.value.siteId, unitTypeId: state.value.unitTypeId,month: state.value.month })
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
LockerList.value = res.data; LockerList.value = res.data;
@ -924,22 +930,24 @@ const getLockerById = () => {
// res.data == null isPlaceOrder // res.data == null isPlaceOrder
if (!res.data || !res.data?.isPlaceOrder) { if (!res.data || !res.data?.isPlaceOrder) {
// onshow // onshow
uni.showModal({ state.value.showhasOrderModal = true
title: t("common.title"),
content: t("common.cantUselocker"),
showCancel: false,
success: function () {
reset(); reset();
}, // uni.showModal({
}); // title: t("common.title"),
// content: t("common.cantUselocker"),
// showCancel: false,
// success: function () {
// reset();
// },
// });
uni.hideLoading(); uni.hideLoading();
return; return;
} }
getLockerExpense(); getLockerExpense();
} else { } else {
uni.reLaunch({ // uni.reLaunch({
url: "/pages/index/index", // url: "/pages/index/index",
}); // });
} }
}).finally(() => { }).finally(() => {
uni.hideLoading(); uni.hideLoading();
@ -1252,12 +1260,13 @@ function changeMove(event) {
.agreement-top { .agreement-top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 20rpx 30rpx; padding: 20rpx 0rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size:36rpx; font-size:36rpx;
font-weight: 600; font-weight: 600;
.name { .name {
font-size: 32rpx; font-size: 40rpx;
font-weight: 600;
} }
} }
@ -1302,10 +1311,13 @@ function changeMove(event) {
.check-wrap { .check-wrap {
pointer-events: none; pointer-events: none;
margin-right: 10rpx; margin-right: 8rpx;
:deep(.uv-radio-group){ :deep(.uv-radio-group){
flex-direction: column-reverse; flex-direction: column-reverse;
} }
:deep(.uv-radio__label-wrap){
display: none;
}
// min-width: 40rpx; // min-width: 40rpx;
// height: 40rpx; // height: 40rpx;
// border: 6rpx solid #242a37; // border: 6rpx solid #242a37;
@ -1336,7 +1348,10 @@ function changeMove(event) {
.check-wrap { .check-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 10rpx; margin-right: 8rpx;
:deep(.uv-radio__label-wrap){
display: none;
}
// :deep(.uv-radio){ // :deep(.uv-radio){
// zoom: 1.0; // zoom: 1.0;
// } // }

View File

@ -1,7 +1,8 @@
<template> <template>
<view class="container" :class="[`${themeInfo.theme}-theme`]"> <view class="container" :class="[`${themeInfo.theme}-theme`]">
<view class="header"> <view class="header">
<uv-tabs @change="handleChange" :current="state.current" lineWidth="80rpx" lineHeight="10rpx" lineColor="#f56c6c" :scrollable="false" :list="list"> <uv-tabs @change="handleChange" :current="state.current" lineWidth="80rpx" lineHeight="10rpx"
lineColor="#f56c6c" :scrollable="false" :list="list">
</uv-tabs> </uv-tabs>
</view> </view>
<view class="content"> <view class="content">
@ -64,11 +65,9 @@
</view> </view>
</view> </view>
<view class="btn" v-show="[0, 3, 4].includes(item.refundLockerStatus)" v-if="item.orderStatus !== 2"> <view class="btn" v-show="[0, 3, 4].includes(item.refundLockerStatus)" v-if="item.orderStatus !== 2">
<uv-button <uv-button :disabled="!(item.orderStartStatus == 2 && item.orderStatus !== 5 && item.isOpenDoor)"
:disabled="!(item.orderStartStatus == 2 && item.orderStatus !== 5 && item.isOpenDoor)"
shape="circle" @click="openDevicePopup(item)">开门</uv-button> shape="circle" @click="openDevicePopup(item)">开门</uv-button>
<uv-button <uv-button :disabled="!(item.orderStartStatus == 2 && item.orderStatus !== 5 && item.isOpenLock)"
:disabled="!(item.orderStartStatus == 2 && item.orderStatus !== 5 && item.isOpenLock)"
shape="circle" @click="openPwdPopup(item)">开锁</uv-button> shape="circle" @click="openPwdPopup(item)">开锁</uv-button>
<uv-button v-show="item.orderStartStatus == 2 || item.orderStartStatus == 1" <uv-button v-show="item.orderStartStatus == 2 || item.orderStartStatus == 1"
:style="{ opacity: item.renewal ? '1' : '0.5' }" @click="showPayPopup(item)" :style="{ opacity: item.renewal ? '1' : '0.5' }" @click="showPayPopup(item)"
@ -82,7 +81,6 @@
<!-- 退仓申请中 --> <!-- 退仓申请中 -->
<view class="btn" v-show="item.refundLockerStatus === 1"> <view class="btn" v-show="item.refundLockerStatus === 1">
<uv-button :customStyle="{ <uv-button :customStyle="{
color: '#fff',
}" color="#FB322E" plain shape="circle" @click="cancelMoveOutRqt(item)">取消退仓申请</uv-button> }" color="#FB322E" plain shape="circle" @click="cancelMoveOutRqt(item)">取消退仓申请</uv-button>
<uv-button shape="circle" @click="openDetailPopup(item)">{{ $t("unlock.details") }}</uv-button> <uv-button shape="circle" @click="openDetailPopup(item)">{{ $t("unlock.details") }}</uv-button>
</view> </view>
@ -113,7 +111,8 @@
<view class="orderList"> <view class="orderList">
<view class="orderInfo"> <view class="orderInfo">
<image class="close-icon" src="/static/home/close.svg" @click="closeDetailPopup"></image> <image class="close-icon" src="/static/home/close.svg" @click="closeDetailPopup"></image>
<view class="orderOn">订单号{{ state.orderData.orderNo }} <uv-button shape="circle" @click="copyOrderOn(state.orderData)">复制</uv-button> </view> <view class="orderOn">订单号{{ state.orderData.orderNo }} <uv-button shape="circle"
@click="copyOrderOn(state.orderData)">复制</uv-button> </view>
<view class="box1"> <view class="box1">
<!-- 顶部左中右布局 --> <!-- 顶部左中右布局 -->
<view class="top"> <view class="top">
@ -182,12 +181,15 @@
</view> </view>
<view class="item"> <view class="item">
<view class="label font26 fontb textGary">租金月费: </view> <view class="label font26 fontb textGary">租金月费: </view>
<view class="value font26 fontb">{{ currency }} {{ state.orderData.discountData?.[0]?.unitPrice }} <view class="value font26 fontb">{{ currency }} {{
state.orderData.discountData?.[0]?.unitPrice
}}
</view> </view>
</view> </view>
<view class="item"> <view class="item">
<view class="label font26 fontb textGary">租期优惠: </view> <view class="label font26 fontb textGary">租期优惠: </view>
<view class="value font26 fontb"> {{ state.orderData.discountData?.[0]?.month }}个月长租-{{ currency }} {{ state.orderData.discountData?.[0]?.leaseDiscount }} <view class="value font26 fontb"> {{ state.orderData.discountData?.[0]?.month }}个月长租-{{
currency }} {{ state.orderData.discountData?.[0]?.leaseDiscount }}
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@ -249,7 +251,9 @@
</view> </view>
<view class="content"> <view class="content">
<text class="font26 textRed fontb" style="font-size: 60rpx;">{{ lockPwd }}#</text> <text class="font26 textRed fontb" style="font-size: 60rpx;">{{ lockPwd }}#</text>
<text class="textGray font26">输入密码即可开锁{{ [3, 7].includes(Number(state.selectItem?.lockTypeId)) ? "或一键开锁" : "" }}</text> <text class="textGray font26">输入密码即可开锁{{ [3, 7].includes(Number(state.selectItem?.lockTypeId)) ?
"或一键开锁" :
"" }}</text>
</view> </view>
<view class="btnBox"> <view class="btnBox">
<uv-button @click="closePwdPopup" :customStyle="{ <uv-button @click="closePwdPopup" :customStyle="{
@ -260,7 +264,8 @@
取消 取消
</uv-button> </uv-button>
<uv-button v-if="[3, 7].includes(Number(state.selectItem?.lockTypeId))" @click="RemoteOpen" :customStyle="{ <uv-button v-if="[3, 7].includes(Number(state.selectItem?.lockTypeId))" @click="RemoteOpen"
:customStyle="{
height: '86rpx', height: '86rpx',
background: '#FB322E', background: '#FB322E',
color: '#fff', color: '#fff',
@ -309,7 +314,8 @@
仓号{{ state.lockData?.name }} 仓号{{ state.lockData?.name }}
</view> </view>
<view> <view>
尺寸{{ state.lockData?.['length'] }}m*{{ state.lockData?.width }}m*{{ state.lockData?.height }}m 尺寸{{ state.lockData?.['length'] }}m*{{ state.lockData?.width }}m*{{ state.lockData?.height
}}m
</view> </view>
</view> </view>
<view class="title2 font32 fontb"> <view class="title2 font32 fontb">
@ -331,13 +337,20 @@
<text>优惠信息</text> <text style="color: #FB322E;">- {{ state.priceData.favorable }}</text> <text>优惠信息</text> <text style="color: #FB322E;">- {{ state.priceData.favorable }}</text>
</view> </view>
<view class="title2 textGary2 fontb font28"> <view class="title2 textGary2 fontb font28">
<text>租期优惠{{state.month}}个月长租</text><text style="color: #FB322E;">- {{ state.priceData.leaseDiscount }}</text> <text>租期优惠{{ state.month }}个月长租</text><text style="color: #FB322E;">- {{
state.priceData.leaseDiscount
}}</text>
</view> </view>
<view class="toOrder card font28"> <view class="toOrder card font28">
<view class="left font28"> <view class="left font28">
<text class="price fontb" :class="{ overMaxFont: String(state.priceData?.expense).length>6 }"> {{ state.priceData.expense ? `${state.priceData.expense}` <text class="price fontb" :class="{ overMaxFont: String(state.priceData?.expense).length > 6 }">
:'--'}}</text> {{
<view class="detail" v-if="state.priceData.expense" @click="hidePayPopup"><text style="margin-right: 10rpx;font-weight: 600;" :class="{ overMaxFont: String(state.priceData?.expense).length>6 }" v-if="state.priceData?.expense">{{ state.priceData.leaseOriginalPrice }}</text> state.priceData.expense ? `${state.priceData.expense}`
: '--' }}</text>
<view class="detail" v-if="state.priceData.expense" @click="hidePayPopup"><text
style="margin-right: 10rpx;font-weight: 600;"
:class="{ overMaxFont: String(state.priceData?.expense).length > 6 }"
v-if="state.priceData?.expense">{{ state.priceData.leaseOriginalPrice }}</text>
<!-- <text <!-- <text
class="font28">明细</text> --> class="font28">明细</text> -->
<!-- <image src="/static/home/jiantouup.svg" style="height: 12rpx;margin-left: 10rpx;" <!-- <image src="/static/home/jiantouup.svg" style="height: 12rpx;margin-left: 10rpx;"
@ -446,8 +459,8 @@
</uv-popup> </uv-popup>
<!-- 上传图片退仓的弹窗 --> <!-- 上传图片退仓的弹窗 -->
<uv-popup ref="moveOutPopup" customStyle="width: 710rpx; border-radius: 24px;" :safeAreaInsetBottom="false" :closeOnClickOverlay="false" <uv-popup ref="moveOutPopup" customStyle="width: 710rpx; border-radius: 24px;" :safeAreaInsetBottom="false"
zIndex="9999"> :closeOnClickOverlay="false" zIndex="9999">
<view class="modal-container"> <view class="modal-container">
<view class="modal-title">{{ $t("unlock.moveoutReminder") }}</view> <view class="modal-title">{{ $t("unlock.moveoutReminder") }}</view>
<text class="modal-text"> <text class="modal-text">
@ -482,8 +495,8 @@
</view> </view>
</uv-popup> </uv-popup>
<!-- 成功退仓弹窗 --> <!-- 成功退仓弹窗 -->
<uv-popup ref="moveOutPopup2" customStyle="width: 710rpx; border-radius: 24rpx;" :safeAreaInsetBottom="false" :closeOnClickOverlay="false" <uv-popup ref="moveOutPopup2" customStyle="width: 710rpx; border-radius: 24rpx;" :safeAreaInsetBottom="false"
zIndex="9999"> :closeOnClickOverlay="false" zIndex="9999">
<view class="modal-container"> <view class="modal-container">
<view class="modal-title">{{ $t("unlock.moveoutReminder") }}</view> <view class="modal-title">{{ $t("unlock.moveoutReminder") }}</view>
<text class="modal-text"> <text class="modal-text">
@ -502,8 +515,8 @@
</view> </view>
</view> </view>
</uv-popup> </uv-popup>
<uv-popup ref="cancelOrderPopupRef" customStyle="width: 710rpx; border-radius: 24rpx;" :safeAreaInsetBottom="false" :closeOnClickOverlay="false" <uv-popup ref="cancelOrderPopupRef" customStyle="width: 710rpx; border-radius: 24rpx;"
zIndex="9999"> :safeAreaInsetBottom="false" :closeOnClickOverlay="false" zIndex="9999">
<view class="modal-container"> <view class="modal-container">
<view class="modal-title">{{ $t("common.cancelOrder") }}</view> <view class="modal-title">{{ $t("common.cancelOrder") }}</view>
<text class="modal-text"> <text class="modal-text">
@ -586,8 +599,8 @@ const state = ref({
month: 24, month: 24,
selfMonth: 1, selfMonth: 1,
refundLoading: false, refundLoading: false,
current:0, current: 0,
cancelOrderList:[], cancelOrderList: [],
}); });
const list = [{ const list = [{
name: '在租', name: '在租',
@ -633,7 +646,7 @@ const showImage = (url) => {
const handleChange = (e) => { const handleChange = (e) => {
state.value.current = e.index state.value.current = e.index
GetOrderList() GetOrderList()
if(state.value.current == 1){ if (state.value.current == 1) {
GetCancelOrder() GetCancelOrder()
} }
} }
@ -658,7 +671,7 @@ const handlePay = (item) => {
let source = window.sf.isSfApp() ? 2 : 1; let source = window.sf.isSfApp() ? 2 : 1;
getApi getApi
.ContinueOrderPay({ .ContinueOrderPay({
orderId:item.orderId, orderId: item.orderId,
source source
}) })
.then((res) => { .then((res) => {
@ -1057,22 +1070,22 @@ const cancelMoveOutRqt = (item) => {
// //
function RemoteOpen() { function RemoteOpen() {
uni.showLoading({mask:true}) uni.showLoading({ mask: true })
getLockApi.RemoteOpen({ lockMac: state.value.selectItem.lockMac,input: '',siteId:state.value.selectItem.siteId }).then(res => { getLockApi.RemoteOpen({ lockMac: state.value.selectItem.lockMac, input: '', siteId: state.value.selectItem.siteId }).then(res => {
state.tryPWDCount++ state.tryPWDCount++
if(res.data.isSuccess) { if (res.data.isSuccess) {
uni.showToast({ uni.showToast({
title:t('door.UnlockSuccessful'), title: t('door.UnlockSuccessful'),
duration:3000, duration: 3000,
icon:'none' icon: 'none'
}) })
uni.hideLoading() uni.hideLoading()
} else { } else {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title:res.data.message, title: res.data.message,
duration:3000, duration: 3000,
icon:'none' icon: 'none'
}) })
} }
@ -1158,9 +1171,6 @@ onShareAppMessage((res) => {
onLoad((params) => { onLoad((params) => {
// GetOrderList()unpaid // GetOrderList()unpaid
if (params?.type == "unpaid") {
state.value.current = 2
}
}) })
onHide(() => { onHide(() => {
@ -1181,9 +1191,22 @@ const token = ref(uni.getStorageSync('token'))
onShow(() => { onShow(() => {
uni.hideTabBar() uni.hideTabBar()
token.value = uni.getStorageSync('token') token.value = uni.getStorageSync('token')
const app = getApp()
const type = app.globalData?.tabParams?.type
if (type === "unpaid") {
state.value.current = 2
} else if (type === "paid") {
state.value.current = 0
}
if (type) {
app.globalData.tabParams = {}
}
onShowRerequestByIsLogin(() => { onShowRerequestByIsLogin(() => {
GetOrderList(); GetOrderList();
if(state.value.current === 2){ if (state.value.current === 2) {
GetCancelOrder() GetCancelOrder()
} }
}, (err) => { }, (err) => {
@ -1338,8 +1361,9 @@ onShow(() => {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 38rpx; font-size: 38rpx;
.price { .price {
&.overMaxFont{ &.overMaxFont {
font-size: 32rpx; font-size: 32rpx;
} }
} }
@ -1350,9 +1374,11 @@ onShow(() => {
margin-left: 20rpx; margin-left: 20rpx;
color: #FFFFFF; color: #FFFFFF;
font-size: 28rpx; font-size: 28rpx;
.overMaxFont{
.overMaxFont {
font-size: 24rpx; font-size: 24rpx;
} }
image { image {
margin-left: 10rpx; margin-left: 10rpx;
} }
@ -1642,7 +1668,8 @@ onShow(() => {
// border-color: #A8AAAC !important; // border-color: #A8AAAC !important;
border-width: 1.5px !important; border-width: 1.5px !important;
} }
:deep(.uv-button--info){
:deep(.uv-button--info) {
border-color: #A8AAAC !important; border-color: #A8AAAC !important;
} }
} }
@ -1800,7 +1827,8 @@ onShow(() => {
font-weight: bold; font-weight: bold;
border-width: 1.5px !important; border-width: 1.5px !important;
} }
:deep(.uv-button--info){
:deep(.uv-button--info) {
border-color: #A8AAAC !important; border-color: #A8AAAC !important;
} }
} }