Commit 2f982f20 by 胡悦

提交喜报

1 parent 970e5fb6
......@@ -2,31 +2,36 @@ $good-color: #ffd2b2;
.product-box {
top: 395px;
display: inline-block;
// box-shadow: 0px 4px 12px 0px rgba(50, 0, 0, 0.5);
padding: 0 43px;
background: url("@/assets/images/goodNews/line-bg.png");
background-repeat: repeat-x;
background-size: 4px 57px;
// margin: 0 43px;
font-size: 30px;
color: $good-color;
line-height: 30px;
}
.product-name {
position: relative;
padding: 10px 0;
border-top: 3px solid $good-color;
border-bottom: 3px solid $good-color;
background: linear-gradient(0deg, #850005 0%, #9a1316 100%);
height: 100%;
padding: 14px 0;
// border-top: 3px solid $good-color;
// border-bottom: 3px solid $good-color;
// background: linear-gradient(0deg, #850005 0%, #9a1316 100%);
// height: 100%;
box-sizing: border-box;
}
.product-icon {
position: absolute;
width: 52px;
height: 57px;
}
.icon-left {
left: -50px;
top: -2px;
top: 0;
}
.icon-right {
right: -50px;
top: -2px;
top: 0;
}
.store-name {
top: 466px;
......
......@@ -10,6 +10,14 @@ const staticRoutes = Object.freeze([
}
},
{
path: '/goodNews',
component: () => import('views/crowdfunding/goodNews.vue'),
meta: {
title: '喜报',
backgroundColor: '#F8F6F5'
}
},
{
path: '/activiting',
component: () => import('views/crowdfunding/activiting.vue'),
meta: {
......
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 16:45:59
*/
const fetchConfig = function (isEnv = true) {
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/integral-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2022-10-13 15:54:59
* @LastEditTime: 2022-10-14 17:58:50
-->
<template>
<img class="bg" src="@/assets/images/goodNews/bg.png" alt="" />
......@@ -84,7 +84,16 @@
</template>
<script lang="ts" setup>
import { reactive } from "vue";
import { reactive, onMounted } from "vue";
import req from "../../utils/request";
import { useRouter, useRoute } from "vue-router";
const route = useRoute();
interface params {
channel?: string;
id?: number | string;
}
let query: params = {};
const data = reactive({
tableData: [
{
......@@ -151,6 +160,18 @@ const data = reactive({
],
medals: ["first", "second", "third"],
});
const getInfo = async () => {
const res = await req("scrm.api.renewal.h5.integral.get");
console.log(query);
};
onMounted(() => {
if (route.query) {
query = route.query;
getInfo();
}
});
</script>
<style lang="scss" scoped>
@import "src/assets/styles/goodNews.scss";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!