Files
2025-04-30 14:04:34 +08:00

180 lines
3.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center aboutUs_flex_0"
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub aboutUs_fd0_0'>
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
<text class='fu-iconfont2 aboutUs_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
data-url="1">&#xE794;</text>
</view>
<view class='flex flex-wrap align-stretch justify-center flex-sub'>
<text class='aboutUs_fd0_0_c1_c0'>付款码</text>
</view>
<view class='flex flex-wrap align-center aboutUs_fd0_0_c2'>
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
<view class="flex flex-direction flex-wrap align-center aboutUs_flex_1">
<image class='aboutUs_fd1_0' mode="aspectFit" :src='payCode'></image>
<view class='flex flex-wrap align-center aboutUs_fd1_1'>
<text>付款码有效期3分钟</text>
<text @click="getPayCode" style="color: rgb(255, 147, 0);">刷新</text>
</view>
</view>
</view>
</template>
<script>
export default {
components: {},
data() {
return {
payCode: ''
};
},
computed: {
themeColor() {
return this.$store.getters.themeColor
},
appVersion() {
// 获取版本号
return this.$store.state.appVersion
}
},
watch: {},
onLoad(options) {
},
onUnload() {
},
onReady() {
},
onShow() {
this.getPayCode()
this.$store.dispatch('getAppVersion') // 更新版本号
},
onHide() {
},
onResize() {
},
onPullDownRefresh() {
},
onReachBottom(e) {
},
onPageScroll(e) {
},
methods: {
getPayCode() {
this.$api
.post(global.apiUrls.getPayCode)
.then(res => {
console.log(res);
res = res.data;
if (res.code == 1) {
this.payCode = res.data.image;
}
uni.stopPullDownRefresh();
});
},
}
};
</script>
<style lang="scss" scoped>
.page {
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background: #fff;
background-size: 100% auto !important;
}
.aboutUs_flex_0 {
background: #fff;
width: 750rpx;
height: 88rpx;
overflow: hidden;
z-index: 10;
top: 0rpx;
background-size: 100% auto !important;
}
.aboutUs_fd0_0_c2 {
width: 32rpx;
height: 32rpx;
}
.aboutUs_fd0_0_c1_c0 {
font-size: 36rpx;
font-weight: 500;
color: #333;
line-height: 88rpx;
}
.aboutUs_fd0_0_c0_c0 {
font-size: 32rpx;
font-weight: 500;
color: #333;
line-height: 88rpx;
}
.aboutUs_fd0_0 {
margin: 0rpx 32rpx 0rpx 32rpx;
}
.aboutUs_flex_1 {
padding: 0rpx 0rpx 0rpx 0rpx;
}
.aboutUs_fd1_1 {
padding: 60rpx 0rpx 0rpx 0rpx;
font-size: 28rpx;
color: #333;
font-weight: 400;
}
.aboutUs_fd1_0 {
width: 400rpx;
height: 400rpx;
border-radius: 12rpx;
margin: 160rpx 0rpx 0rpx 0rpx;
}
.aboutUs_flex_2 {
background: #fff;
width: 750rpx;
height: 168rpx;
overflow: hidden;
z-index: 10;
bottom: calc(0rpx + var(--window-bottom));
background-size: 100% auto !important;
}
.aboutUs_fd2_1 {
color: #BFBFBF;
font-size: 28rpx;
font-weight: 400;
line-height: 45rpx;
}
.aboutUs_fd2_0 {
color: #BFBFBF;
font-size: 28rpx;
font-weight: 400;
line-height: 45rpx;
}
</style>