提交 85cea1e0 编写于 作者: yma16's avatar yma16

perf:添加小程序的跳转

上级 8cf24e8b
...@@ -20,47 +20,47 @@ const env = ...@@ -20,47 +20,47 @@ const env =
let externalModules = {} let externalModules = {}
//cdn 配置 //cdn 配置
let externalConfig = [] let externalConfig = []
// if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
// //生产环境 //生产环境
// externalModules = { externalModules = {
// vue: 'Vue', vue: 'Vue',
// 'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
// vuex: 'Vuex', vuex: 'Vuex',
// axios: 'axios', axios: 'axios',
// 'element-ui': 'element-ui', 'element-ui': 'element-ui',
// echarts: 'echarts', echarts: 'echarts',
// highlight: 'hljs', highlight: 'hljs',
// } }
// externalConfig = [ externalConfig = [
// {js: 'https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js', css: ''}, {js: 'https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js', css: ''},
// { {
// js: 'https://cdn.bootcdn.net/ajax/libs/vue-router/3.0.1/vue-router.min.js', js: 'https://cdn.bootcdn.net/ajax/libs/vue-router/3.0.1/vue-router.min.js',
// css: '', css: '',
// }, },
// {js: 'https://unpkg.com/axios/dist/axios.min.js', css: ''}, {js: 'https://unpkg.com/axios/dist/axios.min.js', css: ''},
// {js: 'https://cdn.bootcss.com/vuex/3.6.2/vuex.min.js', css: ''}, {js: 'https://cdn.bootcss.com/vuex/3.6.2/vuex.min.js', css: ''},
// { {
// js: 'https://unpkg.com/element-ui/lib/index.js', js: 'https://unpkg.com/element-ui/lib/index.js',
// css: 'https://unpkg.com/element-ui/lib/theme-chalk/index.css', css: 'https://unpkg.com/element-ui/lib/theme-chalk/index.css',
// }, },
// { {
// js: 'https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js', js: 'https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js',
// css: '', css: '',
// }, },
// { {
// js: 'https://cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/highlight.min.js', js: 'https://cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/highlight.min.js',
// css: '', css: '',
// }, },
// { {
// js: '', js: '',
// css: 'https://cdn.bootcdn.net/ajax/libs/github-markdown-css/5.1.0/github-markdown-light.min.css', css: 'https://cdn.bootcdn.net/ajax/libs/github-markdown-css/5.1.0/github-markdown-light.min.css',
// }, },
// { {
// js: '', js: '',
// css: 'https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.css', css: 'https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.css',
// }, },
// ] ]
// } }
const webpackConfig = merge(baseWebpackConfig, { const webpackConfig = merge(baseWebpackConfig, {
externals: externalModules, //打包忽略 externals: externalModules, //打包忽略
......
...@@ -82,8 +82,9 @@ ...@@ -82,8 +82,9 @@
class="weather_class1" class="weather_class1"
cellpadding="1px" cellpadding="1px"
shadow="always" shadow="always"
style="position: static; margin-top: 2%" style="position: static; margin-top: 2%;text-align: center"
> >
<span style="line-height: 30px;" class="uni-font">爬取天气预报</span>
<div style="positon: relative; width: 100%; height: 100%"> <div style="positon: relative; width: 100%; height: 100%">
<EchartWeather> </EchartWeather> <EchartWeather> </EchartWeather>
</div> </div>
...@@ -98,7 +99,23 @@ ...@@ -98,7 +99,23 @@
line-height: 10px; line-height: 10px;
text-align: center; text-align: center;
" "
><a href="https://blog.csdn.net/qq_38870145"> >
<span style="line-height: 30px;" class="uni-font">小程序</span>
<img class="image" src="https://yongma16.xyz/staticFile/common/logo/wxProgram.jpg"
/>
</el-card>
<el-card
class="user_img1"
style="
position: static;
margin: 2% auto auto auto;
line-height: 10px;
text-align: center;
"
>
<span style="line-height: 30px;" class="uni-font">点击图片前往csdn</span>
<a href="https://blog.csdn.net/qq_38870145">
<img class="image" src="@/assets/img/csdn.jpg" <img class="image" src="@/assets/img/csdn.jpg"
/></a> /></a>
</el-card> </el-card>
...@@ -154,6 +171,18 @@ ...@@ -154,6 +171,18 @@
> >
</el-card> --> </el-card> -->
<el-card
class="user_img2"
style="
position: static;
margin: 2% auto auto auto;
line-height: 10px;
text-align: center;
"
> <span style="line-height: 30px;" class="uni-font">小程序</span>
<img class="image" src="https://yongma16.xyz/staticFile/common/logo/wxProgram.jpg"
/>
</el-card>
<!-- csdn头像 --> <!-- csdn头像 -->
<el-card <el-card
class="user_img2" class="user_img2"
...@@ -163,10 +192,14 @@ ...@@ -163,10 +192,14 @@
line-height: 10px; line-height: 10px;
text-align: center; text-align: center;
" "
><a href="https://blog.csdn.net/qq_38870145"> >
<span style="line-height: 30px;" class="uni-font">点击图片前往csdn</span>
<a href="https://blog.csdn.net/qq_38870145">
<img class="image" src="@/assets/img/csdn.jpg" <img class="image" src="@/assets/img/csdn.jpg"
/></a> /></a>
</el-card> </el-card>
</div> </div>
<!-- 上滑滚动图标 --> <!-- 上滑滚动图标 -->
<div class="rightclass"> <div class="rightclass">
...@@ -246,6 +279,7 @@ export default { ...@@ -246,6 +279,7 @@ export default {
'websocket聊天', 'websocket聊天',
'echarts地图配置', 'echarts地图配置',
'vue3测试平台', 'vue3测试平台',
'数据可视化平台',
'更新中' '更新中'
], ],
md_data: [], md_data: [],
...@@ -435,6 +469,9 @@ export default { ...@@ -435,6 +469,9 @@ export default {
case 'vue3测试平台': case 'vue3测试平台':
window.open('http://yongma16.xyz/emoji_api/') window.open('http://yongma16.xyz/emoji_api/')
break break
case '数据可视化平台':
window.open('https://yongma16.xyz/fund-web')
break
default: default:
break break
} }
...@@ -648,6 +685,11 @@ el-col::-webkit-scrollbar { ...@@ -648,6 +685,11 @@ el-col::-webkit-scrollbar {
border-radius: 2px; border-radius: 2px;
/* display: none; */ /* display: none; */
} }
.uni-font{
color: #ff995e;
font-weight: bolder;
}
.midclass::-webkit-scrollbar-thumb { .midclass::-webkit-scrollbar-thumb {
background: #ff995e; background: #ff995e;
height: 2px; height: 2px;
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' // import * as echarts from 'echarts'
export default { export default {
name: 'Bilicom', name: 'Bilicom',
data () { data () {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' // import * as echarts from 'echarts'
export default { export default {
name: 'Map', name: 'Map',
data () { data () {
......
// The Vue build version to load with the `import` command // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//vue cdn //vue cdn
import Vue from 'vue' // import Vue from 'vue'
import VueRouter from 'vue-router' // import VueRouter from 'vue-router'
import axios from 'axios' // import axios from 'axios'
import hljs from 'highlight.js' // import hljs from 'highlight.js'
import * as echarts from 'echarts' // import * as echarts from 'echarts'
import importElementComponents from './importElement' // import importElementComponents from './importElement'
import importEchartsComponents from './importEchartsComponents' // import importEchartsComponents from './importEchartsComponents'
// 样式cnd // 样式cnd
import 'github-markdown-css/github-markdown.css' // import 'github-markdown-css/github-markdown.css'
import 'nprogress/nprogress.css' // import 'nprogress/nprogress.css'
// 无需cdn // 无需cdn
import useRouter from './router' import useRouter from './router'
import cookies from 'vue-cookies' import cookies from 'vue-cookies'
...@@ -57,11 +57,11 @@ if (env === 'production') { ...@@ -57,11 +57,11 @@ if (env === 'production') {
// 路由 // 路由
const router = useRouter(Vue, VueRouter) const router = useRouter(Vue, VueRouter)
// 按需引入elementui // // 按需引入elementui
importElementComponents(Vue) // importElementComponents(Vue)
//
// 按需引入echarts // // 按需引入echarts
importEchartsComponents(Vue) // importEchartsComponents(Vue)
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.use(cookies) Vue.use(cookies)
......
import Vue from 'vue' // import Vue from 'vue'
import Vuex from 'vuex' // import Vuex from 'vuex'
import persistedstate from 'vuex-persistedstate'
// import createLogger from '../../../src/plugins/logger' // import createLogger from '../../../src/plugins/logger'
...@@ -15,11 +14,6 @@ files.keys().map((key) => { ...@@ -15,11 +14,6 @@ files.keys().map((key) => {
}) })
export default new Vuex.Store({ export default new Vuex.Store({
plugins: [
persistedstate({
key: 'VBI'
})
],
modules, modules,
strict: debug strict: debug
// plugins: debug ? [createLogger()] : [] // plugins: debug ? [createLogger()] : []
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' // import * as echarts from 'echarts'
export default { export default {
name: 'EchartWeather', name: 'EchartWeather',
data () { data () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册