this is lastest update

This commit is contained in:
chen-xin-zhi 2025-03-23 20:53:32 +08:00
parent acfa62be5a
commit 316e4848ff
2 changed files with 25 additions and 5 deletions

View File

@ -6,4 +6,4 @@ export const domain = 'https://www.carboner.cn:8888/api'
export const myIp = 'http://8.130.119.119:9092/api'
export const nwct = 'https://winning-mouse-internally.ngrok-free.app/api'
export const suiUrl = ''
export const baseUrl = domain
export const baseUrl = Url

View File

@ -91,16 +91,20 @@
</view>
</view>
</view>
<!-- 遮罩层 -->
<view v-if="isShow" class="overlay"></view>
</template>
<script setup>
import {ref,onMounted} from 'vue'
import {ref,onMounted, onUnmounted, onBeforeUnmount} from 'vue'
import { onLoad } from "@dcloudio/uni-app";
import { clothesRentUrl } from '../../../common/globalImagesUrl';
import { clothesRentOrderMap } from '../../../common/global';
import { baseUrl } from '../../../api/request';
import { publicPath } from '../../../common/globalImagesUrl';
import emitter from '../../../utils/emitter';
const cookie = wx.getStorageSync('cookie')
const bkgUrl = ref(clothesRentUrl + '/clothesRentOrderDetail/bkg.png')
const rentOrderDetail = ref({}) //
@ -159,8 +163,8 @@
success: async (res) => {
if (res.confirm) {
await deleteOrder(val)
// await emitter.emit('flushAdvanceOrderList')
// routerJump('pages/clothesRent/clothRentOrderList/clothRentOrderList')
await emitter.emit('flushClothesOrderList')
routerJump('pages/clothesRent/clotherRentOrderList/clotherRentOrderList')
}
}
})
@ -216,6 +220,8 @@
const wxPay = async( oid )=> { //id
showLoading()
isShow.value = true //
try {
const res = await uni.request({
url: baseUrl + '/wechat/payment/clothesRent/create',
@ -300,9 +306,23 @@
}
onBeforeUnmount(() => {
routerJump('pages/clothesRent/clotherRentOrderList/clotherRentOrderList')
})
</script>
<style scoped lang="scss">
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4); /* 半透明黑色背景 */
z-index: 999;
}
.button-pos {
position: absolute;
left: 0;