feat: 更新

This commit is contained in:
dengtongyu committed 2023-04-18 23:03:50 +08:00
1 parent ef8081b838
commit ca63af28cc
13 files changed
+136 -24

No files matched your search

+1 -1
View File
@@ -12,6 +12,6 @@ declare module '@vue/runtime-core' {
IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default'] IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
VanButton: typeof import('vant/es')['Button'] VanSearch: typeof import('vant/es')['Search']
} }
} }
+1 -1
View File
@@ -10,7 +10,7 @@
.xtbg-loading:after {content:" ";display:block;width:80px;height:80px;box-sizing:border-box;border-radius:50%;border:4px solid #ffef30;border-color:#ffef30 transparent #ffef30 transparent;animation:xtbg-loading 1.3s linear infinite;} .xtbg-loading:after {content:" ";display:block;width:80px;height:80px;box-sizing:border-box;border-radius:50%;border:4px solid #ffef30;border-color:#ffef30 transparent #ffef30 transparent;animation:xtbg-loading 1.3s linear infinite;}
@keyframes xtbg-loading {0% {transform:rotate(0deg);} @keyframes xtbg-loading {0% {transform:rotate(0deg);}
100% {transform:rotate(360deg);} 100% {transform:rotate(360deg);}
}body {background-color: #fffdf4;};</style> }body {background-color: #fff;};</style>
<script>window.info = {};window.getMessage = function(key, value) {window.info[key] = value;};</script> <script>window.info = {};window.getMessage = function(key, value) {window.info[key] = value;};</script>
</head> </head>
<body> <body>
+6 -14
View File
@@ -1,26 +1,18 @@
import { proxyTarget } from "./config" import { proxyTarget } from "./config";
let proxyTable = { const proxyTable = {
"/zuul": { "/chargeprod": {
target: proxyTarget, target: proxyTarget,
changeOrigin: true changeOrigin: true
}, },
"/media/": { "/user": {
target: proxyTarget, target: proxyTarget,
changeOrigin: true changeOrigin: true
}, },
"/zwwxgzt": { "/wx": {
target: proxyTarget, target: proxyTarget,
changeOrigin: true changeOrigin: true
}, }
"/midjs": {
target: proxyTarget,
changeOrigin: true
},
"/irc": {
target: proxyTarget,
changeOrigin: true
},
}; };
export default proxyTable; export default proxyTable;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

+119 -3
View File
@@ -1,5 +1,5 @@
<script setup lang="ts" name="Home"> <script setup lang="ts" name="Home">
import { ref, onMounted } from "vue"; import { ref, onMounted, computed } from "vue";
import pinia from "../store/pinia"; import pinia from "../store/pinia";
import { pay } from "../store"; import { pay } from "../store";
import { getQueryString } from "@/lib/util"; import { getQueryString } from "@/lib/util";
@@ -14,7 +14,11 @@ payStore.channel = channel || "";
const searchKeyword = ref<string>(""); const searchKeyword = ref<string>("");
payStore.getChargeprod();
const prizeList = computed(() => {
return payStore.prizeList;
});
onMounted(() => { onMounted(() => {
// init(); // init();
@@ -23,8 +27,29 @@ onMounted(() => {
<template> <template>
<div class="wechat-home"> <div class="wechat-home">
<div> <div class="wechat-home-search">
<van-search v-model="searchKeyword" placeholder="请输入手机号或者用户ID" /> <van-search
v-model="searchKeyword"
class="wechat-home-search-input"
placeholder="请输入手机号或者用户ID"
shape="round"
/>
</div>
<div class="wechat-home-prize">
<h3>选择充值金额</h3>
<div class="wechat-home-prize-list">
<div
v-for="item in prizeList"
:key="`prize-${item.channel}`"
class="prize-item"
>
<p class="prize-item-line1">
<i></i>
<span>{{ item.prodName }}</span>
</p>
<p class="prize-item-line2">¥ {{ item.money }}元</p>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
@@ -34,6 +59,97 @@ onMounted(() => {
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: auto; overflow: auto;
padding: 0 15px;
box-sizing: border-box;
&-search {
padding-top: 20px;
&-input {
height: 50px;
padding: 0;
--van-search-input-height: 50px;
// padding-left: 0;
// padding-right: 0;
}
} }
&-prize {
margin-top: 20px;
&>h3 {
font-size: 18px;
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 400;
color: #222222;
line-height: 46px;
}
&-list {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
}
}
.prize-item {
width: 105px;
height: 80px;
background: #FFFFFF;
border-radius: 20px;
border: 2px solid #DCDCDC;
display: flex;
flex-direction: column;
justify-content: center;
// margin: 10px;
&-line1 {
display: flex;
height: 20px;
align-items: center;
justify-content: center;
font-size: 14px;
&>i {
width: 16px;
height: 16px;
display: inline-block;
background-image: url(../assets/images/jinbi.png);
background-repeat: no-repeat;
background-size: cover;
}
&>span {
font-family: PingFang SC-Medium, PingFang SC;
font-weight: 400;
color: #222222;
line-height: 20px;
padding-left: 3px;
}
}
&-line2 {
color: #666666;
text-align: center;
font-size: 12px;
height: 20px;
line-height: 20px;
}
}
.prize-item-active {
background: #FFF6DC;
border: 2px solid #FFAC39;
.prize-item-line1 {
&>span {
color: #FFAC39;
}
}
.prize-item-line2 {
color: #FFAC39;
}
}
</style> </style>
+1 -1
View File
@@ -1,7 +1,7 @@
const routes = [ const routes = [
{ path: "/", name: "root", redirect: "/home" }, { path: "/", name: "root", redirect: "/home" },
{ path: "/home", name: "home", meta: { power: true }, component: () => import("../pages/Home.vue") }, { path: "/home", name: "home", meta: { power: true }, component: () => import("../pages/Home.vue") },
{ path: "/loginfo", name: "loginfo", component: () => import("../pages/Login.vue") }, // { path: "/loginfo", name: "loginfo", component: () => import("../pages/Login.vue") },
{ path: "/nonetwork:text?", name: "nonetwork", props: true, component: () => import("../pages/error/NoNetwork.vue") }, { path: "/nonetwork:text?", name: "nonetwork", props: true, component: () => import("../pages/error/NoNetwork.vue") },
{ path: "/noaccess/:text?", name: "noaccess", props: true, component: () => import("../pages/error/NoAccess.vue") }, { path: "/noaccess/:text?", name: "noaccess", props: true, component: () => import("../pages/error/NoAccess.vue") },
{ path: "/empty/:text?", name: "empty", props: true, component: () => import("../pages/error/NoData.vue") }, { path: "/empty/:text?", name: "empty", props: true, component: () => import("../pages/error/NoData.vue") },
+7 -2
View File
@@ -1,4 +1,4 @@
import { ref } from "vue"; import { ref, computed } from "vue";
import { defineStore } from "pinia"; import { defineStore } from "pinia";
import { showFailToast } from "vant"; import { showFailToast } from "vant";
import { chargeprodList, chargeUser } from "@/api/index"; import { chargeprodList, chargeUser } from "@/api/index";
@@ -50,7 +50,12 @@ const pay = defineStore("pay", () => {
}); });
}; };
return { openId, dataId, channel, getChargeprod, getChargeUser };
const prizeList = computed(() => {
return payLsit.value;
});
return { openId, dataId, channel, getChargeprod, getChargeUser, prizeList };
}); });
export default pay; export default pay;
+1 -2
View File
@@ -83,8 +83,7 @@ export default (opt: any) => {
postcss: { postcss: {
plugins: [ plugins: [
postcsspxtoviewport({ postcsspxtoviewport({
viewportWidth: 375, viewportWidth: 375
selectorBlackList: [""]
}) })
] ]
} }