赵明涛 12 months ago
parent
commit
3620bba75a
  1. 32
      uniapp_project_code/src/components/index/page_standby.vue
  2. 5
      uniapp_project_code/src/components/index/view_footer.nvue
  3. 10
      uniapp_project_code/src/components/index/view_header.nvue
  4. 10
      uniapp_project_code/src/components/pay/paying.vue
  5. 2
      uniapp_project_code/src/components/pay/success.vue
  6. 2
      uniapp_project_code/src/pages/index/index.nvue
  7. 10
      uniapp_project_code/src/pages/pay/index.vue

32
uniapp_project_code/src/components/index/page_standby.vue

@ -11,10 +11,8 @@
<!-- <main-click-btn > --> <!-- <main-click-btn > -->
<view class="content_btn" @click="clickToUse"> <view class="content_btn" @click="clickToUse">
<image class="icon_saoma" src="/static/images/saoma.png" mode="scaleToFill" /> <image class="icon_saoma" src="/static/images/saoma.png" mode="scaleToFill" />
<view>
<text class="txt">请扫描商品条形码</text> <text class="txt">请扫描商品条形码</text>
</view> </view>
</view>
<!-- </main-click-btn> --> <!-- </main-click-btn> -->
<view class="content_logo"> <view class="content_logo">
<text class="txt">欧轩智能场馆提供技术支持</text> <text class="txt">欧轩智能场馆提供技术支持</text>
@ -23,16 +21,16 @@
</template> </template>
<script setup> <script setup>
import mainClickBtn from '@/components/index/button_green_square.vue';
import util from "@/utils/util.js"
import mainClickBtn from '@/components/index/button_green_square.vue';
import util from "@/utils/util.js"
function clickToUse() {
function clickToUse() {
util.routeTo(`/pages/login/success`, 'nT'); util.routeTo(`/pages/login/success`, 'nT');
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.content {
.content {
width: 750rpx; width: 750rpx;
// background-color: #fff; // background-color: #fff;
@ -46,7 +44,8 @@ function clickToUse() {
width: 750rpx; width: 750rpx;
margin-left: 47rpx; margin-left: 47rpx;
margin-top: 50rpx; margin-top: 50rpx;
.txt{
.txt {
font-weight: 800; font-weight: 800;
font-size: 25rpx; font-size: 25rpx;
color: #1A1A1A; color: #1A1A1A;
@ -55,8 +54,9 @@ function clickToUse() {
.content_info { .content_info {
margin-top: 49rpx; margin-top: 49rpx;
// margin-top: 19rpx; // margin-top: 19rpx;
.txt{
.txt {
font-weight: 800; font-weight: 800;
font-size: 58.33rpx; font-size: 58.33rpx;
color: #1A1A1A; color: #1A1A1A;
@ -81,19 +81,23 @@ function clickToUse() {
margin-top: 38rpx; margin-top: 38rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
.txt{
.txt {
font-weight: 400; font-weight: 400;
font-size: 19.44rpx; font-size: 19.44rpx;
color: #999999; color: #999999;
} }
} }
// background-image: linear-gradient(180deg, #00C9AC 0%, #009874 100%);
// background-image: linear-gradient(180deg, #00C9AC 0%, #009874 100%);
.content_btn { .content_btn {
width: 632.64rpx; width: 632.64rpx;
height: 100%;
// height: 100%;
height: 81.94rpx;
background-color: #009874; background-color: #009874;
@include ctf(center); @include ctf(center);
flex-direction: row; flex-direction: row;
// background: #000; // background: #000;
.icon_saoma { .icon_saoma {
width: 41.67rpx; width: 41.67rpx;
@ -102,7 +106,7 @@ function clickToUse() {
// display: inline; // display: inline;
} }
.txt{
.txt {
font-weight: 500; font-weight: 500;
font-size: 33.33rpx; font-size: 33.33rpx;
color: #FFFFFF; color: #FFFFFF;
@ -110,5 +114,5 @@ function clickToUse() {
} }
}
}
</style> </style>

5
uniapp_project_code/src/components/index/view_footer.nvue

@ -45,7 +45,7 @@
</view> </view>
</view> </view>
<view class="btn-style">
<view class="btn-style" @click="clickToPay">
<text class="txt">去付款</text> <text class="txt">去付款</text>
</view> </view>
<!-- <button-square class="btn-style"> <!-- <button-square class="btn-style">
@ -82,6 +82,9 @@ import util from "@/utils/util.js"
let handle_clickVIP = ()=>{ let handle_clickVIP = ()=>{
emits("clickVIP","") emits("clickVIP","")
} }
let clickToPay = ()=>{
util.routeTo(`/pages/pay/index`, 'nT');
}
onMounted(async (res) => { onMounted(async (res) => {
console.log(res + ` the keyboard_box component is now mounted. ` + props.maskHeight) console.log(res + ` the keyboard_box component is now mounted. ` + props.maskHeight)

10
uniapp_project_code/src/components/index/view_header.nvue

@ -4,7 +4,7 @@
<image class="v-image" src="/static/index/camera_icon.png" mode="widthFix" /> <image class="v-image" src="/static/index/camera_icon.png" mode="widthFix" />
<text class="v-text">您已进入视频覆盖区{{ props.backgroundCustom }}</text> <text class="v-text">您已进入视频覆盖区{{ props.backgroundCustom }}</text>
</view> </view>
<view class="cancel-button" @click="handle_closeStandby">
<view class="cancel-button" @click="handle_closeUse">
<text class="v-text"> 取消交易</text> <text class="v-text"> 取消交易</text>
</view> </view>
</view> </view>
@ -12,8 +12,9 @@
<script setup> <script setup>
//触发自定义事件 //触发自定义事件
import util from "@/utils/util.js"
import { defineEmits, defineProps, computed } from 'vue' import { defineEmits, defineProps, computed } from 'vue'
const emits = defineEmits(['closeStandby'])
const emits = defineEmits(['closeUse'])
const props = defineProps({ const props = defineProps({
backgroundCustom: { backgroundCustom: {
type: String, type: String,
@ -33,8 +34,9 @@ const getBorderStyle = computed(() => {
} }
}) })
const handle_closeStandby = () => {
emits("closeStandby", "false")
const handle_closeUse = () => {
util.routeTo(`/pages/index/index`, 'rL');
// emits("closeUse", "false")
} }
</script> </script>

10
uniapp_project_code/src/components/pay/paying.vue

@ -57,7 +57,7 @@
flex-direction: column; flex-direction: column;
.p-text { .p-text {
margin-top: 161rpx;
margin-top: 80rpx;
font-weight: 600; font-weight: 600;
font-size: 22.22rpx; font-size: 22.22rpx;
color: #1A1A1A; color: #1A1A1A;
@ -72,7 +72,7 @@
} }
.p-zhichi{ .p-zhichi{
margin-top: 132.67rpx;
margin-top: 90rpx;
@include ctf(center); @include ctf(center);
flex-direction: row; flex-direction: row;
.p-line{ .p-line{
@ -117,7 +117,7 @@
} }
.p-btn { .p-btn {
margin-top: 107rpx;
margin-top: 80rpx;
@include ctf(center); @include ctf(center);
flex-direction: row; flex-direction: row;
width: 240.97rpx; width: 240.97rpx;
@ -140,10 +140,10 @@
} }
.p-user { .p-user {
margin-top: 92rpx;
margin-top: 80rpx;
margin-left: 67rpx; margin-left: 67rpx;
margin-bottom: 92rpx; margin-bottom: 92rpx;
width: 750rpx;
align-self: flex-start;
.p-txt { .p-txt {
font-weight: 400; font-weight: 400;
font-size: 22.22rpx; font-size: 22.22rpx;

2
uniapp_project_code/src/components/pay/success.vue

@ -39,6 +39,7 @@
<script setup> <script setup>
// //
import util from "@/utils/util.js"
const emits = defineEmits(['clickToIndex']) const emits = defineEmits(['clickToIndex'])
const props = defineProps({ const props = defineProps({
paySuccessInfo: { paySuccessInfo: {
@ -49,6 +50,7 @@ const props = defineProps({
const handle_clickToIndex = () => { const handle_clickToIndex = () => {
emits("clickToIndex", "") emits("clickToIndex", "")
util.routeTo(`/pages/index/index`, 'rL');
} }
</script> </script>

2
uniapp_project_code/src/pages/index/index.nvue

@ -75,7 +75,7 @@
}, },
async onLoad(res) { async onLoad(res) {
console.log("onload:",res) console.log("onload:",res)
this.showPageStandby = true
}, },
async onReady() { async onReady() {
this.screenHeight = await util.getPageHeight() this.screenHeight = await util.getPageHeight()

10
uniapp_project_code/src/pages/pay/index.vue

@ -1,7 +1,8 @@
<template> <template>
<view class="pay-page"> <view class="pay-page">
<view v-if="!paySuccess"> <view v-if="!paySuccess">
<view-header class="mheader" :backgroundCustom="('none')" :needBorder="('false')" @closeStandby="handle_closeStandby"></view-header>
<view-header class="mheader" :backgroundCustom="('none')" :needBorder="('false')"
@closeUse="handle_closeUse"></view-header>
<paying v-if="true" @clickVipCard="handle_clickVipCard"></paying> <paying v-if="true" @clickVipCard="handle_clickVipCard"></paying>
</view> </view>
<pay-success v-else></pay-success> <pay-success v-else></pay-success>
@ -60,7 +61,8 @@
handle_clickVipCard() { handle_clickVipCard() {
util.showNone("储值卡支付未接入") util.showNone("储值卡支付未接入")
this.handle_clickVIP()
this.paySuccess = true
// this.handle_clickVIP()
// util.routeTo(`/pages/pay/success`, 'nT'); // util.routeTo(`/pages/pay/success`, 'nT');
}, },
@ -85,6 +87,8 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.pay-page { .pay-page {
width: 750rpx; width: 750rpx;
.mheader{
width: 750rpx;
}
} }
</style> </style>
Loading…
Cancel
Save