Commit 397a021b by 前端

Merge branch 'v3.0.0' of http://192.168.3.233:8090/h5/glsx-posters into v3.0.0

2 parents e59d1620 104bae5d
...@@ -2,31 +2,36 @@ $good-color: #ffd2b2; ...@@ -2,31 +2,36 @@ $good-color: #ffd2b2;
.product-box { .product-box {
top: 395px; top: 395px;
display: inline-block; display: inline-block;
// box-shadow: 0px 4px 12px 0px rgba(50, 0, 0, 0.5); background: url("@/assets/images/goodNews/line-bg.png");
padding: 0 43px; background-repeat: repeat-x;
background-size: 4px 57px;
// margin: 0 43px;
font-size: 30px; font-size: 30px;
color: $good-color; color: $good-color;
line-height: 30px; line-height: 30px;
} }
.product-name { .product-name {
position: relative; position: relative;
padding: 10px 0; padding: 14px 0;
border-top: 3px solid $good-color; // border-top: 3px solid $good-color;
border-bottom: 3px solid $good-color; // border-bottom: 3px solid $good-color;
background: linear-gradient(0deg, #850005 0%, #9a1316 100%); // background: linear-gradient(0deg, #850005 0%, #9a1316 100%);
height: 100%;
// height: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.product-icon { .product-icon {
position: absolute; position: absolute;
width: 52px;
height: 57px;
} }
.icon-left { .icon-left {
left: -50px; left: -50px;
top: -2px; top: 0;
} }
.icon-right { .icon-right {
right: -50px; right: -50px;
top: -2px; top: 0;
} }
.store-name { .store-name {
top: 466px; top: 466px;
......
...@@ -10,6 +10,14 @@ const staticRoutes = Object.freeze([ ...@@ -10,6 +10,14 @@ const staticRoutes = Object.freeze([
} }
}, },
{ {
path: '/goodNews',
component: () => import('views/crowdfunding/goodNews.vue'),
meta: {
title: '喜报',
backgroundColor: '#F8F6F5'
}
},
{
path: '/activiting', path: '/activiting',
component: () => import('views/crowdfunding/activiting.vue'), component: () => import('views/crowdfunding/activiting.vue'),
meta: { 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) { 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() // const $mockConfig = await fetchConfig()
export default fetchConfig export default fetchConfig
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-13 15:54:59 * @LastEditTime: 2022-10-14 17:58:50
--> -->
<template> <template>
<img class="bg" src="@/assets/images/goodNews/bg.png" alt="" /> <img class="bg" src="@/assets/images/goodNews/bg.png" alt="" />
...@@ -84,7 +84,16 @@ ...@@ -84,7 +84,16 @@
</template> </template>
<script lang="ts" setup> <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({ const data = reactive({
tableData: [ tableData: [
{ {
...@@ -151,6 +160,18 @@ const data = reactive({ ...@@ -151,6 +160,18 @@ const data = reactive({
], ],
medals: ["first", "second", "third"], 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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "src/assets/styles/goodNews.scss"; @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!