merge-requests/12/head
ch 3 years ago
parent 672e1c6dde
commit d17fa25389

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-08 00:39:50 * @Date: 2022-05-08 00:39:50
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-05-10 11:31:50 * @LastEditTime: 2022-05-10 14:12:29
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -14,7 +14,7 @@
float suffix prefix :money="39"/> float suffix prefix :money="39"/>
<div class="pay--code"> <div class="pay--code">
<img :src="imgUrl" v-if="imgUrl"/> <img :src="imgUrl" v-if="imgUrl"/>
<p v-if="!startSecondNum"></p> <p v-if="!timer"></p>
</div> </div>
<p class="pay--tips">如支付后没有自动跳转请点击 <span class="pay--finish" @click="finish"></span></p> <p class="pay--tips">如支付后没有自动跳转请点击 <span class="pay--finish" @click="finish"></span></p>
</div> </div>

@ -2,87 +2,87 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-03 22:14:16 * @Date: 2022-05-03 22:14:16
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-05-10 12:56:34 * @LastEditTime: 2022-05-10 14:18:39
* @Description: file content * @Description: file content
*/ */
export default { export default {
// Global page headers: https://go.nuxtjs.dev/config-head // Global page headers: https://go.nuxtjs.dev/config-head
head: { head: {
title: 'shop-pc', title: 'shop-pc',
htmlAttrs: { htmlAttrs: {
lang: 'zh' lang: 'zh'
}, },
server: { meta: [
port: 3000, // default: 3000 { charset: 'utf-8' },
host: '0.0.0.0' // default: localhost, { name: 'viewport', content: 'width=device-width, initial-scale=1' },
}, { hid: 'description', name: 'description', content: '' },
meta: [ { name: 'format-detection', content: 'telephone=no' }
{ charset: 'utf-8' }, ],
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, link: [
{ hid: 'description', name: 'description', content: '' }, { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
{ name: 'format-detection', content: 'telephone=no' } ]
], },
link: [ router: {
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } extendRoutes(routes, resolve) {
] routes.push({
}, name: 'custom',
router: { path: '/',
extendRoutes(routes, resolve) { component: resolve(__dirname, 'pages/index/index.vue')
routes.push({ })
name: 'custom', }
path: '/', },
component: resolve(__dirname, 'pages/index/index.vue')
})
}
},
// Global CSS: https://go.nuxtjs.dev/config-css // Global CSS: https://go.nuxtjs.dev/config-css
css: [ css: [
'@assets/scss/global.scss', '@assets/scss/global.scss',
'element-ui/lib/theme-chalk/index.css' 'element-ui/lib/theme-chalk/index.css'
], ],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [ plugins: [
'@/plugins/element-ui', '@/plugins/element-ui',
'@/plugins/axios', '@/plugins/axios',
'@plugins/axiosTk.js', '@plugins/axiosTk.js',
'@plugins/vue-inject.js' '@plugins/vue-inject.js'
], ],
// Auto import components: https://go.nuxtjs.dev/config-components // Auto import components: https://go.nuxtjs.dev/config-components
components: true, components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [ buildModules: [
], ],
styleResources: { styleResources: {
scss: '@/assets/scss/global.scss' scss: '@/assets/scss/global.scss'
}, },
// Modules: https://go.nuxtjs.dev/config-modules // Modules: https://go.nuxtjs.dev/config-modules
modules: [ modules: [
'@nuxtjs/axios', '@nuxtjs/axios',
'cookie-universal-nuxt', 'cookie-universal-nuxt',
'@nuxtjs/style-resources' '@nuxtjs/style-resources'
], ],
// Build Configuration: https://go.nuxtjs.dev/config-build // Build Configuration: https://go.nuxtjs.dev/config-build
build: { build: {
transpile: [/^element-ui/], transpile: [/^element-ui/],
}, },
axios: { axios: {
// 表示开启代理 // 表示开启代理
proxy: true, proxy: true,
}, },
proxy: { proxy: {
'/mall/': { '/mall/': {
// target: 'http://114.55.64.39:3004', // 目标接口域名 // target: 'http://114.55.64.39:3004', // 目标接口域名
target: 'https://you-gateway.mashibing.com/', // 目标接口域名 target: 'https://you-gateway.mashibing.com/', // 目标接口域名
pathRewrite: { pathRewrite: {
changeOrigin: true, // 表示是否跨域 changeOrigin: true, // 表示是否跨域
}, },
}, },
} },
server: {
port: 3000, // default: 3000
host: '0.0.0.0' // default: localhost,
},
} }

Loading…
Cancel
Save