123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <template>
- <view id="success-container" :data-theme="'theme-' + proxy.$settingStore.themeColor.name">
- <view>
- <view style="display: flex">
- <image style="width: 120px; height: 120px; margin: 50px auto 20px auto" src="@/static/images/unitInfoCollection/success.png" />
- </view>
- <view style="text-align: center; font-weight: 600">{{ codeName }}</view>
- </view>
- <view class="app-button-fixed" v-if="showNow" style="box-shadow: 0px 0px 15px 0 rgba(0, 0, 0, 0)">
- <u-button class="app-buttom" type="primary" @click="navigateTo()" shape="circle"> 返回 </u-button>
- </view>
- </view>
- </template>
- <script setup>
- import config from "@/config";
- import { onLoad, onShow, onHide, onLaunch } from "@dcloudio/uni-app";
- import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
- import { publicStores, useStores } from "@/store/modules/index";
- import { getToken, setToken, removeToken } from "@/utils/auth";
- const publicStore = publicStores();
- const { proxy } = getCurrentInstance();
- const showNow = ref(true);
- const codeName = ref("");
- /**
- * @返回上一级
- */
- function navigateTo() {
- proxy.$tab.navigateBack(1);
- }
- onLoad((options) => {
- if ("showNow" in options) {
- showNow.value = options.showNow;
- }
- if ("codeName" in options) {
- codeName.value = options.codeName;
- }
- });
- </script>
- <style lang="scss" scoped>
- #success-container {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1;
- width: 100%;
- padding: 0 15px;
- margin: auto;
- padding-top: 20%;
- //#ifdef MP-WEIXIN
- padding-top: 30%;
- //#endif
- background-color: #ffffff;
- .top {
- }
- .content {
- display: flex;
- margin: 30px 0;
- .title {
- margin: auto auto auto 0;
- color: #000;
- font-size: 18px;
- }
- .icons {
- margin: auto 5px auto 0;
- }
- .setting {
- color: #2a98ff;
- margin: auto 0;
- }
- }
- }
- </style>
|