完善茶室订单
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
<view>
|
||||
<wd-navbar safeAreaInsetTop :bordered="false" custom-style="background-color: transparent;" :height="navbarHeight">
|
||||
<template #left>
|
||||
<view class="h-48rpx flex items-center" @click="storeRecharge.back">
|
||||
<view class="h-48rpx flex items-center" @click="StoreRecharge.back">
|
||||
<wd-img width="48rpx" height="48rpx" :src="`${OSS}icon/icon_arrow_left.png`" class="mt-6rpx"></wd-img>
|
||||
<view class="text-[#303133] text-36rpx ml-24rpx leading-48rpx">充值</view>
|
||||
</view>
|
||||
@ -38,10 +38,10 @@
|
||||
|
||||
<view class="bg-white mt-28rpx rounded-16rpx px-38rpx mx-32rpx h-150rpx flex items-center">
|
||||
<view class="text-[#303133] text-30rpx font-bold leading-42rpx">门店推广</view>
|
||||
<view class="flex-1 bg-[#F8F9FA] text-[#9CA3AF] rounded-8rpx ml-28rpx h-80rpx leading-80rpx rounded-8rpx pl-28rpx">上海浦东新区茶室店铺</view>
|
||||
<view class="flex-1 bg-[#F8F9FA] text-[#9CA3AF] rounded-8rpx ml-28rpx h-80rpx leading-80rpx rounded-8rpx pl-28rpx">{{ storeName }}</view>
|
||||
</view>
|
||||
|
||||
<view @click="storeRecharge.handleRecharge" class="fixed left-0 right-0 bottom-0 z-50 mx-60rpx flex items-center justify-center bg-[#4C9F44] rounded-8rpx text-[#fff] text-30rpx font-bold" :style="{ height: '90rpx', bottom: 'calc(env(safe-area-inset-bottom) + 26rpx)', city: canRecharge ? 1 : 0.5 }">
|
||||
<view @click="StoreRecharge.handleRecharge" class="fixed left-0 right-0 bottom-0 z-50 mx-60rpx flex items-center justify-center bg-[#4C9F44] rounded-8rpx text-[#fff] text-30rpx font-bold" :style="{ height: '90rpx', bottom: 'calc(env(safe-area-inset-bottom) + 26rpx)', city: canRecharge ? 1 : 0.5 }">
|
||||
确定转入
|
||||
</view>
|
||||
</view>
|
||||
@ -49,31 +49,29 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { getNavBarHeight } from '@/utils/index'
|
||||
import { toast } from '@/utils/toast'
|
||||
import { router } from '@/utils/tools'
|
||||
import { wxpay } from '@/hooks/usePay'
|
||||
|
||||
let navbarHeight = ref<number>(0)
|
||||
let OSS = inject('OSS')
|
||||
let rechargeMoney = ref<string>('')
|
||||
let canRecharge = ref<boolean>(false)
|
||||
|
||||
onLoad(() => {
|
||||
const storeId = ref<number>(0)
|
||||
const storeName = ref<string>('')
|
||||
|
||||
onLoad((args) => {
|
||||
navbarHeight.value = getNavBarHeight()
|
||||
|
||||
storeId.value = args.id
|
||||
storeName.value = args.storeName
|
||||
})
|
||||
|
||||
const storeRecharge = {
|
||||
back: () => {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
})
|
||||
},
|
||||
|
||||
const StoreRecharge = {
|
||||
handleRecharge: () => {
|
||||
if (rechargeMoney.value) {
|
||||
// 这里可以添加充值逻辑
|
||||
uni.showToast({
|
||||
title: '充值成功',
|
||||
icon: 'success'
|
||||
})
|
||||
storeRecharge.back()
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请输入充值金额',
|
||||
|
||||
Reference in New Issue
Block a user