静态渲染提交
parent
c9940ccab0
commit
0c9003b65e
|
@ -15,7 +15,7 @@ export default {
|
|||
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
|
||||
]
|
||||
},
|
||||
ssr: true,
|
||||
ssr: false,
|
||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||
css: [
|
||||
'@/assets/css/element-variables.scss',
|
||||
|
|
|
@ -1,219 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
import { decode, parsePath, withoutBase, withoutTrailingSlash, normalizeURL } from 'ufo'
|
||||
|
||||
import { getMatchedComponentsInstances, getChildrenComponentInstancesUsingFetch, promisify, globalHandleError, urlJoin, sanitizeComponent } from './utils'
|
||||
import NuxtError from '..\\layouts\\error.vue'
|
||||
import NuxtLoading from './components/nuxt-loading.vue'
|
||||
|
||||
import '..\\assets\\css\\element-variables.scss'
|
||||
|
||||
import '..\\assets\\css\\common.scss'
|
||||
|
||||
import '..\\assets\\css\\reset.scss'
|
||||
|
||||
import '..\\node_modules\\swiper\\css\\swiper.css'
|
||||
|
||||
import '..\\assets\\css\\element.scss'
|
||||
|
||||
import '..\\assets\\fonts\\iconfont.css'
|
||||
|
||||
import _6f6c098b from '..\\layouts\\default.vue'
|
||||
import _2d26a6af from '..\\layouts\\main.vue'
|
||||
import _ed36e90e from '..\\layouts\\street.vue'
|
||||
import _2d2a8cc1 from '..\\layouts\\user.vue'
|
||||
|
||||
const layouts = { "_default": sanitizeComponent(_6f6c098b),"_main": sanitizeComponent(_2d26a6af),"_street": sanitizeComponent(_ed36e90e),"_user": sanitizeComponent(_2d2a8cc1) }
|
||||
|
||||
export default {
|
||||
render (h, props) {
|
||||
const loadingEl = h('NuxtLoading', { ref: 'loading' })
|
||||
|
||||
const layoutEl = h(this.layout || 'nuxt')
|
||||
const templateEl = h('div', {
|
||||
domProps: {
|
||||
id: '__layout'
|
||||
},
|
||||
key: this.layoutName
|
||||
}, [layoutEl])
|
||||
|
||||
const transitionEl = h('transition', {
|
||||
props: {
|
||||
name: 'layout',
|
||||
mode: 'out-in'
|
||||
},
|
||||
on: {
|
||||
beforeEnter (el) {
|
||||
// Ensure to trigger scroll event after calling scrollBehavior
|
||||
window.$nuxt.$nextTick(() => {
|
||||
window.$nuxt.$emit('triggerScroll')
|
||||
})
|
||||
}
|
||||
}
|
||||
}, [templateEl])
|
||||
|
||||
return h('div', {
|
||||
domProps: {
|
||||
id: '__nuxt'
|
||||
}
|
||||
}, [
|
||||
loadingEl,
|
||||
|
||||
transitionEl
|
||||
])
|
||||
},
|
||||
|
||||
data: () => ({
|
||||
isOnline: true,
|
||||
|
||||
layout: null,
|
||||
layoutName: '',
|
||||
|
||||
nbFetching: 0
|
||||
}),
|
||||
|
||||
beforeCreate () {
|
||||
Vue.util.defineReactive(this, 'nuxt', this.$options.nuxt)
|
||||
},
|
||||
created () {
|
||||
// Add this.$nuxt in child instances
|
||||
this.$root.$options.$nuxt = this
|
||||
|
||||
if (process.client) {
|
||||
// add to window so we can listen when ready
|
||||
window.$nuxt = this
|
||||
|
||||
this.refreshOnlineStatus()
|
||||
// Setup the listeners
|
||||
window.addEventListener('online', this.refreshOnlineStatus)
|
||||
window.addEventListener('offline', this.refreshOnlineStatus)
|
||||
}
|
||||
// Add $nuxt.error()
|
||||
this.error = this.nuxt.error
|
||||
// Add $nuxt.context
|
||||
this.context = this.$options.context
|
||||
},
|
||||
|
||||
async mounted () {
|
||||
this.$loading = this.$refs.loading
|
||||
},
|
||||
|
||||
watch: {
|
||||
'nuxt.err': 'errorChanged'
|
||||
},
|
||||
|
||||
computed: {
|
||||
isOffline () {
|
||||
return !this.isOnline
|
||||
},
|
||||
|
||||
isFetching () {
|
||||
return this.nbFetching > 0
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
refreshOnlineStatus () {
|
||||
if (process.client) {
|
||||
if (typeof window.navigator.onLine === 'undefined') {
|
||||
// If the browser doesn't support connection status reports
|
||||
// assume that we are online because most apps' only react
|
||||
// when they now that the connection has been interrupted
|
||||
this.isOnline = true
|
||||
} else {
|
||||
this.isOnline = window.navigator.onLine
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
async refresh () {
|
||||
const pages = getMatchedComponentsInstances(this.$route)
|
||||
|
||||
if (!pages.length) {
|
||||
return
|
||||
}
|
||||
this.$loading.start()
|
||||
|
||||
const promises = pages.map(async (page) => {
|
||||
let p = []
|
||||
|
||||
// Old fetch
|
||||
if (page.$options.fetch && page.$options.fetch.length) {
|
||||
p.push(promisify(page.$options.fetch, this.context))
|
||||
}
|
||||
|
||||
if (page.$options.asyncData) {
|
||||
p.push(
|
||||
promisify(page.$options.asyncData, this.context)
|
||||
.then((newData) => {
|
||||
for (const key in newData) {
|
||||
Vue.set(page.$data, key, newData[key])
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
// Wait for asyncData & old fetch to finish
|
||||
await Promise.all(p)
|
||||
// Cleanup refs
|
||||
p = []
|
||||
|
||||
if (page.$fetch) {
|
||||
p.push(page.$fetch())
|
||||
}
|
||||
// Get all component instance to call $fetch
|
||||
for (const component of getChildrenComponentInstancesUsingFetch(page.$vnode.componentInstance)) {
|
||||
p.push(component.$fetch())
|
||||
}
|
||||
|
||||
return Promise.all(p)
|
||||
})
|
||||
try {
|
||||
await Promise.all(promises)
|
||||
} catch (error) {
|
||||
this.$loading.fail(error)
|
||||
globalHandleError(error)
|
||||
this.error(error)
|
||||
}
|
||||
this.$loading.finish()
|
||||
},
|
||||
errorChanged () {
|
||||
if (this.nuxt.err) {
|
||||
if (this.$loading) {
|
||||
if (this.$loading.fail) {
|
||||
this.$loading.fail(this.nuxt.err)
|
||||
}
|
||||
if (this.$loading.finish) {
|
||||
this.$loading.finish()
|
||||
}
|
||||
}
|
||||
|
||||
let errorLayout = (NuxtError.options || NuxtError).layout;
|
||||
|
||||
if (typeof errorLayout === 'function') {
|
||||
errorLayout = errorLayout(this.context)
|
||||
}
|
||||
|
||||
this.setLayout(errorLayout)
|
||||
}
|
||||
},
|
||||
|
||||
setLayout (layout) {
|
||||
if (!layout || !layouts['_' + layout]) {
|
||||
layout = 'default'
|
||||
}
|
||||
this.layoutName = layout
|
||||
this.layout = layouts['_' + layout]
|
||||
return this.layout
|
||||
},
|
||||
loadLayout (layout) {
|
||||
if (!layout || !layouts['_' + layout]) {
|
||||
layout = 'default'
|
||||
}
|
||||
return Promise.resolve(layouts['_' + layout])
|
||||
},
|
||||
},
|
||||
|
||||
components: {
|
||||
NuxtLoading
|
||||
}
|
||||
}
|
|
@ -1,193 +0,0 @@
|
|||
import Axios from 'axios'
|
||||
import defu from 'defu'
|
||||
|
||||
// Axios.prototype cannot be modified
|
||||
const axiosExtra = {
|
||||
setBaseURL (baseURL) {
|
||||
this.defaults.baseURL = baseURL
|
||||
},
|
||||
setHeader (name, value, scopes = 'common') {
|
||||
for (const scope of Array.isArray(scopes) ? scopes : [ scopes ]) {
|
||||
if (!value) {
|
||||
delete this.defaults.headers[scope][name];
|
||||
continue
|
||||
}
|
||||
this.defaults.headers[scope][name] = value
|
||||
}
|
||||
},
|
||||
setToken (token, type, scopes = 'common') {
|
||||
const value = !token ? null : (type ? type + ' ' : '') + token
|
||||
this.setHeader('Authorization', value, scopes)
|
||||
},
|
||||
onRequest(fn) {
|
||||
this.interceptors.request.use(config => fn(config) || config)
|
||||
},
|
||||
onResponse(fn) {
|
||||
this.interceptors.response.use(response => fn(response) || response)
|
||||
},
|
||||
onRequestError(fn) {
|
||||
this.interceptors.request.use(undefined, error => fn(error) || Promise.reject(error))
|
||||
},
|
||||
onResponseError(fn) {
|
||||
this.interceptors.response.use(undefined, error => fn(error) || Promise.reject(error))
|
||||
},
|
||||
onError(fn) {
|
||||
this.onRequestError(fn)
|
||||
this.onResponseError(fn)
|
||||
},
|
||||
create(options) {
|
||||
return createAxiosInstance(defu(options, this.defaults))
|
||||
}
|
||||
}
|
||||
|
||||
// Request helpers ($get, $post, ...)
|
||||
for (const method of ['request', 'delete', 'get', 'head', 'options', 'post', 'put', 'patch']) {
|
||||
axiosExtra['$' + method] = function () { return this[method].apply(this, arguments).then(res => res && res.data) }
|
||||
}
|
||||
|
||||
const extendAxiosInstance = axios => {
|
||||
for (const key in axiosExtra) {
|
||||
axios[key] = axiosExtra[key].bind(axios)
|
||||
}
|
||||
}
|
||||
|
||||
const createAxiosInstance = axiosOptions => {
|
||||
// Create new axios instance
|
||||
const axios = Axios.create(axiosOptions)
|
||||
axios.CancelToken = Axios.CancelToken
|
||||
axios.isCancel = Axios.isCancel
|
||||
|
||||
// Extend axios proto
|
||||
extendAxiosInstance(axios)
|
||||
|
||||
// Intercept to apply default headers
|
||||
axios.onRequest((config) => {
|
||||
config.headers = { ...axios.defaults.headers.common, ...config.headers }
|
||||
})
|
||||
|
||||
// Setup interceptors
|
||||
|
||||
setupProgress(axios)
|
||||
|
||||
return axios
|
||||
}
|
||||
|
||||
const setupProgress = (axios) => {
|
||||
if (process.server) {
|
||||
return
|
||||
}
|
||||
|
||||
// A noop loading inteterface for when $nuxt is not yet ready
|
||||
const noopLoading = {
|
||||
finish: () => { },
|
||||
start: () => { },
|
||||
fail: () => { },
|
||||
set: () => { }
|
||||
}
|
||||
|
||||
const $loading = () => {
|
||||
const $nuxt = typeof window !== 'undefined' && window['$nuxt']
|
||||
return ($nuxt && $nuxt.$loading && $nuxt.$loading.set) ? $nuxt.$loading : noopLoading
|
||||
}
|
||||
|
||||
let currentRequests = 0
|
||||
|
||||
axios.onRequest(config => {
|
||||
if (config && config.progress === false) {
|
||||
return
|
||||
}
|
||||
|
||||
currentRequests++
|
||||
})
|
||||
|
||||
axios.onResponse(response => {
|
||||
if (response && response.config && response.config.progress === false) {
|
||||
return
|
||||
}
|
||||
|
||||
currentRequests--
|
||||
if (currentRequests <= 0) {
|
||||
currentRequests = 0
|
||||
$loading().finish()
|
||||
}
|
||||
})
|
||||
|
||||
axios.onError(error => {
|
||||
if (error && error.config && error.config.progress === false) {
|
||||
return
|
||||
}
|
||||
|
||||
currentRequests--
|
||||
|
||||
if (Axios.isCancel(error)) {
|
||||
if (currentRequests <= 0) {
|
||||
currentRequests = 0
|
||||
$loading().finish()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
$loading().fail()
|
||||
$loading().finish()
|
||||
})
|
||||
|
||||
const onProgress = e => {
|
||||
if (!currentRequests || !e.total) {
|
||||
return
|
||||
}
|
||||
const progress = ((e.loaded * 100) / (e.total * currentRequests))
|
||||
$loading().set(Math.min(100, progress))
|
||||
}
|
||||
|
||||
axios.defaults.onUploadProgress = onProgress
|
||||
axios.defaults.onDownloadProgress = onProgress
|
||||
}
|
||||
|
||||
export default (ctx, inject) => {
|
||||
// runtimeConfig
|
||||
const runtimeConfig = ctx.$config && ctx.$config.axios || {}
|
||||
// baseURL
|
||||
const baseURL = process.browser
|
||||
? (runtimeConfig.browserBaseURL || runtimeConfig.browserBaseUrl || runtimeConfig.baseURL || runtimeConfig.baseUrl || 'http://localhost:8000/')
|
||||
: (runtimeConfig.baseURL || runtimeConfig.baseUrl || process.env._AXIOS_BASE_URL_ || 'http://localhost:8000/')
|
||||
|
||||
// Create fresh objects for all default header scopes
|
||||
// Axios creates only one which is shared across SSR requests!
|
||||
// https://github.com/mzabriskie/axios/blob/master/lib/defaults.js
|
||||
const headers = {
|
||||
"common": {
|
||||
"Accept": "application/json, text/plain, */*"
|
||||
},
|
||||
"delete": {},
|
||||
"get": {},
|
||||
"head": {},
|
||||
"post": {},
|
||||
"put": {},
|
||||
"patch": {}
|
||||
}
|
||||
|
||||
const axiosOptions = {
|
||||
baseURL,
|
||||
headers
|
||||
}
|
||||
|
||||
// Proxy SSR request headers headers
|
||||
if (process.server && ctx.req && ctx.req.headers) {
|
||||
const reqHeaders = { ...ctx.req.headers }
|
||||
for (const h of ["accept","cf-connecting-ip","cf-ray","content-length","content-md5","content-type","host","x-forwarded-host","x-forwarded-port","x-forwarded-proto"]) {
|
||||
delete reqHeaders[h]
|
||||
}
|
||||
axiosOptions.headers.common = { ...reqHeaders, ...axiosOptions.headers.common }
|
||||
}
|
||||
|
||||
if (process.server) {
|
||||
// Don't accept brotli encoding because Node can't parse it
|
||||
axiosOptions.headers.common['accept-encoding'] = 'gzip, deflate'
|
||||
}
|
||||
|
||||
const axios = createAxiosInstance(axiosOptions)
|
||||
|
||||
// Inject axios to the context as $axios
|
||||
ctx.$axios = axios
|
||||
inject('axios', axios)
|
||||
}
|
|
@ -1,687 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
import fetch from 'unfetch'
|
||||
import middleware from './middleware.js'
|
||||
import {
|
||||
applyAsyncData,
|
||||
promisify,
|
||||
middlewareSeries,
|
||||
sanitizeComponent,
|
||||
resolveRouteComponents,
|
||||
getMatchedComponents,
|
||||
getMatchedComponentsInstances,
|
||||
flatMapComponents,
|
||||
setContext,
|
||||
getLocation,
|
||||
compile,
|
||||
getQueryDiff,
|
||||
globalHandleError,
|
||||
isSamePath,
|
||||
urlJoin
|
||||
} from './utils.js'
|
||||
import { createApp, NuxtError } from './index.js'
|
||||
import fetchMixin from './mixins/fetch.client'
|
||||
import NuxtLink from './components/nuxt-link.client.js' // should be included after ./index.js
|
||||
|
||||
// Fetch mixin
|
||||
if (!Vue.__nuxt__fetch__mixin__) {
|
||||
Vue.mixin(fetchMixin)
|
||||
Vue.__nuxt__fetch__mixin__ = true
|
||||
}
|
||||
|
||||
// Component: <NuxtLink>
|
||||
Vue.component(NuxtLink.name, NuxtLink)
|
||||
Vue.component('NLink', NuxtLink)
|
||||
|
||||
if (!global.fetch) { global.fetch = fetch }
|
||||
|
||||
// Global shared references
|
||||
let _lastPaths = []
|
||||
let app
|
||||
let router
|
||||
let store
|
||||
|
||||
// Try to rehydrate SSR data from window
|
||||
const NUXT = window.__NUXT__ || {}
|
||||
|
||||
const $config = NUXT.config || {}
|
||||
if ($config._app) {
|
||||
__webpack_public_path__ = urlJoin($config._app.cdnURL, $config._app.assetsPath)
|
||||
}
|
||||
|
||||
Object.assign(Vue.config, {"silent":true,"performance":false})
|
||||
|
||||
const errorHandler = Vue.config.errorHandler || console.error
|
||||
|
||||
// Create and mount App
|
||||
createApp(null, NUXT.config).then(mountApp).catch(errorHandler)
|
||||
|
||||
function componentOption (component, key, ...args) {
|
||||
if (!component || !component.options || !component.options[key]) {
|
||||
return {}
|
||||
}
|
||||
const option = component.options[key]
|
||||
if (typeof option === 'function') {
|
||||
return option(...args)
|
||||
}
|
||||
return option
|
||||
}
|
||||
|
||||
function mapTransitions (toComponents, to, from) {
|
||||
const componentTransitions = (component) => {
|
||||
const transition = componentOption(component, 'transition', to, from) || {}
|
||||
return (typeof transition === 'string' ? { name: transition } : transition)
|
||||
}
|
||||
|
||||
const fromComponents = from ? getMatchedComponents(from) : []
|
||||
const maxDepth = Math.max(toComponents.length, fromComponents.length)
|
||||
|
||||
const mergedTransitions = []
|
||||
for (let i=0; i<maxDepth; i++) {
|
||||
// Clone original objects to prevent overrides
|
||||
const toTransitions = Object.assign({}, componentTransitions(toComponents[i]))
|
||||
const transitions = Object.assign({}, componentTransitions(fromComponents[i]))
|
||||
|
||||
// Combine transitions & prefer `leave` properties of "from" route
|
||||
Object.keys(toTransitions)
|
||||
.filter(key => typeof toTransitions[key] !== 'undefined' && !key.toLowerCase().includes('leave'))
|
||||
.forEach((key) => { transitions[key] = toTransitions[key] })
|
||||
|
||||
mergedTransitions.push(transitions)
|
||||
}
|
||||
return mergedTransitions
|
||||
}
|
||||
|
||||
async function loadAsyncComponents (to, from, next) {
|
||||
// Check if route changed (this._routeChanged), only if the page is not an error (for validate())
|
||||
this._routeChanged = Boolean(app.nuxt.err) || from.name !== to.name
|
||||
this._paramChanged = !this._routeChanged && from.path !== to.path
|
||||
this._queryChanged = !this._paramChanged && from.fullPath !== to.fullPath
|
||||
this._diffQuery = (this._queryChanged ? getQueryDiff(to.query, from.query) : [])
|
||||
|
||||
if ((this._routeChanged || this._paramChanged) && this.$loading.start && !this.$loading.manual) {
|
||||
this.$loading.start()
|
||||
}
|
||||
|
||||
try {
|
||||
if (this._queryChanged) {
|
||||
const Components = await resolveRouteComponents(
|
||||
to,
|
||||
(Component, instance) => ({ Component, instance })
|
||||
)
|
||||
// Add a marker on each component that it needs to refresh or not
|
||||
const startLoader = Components.some(({ Component, instance }) => {
|
||||
const watchQuery = Component.options.watchQuery
|
||||
if (watchQuery === true) {
|
||||
return true
|
||||
}
|
||||
if (Array.isArray(watchQuery)) {
|
||||
return watchQuery.some(key => this._diffQuery[key])
|
||||
}
|
||||
if (typeof watchQuery === 'function') {
|
||||
return watchQuery.apply(instance, [to.query, from.query])
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
if (startLoader && this.$loading.start && !this.$loading.manual) {
|
||||
this.$loading.start()
|
||||
}
|
||||
}
|
||||
// Call next()
|
||||
next()
|
||||
} catch (error) {
|
||||
const err = error || {}
|
||||
const statusCode = err.statusCode || err.status || (err.response && err.response.status) || 500
|
||||
const message = err.message || ''
|
||||
|
||||
// Handle chunk loading errors
|
||||
// This may be due to a new deployment or a network problem
|
||||
if (/^Loading( CSS)? chunk (\d)+ failed\./.test(message)) {
|
||||
window.location.reload(true /* skip cache */)
|
||||
return // prevent error page blinking for user
|
||||
}
|
||||
|
||||
this.error({ statusCode, message })
|
||||
this.$nuxt.$emit('routeChanged', to, from, err)
|
||||
next()
|
||||
}
|
||||
}
|
||||
|
||||
function applySSRData (Component, ssrData) {
|
||||
if (NUXT.serverRendered && ssrData) {
|
||||
applyAsyncData(Component, ssrData)
|
||||
}
|
||||
|
||||
Component._Ctor = Component
|
||||
return Component
|
||||
}
|
||||
|
||||
// Get matched components
|
||||
function resolveComponents (route) {
|
||||
return flatMapComponents(route, async (Component, _, match, key, index) => {
|
||||
// If component is not resolved yet, resolve it
|
||||
if (typeof Component === 'function' && !Component.options) {
|
||||
Component = await Component()
|
||||
}
|
||||
// Sanitize it and save it
|
||||
const _Component = applySSRData(sanitizeComponent(Component), NUXT.data ? NUXT.data[index] : null)
|
||||
match.components[key] = _Component
|
||||
return _Component
|
||||
})
|
||||
}
|
||||
|
||||
function callMiddleware (Components, context, layout, renderState) {
|
||||
let midd = ["route"]
|
||||
let unknownMiddleware = false
|
||||
|
||||
// If layout is undefined, only call global middleware
|
||||
if (typeof layout !== 'undefined') {
|
||||
midd = [] // Exclude global middleware if layout defined (already called before)
|
||||
layout = sanitizeComponent(layout)
|
||||
if (layout.options.middleware) {
|
||||
midd = midd.concat(layout.options.middleware)
|
||||
}
|
||||
Components.forEach((Component) => {
|
||||
if (Component.options.middleware) {
|
||||
midd = midd.concat(Component.options.middleware)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
midd = midd.map((name) => {
|
||||
if (typeof name === 'function') {
|
||||
return name
|
||||
}
|
||||
if (typeof middleware[name] !== 'function') {
|
||||
unknownMiddleware = true
|
||||
this.error({ statusCode: 500, message: 'Unknown middleware ' + name })
|
||||
}
|
||||
return middleware[name]
|
||||
})
|
||||
|
||||
if (unknownMiddleware) {
|
||||
return
|
||||
}
|
||||
return middlewareSeries(midd, context, renderState)
|
||||
}
|
||||
|
||||
async function render (to, from, next, renderState) {
|
||||
if (this._routeChanged === false && this._paramChanged === false && this._queryChanged === false) {
|
||||
return next()
|
||||
}
|
||||
// Handle first render on SPA mode
|
||||
let spaFallback = false
|
||||
if (to === from) {
|
||||
_lastPaths = []
|
||||
spaFallback = true
|
||||
} else {
|
||||
const fromMatches = []
|
||||
_lastPaths = getMatchedComponents(from, fromMatches).map((Component, i) => {
|
||||
return compile(from.matched[fromMatches[i]].path)(from.params)
|
||||
})
|
||||
}
|
||||
|
||||
// nextCalled is true when redirected
|
||||
let nextCalled = false
|
||||
const _next = (path) => {
|
||||
if (from.path === path.path && this.$loading.finish) {
|
||||
this.$loading.finish()
|
||||
}
|
||||
|
||||
if (from.path !== path.path && this.$loading.pause) {
|
||||
this.$loading.pause()
|
||||
}
|
||||
|
||||
if (nextCalled) {
|
||||
return
|
||||
}
|
||||
|
||||
nextCalled = true
|
||||
next(path)
|
||||
}
|
||||
|
||||
// Update context
|
||||
await setContext(app, {
|
||||
route: to,
|
||||
from,
|
||||
error: (err) => {
|
||||
if (renderState.aborted) {
|
||||
return
|
||||
}
|
||||
app.nuxt.error.call(this, err)
|
||||
},
|
||||
next: _next.bind(this)
|
||||
})
|
||||
this._dateLastError = app.nuxt.dateErr
|
||||
this._hadError = Boolean(app.nuxt.err)
|
||||
|
||||
// Get route's matched components
|
||||
const matches = []
|
||||
const Components = getMatchedComponents(to, matches)
|
||||
|
||||
// If no Components matched, generate 404
|
||||
if (!Components.length) {
|
||||
// Default layout
|
||||
await callMiddleware.call(this, Components, app.context, undefined, renderState)
|
||||
if (nextCalled) {
|
||||
return
|
||||
}
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
|
||||
// Load layout for error page
|
||||
const errorLayout = (NuxtError.options || NuxtError).layout
|
||||
const layout = await this.loadLayout(
|
||||
typeof errorLayout === 'function'
|
||||
? errorLayout.call(NuxtError, app.context)
|
||||
: errorLayout
|
||||
)
|
||||
|
||||
await callMiddleware.call(this, Components, app.context, layout, renderState)
|
||||
if (nextCalled) {
|
||||
return
|
||||
}
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
|
||||
// Show error page
|
||||
app.context.error({ statusCode: 404, message: 'This page could not be found' })
|
||||
return next()
|
||||
}
|
||||
|
||||
// Update ._data and other properties if hot reloaded
|
||||
Components.forEach((Component) => {
|
||||
if (Component._Ctor && Component._Ctor.options) {
|
||||
Component.options.asyncData = Component._Ctor.options.asyncData
|
||||
Component.options.fetch = Component._Ctor.options.fetch
|
||||
}
|
||||
})
|
||||
|
||||
// Apply transitions
|
||||
this.setTransitions(mapTransitions(Components, to, from))
|
||||
|
||||
try {
|
||||
// Call middleware
|
||||
await callMiddleware.call(this, Components, app.context, undefined, renderState)
|
||||
if (nextCalled) {
|
||||
return
|
||||
}
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
if (app.context._errored) {
|
||||
return next()
|
||||
}
|
||||
|
||||
// Set layout
|
||||
let layout = Components[0].options.layout
|
||||
if (typeof layout === 'function') {
|
||||
layout = layout(app.context)
|
||||
}
|
||||
layout = await this.loadLayout(layout)
|
||||
|
||||
// Call middleware for layout
|
||||
await callMiddleware.call(this, Components, app.context, layout, renderState)
|
||||
if (nextCalled) {
|
||||
return
|
||||
}
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
if (app.context._errored) {
|
||||
return next()
|
||||
}
|
||||
|
||||
// Call .validate()
|
||||
let isValid = true
|
||||
try {
|
||||
for (const Component of Components) {
|
||||
if (typeof Component.options.validate !== 'function') {
|
||||
continue
|
||||
}
|
||||
|
||||
isValid = await Component.options.validate(app.context)
|
||||
|
||||
if (!isValid) {
|
||||
break
|
||||
}
|
||||
}
|
||||
} catch (validationError) {
|
||||
// ...If .validate() threw an error
|
||||
this.error({
|
||||
statusCode: validationError.statusCode || '500',
|
||||
message: validationError.message
|
||||
})
|
||||
return next()
|
||||
}
|
||||
|
||||
// ...If .validate() returned false
|
||||
if (!isValid) {
|
||||
this.error({ statusCode: 404, message: 'This page could not be found' })
|
||||
return next()
|
||||
}
|
||||
|
||||
let instances
|
||||
// Call asyncData & fetch hooks on components matched by the route.
|
||||
await Promise.all(Components.map(async (Component, i) => {
|
||||
// Check if only children route changed
|
||||
Component._path = compile(to.matched[matches[i]].path)(to.params)
|
||||
Component._dataRefresh = false
|
||||
const childPathChanged = Component._path !== _lastPaths[i]
|
||||
// Refresh component (call asyncData & fetch) when:
|
||||
// Route path changed part includes current component
|
||||
// Or route param changed part includes current component and watchParam is not `false`
|
||||
// Or route query is changed and watchQuery returns `true`
|
||||
if (this._routeChanged && childPathChanged) {
|
||||
Component._dataRefresh = true
|
||||
} else if (this._paramChanged && childPathChanged) {
|
||||
const watchParam = Component.options.watchParam
|
||||
Component._dataRefresh = watchParam !== false
|
||||
} else if (this._queryChanged) {
|
||||
const watchQuery = Component.options.watchQuery
|
||||
if (watchQuery === true) {
|
||||
Component._dataRefresh = true
|
||||
} else if (Array.isArray(watchQuery)) {
|
||||
Component._dataRefresh = watchQuery.some(key => this._diffQuery[key])
|
||||
} else if (typeof watchQuery === 'function') {
|
||||
if (!instances) {
|
||||
instances = getMatchedComponentsInstances(to)
|
||||
}
|
||||
Component._dataRefresh = watchQuery.apply(instances[i], [to.query, from.query])
|
||||
}
|
||||
}
|
||||
if (!this._hadError && this._isMounted && !Component._dataRefresh) {
|
||||
return
|
||||
}
|
||||
|
||||
const promises = []
|
||||
|
||||
const hasAsyncData = (
|
||||
Component.options.asyncData &&
|
||||
typeof Component.options.asyncData === 'function'
|
||||
)
|
||||
|
||||
const hasFetch = Boolean(Component.options.fetch) && Component.options.fetch.length
|
||||
|
||||
const loadingIncrease = (hasAsyncData && hasFetch) ? 30 : 45
|
||||
|
||||
// Call asyncData(context)
|
||||
if (hasAsyncData) {
|
||||
const promise = promisify(Component.options.asyncData, app.context)
|
||||
|
||||
promise.then((asyncDataResult) => {
|
||||
applyAsyncData(Component, asyncDataResult)
|
||||
|
||||
if (this.$loading.increase) {
|
||||
this.$loading.increase(loadingIncrease)
|
||||
}
|
||||
})
|
||||
promises.push(promise)
|
||||
}
|
||||
|
||||
// Check disabled page loading
|
||||
this.$loading.manual = Component.options.loading === false
|
||||
|
||||
// Call fetch(context)
|
||||
if (hasFetch) {
|
||||
let p = Component.options.fetch(app.context)
|
||||
if (!p || (!(p instanceof Promise) && (typeof p.then !== 'function'))) {
|
||||
p = Promise.resolve(p)
|
||||
}
|
||||
p.then((fetchResult) => {
|
||||
if (this.$loading.increase) {
|
||||
this.$loading.increase(loadingIncrease)
|
||||
}
|
||||
})
|
||||
promises.push(p)
|
||||
}
|
||||
|
||||
return Promise.all(promises)
|
||||
}))
|
||||
|
||||
// If not redirected
|
||||
if (!nextCalled) {
|
||||
if (this.$loading.finish && !this.$loading.manual) {
|
||||
this.$loading.finish()
|
||||
}
|
||||
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
next()
|
||||
}
|
||||
} catch (err) {
|
||||
if (renderState.aborted) {
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
const error = err || {}
|
||||
if (error.message === 'ERR_REDIRECT') {
|
||||
return this.$nuxt.$emit('routeChanged', to, from, error)
|
||||
}
|
||||
_lastPaths = []
|
||||
|
||||
globalHandleError(error)
|
||||
|
||||
// Load error layout
|
||||
let layout = (NuxtError.options || NuxtError).layout
|
||||
if (typeof layout === 'function') {
|
||||
layout = layout(app.context)
|
||||
}
|
||||
await this.loadLayout(layout)
|
||||
|
||||
this.error(error)
|
||||
this.$nuxt.$emit('routeChanged', to, from, error)
|
||||
next()
|
||||
}
|
||||
}
|
||||
|
||||
// Fix components format in matched, it's due to code-splitting of vue-router
|
||||
function normalizeComponents (to, ___) {
|
||||
flatMapComponents(to, (Component, _, match, key) => {
|
||||
if (typeof Component === 'object' && !Component.options) {
|
||||
// Updated via vue-router resolveAsyncComponents()
|
||||
Component = Vue.extend(Component)
|
||||
Component._Ctor = Component
|
||||
match.components[key] = Component
|
||||
}
|
||||
return Component
|
||||
})
|
||||
}
|
||||
|
||||
function setLayoutForNextPage (to) {
|
||||
// Set layout
|
||||
let hasError = Boolean(this.$options.nuxt.err)
|
||||
if (this._hadError && this._dateLastError === this.$options.nuxt.dateErr) {
|
||||
hasError = false
|
||||
}
|
||||
let layout = hasError
|
||||
? (NuxtError.options || NuxtError).layout
|
||||
: to.matched[0].components.default.options.layout
|
||||
|
||||
if (typeof layout === 'function') {
|
||||
layout = layout(app.context)
|
||||
}
|
||||
|
||||
this.setLayout(layout)
|
||||
}
|
||||
|
||||
function checkForErrors (app) {
|
||||
// Hide error component if no error
|
||||
if (app._hadError && app._dateLastError === app.$options.nuxt.dateErr) {
|
||||
app.error()
|
||||
}
|
||||
}
|
||||
|
||||
// When navigating on a different route but the same component is used, Vue.js
|
||||
// Will not update the instance data, so we have to update $data ourselves
|
||||
function fixPrepatch (to, ___) {
|
||||
if (this._routeChanged === false && this._paramChanged === false && this._queryChanged === false) {
|
||||
return
|
||||
}
|
||||
|
||||
const instances = getMatchedComponentsInstances(to)
|
||||
const Components = getMatchedComponents(to)
|
||||
|
||||
let triggerScroll = false
|
||||
|
||||
Vue.nextTick(() => {
|
||||
instances.forEach((instance, i) => {
|
||||
if (!instance || instance._isDestroyed) {
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
instance.constructor._dataRefresh &&
|
||||
Components[i] === instance.constructor &&
|
||||
instance.$vnode.data.keepAlive !== true &&
|
||||
typeof instance.constructor.options.data === 'function'
|
||||
) {
|
||||
const newData = instance.constructor.options.data.call(instance)
|
||||
for (const key in newData) {
|
||||
Vue.set(instance.$data, key, newData[key])
|
||||
}
|
||||
|
||||
triggerScroll = true
|
||||
}
|
||||
})
|
||||
|
||||
if (triggerScroll) {
|
||||
// Ensure to trigger scroll event after calling scrollBehavior
|
||||
window.$nuxt.$nextTick(() => {
|
||||
window.$nuxt.$emit('triggerScroll')
|
||||
})
|
||||
}
|
||||
|
||||
checkForErrors(this)
|
||||
})
|
||||
}
|
||||
|
||||
function nuxtReady (_app) {
|
||||
window.onNuxtReadyCbs.forEach((cb) => {
|
||||
if (typeof cb === 'function') {
|
||||
cb(_app)
|
||||
}
|
||||
})
|
||||
// Special JSDOM
|
||||
if (typeof window._onNuxtLoaded === 'function') {
|
||||
window._onNuxtLoaded(_app)
|
||||
}
|
||||
// Add router hooks
|
||||
router.afterEach((to, from) => {
|
||||
// Wait for fixPrepatch + $data updates
|
||||
Vue.nextTick(() => _app.$nuxt.$emit('routeChanged', to, from))
|
||||
})
|
||||
}
|
||||
|
||||
async function mountApp (__app) {
|
||||
// Set global variables
|
||||
app = __app.app
|
||||
router = __app.router
|
||||
store = __app.store
|
||||
|
||||
// Create Vue instance
|
||||
const _app = new Vue(app)
|
||||
|
||||
// Load layout
|
||||
const layout = NUXT.layout || 'default'
|
||||
await _app.loadLayout(layout)
|
||||
_app.setLayout(layout)
|
||||
|
||||
// Mounts Vue app to DOM element
|
||||
const mount = () => {
|
||||
_app.$mount('#__nuxt')
|
||||
|
||||
// Add afterEach router hooks
|
||||
router.afterEach(normalizeComponents)
|
||||
|
||||
router.afterEach(setLayoutForNextPage.bind(_app))
|
||||
|
||||
router.afterEach(fixPrepatch.bind(_app))
|
||||
|
||||
// Listen for first Vue update
|
||||
Vue.nextTick(() => {
|
||||
// Call window.{{globals.readyCallback}} callbacks
|
||||
nuxtReady(_app)
|
||||
})
|
||||
}
|
||||
|
||||
// Resolve route components
|
||||
const Components = await Promise.all(resolveComponents(app.context.route))
|
||||
|
||||
// Enable transitions
|
||||
_app.setTransitions = _app.$options.nuxt.setTransitions.bind(_app)
|
||||
if (Components.length) {
|
||||
_app.setTransitions(mapTransitions(Components, router.currentRoute))
|
||||
_lastPaths = router.currentRoute.matched.map(route => compile(route.path)(router.currentRoute.params))
|
||||
}
|
||||
|
||||
// Initialize error handler
|
||||
_app.$loading = {} // To avoid error while _app.$nuxt does not exist
|
||||
if (NUXT.error) {
|
||||
_app.error(NUXT.error)
|
||||
}
|
||||
|
||||
// Add beforeEach router hooks
|
||||
router.beforeEach(loadAsyncComponents.bind(_app))
|
||||
|
||||
// Each new invocation of render() aborts previous invocation
|
||||
let renderState = null
|
||||
const boundRender = render.bind(_app)
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (renderState) {
|
||||
renderState.aborted = true
|
||||
}
|
||||
renderState = { aborted: false }
|
||||
boundRender(to, from, next, renderState)
|
||||
})
|
||||
|
||||
// Fix in static: remove trailing slash to force hydration
|
||||
// Full static, if server-rendered: hydrate, to allow custom redirect to generated page
|
||||
|
||||
// Fix in static: remove trailing slash to force hydration
|
||||
if (NUXT.serverRendered && isSamePath(NUXT.routePath, _app.context.route.path)) {
|
||||
return mount()
|
||||
}
|
||||
|
||||
// First render on client-side
|
||||
const clientFirstMount = () => {
|
||||
normalizeComponents(router.currentRoute, router.currentRoute)
|
||||
setLayoutForNextPage.call(_app, router.currentRoute)
|
||||
checkForErrors(_app)
|
||||
// Don't call fixPrepatch.call(_app, router.currentRoute, router.currentRoute) since it's first render
|
||||
mount()
|
||||
}
|
||||
|
||||
// fix: force next tick to avoid having same timestamp when an error happen on spa fallback
|
||||
await new Promise(resolve => setTimeout(resolve, 0))
|
||||
render.call(_app, router.currentRoute, router.currentRoute, (path) => {
|
||||
// If not redirected
|
||||
if (!path) {
|
||||
clientFirstMount()
|
||||
return
|
||||
}
|
||||
|
||||
// Add a one-time afterEach hook to
|
||||
// mount the app wait for redirect and route gets resolved
|
||||
const unregisterHook = router.afterEach((to, from) => {
|
||||
unregisterHook()
|
||||
clientFirstMount()
|
||||
})
|
||||
|
||||
// Push the path and let route to be resolved
|
||||
router.push(path, undefined, (err) => {
|
||||
if (err) {
|
||||
errorHandler(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
{ aborted: false })
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
export const ActivityArea = () => import('../..\\components\\activity-area.vue' /* webpackChunkName: "components/activity-area" */).then(c => wrapFunctional(c.default || c))
|
||||
export const AdItem = () => import('../..\\components\\ad-item.vue' /* webpackChunkName: "components/ad-item" */).then(c => wrapFunctional(c.default || c))
|
||||
export const AddressAdd = () => import('../..\\components\\address-add.vue' /* webpackChunkName: "components/address-add" */).then(c => wrapFunctional(c.default || c))
|
||||
export const AddressList = () => import('../..\\components\\address-list.vue' /* webpackChunkName: "components/address-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const AfterSalesList = () => import('../..\\components\\after-sales-list.vue' /* webpackChunkName: "components/after-sales-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const CommentList = () => import('../..\\components\\comment-list.vue' /* webpackChunkName: "components/comment-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const CountDown = () => import('../..\\components\\count-down.vue' /* webpackChunkName: "components/count-down" */).then(c => wrapFunctional(c.default || c))
|
||||
export const CouponsList = () => import('../..\\components\\coupons-list.vue' /* webpackChunkName: "components/coupons-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const DeliverSearch = () => import('../..\\components\\deliver-search.vue' /* webpackChunkName: "components/deliver-search" */).then(c => wrapFunctional(c.default || c))
|
||||
export const EvaluationList = () => import('../..\\components\\evaluation-list.vue' /* webpackChunkName: "components/evaluation-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const GoodsList = () => import('../..\\components\\goods-list.vue' /* webpackChunkName: "components/goods-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const HomeSeckill = () => import('../..\\components\\home-seckill.vue' /* webpackChunkName: "components/home-seckill" */).then(c => wrapFunctional(c.default || c))
|
||||
export const InputExpress = () => import('../..\\components\\input-Express.vue' /* webpackChunkName: "components/input-express" */).then(c => wrapFunctional(c.default || c))
|
||||
export const NullData = () => import('../..\\components\\null-data.vue' /* webpackChunkName: "components/null-data" */).then(c => wrapFunctional(c.default || c))
|
||||
export const NumberBox = () => import('../..\\components\\number-box.vue' /* webpackChunkName: "components/number-box" */).then(c => wrapFunctional(c.default || c))
|
||||
export const OrderList = () => import('../..\\components\\order-list.vue' /* webpackChunkName: "components/order-list" */).then(c => wrapFunctional(c.default || c))
|
||||
export const PriceFormate = () => import('../..\\components\\price-formate.vue' /* webpackChunkName: "components/price-formate" */).then(c => wrapFunctional(c.default || c))
|
||||
export const ShopItem = () => import('../..\\components\\shop-item.vue' /* webpackChunkName: "components/shop-item" */).then(c => wrapFunctional(c.default || c))
|
||||
export const Upload = () => import('../..\\components\\upload.vue' /* webpackChunkName: "components/upload" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutAslideNav = () => import('../..\\components\\layout\\aslide-nav.vue' /* webpackChunkName: "components/layout-aslide-nav" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutCategory = () => import('../..\\components\\layout\\category.vue' /* webpackChunkName: "components/layout-category" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutFloatNav = () => import('../..\\components\\layout\\float-nav.vue' /* webpackChunkName: "components/layout-float-nav" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutFooter = () => import('../..\\components\\layout\\footer.vue' /* webpackChunkName: "components/layout-footer" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutHeader = () => import('../..\\components\\layout\\header.vue' /* webpackChunkName: "components/layout-header" */).then(c => wrapFunctional(c.default || c))
|
||||
export const LayoutMainNav = () => import('../..\\components\\layout\\main-nav.vue' /* webpackChunkName: "components/layout-main-nav" */).then(c => wrapFunctional(c.default || c))
|
||||
|
||||
// nuxt/nuxt.js#8607
|
||||
function wrapFunctional(options) {
|
||||
if (!options || !options.functional) {
|
||||
return options
|
||||
}
|
||||
|
||||
const propKeys = Array.isArray(options.props) ? options.props : Object.keys(options.props || {})
|
||||
|
||||
return {
|
||||
render(h) {
|
||||
const attrs = {}
|
||||
const props = {}
|
||||
|
||||
for (const key in this.$attrs) {
|
||||
if (propKeys.includes(key)) {
|
||||
props[key] = this.$attrs[key]
|
||||
} else {
|
||||
attrs[key] = this.$attrs[key]
|
||||
}
|
||||
}
|
||||
|
||||
return h(options, {
|
||||
on: this.$listeners,
|
||||
attrs,
|
||||
props,
|
||||
scopedSlots: this.$scopedSlots,
|
||||
}, this.$slots.default)
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
export default {
|
||||
name: 'NuxtChild',
|
||||
functional: true,
|
||||
props: {
|
||||
nuxtChildKey: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
keepAlive: Boolean,
|
||||
keepAliveProps: {
|
||||
type: Object,
|
||||
default: undefined
|
||||
}
|
||||
},
|
||||
render (_, { parent, data, props }) {
|
||||
const h = parent.$createElement
|
||||
|
||||
data.nuxtChild = true
|
||||
const _parent = parent
|
||||
const transitions = parent.$nuxt.nuxt.transitions
|
||||
const defaultTransition = parent.$nuxt.nuxt.defaultTransition
|
||||
|
||||
let depth = 0
|
||||
while (parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.nuxtChild) {
|
||||
depth++
|
||||
}
|
||||
parent = parent.$parent
|
||||
}
|
||||
data.nuxtChildDepth = depth
|
||||
const transition = transitions[depth] || defaultTransition
|
||||
const transitionProps = {}
|
||||
transitionsKeys.forEach((key) => {
|
||||
if (typeof transition[key] !== 'undefined') {
|
||||
transitionProps[key] = transition[key]
|
||||
}
|
||||
})
|
||||
|
||||
const listeners = {}
|
||||
listenersKeys.forEach((key) => {
|
||||
if (typeof transition[key] === 'function') {
|
||||
listeners[key] = transition[key].bind(_parent)
|
||||
}
|
||||
})
|
||||
if (process.client) {
|
||||
// Add triggerScroll event on beforeEnter (fix #1376)
|
||||
const beforeEnter = listeners.beforeEnter
|
||||
listeners.beforeEnter = (el) => {
|
||||
// Ensure to trigger scroll event after calling scrollBehavior
|
||||
window.$nuxt.$nextTick(() => {
|
||||
window.$nuxt.$emit('triggerScroll')
|
||||
})
|
||||
if (beforeEnter) {
|
||||
return beforeEnter.call(_parent, el)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// make sure that leave is called asynchronous (fix #5703)
|
||||
if (transition.css === false) {
|
||||
const leave = listeners.leave
|
||||
|
||||
// only add leave listener when user didnt provide one
|
||||
// or when it misses the done argument
|
||||
if (!leave || leave.length < 2) {
|
||||
listeners.leave = (el, done) => {
|
||||
if (leave) {
|
||||
leave.call(_parent, el)
|
||||
}
|
||||
|
||||
_parent.$nextTick(done)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let routerView = h('routerView', data)
|
||||
|
||||
if (props.keepAlive) {
|
||||
routerView = h('keep-alive', { props: props.keepAliveProps }, [routerView])
|
||||
}
|
||||
|
||||
return h('transition', {
|
||||
props: transitionProps,
|
||||
on: listeners
|
||||
}, [routerView])
|
||||
}
|
||||
}
|
||||
|
||||
const transitionsKeys = [
|
||||
'name',
|
||||
'mode',
|
||||
'appear',
|
||||
'css',
|
||||
'type',
|
||||
'duration',
|
||||
'enterClass',
|
||||
'leaveClass',
|
||||
'appearClass',
|
||||
'enterActiveClass',
|
||||
'enterActiveClass',
|
||||
'leaveActiveClass',
|
||||
'appearActiveClass',
|
||||
'enterToClass',
|
||||
'leaveToClass',
|
||||
'appearToClass'
|
||||
]
|
||||
|
||||
const listenersKeys = [
|
||||
'beforeEnter',
|
||||
'enter',
|
||||
'afterEnter',
|
||||
'enterCancelled',
|
||||
'beforeLeave',
|
||||
'leave',
|
||||
'afterLeave',
|
||||
'leaveCancelled',
|
||||
'beforeAppear',
|
||||
'appear',
|
||||
'afterAppear',
|
||||
'appearCancelled'
|
||||
]
|
|
@ -1,96 +0,0 @@
|
|||
<template>
|
||||
<div class="__nuxt-error-page">
|
||||
<div class="error">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" fill="#DBE1EC" viewBox="0 0 48 48">
|
||||
<path d="M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" />
|
||||
</svg>
|
||||
|
||||
<div class="title">{{ message }}</div>
|
||||
<p v-if="statusCode === 404" class="description">
|
||||
<a v-if="typeof $route === 'undefined'" class="error-link" href="/"></a>
|
||||
<NuxtLink v-else class="error-link" to="/">Back to the home page</NuxtLink>
|
||||
</p>
|
||||
|
||||
<div class="logo">
|
||||
<a href="https://nuxtjs.org" target="_blank" rel="noopener">Nuxt</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'NuxtError',
|
||||
props: {
|
||||
error: {
|
||||
type: Object,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
statusCode () {
|
||||
return (this.error && this.error.statusCode) || 500
|
||||
},
|
||||
message () {
|
||||
return this.error.message || 'Error'
|
||||
}
|
||||
},
|
||||
head () {
|
||||
return {
|
||||
title: this.message,
|
||||
meta: [
|
||||
{
|
||||
name: 'viewport',
|
||||
content: 'width=device-width,initial-scale=1.0,minimum-scale=1.0'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.__nuxt-error-page {
|
||||
padding: 1rem;
|
||||
background: #F7F8FB;
|
||||
color: #47494E;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
font-family: sans-serif;
|
||||
font-weight: 100 !important;
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.__nuxt-error-page .error {
|
||||
max-width: 450px;
|
||||
}
|
||||
.__nuxt-error-page .title {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 15px;
|
||||
color: #47494E;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.__nuxt-error-page .description {
|
||||
color: #7F828B;
|
||||
line-height: 21px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.__nuxt-error-page a {
|
||||
color: #7F828B !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
.__nuxt-error-page .logo {
|
||||
position: fixed;
|
||||
left: 12px;
|
||||
bottom: 12px;
|
||||
}
|
||||
</style>
|
|
@ -1,98 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
|
||||
const requestIdleCallback = window.requestIdleCallback ||
|
||||
function (cb) {
|
||||
const start = Date.now()
|
||||
return setTimeout(function () {
|
||||
cb({
|
||||
didTimeout: false,
|
||||
timeRemaining: () => Math.max(0, 50 - (Date.now() - start))
|
||||
})
|
||||
}, 1)
|
||||
}
|
||||
|
||||
const cancelIdleCallback = window.cancelIdleCallback || function (id) {
|
||||
clearTimeout(id)
|
||||
}
|
||||
|
||||
const observer = window.IntersectionObserver && new window.IntersectionObserver((entries) => {
|
||||
entries.forEach(({ intersectionRatio, target: link }) => {
|
||||
if (intersectionRatio <= 0 || !link.__prefetch) {
|
||||
return
|
||||
}
|
||||
link.__prefetch()
|
||||
})
|
||||
})
|
||||
|
||||
export default {
|
||||
name: 'NuxtLink',
|
||||
extends: Vue.component('RouterLink'),
|
||||
props: {
|
||||
prefetch: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
noPrefetch: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.prefetch && !this.noPrefetch) {
|
||||
this.handleId = requestIdleCallback(this.observe, { timeout: 2e3 })
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
cancelIdleCallback(this.handleId)
|
||||
|
||||
if (this.__observed) {
|
||||
observer.unobserve(this.$el)
|
||||
delete this.$el.__prefetch
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
observe () {
|
||||
// If no IntersectionObserver, avoid prefetching
|
||||
if (!observer) {
|
||||
return
|
||||
}
|
||||
// Add to observer
|
||||
if (this.shouldPrefetch()) {
|
||||
this.$el.__prefetch = this.prefetchLink.bind(this)
|
||||
observer.observe(this.$el)
|
||||
this.__observed = true
|
||||
}
|
||||
},
|
||||
shouldPrefetch () {
|
||||
return this.getPrefetchComponents().length > 0
|
||||
},
|
||||
canPrefetch () {
|
||||
const conn = navigator.connection
|
||||
const hasBadConnection = this.$nuxt.isOffline || (conn && ((conn.effectiveType || '').includes('2g') || conn.saveData))
|
||||
|
||||
return !hasBadConnection
|
||||
},
|
||||
getPrefetchComponents () {
|
||||
const ref = this.$router.resolve(this.to, this.$route, this.append)
|
||||
const Components = ref.resolved.matched.map(r => r.components.default)
|
||||
|
||||
return Components.filter(Component => typeof Component === 'function' && !Component.options && !Component.__prefetched)
|
||||
},
|
||||
prefetchLink () {
|
||||
if (!this.canPrefetch()) {
|
||||
return
|
||||
}
|
||||
// Stop observing this link (in case of internet connection changes)
|
||||
observer.unobserve(this.$el)
|
||||
const Components = this.getPrefetchComponents()
|
||||
|
||||
for (const Component of Components) {
|
||||
const componentOrPromise = Component()
|
||||
if (componentOrPromise instanceof Promise) {
|
||||
componentOrPromise.catch(() => {})
|
||||
}
|
||||
Component.__prefetched = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
|
||||
export default {
|
||||
name: 'NuxtLink',
|
||||
extends: Vue.component('RouterLink'),
|
||||
props: {
|
||||
prefetch: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
noPrefetch: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,178 +0,0 @@
|
|||
<script>
|
||||
export default {
|
||||
name: 'NuxtLoading',
|
||||
data () {
|
||||
return {
|
||||
percent: 0,
|
||||
show: false,
|
||||
canSucceed: true,
|
||||
reversed: false,
|
||||
skipTimerCount: 0,
|
||||
rtl: false,
|
||||
throttle: 200,
|
||||
duration: 5000,
|
||||
continuous: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
left () {
|
||||
if (!this.continuous && !this.rtl) {
|
||||
return false
|
||||
}
|
||||
return this.rtl
|
||||
? (this.reversed ? '0px' : 'auto')
|
||||
: (!this.reversed ? '0px' : 'auto')
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.clear()
|
||||
},
|
||||
methods: {
|
||||
clear () {
|
||||
clearInterval(this._timer)
|
||||
clearTimeout(this._throttle)
|
||||
clearTimeout(this._hide)
|
||||
this._timer = null
|
||||
},
|
||||
start () {
|
||||
this.clear()
|
||||
this.percent = 0
|
||||
this.reversed = false
|
||||
this.skipTimerCount = 0
|
||||
this.canSucceed = true
|
||||
|
||||
if (this.throttle) {
|
||||
this._throttle = setTimeout(() => this.startTimer(), this.throttle)
|
||||
} else {
|
||||
this.startTimer()
|
||||
}
|
||||
return this
|
||||
},
|
||||
set (num) {
|
||||
this.show = true
|
||||
this.canSucceed = true
|
||||
this.percent = Math.min(100, Math.max(0, Math.floor(num)))
|
||||
return this
|
||||
},
|
||||
get () {
|
||||
return this.percent
|
||||
},
|
||||
increase (num) {
|
||||
this.percent = Math.min(100, Math.floor(this.percent + num))
|
||||
return this
|
||||
},
|
||||
decrease (num) {
|
||||
this.percent = Math.max(0, Math.floor(this.percent - num))
|
||||
return this
|
||||
},
|
||||
pause () {
|
||||
clearInterval(this._timer)
|
||||
return this
|
||||
},
|
||||
resume () {
|
||||
this.startTimer()
|
||||
return this
|
||||
},
|
||||
finish () {
|
||||
this.percent = this.reversed ? 0 : 100
|
||||
this.hide()
|
||||
return this
|
||||
},
|
||||
hide () {
|
||||
this.clear()
|
||||
this._hide = setTimeout(() => {
|
||||
this.show = false
|
||||
this.$nextTick(() => {
|
||||
this.percent = 0
|
||||
this.reversed = false
|
||||
})
|
||||
}, 500)
|
||||
return this
|
||||
},
|
||||
fail (error) {
|
||||
this.canSucceed = false
|
||||
return this
|
||||
},
|
||||
startTimer () {
|
||||
if (!this.show) {
|
||||
this.show = true
|
||||
}
|
||||
if (typeof this._cut === 'undefined') {
|
||||
this._cut = 10000 / Math.floor(this.duration)
|
||||
}
|
||||
|
||||
this._timer = setInterval(() => {
|
||||
/**
|
||||
* When reversing direction skip one timers
|
||||
* so 0, 100 are displayed for two iterations
|
||||
* also disable css width transitioning
|
||||
* which otherwise interferes and shows
|
||||
* a jojo effect
|
||||
*/
|
||||
if (this.skipTimerCount > 0) {
|
||||
this.skipTimerCount--
|
||||
return
|
||||
}
|
||||
|
||||
if (this.reversed) {
|
||||
this.decrease(this._cut)
|
||||
} else {
|
||||
this.increase(this._cut)
|
||||
}
|
||||
|
||||
if (this.continuous) {
|
||||
if (this.percent >= 100) {
|
||||
this.skipTimerCount = 1
|
||||
|
||||
this.reversed = !this.reversed
|
||||
} else if (this.percent <= 0) {
|
||||
this.skipTimerCount = 1
|
||||
|
||||
this.reversed = !this.reversed
|
||||
}
|
||||
}
|
||||
}, 100)
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
let el = h(false)
|
||||
if (this.show) {
|
||||
el = h('div', {
|
||||
staticClass: 'nuxt-progress',
|
||||
class: {
|
||||
'nuxt-progress-notransition': this.skipTimerCount > 0,
|
||||
'nuxt-progress-failed': !this.canSucceed
|
||||
},
|
||||
style: {
|
||||
width: this.percent + '%',
|
||||
left: this.left
|
||||
}
|
||||
})
|
||||
}
|
||||
return el
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nuxt-progress {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
height: 2px;
|
||||
width: 0%;
|
||||
opacity: 1;
|
||||
transition: width 0.1s, opacity 0.4s;
|
||||
background-color: black;
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
.nuxt-progress.nuxt-progress-notransition {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.nuxt-progress-failed {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
|
@ -1,101 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
import { compile } from '../utils'
|
||||
|
||||
import NuxtError from '../..\\layouts\\error.vue'
|
||||
|
||||
import NuxtChild from './nuxt-child'
|
||||
|
||||
export default {
|
||||
name: 'Nuxt',
|
||||
components: {
|
||||
NuxtChild,
|
||||
NuxtError
|
||||
},
|
||||
props: {
|
||||
nuxtChildKey: {
|
||||
type: String,
|
||||
default: undefined
|
||||
},
|
||||
keepAlive: Boolean,
|
||||
keepAliveProps: {
|
||||
type: Object,
|
||||
default: undefined
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
default: 'default'
|
||||
}
|
||||
},
|
||||
errorCaptured (error) {
|
||||
// if we receive and error while showing the NuxtError component
|
||||
// capture the error and force an immediate update so we re-render
|
||||
// without the NuxtError component
|
||||
if (this.displayingNuxtError) {
|
||||
this.errorFromNuxtError = error
|
||||
this.$forceUpdate()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
routerViewKey () {
|
||||
// If nuxtChildKey prop is given or current route has children
|
||||
if (typeof this.nuxtChildKey !== 'undefined' || this.$route.matched.length > 1) {
|
||||
return this.nuxtChildKey || compile(this.$route.matched[0].path)(this.$route.params)
|
||||
}
|
||||
|
||||
const [matchedRoute] = this.$route.matched
|
||||
|
||||
if (!matchedRoute) {
|
||||
return this.$route.path
|
||||
}
|
||||
|
||||
const Component = matchedRoute.components.default
|
||||
|
||||
if (Component && Component.options) {
|
||||
const { options } = Component
|
||||
|
||||
if (options.key) {
|
||||
return (typeof options.key === 'function' ? options.key(this.$route) : options.key)
|
||||
}
|
||||
}
|
||||
|
||||
const strict = /\/$/.test(matchedRoute.path)
|
||||
return strict ? this.$route.path : this.$route.path.replace(/\/$/, '')
|
||||
}
|
||||
},
|
||||
beforeCreate () {
|
||||
Vue.util.defineReactive(this, 'nuxt', this.$root.$options.nuxt)
|
||||
},
|
||||
render (h) {
|
||||
// if there is no error
|
||||
if (!this.nuxt.err) {
|
||||
// Directly return nuxt child
|
||||
return h('NuxtChild', {
|
||||
key: this.routerViewKey,
|
||||
props: this.$props
|
||||
})
|
||||
}
|
||||
|
||||
// if an error occurred within NuxtError show a simple
|
||||
// error message instead to prevent looping
|
||||
if (this.errorFromNuxtError) {
|
||||
this.$nextTick(() => (this.errorFromNuxtError = false))
|
||||
|
||||
return h('div', {}, [
|
||||
h('h2', 'An error occurred while showing the error page'),
|
||||
h('p', 'Unfortunately an error occurred and while showing the error page another error occurred'),
|
||||
h('p', `Error details: ${this.errorFromNuxtError.toString()}`),
|
||||
h('nuxt-link', { props: { to: '/' } }, 'Go back to home')
|
||||
])
|
||||
}
|
||||
|
||||
// track if we are showing the NuxtError component
|
||||
this.displayingNuxtError = true
|
||||
this.$nextTick(() => (this.displayingNuxtError = false))
|
||||
|
||||
return h(NuxtError, {
|
||||
props: {
|
||||
error: this.nuxt.err
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
import Vue from 'vue'
|
||||
import * as components from './index'
|
||||
|
||||
for (const name in components) {
|
||||
Vue.component(name, components[name])
|
||||
Vue.component('Lazy' + name, components[name])
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
# Discovered Components
|
||||
|
||||
This is an auto-generated list of components discovered by [nuxt/components](https://github.com/nuxt/components).
|
||||
|
||||
You can directly use them in pages and other components without the need to import them.
|
||||
|
||||
**Tip:** If a component is conditionally rendered with `v-if` and is big, it is better to use `Lazy` or `lazy-` prefix to lazy load.
|
||||
|
||||
- `<ActivityArea>` | `<activity-area>` (components/activity-area.vue)
|
||||
- `<AdItem>` | `<ad-item>` (components/ad-item.vue)
|
||||
- `<AddressAdd>` | `<address-add>` (components/address-add.vue)
|
||||
- `<AddressList>` | `<address-list>` (components/address-list.vue)
|
||||
- `<AfterSalesList>` | `<after-sales-list>` (components/after-sales-list.vue)
|
||||
- `<CommentList>` | `<comment-list>` (components/comment-list.vue)
|
||||
- `<CountDown>` | `<count-down>` (components/count-down.vue)
|
||||
- `<CouponsList>` | `<coupons-list>` (components/coupons-list.vue)
|
||||
- `<DeliverSearch>` | `<deliver-search>` (components/deliver-search.vue)
|
||||
- `<EvaluationList>` | `<evaluation-list>` (components/evaluation-list.vue)
|
||||
- `<GoodsList>` | `<goods-list>` (components/goods-list.vue)
|
||||
- `<HomeSeckill>` | `<home-seckill>` (components/home-seckill.vue)
|
||||
- `<InputExpress>` | `<input-express>` (components/input-Express.vue)
|
||||
- `<NullData>` | `<null-data>` (components/null-data.vue)
|
||||
- `<NumberBox>` | `<number-box>` (components/number-box.vue)
|
||||
- `<OrderList>` | `<order-list>` (components/order-list.vue)
|
||||
- `<PriceFormate>` | `<price-formate>` (components/price-formate.vue)
|
||||
- `<ShopItem>` | `<shop-item>` (components/shop-item.vue)
|
||||
- `<Upload>` | `<upload>` (components/upload.vue)
|
||||
- `<LayoutAslideNav>` | `<layout-aslide-nav>` (components/layout/aslide-nav.vue)
|
||||
- `<LayoutCategory>` | `<layout-category>` (components/layout/category.vue)
|
||||
- `<LayoutFloatNav>` | `<layout-float-nav>` (components/layout/float-nav.vue)
|
||||
- `<LayoutFooter>` | `<layout-footer>` (components/layout/footer.vue)
|
||||
- `<LayoutHeader>` | `<layout-header>` (components/layout/header.vue)
|
||||
- `<LayoutMainNav>` | `<layout-main-nav>` (components/layout/main-nav.vue)
|
|
@ -1,9 +0,0 @@
|
|||
import cookieUniversal from 'cookie-universal'
|
||||
|
||||
export default ({ req, res }, inject) => {
|
||||
const options = {
|
||||
"alias": "cookies",
|
||||
"parseJSON": true
|
||||
}
|
||||
inject(options.alias, cookieUniversal(req, res, options.parseJSON))
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,372 +0,0 @@
|
|||
exports.ids = [1,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 193:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(213);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("195696a4", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 212:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_activity_area_vue_vue_type_style_index_0_id_008ee916_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(193);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_activity_area_vue_vue_type_style_index_0_id_008ee916_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_activity_area_vue_vue_type_style_index_0_id_008ee916_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_activity_area_vue_vue_type_style_index_0_id_008ee916_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_activity_area_vue_vue_type_style_index_0_id_008ee916_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 213:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".activity-area[data-v-008ee916]{background-color:#fff;border-radius:6px;padding:16px}.activity-area[data-v-008ee916] .swiper-container{height:280px;width:100%}.activity-area .goods-list .goods-item[data-v-008ee916]{width:31.5%}.activity-area .goods-list .goods-item .goods-img[data-v-008ee916]{height:0;padding-top:100%;position:relative;width:100%}.activity-area .goods-list .goods-item .goods-img .el-image[data-v-008ee916]{height:100%;left:0;position:absolute;top:0;width:100%}.activity-area .goods-list .goods-item .name[data-v-008ee916]{height:40px;line-height:20px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 260:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/activity-area.vue?vue&type=template&id=008ee916&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.list.length ? _c('div', {
|
||||
staticClass: "activity-area m-t-16"
|
||||
}, [_vm._ssrNode("<div class=\"title flex row-between\" data-v-008ee916>", "</div>", [_vm._ssrNode("<div class=\"font-size-20\" data-v-008ee916>" + _vm._ssrEscape(_vm._s(_vm.title)) + "</div> "), _c('nuxt-link', {
|
||||
staticClass: "more lighter",
|
||||
attrs: {
|
||||
"to": _vm.url
|
||||
}
|
||||
}, [_vm._v("更多 "), _c('i', {
|
||||
staticClass: "el-icon-arrow-right"
|
||||
})])], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"activity-goods m-t-16\" data-v-008ee916>", "</div>", [_c('client-only', [_c('swiper', {
|
||||
ref: "headerSwiper",
|
||||
attrs: {
|
||||
"options": _vm.swiperOptions
|
||||
}
|
||||
}, _vm._l(_vm.swiperSize, function (item, index) {
|
||||
return _c('swiper-slide', {
|
||||
key: index,
|
||||
staticClass: "swiper-item"
|
||||
}, [_c('div', {
|
||||
staticClass: "goods-list flex row-between"
|
||||
}, _vm._l(_vm.getSwiperList(index), function (gitem, gindex) {
|
||||
return _c('nuxt-link', {
|
||||
key: gindex,
|
||||
staticClass: "goods-item",
|
||||
attrs: {
|
||||
"to": `/goods_details/${gitem.id}`
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "goods-img"
|
||||
}, [_c('el-image', {
|
||||
attrs: {
|
||||
"lazy": "",
|
||||
"src": gitem.image,
|
||||
"fit": "cover",
|
||||
"alt": ""
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2 m-t-10"
|
||||
}, [_vm._v(_vm._s(gitem.name))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "price flex col-baseline m-t-10"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": gitem.min_price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": gitem.market_price
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs m-t-10"
|
||||
}, [_vm._v("\n " + _vm._s(gitem.sales_total) + "人购买\n ")])]);
|
||||
}), 1)]);
|
||||
}), 1)], 1)], 1)], 2) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/activity-area.vue?vue&type=template&id=008ee916&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/activity-area.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var activity_areavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
title: {
|
||||
type: String
|
||||
},
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
swiperOptions: {
|
||||
direction: 'vertical',
|
||||
initialSlide: 0,
|
||||
height: 280,
|
||||
autoplay: true
|
||||
},
|
||||
pageSize: 3
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
swiperSize() {
|
||||
return Math.ceil(this.list.length / this.pageSize);
|
||||
},
|
||||
getSwiperList() {
|
||||
return index => {
|
||||
return this.list.slice(index * this.pageSize, (index + 1) * this.pageSize);
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/activity-area.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_activity_areavue_type_script_lang_js_ = (activity_areavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/activity-area.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(212)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_activity_areavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"008ee916",
|
||||
"bf66b316"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var activity_area = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=activity-area.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,217 +0,0 @@
|
|||
exports.ids = [2];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(159);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("488d347e", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(151);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 159:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "ad-item",
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(_vm.item);
|
||||
}
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.item.image,
|
||||
"fit": "cover"
|
||||
}
|
||||
})], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var ad_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
let {
|
||||
link_type,
|
||||
link,
|
||||
params
|
||||
} = item;
|
||||
switch (link_type) {
|
||||
case 3:
|
||||
window.open(item.link);
|
||||
break;
|
||||
default:
|
||||
if (["/goods_details"].includes(link)) {
|
||||
link += `/${params.id}`;
|
||||
} else {
|
||||
link += Object(tools["a" /* paramsToStr */])(params);
|
||||
}
|
||||
this.$router.push({
|
||||
path: link
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_ad_itemvue_type_script_lang_js_ = (ad_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(158)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_ad_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"368017b1",
|
||||
"36d600e7"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var ad_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=ad-item.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,446 +0,0 @@
|
|||
exports.ids = [5,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return client; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return loginType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SMSType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return FieldType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AfterSaleType; });
|
||||
const client = 5;
|
||||
const loginType = {
|
||||
SMS: 0,
|
||||
ACCOUNT: 1
|
||||
};
|
||||
|
||||
// 短信发送
|
||||
const SMSType = {
|
||||
// 注册
|
||||
REGISTER: 'ZCYZ',
|
||||
// 找回密码
|
||||
FINDPWD: 'ZHMM',
|
||||
// 登陆
|
||||
LOGIN: 'YZMDL',
|
||||
// 商家申请入驻
|
||||
SJSQYZ: 'SJSQYZ',
|
||||
// 更换手机号
|
||||
CHANGE_MOBILE: 'BGSJHM',
|
||||
// 绑定手机号
|
||||
BIND: 'BDSJHM'
|
||||
};
|
||||
const FieldType = {
|
||||
NONE: '',
|
||||
SEX: 'sex',
|
||||
NICKNAME: 'nickname',
|
||||
AVATAR: 'avatar',
|
||||
MOBILE: 'mobile'
|
||||
};
|
||||
|
||||
// 售后状态
|
||||
const AfterSaleType = {
|
||||
// 售后申请
|
||||
NORMAL: 'normal',
|
||||
// 处理中
|
||||
HANDLING: 'apply',
|
||||
// 已处理
|
||||
FINISH: 'finish'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 187:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(205);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("710062e8", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 204:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_after_sales_list_vue_vue_type_style_index_0_id_37284714_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(187);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_after_sales_list_vue_vue_type_style_index_0_id_37284714_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_after_sales_list_vue_vue_type_style_index_0_id_37284714_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_after_sales_list_vue_vue_type_style_index_0_id_37284714_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_after_sales_list_vue_vue_type_style_index_0_id_37284714_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 205:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".after-sales-list .after-sales-header[data-v-37284714]{background-color:#f2f2f2;border:1px solid #e5e5e5;padding:13px 16px}.after-sales-list .after-sales-content .goods-item[data-v-37284714]{padding:10px 20px}.after-sales-list .after-sales-content .goods-item .goods-info[data-v-37284714]{margin-left:10px;width:500px}.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]{align-self:flex-start;border:1px solid #ccc;border-radius:2px;height:32px;width:100px}.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]:nth-of-type(2n),.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]:nth-of-type(3){margin-left:10px}.after-sales-list .shadow[data-v-37284714]{box-shadow:0 3px 4px rgba(0,0,0,.08)}.after-sales-list .border[data-v-37284714]{border-bottom:1px solid #e5e5e5}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 257:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/after-sales-list.vue?vue&type=template&id=37284714&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "after-sales-list"
|
||||
}, _vm._l(_vm.lists, function (items) {
|
||||
return _vm._ssrNode("<div class=\"m-b-20\" data-v-37284714>", "</div>", [_vm._ssrNode("<div class=\"after-sales-header m-t-30 flex row-between\" style=\"border:0\" data-v-37284714><div class=\"flex row-around\" data-v-37284714><div class=\"lighter sm flex\" style=\"margin-right:100px\" data-v-37284714><img" + _vm._ssrAttr("src", items.shop_logo) + " alt class=\"m-r-5\" style=\"width:20px;height: 20px\" data-v-37284714>" + _vm._ssrEscape("\n " + _vm._s(items.shop_name) + "\n ") + "</div> " + (_vm.type == 'normal' ? "<div class=\"lighter sm\" data-v-37284714>" + _vm._ssrEscape("\n 申请时间:" + _vm._s(items.create_time) + "\n ") + "</div>" : "<div class=\"lighter sm\" style=\"margin-left: 110px\" data-v-37284714>" + _vm._ssrEscape("\n 下单时间:" + _vm._s(items.after_sale.status_text) + "\n ") + "</div>") + " " + (_vm.type == 'normal' ? "<div class=\"lighter sm\" style=\"margin-left: 110px\" data-v-37284714>" + _vm._ssrEscape("\n 订单编号:" + _vm._s(items.after_sale.sn) + "\n ") + "</div>" : "<div class=\"lighter sm\" style=\"margin-left: 110px\" data-v-37284714>" + _vm._ssrEscape("\n 退款编号:" + _vm._s(items.after_sale.sn) + "\n ") + "</div>") + "</div> <div class=\"primary sm\" style=\"margin-right: 12px\" data-v-37284714>" + _vm._ssrEscape("\n " + _vm._s(items.after_sale.type_text) + "\n ") + "</div></div> "), _vm._ssrNode("<div" + _vm._ssrClass("after-sales-content", {
|
||||
shadow: _vm.type != 'normal',
|
||||
border: _vm.type == 'normal'
|
||||
}) + " data-v-37284714>", "</div>", _vm._l(items.order_goods, function (item, index) {
|
||||
return _vm._ssrNode("<div class=\"goods-item flex row-between\" data-v-37284714>", "</div>", [_vm._ssrNode("<div class=\"flex\" data-v-37284714>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "72px",
|
||||
"height": "72px"
|
||||
},
|
||||
attrs: {
|
||||
"src": item.image
|
||||
}
|
||||
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"goods-info\" data-v-37284714>", "</div>", [_vm._ssrNode("<div class=\"goods-name noraml line1\" data-v-37284714>" + _vm._ssrEscape("\n " + _vm._s(item.goods_name) + "\n ") + "</div> <div class=\"muted sm m-t-8 m-b-8\" data-v-37284714>" + _vm._ssrEscape("\n " + _vm._s(item.spec_value_str) + "\n ") + "</div> "), _c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.goods_price,
|
||||
"showSubscript": "",
|
||||
"color": "#FF2C3C"
|
||||
}
|
||||
})], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"flex row-right\"" + _vm._ssrStyle(null, {
|
||||
width: _vm.type != 'apply' ? null : '340px'
|
||||
}, null) + " data-v-37284714>", "</div>", [_vm.type == 'normal' ? _c('el-button', {
|
||||
staticClass: "apply-btn row-center mr20 sm",
|
||||
attrs: {
|
||||
"size": "small"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(items.order_id, item.item_id);
|
||||
}
|
||||
}
|
||||
}, [_vm._v("申请售后\n ")]) : _vm._e(), _vm._ssrNode(" "), _vm.type != 'normal' ? _c('el-button', {
|
||||
staticClass: "apply-btn row-center mr20 sm",
|
||||
attrs: {
|
||||
"size": "small"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
return _vm.goToDetail(items.after_sale.after_sale_id);
|
||||
}
|
||||
}
|
||||
}, [_vm._v("查看详情")]) : _vm._e(), _vm._ssrNode(" "), _vm.type == 'apply' ? _c('el-button', {
|
||||
staticClass: "apply-btn row-center mr20 sm",
|
||||
attrs: {
|
||||
"size": "small"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.cancelApply(items.after_sale.after_sale_id);
|
||||
}
|
||||
}
|
||||
}, [_vm._v("撤销申请")]) : _vm._e(), _vm._ssrNode(" "), items.after_sale.status == 2 ? _c('el-button', {
|
||||
staticClass: "apply-btn row-center mr20 sm",
|
||||
attrs: {
|
||||
"size": "small"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.showInput(items.after_sale.after_sale_id);
|
||||
}
|
||||
}
|
||||
}, [_vm._v("填写快递单号")]) : _vm._e()], 2)], 2);
|
||||
}), 0)], 2);
|
||||
}), 0);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/after-sales-list.vue?vue&type=template&id=37284714&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/type.js
|
||||
var type = __webpack_require__(153);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/after-sales-list.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var after_sales_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: type["a" /* AfterSaleType */].NORMAL
|
||||
},
|
||||
lists: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
methods: {
|
||||
goToDetail(id) {
|
||||
switch (this.type) {
|
||||
case type["a" /* AfterSaleType */].NORMAL:
|
||||
this.$router.push("/goods_details/" + id);
|
||||
break;
|
||||
case type["a" /* AfterSaleType */].HANDLING:
|
||||
case type["a" /* AfterSaleType */].FINISH:
|
||||
this.$router.push("/user/after_sales/after_sale_details?afterSaleId=" + id);
|
||||
break;
|
||||
}
|
||||
},
|
||||
goPage(orderId, itemId) {
|
||||
this.$router.push("/user/after_sales/apply_sale?order_id=" + orderId + "&item_id=" + itemId);
|
||||
},
|
||||
showInput(e) {
|
||||
this.$emit("show", e);
|
||||
},
|
||||
async cancelApply(afterSaleId) {
|
||||
let res = await this.$post("after_sale/cancel", {
|
||||
id: afterSaleId
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: "success"
|
||||
});
|
||||
this.$emit("refresh");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/after-sales-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_after_sales_listvue_type_script_lang_js_ = (after_sales_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/after-sales-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(204)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_after_sales_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"37284714",
|
||||
"2b1fd454"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var after_sales_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=after-sales-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,303 +0,0 @@
|
|||
exports.ids = [6,14];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 162:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/news_null.da0072f.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 194:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(215);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("35ab0cfa", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 214:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_comment_list_vue_vue_type_style_index_0_id_4e1720b8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(194);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_comment_list_vue_vue_type_style_index_0_id_4e1720b8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_comment_list_vue_vue_type_style_index_0_id_4e1720b8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_comment_list_vue_vue_type_style_index_0_id_4e1720b8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_comment_list_vue_vue_type_style_index_0_id_4e1720b8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 215:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".comment-list .comment-con>.item[data-v-4e1720b8]{align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding:20px}.comment-list .comment-con>.item .avatar img[data-v-4e1720b8]{border-radius:50%;height:44px;width:44px}.comment-list .comment-con>.item .comment-imglist[data-v-4e1720b8]{margin-top:10px}.comment-list .comment-con>.item .comment-imglist .item[data-v-4e1720b8]{height:80px;margin-right:6px;width:80px}.comment-list .comment-con>.item .reply[data-v-4e1720b8]{align-items:flex-start;background-color:#f2f2f2;padding:10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 261:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/comment-list.vue?vue&type=template&id=4e1720b8&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "comment-list"
|
||||
}, [_vm._ssrNode("<div class=\"comment-con\" data-v-4e1720b8>", "</div>", [_vm.commentList.length ? [_vm._l(_vm.commentList, function (item, index) {
|
||||
return _vm._ssrNode("<div class=\"item flex\" data-v-4e1720b8>", "</div>", [_vm._ssrNode("<div class=\"avatar m-r-8\" data-v-4e1720b8><img" + _vm._ssrAttr("src", item.avatar) + " alt data-v-4e1720b8></div> "), _vm._ssrNode("<div class=\"content flex-1\" data-v-4e1720b8>", "</div>", [_vm._ssrNode("<div data-v-4e1720b8>" + _vm._ssrEscape(_vm._s(item.nickname)) + "</div> <div class=\"lighter\" style=\"margin: 5px 0 10px\" data-v-4e1720b8><span data-v-4e1720b8>" + _vm._ssrEscape(_vm._s(item.create_time)) + "</span> <span data-v-4e1720b8>|</span> <span data-v-4e1720b8>" + _vm._ssrEscape("规格:" + _vm._s(item.spec_value_str)) + "</span></div> <div data-v-4e1720b8>" + _vm._ssrEscape("\n " + _vm._s(item.comment) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"comment-imglist flex\" data-v-4e1720b8>", "</div>", _vm._l(item.image, function (img, index) {
|
||||
return _vm._ssrNode("<div class=\"item\" data-v-4e1720b8>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"height": "100%",
|
||||
"width": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"preview-src-list": item.image,
|
||||
"src": img,
|
||||
"fit": "contain"
|
||||
}
|
||||
})], 1);
|
||||
}), 0), _vm._ssrNode(" " + (item.reply ? "<div class=\"flex reply m-t-16\" data-v-4e1720b8><div class=\"primary flex-none\" data-v-4e1720b8>商家回复:</div> <div class=\"lighter\" data-v-4e1720b8>" + _vm._ssrEscape("\n " + _vm._s(item.reply) + "\n ") + "</div></div>" : "<!---->"))], 2)], 2);
|
||||
}), _vm._ssrNode(" "), _vm.count ? _vm._ssrNode("<div class=\"pagination flex row-center\" style=\"padding: 38px 0\" data-v-4e1720b8>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"page-size": 10
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1) : _vm._e()] : _c('null-data', {
|
||||
attrs: {
|
||||
"img": __webpack_require__(162),
|
||||
"text": "暂无评价~"
|
||||
}
|
||||
})], 2)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/comment-list.vue?vue&type=template&id=4e1720b8&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/comment-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var comment_listvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
type: Number,
|
||||
goodsId: [String, Number]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
commentList: [],
|
||||
count: 0,
|
||||
page: 1
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getCommentList();
|
||||
},
|
||||
methods: {
|
||||
async getCommentList() {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = await this.$get('goods_comment/lists', {
|
||||
params: {
|
||||
type: this.type,
|
||||
goods_id: this.goodsId,
|
||||
page_size: 10,
|
||||
page_no: this.page
|
||||
}
|
||||
});
|
||||
if (code == 1) {
|
||||
this.commentList = data.lists;
|
||||
this.count = data.count;
|
||||
}
|
||||
},
|
||||
changePage(current) {
|
||||
this.page = current;
|
||||
this.getCommentList();
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/comment-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_comment_listvue_type_script_lang_js_ = (comment_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/comment-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(214)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_comment_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"4e1720b8",
|
||||
"714f30d2"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var comment_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {NullData: __webpack_require__(147).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=comment-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,188 +0,0 @@
|
|||
exports.ids = [7];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=count-down.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"components/count-down.js","sources":["webpack:///./components/count-down.vue","webpack:///./utils/parseTime.js","webpack:///./components/count-down.vue?cf92","webpack:///./components/count-down.vue?85d7"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.time >= 0)?_c('div',[_c('client-only',[(_vm.isSlot)?_vm._t(\"default\"):_c('span',[_vm._v(_vm._s(_vm.formateTime))])],2)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\nconst SECOND = 1000;\r\nconst MINUTE = 60 * SECOND;\r\nconst HOUR = 60 * MINUTE;\r\nconst DAY = 24 * HOUR;\r\nexport function parseTimeData(time) {\r\n const days = Math.floor(time / DAY);\r\n const hours = sliceTwo(Math.floor((time % DAY) / HOUR));\r\n const minutes = sliceTwo(Math.floor((time % HOUR) / MINUTE));\r\n const seconds = sliceTwo(Math.floor((time % MINUTE) / SECOND));\r\n return {\r\n days: days,\r\n hours: hours,\r\n minutes: minutes,\r\n seconds: seconds,\r\n };\r\n}\r\n\r\nfunction sliceTwo(str) {\r\n return (0 + str.toString()).slice(-2)\r\n}\r\n\r\nexport function parseFormat(format, timeData) {\r\n let days = timeData.days;\r\n let hours = timeData.hours, minutes = timeData.minutes, seconds = timeData.seconds\r\n if (format.indexOf('dd') !== -1) {\r\n format = format.replace('dd', days);\r\n }\r\n if (format.indexOf('hh') !== -1) {\r\n format = format.replace('hh', sliceTwo(hours) );\r\n }\r\n if (format.indexOf('mm') !== -1) {\r\n format = format.replace('mm', sliceTwo(minutes));\r\n }\r\n if (format.indexOf('ss') !== -1) {\r\n format = format.replace('ss', sliceTwo(seconds));\r\n }\r\n return format\r\n}","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./count-down.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./count-down.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./count-down.vue?vue&type=template&id=2fbaab86&\"\nimport script from \"./count-down.vue?vue&type=script&lang=js&\"\nexport * from \"./count-down.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n \n \n}\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n \"7d29ecb4\"\n \n)\n\nexport default component.exports"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AACA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ADtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AE7FA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
|
|
@ -1,442 +0,0 @@
|
|||
exports.ids = [8,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 167:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(182);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("23f4c996", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 173:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/coupons_img_receive.7169d0c.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 174:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/bg_coupon_s.7cd7066.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 175:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/bg_coupon.dc72a74.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 181:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(167);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 182:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(34);
|
||||
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(174);
|
||||
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(175);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
||||
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".coupons-list[data-v-4191a6d7]{flex-wrap:wrap;padding:0 18px;position:relative}.coupons-list .item[data-v-4191a6d7]{cursor:pointer;margin-bottom:20px;margin-right:16px;position:relative}.coupons-list .item .info[data-v-4191a6d7]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat;background-size:100%;height:80px;padding:0 10px;width:240px}.coupons-list .item .info.gray[data-v-4191a6d7]{background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ")}.coupons-list .item .info .info-hd[data-v-4191a6d7]{overflow:hidden}.coupons-list .item .tips[data-v-4191a6d7]{background-color:#f2f2f2;height:30px;padding:0 8px;position:relative}.coupons-list .item .tips .tips-con[data-v-4191a6d7]{background-color:#f2f2f2;left:0;padding:10px;position:absolute;top:30px;width:100%;z-index:99}.coupons-list .item .receice[data-v-4191a6d7]{height:45px;position:absolute;right:0;top:0;width:58px}.coupons-list .item .choose[data-v-4191a6d7]{background-color:#ffe72c;color:#ff2c3c;padding:1px 5px;position:absolute;right:0;top:0}.coupons-list .more[data-v-4191a6d7]{bottom:20px;cursor:pointer;position:absolute;right:30px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 195:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/coupons-list.vue?vue&type=template&id=4191a6d7&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "coupons-list flex"
|
||||
}, [_vm._l(_vm.couponsList, function (item, index) {
|
||||
return [_vm._ssrNode("<div class=\"item\"" + _vm._ssrStyle(null, null, {
|
||||
display: item.isShow ? '' : 'none'
|
||||
}) + " data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, ['info white', {
|
||||
gray: _vm.type == 2 || _vm.type == 1 || item.is_get
|
||||
}]) + " data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div class=\"info-hd flex\" data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div data-v-4191a6d7>", "</div>", [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.money,
|
||||
"first-size": 38,
|
||||
"second-size": 38
|
||||
}
|
||||
})], 1), _vm._ssrNode(" <div class=\"m-l-8 flex1\" data-v-4191a6d7><div class=\"line1\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.name)) + "</div> <div class=\"xs line1\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.condition_type_desc)) + "</div></div>")], 2), _vm._ssrNode(" <div class=\"info-time xs\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.user_time_desc)) + "</div>")], 2), _vm._ssrNode(" <div class=\"tips flex row-between\" data-v-4191a6d7><div class=\"muted xs\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.use_scene_desc)) + "</div> " + (item.use_goods_type != 1 && (_vm.type == 1 || _vm.type == 2 || _vm.type == 0) ? "<div data-v-4191a6d7><i" + _vm._ssrClass(null, _vm.showTips[index] ? 'el-icon-arrow-up' : 'el-icon-arrow-down') + " data-v-4191a6d7></i> " + (item.use_scene_desc != '全场通用' && _vm.showTips[index] ? "<div class=\"tips-con xs lighter\" data-v-4191a6d7>" + _vm._ssrEscape("\n " + _vm._s(item.use_goods_desc) + "\n ") + "</div>" : "<!---->") + "</div>" : "<!---->") + " " + (_vm.type == 3 && !item.is_get ? "<div class=\"primary sm\" data-v-4191a6d7>\n 立即领取\n </div>" : "<!---->") + "</div> " + (item.is_get ? "<img" + _vm._ssrAttr("src", __webpack_require__(173)) + " alt class=\"receice\" data-v-4191a6d7>" : "<!---->") + " " + (_vm.type == 4 && _vm.id == item.id ? "<div class=\"choose xs\" data-v-4191a6d7>已选择</div>" : "<!---->"))], 2)];
|
||||
}), _vm._ssrNode(" " + (_vm.showMore && _vm.list.length > 4 ? "<div class=\"more muted\" data-v-4191a6d7>" + _vm._ssrEscape("\n " + _vm._s(_vm.isMore ? '收起' : '更多') + "\n ") + "<i" + _vm._ssrClass(null, _vm.isMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down') + " data-v-4191a6d7></i></div>" : "<!---->"))], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue?vue&type=template&id=4191a6d7&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: external "vuex"
|
||||
var external_vuex_ = __webpack_require__(2);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/coupons-list.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var coupons_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
type: {
|
||||
type: Number
|
||||
},
|
||||
showMore: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showTips: [],
|
||||
couponsList: [],
|
||||
id: "",
|
||||
isMore: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
...Object(external_vuex_["mapActions"])(["getPublicData"]),
|
||||
onHandle(id, isGet) {
|
||||
this.id = id;
|
||||
const {
|
||||
type
|
||||
} = this;
|
||||
switch (type) {
|
||||
case 0:
|
||||
// 可使用
|
||||
break;
|
||||
case 1:
|
||||
break;
|
||||
// 使用
|
||||
case 2:
|
||||
break;
|
||||
//不可以用
|
||||
case 3:
|
||||
// 领券
|
||||
if (!isGet) {
|
||||
this.getCoupon();
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
//使用
|
||||
if (this.selectId == id) {
|
||||
this.id = "";
|
||||
}
|
||||
this.$emit("use", this.id);
|
||||
this.selectId = this.id;
|
||||
break;
|
||||
}
|
||||
},
|
||||
async getCoupon() {
|
||||
const {
|
||||
msg,
|
||||
code
|
||||
} = await this.$post("coupon/getCoupon", {
|
||||
coupon_id: this.id
|
||||
});
|
||||
if (code == 1) {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: "success"
|
||||
});
|
||||
this.getPublicData();
|
||||
this.$emit("reflash");
|
||||
}
|
||||
},
|
||||
onShowTips(index) {
|
||||
const {
|
||||
showTips
|
||||
} = this;
|
||||
this.showTips[index] = showTips[index] ? 0 : 1;
|
||||
// 拷贝数组
|
||||
this.showTips = Object.assign([], this.showTips);
|
||||
},
|
||||
changeShow() {
|
||||
this.isMore = !this.isMore;
|
||||
this.list.forEach((item, index) => {
|
||||
item.isShow = true;
|
||||
if (!this.isMore && index >= 4) {
|
||||
item.isShow = false;
|
||||
}
|
||||
});
|
||||
this.couponsList = [...this.list];
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
handler: function (val) {
|
||||
if (val.length) {
|
||||
// 默认选中第一张
|
||||
if (this.type == 4) {
|
||||
this.id = val[0].id;
|
||||
this.selectId = this.id;
|
||||
this.$emit("use", this.id);
|
||||
}
|
||||
}
|
||||
let arr = val.map(item => {
|
||||
return 0;
|
||||
});
|
||||
this.showTips = arr;
|
||||
this.list.forEach((item, index) => {
|
||||
item.isShow = true;
|
||||
if (this.showMore) {
|
||||
if (index >= 4) {
|
||||
item.isShow = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.couponsList = this.list;
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_coupons_listvue_type_script_lang_js_ = (coupons_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(181)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_coupons_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"4191a6d7",
|
||||
"b724d438"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var coupons_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=coupons-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,286 +0,0 @@
|
|||
exports.ids = [9];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 165:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(177);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("bc9d2028", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 176:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(165);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 177:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".deliver-search-container .deliver-box .deliver-recode-box[data-v-79dec466]{background-color:#f2f2f2;padding:10px 20px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img[data-v-79dec466]{height:72px;position:relative;width:72px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img .float-count[data-v-79dec466]{background-color:rgba(0,0,0,.5);bottom:0;color:#fff;font-size:12px;height:20px;position:absolute;width:100%}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container[data-v-79dec466]{flex:1}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .recode-label[data-v-79dec466]{width:70px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]{border:1px solid #ff2c3c;border-radius:60px;cursor:pointer;font-size:12px;height:20px;margin-left:8px;min-width:42px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]:hover{background-color:#fff}.deliver-search-container .deliver-box .deliver-flow-box[data-v-79dec466]{padding-left:15px}.deliver-search-container .deliver-box .time-line-title[data-v-79dec466]{font-size:16px;font-weight:500px;margin-bottom:10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 179:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/deliver-search.vue?vue&type=template&id=79dec466&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "deliver-search-container"
|
||||
}, [_c('el-dialog', {
|
||||
attrs: {
|
||||
"visible": _vm.showDialog,
|
||||
"top": "30vh",
|
||||
"width": "900px",
|
||||
"title": "物流查询"
|
||||
},
|
||||
on: {
|
||||
"update:visible": function ($event) {
|
||||
_vm.showDialog = $event;
|
||||
}
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "deliver-box"
|
||||
}, [_c('div', {
|
||||
staticClass: "deliver-recode-box flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-img"
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": _vm.deliverOrder.image
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "float-count flex row-center"
|
||||
}, [_vm._v("共" + _vm._s(_vm.deliverOrder.count) + "件商品")])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "recode-info-container m-l-10"
|
||||
}, [_c('div', {
|
||||
staticClass: "flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("物流状态:")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "primary lg",
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.deliverOrder.tips))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"margin": "6px 0"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("快递公司:")]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverOrder.shipping_name))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("快递单号:")]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverOrder.invoice_no))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "copy-btn primary flex row-center",
|
||||
on: {
|
||||
"click": _vm.onCopy
|
||||
}
|
||||
}, [_vm._v("复制")])])])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "deliver-flow-box m-t-16"
|
||||
}, [_c('el-timeline', [_vm.deliverFinish.tips ? _c('el-timeline-item', [_c('div', [_c('div', {
|
||||
staticClass: "flex lg"
|
||||
}, [_c('div', {
|
||||
staticClass: "m-r-8",
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v("\n " + _vm._s(_vm.deliverTake.contacts) + "\n ")]), _vm._v(" "), _c('div', {
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.deliverTake.mobile))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "lighter m-t-8"
|
||||
}, [_vm._v(_vm._s(_vm.deliverTake.address))])])]) : _vm._e(), _vm._v(" "), _vm.deliverFinish.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverFinish.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverFinish.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverFinish.tips))])]) : _vm._e(), _vm._v(" "), _vm.delivery.traces && _vm.delivery.traces.length ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.delivery.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title m-b-8"
|
||||
}, [_vm._v(_vm._s(_vm.delivery.title))]), _vm._v(" "), _vm._l(_vm.delivery.traces, function (item, index) {
|
||||
return _c('el-timeline-item', {
|
||||
key: index,
|
||||
attrs: {
|
||||
"timestamp": item[0]
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "muted"
|
||||
}, [_vm._v(_vm._s(item[1]))])]);
|
||||
})], 2) : _vm._e(), _vm._v(" "), _vm.deliverShipment.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverShipment.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverShipment.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverShipment.tips))])]) : _vm._e(), _vm._v(" "), _vm.deliverBuy.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverBuy.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverBuy.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverBuy.tips))])]) : _vm._e()], 1)], 1)])])], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue?vue&type=template&id=79dec466&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/deliver-search.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var deliver_searchvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
value: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
aid: {
|
||||
type: Number | String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showDialog: false,
|
||||
deliverBuy: {},
|
||||
delivery: {},
|
||||
deliverFinish: {},
|
||||
deliverOrder: {},
|
||||
deliverShipment: {},
|
||||
deliverTake: {},
|
||||
timeLineArray: []
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
value(val) {
|
||||
console.log(val, 'val');
|
||||
this.showDialog = val;
|
||||
},
|
||||
showDialog(val) {
|
||||
if (val) {
|
||||
if (this.aid) {
|
||||
this.timeLineArray = [];
|
||||
this.getDeliverTraces();
|
||||
}
|
||||
}
|
||||
this.$emit("input", val);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getDeliverTraces() {
|
||||
let data = {
|
||||
id: this.aid
|
||||
};
|
||||
let res = await this.$get("order/orderTraces", {
|
||||
params: data
|
||||
});
|
||||
if (res.code == 1) {
|
||||
let {
|
||||
buy,
|
||||
delivery,
|
||||
finish,
|
||||
order,
|
||||
shipment,
|
||||
take
|
||||
} = res.data;
|
||||
this.deliverBuy = buy;
|
||||
this.delivery = delivery;
|
||||
this.deliverFinish = finish;
|
||||
this.deliverOrder = order;
|
||||
this.deliverShipment = shipment;
|
||||
this.deliverTake = take;
|
||||
this.timeLineArray.push(this.deliverFinish);
|
||||
this.timeLineArray.push(this.delivery);
|
||||
this.timeLineArray.push(this.deliverShipment);
|
||||
this.timeLineArray.push(this.deliverBuy);
|
||||
console.log(this.timeLineArray);
|
||||
}
|
||||
},
|
||||
onCopy() {
|
||||
// this.deliverOrder.invoice_no;
|
||||
let oInput = document.createElement('input');
|
||||
oInput.value = this.deliverOrder.invoice_no;
|
||||
document.body.appendChild(oInput);
|
||||
oInput.select();
|
||||
document.execCommand("Copy");
|
||||
this.$message.success("复制成功");
|
||||
oInput.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_deliver_searchvue_type_script_lang_js_ = (deliver_searchvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(176)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_deliver_searchvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"79dec466",
|
||||
"3bcc2756"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var deliver_search = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=deliver-search.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,405 +0,0 @@
|
|||
exports.ids = [10,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 190:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(207);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("3ee50391", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 206:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_evaluation_list_vue_vue_type_style_index_0_id_de1b98b2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(190);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_evaluation_list_vue_vue_type_style_index_0_id_de1b98b2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_evaluation_list_vue_vue_type_style_index_0_id_de1b98b2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_evaluation_list_vue_vue_type_style_index_0_id_de1b98b2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_evaluation_list_vue_vue_type_style_index_0_id_de1b98b2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 207:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".evaluation-list[data-v-de1b98b2]{padding:0 10px}.evaluation-list .list1 .shop-info[data-v-de1b98b2]{background-color:#f6f6f6;padding:10px 16px}.evaluation-list .list1 .item[data-v-de1b98b2]{align-items:stretch}.evaluation-list .list1 .item .item-hd[data-v-de1b98b2]{background:#f2f2f2;height:40px;padding:0 20px}.evaluation-list .list1 .item .item-hd .status[data-v-de1b98b2]{text-align:right;width:300px}.evaluation-list .list1 .item .goods[data-v-de1b98b2]{padding-bottom:16px}.evaluation-list .list1 .item .goods .goods-all[data-v-de1b98b2]{border:1px solid #e5e5e5;padding-top:16px}.evaluation-list .list1 .item .goods .goods-item[data-v-de1b98b2]{padding:0 16px 16px}.evaluation-list .list1 .item .goods .goods-item .goods-img[data-v-de1b98b2]{height:72px;margin-right:10px;width:72px}.evaluation-list .list1 .item .operate[data-v-de1b98b2]{width:200px}.evaluation-list .list1 .item .operate .btn[data-v-de1b98b2]{background-color:#ff2c3c;border:1px solid hsla(0,0%,90%,.898);border-radius:2px;cursor:pointer;height:32px;width:104px}.evaluation-list .list2 .user[data-v-de1b98b2]{margin-right:14px}.evaluation-list .list2>.item[data-v-de1b98b2]{align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding:15px 0;width:920px}.evaluation-list .list2>.item .avatar img[data-v-de1b98b2]{border-radius:50%;height:44px;width:44px}.evaluation-list .list2>.item .comment-imglist[data-v-de1b98b2]{margin-top:10px}.evaluation-list .list2>.item .comment-imglist .item[data-v-de1b98b2]{height:80px;margin-right:6px;width:80px}.evaluation-list .list2>.item .reply[data-v-de1b98b2]{align-items:flex-start;background-color:#f6f6f6;padding:10px}.evaluation-list .list2>.item .goods[data-v-de1b98b2]{background-color:#f6f6f6;padding:14px;width:922px}.evaluation-list .list2>.item .goods .goods-img[data-v-de1b98b2]{height:72px;width:72px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 258:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/evaluation-list.vue?vue&type=template&id=de1b98b2&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "evaluation-list"
|
||||
}, [_vm.type == 1 ? _vm._ssrNode("<div class=\"list1\" data-v-de1b98b2>", "</div>", _vm._l(_vm.list, function (item, index) {
|
||||
return _vm._ssrNode("<div class=\"item flex\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"goods\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"flex shop-info\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"flex\" style=\"margin-right: 100px;\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"m-r-8\" style=\"width: 16px; height: 16px;\" data-v-de1b98b2>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"height": "100%",
|
||||
"width": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": item.shop.logo,
|
||||
"fit": "contain"
|
||||
}
|
||||
})], 1), _vm._ssrNode(" <div class=\"xs\" data-v-de1b98b2>" + _vm._ssrEscape("\n " + _vm._s(item.shop.name) + "\n ") + "</div>")], 2), _vm._ssrNode(" <div class=\"xs muted\" style=\"margin-right: 100px;\" data-v-de1b98b2>" + _vm._ssrEscape("\n 下单时间:" + _vm._s(item.create_time) + "\n ") + "</div> <div class=\"xs muted\" data-v-de1b98b2>" + _vm._ssrEscape("\n 订单编号:" + _vm._s(item.order_sn) + "\n ") + "</div>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"goods-all\" data-v-de1b98b2>", "</div>", _vm._l(item.order_goods_un_comment, function (zitem, zindex) {
|
||||
return _vm._ssrNode("<div class=\"goods-item flex\" data-v-de1b98b2>", "</div>", [_c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": `/goods_details/${zitem.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"src": zitem.goods_item.image,
|
||||
"alt": ""
|
||||
}
|
||||
})], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"goods-info flex-col flex-1\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"goods-name flex row-between\" style=\"align-items: flex-start;\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"line1\" style=\"width: 600px\" data-v-de1b98b2>" + _vm._ssrEscape("\n " + _vm._s(zitem.goods_name) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"operate flex row-end\" data-v-de1b98b2>", "</div>", [_c('nuxt-link', {
|
||||
staticClass: "btn sm flex row-center white",
|
||||
attrs: {
|
||||
"to": `/user/evaluation/evaluate?id=${zitem.id}`
|
||||
}
|
||||
}, [_vm._v("去评价")])], 1)], 2), _vm._ssrNode(" <div class=\"sm lighter m-b-8\" data-v-de1b98b2>" + _vm._ssrEscape(_vm._s(zitem.goods_item.spec_value_str)) + "</div> "), _vm._ssrNode("<div class=\"primary\" data-v-de1b98b2>", "</div>", [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": zitem.goods_price
|
||||
}
|
||||
})], 1)], 2)], 2);
|
||||
}), 0)], 2)]);
|
||||
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.type == 2 ? _vm._ssrNode("<div class=\"list2 flex-col\" data-v-de1b98b2>", "</div>", _vm._l(_vm.list, function (item, index) {
|
||||
return _vm._ssrNode("<div class=\"item flex\" data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"user\" data-v-de1b98b2>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"height": "44px",
|
||||
"width": "44px",
|
||||
"border-radius": "50%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.userInfo.avatar
|
||||
}
|
||||
})], 1), _vm._ssrNode(" "), _vm._ssrNode("<div data-v-de1b98b2>", "</div>", [_vm._ssrNode("<div class=\"user_name m-b-5\" style=\"font-size: 14px; color: #101010;\" data-v-de1b98b2>" + _vm._ssrEscape("\n " + _vm._s(_vm.userInfo.nickname) + "\n ") + "</div> <div class=\"muted sm\" data-v-de1b98b2>" + _vm._ssrEscape("评价时间:" + _vm._s(item.create_time)) + "</div> <div class=\"m-t-10\" data-v-de1b98b2>" + _vm._ssrEscape("\n " + _vm._s(item.comment) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"comment-imglist flex\" data-v-de1b98b2>", "</div>", _vm._l(item.goods_comment_image_arr, function (img, index) {
|
||||
return _vm._ssrNode("<div class=\"item\" data-v-de1b98b2>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"height": "100%",
|
||||
"width": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"preview-src-list": item.goods_comment_image_arr,
|
||||
"src": img,
|
||||
"fit": "contain"
|
||||
}
|
||||
})], 1);
|
||||
}), 0), _vm._ssrNode(" " + (item.reply ? "<div class=\"flex reply mt16\" data-v-de1b98b2><div class=\"primary\" data-v-de1b98b2>商家回复:</div> <div class=\"lighter\" data-v-de1b98b2>" + _vm._ssrEscape("\n " + _vm._s(item.reply) + "\n ") + "</div></div>" : "<!---->") + " "), _c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": `/goods_details/${item.goods.id}`
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "goods flex m-t-16"
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"src": item.goods.image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "goods-info m-l-10"
|
||||
}, [_c('div', {
|
||||
staticClass: "flex m-b-8"
|
||||
}, [_c('div', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"width": "451px"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "xs line-1 m-r-5"
|
||||
}, [_vm._v(_vm._s(item.goods.name))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "xs"
|
||||
}, [_vm._v(_vm._s(item.goods_item.spec_value_str))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex"
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"height": "16px",
|
||||
"width": "16px"
|
||||
},
|
||||
attrs: {
|
||||
"src": item.shop_logo,
|
||||
"fit": "contain"
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-l-5 xs"
|
||||
}, [_vm._v("\n " + _vm._s(item.shop_name) + "\n ")])], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-t-8 primary"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.order_goods.total_pay_price
|
||||
}
|
||||
})], 1)])], 1)])], 2)], 2);
|
||||
}), 0) : _vm._e()], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/evaluation-list.vue?vue&type=template&id=de1b98b2&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/evaluation-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var evaluation_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
},
|
||||
userInfo: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
lists: [{
|
||||
image: "fdasf",
|
||||
goods_name: "hsdfsafsa",
|
||||
id: " ",
|
||||
spec_value_str: " spec_value_str",
|
||||
goods_price: '100'
|
||||
}]
|
||||
};
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/evaluation-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_evaluation_listvue_type_script_lang_js_ = (evaluation_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/evaluation-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(206)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_evaluation_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"de1b98b2",
|
||||
"198b77f9"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var evaluation_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=evaluation-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,369 +0,0 @@
|
|||
exports.ids = [11,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 149:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(155);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("18c1d214", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 154:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(149);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 155:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{border-radius:4px;box-sizing:border-box;display:block;height:310px;margin-bottom:16px;padding:12px 12px 16px;transition:all .2s;width:224px}.goods-list .goods-item[data-v-060944d1]:hover{box-shadow:0 0 6px rgba(0,0,0,.1);transform:translateY(-8px)}.goods-list .goods-item .goods-img[data-v-060944d1]{height:200px;width:200px}.goods-list .goods-item .name[data-v-060944d1]{height:40px;line-height:20px;margin-bottom:10px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{border:1px solid transparent;border-radius:4px;padding:4px 12px}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{background-color:transparent;border-color:#ff2c3c;color:#ff2c3c}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 156:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "goods-list flex flex-wrap"
|
||||
}, _vm._l(_vm.list, function (item, index) {
|
||||
return _c('nuxt-link', {
|
||||
key: index,
|
||||
staticClass: "goods-item bg-white",
|
||||
style: {
|
||||
marginRight: (index + 1) % _vm.num == 0 ? 0 : '14px'
|
||||
},
|
||||
attrs: {
|
||||
"to": `/goods_details/${item.id || item.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"lazy": "",
|
||||
"src": item.image || item.goods_image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2"
|
||||
}, [_vm._v(_vm._s(item.name || item.goods_name))]), _vm._v(" "), _vm.type == 'seckill' ? _c('div', {
|
||||
staticClass: "seckill flex row-between"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary flex"
|
||||
}, [_vm._v("\n 秒杀价\n "), _c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.seckill_price,
|
||||
"first-size": 18
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
class: ['btn bg-primary white', {
|
||||
'not-start': _vm.status == 0,
|
||||
end: _vm.status == 2
|
||||
}]
|
||||
}, [_vm._v(_vm._s(_vm.getSeckillText) + "\n ")])]) : _c('div', {
|
||||
staticClass: "flex row-between flex-wrap"
|
||||
}, [_c('div', {
|
||||
staticClass: "price flex col-baseline"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.min_price || item.price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.market_price
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v(_vm._s(item.sales_total || item.sales_sum || 0) + "人购买")])])], 1);
|
||||
}), 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var goods_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
num: {
|
||||
type: Number,
|
||||
default: 5
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
},
|
||||
status: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
immediate: true,
|
||||
handler: function (val) {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSeckillText() {
|
||||
switch (this.status) {
|
||||
case 0:
|
||||
return "未开始";
|
||||
case 1:
|
||||
return "立即抢购";
|
||||
case 2:
|
||||
return "已结束";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_goods_listvue_type_script_lang_js_ = (goods_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(154)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_goods_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"060944d1",
|
||||
"50a5113b"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var goods_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=goods-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,606 +0,0 @@
|
|||
exports.ids = [12,7,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 192:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(211);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("7a59a7e0", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 210:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_home_seckill_vue_vue_type_style_index_0_id_784969e4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(192);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_home_seckill_vue_vue_type_style_index_0_id_784969e4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_home_seckill_vue_vue_type_style_index_0_id_784969e4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_home_seckill_vue_vue_type_style_index_0_id_784969e4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_home_seckill_vue_vue_type_style_index_0_id_784969e4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 211:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".seckill .seckill-header .count-down .item[data-v-784969e4]{background:#ff2c3c;border-radius:4px;height:20px;line-height:20px;text-align:center;width:38px}.seckill[data-v-784969e4] .el-carousel__indicator .el-carousel__button{background-color:#e5e5e5}.seckill[data-v-784969e4] .el-carousel__indicator.is-active .el-carousel__button{background-color:#ff2c3c}.seckill .goods-list .goods-item[data-v-784969e4]{width:216px}.seckill .goods-list .goods-item~.goods-item[data-v-784969e4]{margin-left:16px}.seckill .goods-list .goods-item .goods-img[data-v-784969e4]{height:0;padding-top:100%;position:relative;width:100%}.seckill .goods-list .goods-item .goods-img[data-v-784969e4] .el-image{height:100%;left:0;position:absolute;top:0;width:100%}.seckill .goods-list .goods-item .name[data-v-784969e4]{height:40px;line-height:20px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 216:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/home-seckill.vue?vue&type=template&id=784969e4&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.goodsList.length ? _c('div', {
|
||||
staticClass: "seckill card"
|
||||
}, [_vm._ssrNode("<div class=\"seckill-header flex\" data-v-784969e4>", "</div>", [_vm._ssrNode("<div class=\"title font-size-20\" data-v-784969e4>限时秒杀</div> "), _vm._ssrNode("<div class=\"flex-1 flex\" data-v-784969e4>", "</div>", [_vm._ssrNode("<i class=\"el-icon-alarm-clock primary font-size-24 m-l-20 m-r-10\" data-v-784969e4></i> "), _c('count-down', {
|
||||
attrs: {
|
||||
"time": _vm.countTime,
|
||||
"is-slot": true
|
||||
},
|
||||
on: {
|
||||
"change": _vm.onChangeDate,
|
||||
"finish": _vm.refresh
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "flex row-center count-down xs"
|
||||
}, [_c('div', {
|
||||
staticClass: "item white"
|
||||
}, [_vm._v(_vm._s(_vm.timeData.hours) + "时")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "white",
|
||||
staticStyle: {
|
||||
"margin": "0 4px"
|
||||
}
|
||||
}, [_vm._v(":")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "item white"
|
||||
}, [_vm._v(_vm._s(_vm.timeData.minutes) + "分")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "white",
|
||||
staticStyle: {
|
||||
"margin": "0 4px"
|
||||
}
|
||||
}, [_vm._v(":")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "item white"
|
||||
}, [_vm._v(_vm._s(_vm.timeData.seconds) + "秒")])])])], 2), _vm._ssrNode(" "), _c('nuxt-link', {
|
||||
staticClass: "more lighter",
|
||||
attrs: {
|
||||
"to": "/seckill"
|
||||
}
|
||||
}, [_vm._v("更多 "), _c('i', {
|
||||
staticClass: "el-icon-arrow-right"
|
||||
})])], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"seckill-list m-t-16\" data-v-784969e4>", "</div>", [_c('el-carousel', {
|
||||
attrs: {
|
||||
"interval": 3000,
|
||||
"arrow": "never",
|
||||
"height": "320px",
|
||||
"indicator-position": "outside"
|
||||
}
|
||||
}, _vm._l(_vm.swiperSize, function (item, index) {
|
||||
return _c('el-carousel-item', {
|
||||
key: index
|
||||
}, [_c('div', {
|
||||
staticClass: "goods-list flex"
|
||||
}, _vm._l(_vm.getSwiperList(index), function (gitem, gindex) {
|
||||
return _c('nuxt-link', {
|
||||
key: gindex,
|
||||
staticClass: "goods-item",
|
||||
attrs: {
|
||||
"to": `/goods_details/${gitem.goods_id}`
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "goods-img"
|
||||
}, [_c('el-image', {
|
||||
attrs: {
|
||||
"src": gitem.goods_image,
|
||||
"fit": "cover",
|
||||
"alt": ""
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2 m-t-10"
|
||||
}, [_vm._v("\n " + _vm._s(gitem.goods_name) + "\n ")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "price flex col-baseline"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": gitem.seckill_price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": gitem.seckill_total
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs m-t-10"
|
||||
}, [_vm._v("\n " + _vm._s(gitem.seckill_total) + "人购买\n ")])]);
|
||||
}), 1)]);
|
||||
}), 1)], 1)], 2) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/home-seckill.vue?vue&type=template&id=784969e4&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/home-seckill.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var home_seckillvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
active: -1,
|
||||
goodsList: [],
|
||||
countTime: 0,
|
||||
timeData: {},
|
||||
pageSize: 5
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
refresh() {
|
||||
this.$emit('refreshhome');
|
||||
},
|
||||
onChangeDate(e) {
|
||||
let timeData = {};
|
||||
for (let prop in e) {
|
||||
if (prop !== 'milliseconds') timeData[prop] = ('0' + e[prop]).slice(-2);
|
||||
}
|
||||
this.timeData = timeData;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
handler(val) {
|
||||
// 抢购中
|
||||
let index = val.findIndex(item => item.status == 1);
|
||||
if (index == -1) {
|
||||
// 未开始
|
||||
index = val.findIndex(item => item.status == 0);
|
||||
}
|
||||
if (index == -1) {
|
||||
// 全部结束选中最后一个
|
||||
index = val.length - 1;
|
||||
}
|
||||
this.active = index;
|
||||
this.goodsList = val[index].goods;
|
||||
this.countTime = val[index].end_time_int - Date.now() / 1000;
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
swiperSize() {
|
||||
console.log(Math.ceil(this.goodsList.length / this.pageSize));
|
||||
return Math.ceil(this.goodsList.length / this.pageSize);
|
||||
},
|
||||
getSwiperList() {
|
||||
return index => {
|
||||
return this.goodsList.slice(index * this.pageSize, (index + 1) * this.pageSize);
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/home-seckill.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_home_seckillvue_type_script_lang_js_ = (home_seckillvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/home-seckill.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(210)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_home_seckillvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"784969e4",
|
||||
"20899747"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var home_seckill = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {CountDown: __webpack_require__(148).default,PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=home-seckill.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,492 +0,0 @@
|
|||
exports.ids = [13,19];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 152:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(164);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("cfbdabb4", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 163:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(152);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 164:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".v-upload .el-upload--picture-card[data-v-9cabb86c]{height:76px;line-height:76px;width:76px}.v-upload .el-upload-list--picture-card .el-upload-list__item[data-v-9cabb86c]{height:76px;width:76px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 166:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/upload.vue?vue&type=template&id=9cabb86c&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "v-upload"
|
||||
}, [_c('el-upload', {
|
||||
attrs: {
|
||||
"list-type": "picture-card",
|
||||
"action": _vm.url + '/api/file/formimage',
|
||||
"limit": _vm.limit,
|
||||
"on-success": _vm.success,
|
||||
"on-error": _vm.error,
|
||||
"on-remove": _vm.remove,
|
||||
"on-change": _vm.onChange,
|
||||
"headers": {
|
||||
token: _vm.$store.state.token
|
||||
},
|
||||
"auto-upload": _vm.autoUpload,
|
||||
"accept": "image/jpg,image/jpeg,image/png",
|
||||
"before-upload": _vm.beforeAvatarUpload
|
||||
}
|
||||
}, [_vm.isSlot ? _vm._t("default") : _c('div', [_c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v("上传图片")])])], 2)], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/upload.vue?vue&type=template&id=9cabb86c&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./config/app.js
|
||||
var app = __webpack_require__(33);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/upload.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var uploadvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
limit: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
autoUpload: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
onChange: {
|
||||
type: Function,
|
||||
default: () => {}
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
data() {
|
||||
return {
|
||||
url: app["a" /* default */].baseUrl
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
success(res, file, fileList) {
|
||||
if (!this.autoUpload) {
|
||||
return;
|
||||
}
|
||||
this.$message({
|
||||
message: '上传成功',
|
||||
type: 'success'
|
||||
});
|
||||
this.$emit('success', fileList);
|
||||
},
|
||||
remove(file, fileList) {
|
||||
this.$emit('remove', fileList);
|
||||
},
|
||||
error(res) {
|
||||
this.$message({
|
||||
message: '上传失败,请重新上传',
|
||||
type: 'error'
|
||||
});
|
||||
},
|
||||
beforeAvatarUpload(file) {
|
||||
var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1);
|
||||
console.log('fdsadsf');
|
||||
const extension = testmsg === 'jpg';
|
||||
const extension2 = testmsg === 'png';
|
||||
const extension4 = testmsg === 'jpeg';
|
||||
if (!extension && !extension2) {
|
||||
this.$message({
|
||||
message: '上传文件只能是 jpg, jpeg, png格式!',
|
||||
type: 'warning'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return extension || extension2 || extension4;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/upload.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_uploadvue_type_script_lang_js_ = (uploadvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/upload.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(163)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_uploadvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"9cabb86c",
|
||||
"7f9ac0f2"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var upload = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 170:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(189);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("7fecf36c", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 188:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_input_Express_vue_vue_type_style_index_0_id_13601821_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(170);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_input_Express_vue_vue_type_style_index_0_id_13601821_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_input_Express_vue_vue_type_style_index_0_id_13601821_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_input_Express_vue_vue_type_style_index_0_id_13601821_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_input_Express_vue_vue_type_style_index_0_id_13601821_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 189:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".input-express .dialog-footer[data-v-13601821]{text-align:center}.input-express .dialog-footer .el-button[data-v-13601821]{width:160px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 198:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/input-Express.vue?vue&type=template&id=13601821&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "input-express"
|
||||
}, [_c('el-dialog', {
|
||||
attrs: {
|
||||
"title": "填写快递单号",
|
||||
"visible": _vm.showDialog,
|
||||
"width": "926px"
|
||||
},
|
||||
on: {
|
||||
"update:visible": function ($event) {
|
||||
_vm.showDialog = $event;
|
||||
}
|
||||
}
|
||||
}, [_c('el-form', {
|
||||
ref: "inputForm",
|
||||
attrs: {
|
||||
"inline": "",
|
||||
"label-width": "100px",
|
||||
"model": _vm.form,
|
||||
"rules": _vm.rules
|
||||
}
|
||||
}, [_c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "物流公司:",
|
||||
"prop": "business"
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"size": "small",
|
||||
"placeholder": "请输入物流公司名称"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.business,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "business", $$v);
|
||||
},
|
||||
expression: "form.business"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "快递单号:",
|
||||
"prop": "number"
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"size": "small",
|
||||
"placeholder": "请输入快递单号"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.number,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "number", $$v);
|
||||
},
|
||||
expression: "form.number"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "备注说明:",
|
||||
"prop": "desc"
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
staticStyle: {
|
||||
"width": "632px"
|
||||
},
|
||||
attrs: {
|
||||
"type": "textarea",
|
||||
"placeholder": "请输入详细内容,选填",
|
||||
"resize": "none",
|
||||
"rows": "5"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.desc,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "desc", $$v);
|
||||
},
|
||||
expression: "form.desc"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "上传凭证:",
|
||||
"prop": "upload"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "xs muted"
|
||||
}, [_vm._v("请上传快递单号凭证,选填")]), _vm._v(" "), _c('upload', {
|
||||
attrs: {
|
||||
"isSlot": "",
|
||||
"file-list": _vm.fileList,
|
||||
"limit": 3
|
||||
},
|
||||
on: {
|
||||
"success": _vm.uploadSuccess
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "column-center",
|
||||
staticStyle: {
|
||||
"height": "100%"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-camera xs",
|
||||
staticStyle: {
|
||||
"font-size": "24px"
|
||||
}
|
||||
})])])], 1)], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "dialog-footer",
|
||||
attrs: {
|
||||
"slot": "footer"
|
||||
},
|
||||
slot: "footer"
|
||||
}, [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.submitForm
|
||||
}
|
||||
}, [_vm._v("确定")]), _vm._v(" "), _c('el-button', {
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
_vm.showDialog = false;
|
||||
}
|
||||
}
|
||||
}, [_vm._v("取消")])], 1)], 1)], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/input-Express.vue?vue&type=template&id=13601821&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/input-Express.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var input_Expressvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
showDialog: false,
|
||||
form: {
|
||||
// 物流公司
|
||||
business: "",
|
||||
// 快递单号
|
||||
number: "",
|
||||
// 详细内容
|
||||
desc: ""
|
||||
},
|
||||
rules: {
|
||||
business: [{
|
||||
required: true,
|
||||
message: "请输入物流公司"
|
||||
}],
|
||||
number: [{
|
||||
required: true,
|
||||
message: "请输入快递单号"
|
||||
}]
|
||||
},
|
||||
fileList: []
|
||||
};
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
aid: {
|
||||
type: [String, Number],
|
||||
default: -1
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
console.log(this.$refs);
|
||||
this.$refs["inputForm"].validate(async valid => {
|
||||
if (valid) {
|
||||
let fileList = [];
|
||||
this.fileList.forEach(item => {
|
||||
fileList.push(item.response.data);
|
||||
});
|
||||
let data = {
|
||||
id: this.aid,
|
||||
express_name: this.form.business,
|
||||
invoice_no: this.form.number,
|
||||
express_remark: this.form.desc,
|
||||
express_image: fileList.length <= 0 ? "" : fileList[0].base_url
|
||||
};
|
||||
let res = await this.$post("after_sale/express", data);
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: "提交成功",
|
||||
type: "success"
|
||||
});
|
||||
this.showDialog = false;
|
||||
this.$emit("success");
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
uploadSuccess(e) {
|
||||
let fileList = Object.assign([], e);
|
||||
this.fileList = fileList;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value(val) {
|
||||
this.showDialog = val;
|
||||
},
|
||||
showDialog(val) {
|
||||
this.$emit("input", val);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/input-Express.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_input_Expressvue_type_script_lang_js_ = (input_Expressvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/input-Express.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(188)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_input_Expressvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"13601821",
|
||||
"2df65d37"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var input_Express = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {Upload: __webpack_require__(166).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=input-express.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,120 +0,0 @@
|
|||
exports.ids = [14];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=null-data.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"components/null-data.js","sources":["webpack:///./components/null-data.vue?b45d","webpack:///./components/null-data.vue?024f","webpack:///./components/null-data.vue?e32f","webpack:///./components/null-data.vue","webpack:///./components/null-data.vue?d8d7","webpack:///./components/null-data.vue?1125"],"sourcesContent":["// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/sass-resources-loader/lib/loader.js??ref--7-oneOf-1-4!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./null-data.vue?vue&type=style&index=0&id=93598fb0&prod&lang=scss&scoped=true&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add CSS to SSR context\nvar add = require(\"!../node_modules/vue-style-loader/lib/addStylesServer.js\").default\nmodule.exports.__inject__ = function (context) {\n add(\"1e01d57a\", content, true, context)\n};","export * from \"-!../node_modules/vue-style-loader/index.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/sass-resources-loader/lib/loader.js??ref--7-oneOf-1-4!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./null-data.vue?vue&type=style&index=0&id=93598fb0&prod&lang=scss&scoped=true&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}\", \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg-white flex-col col-center null-data\"},[_vm._ssrNode(\"<img\"+(_vm._ssrAttr(\"src\",_vm.img))+\" alt class=\\\"img-null\\\"\"+(_vm._ssrStyle(null,_vm.imgStyle, null))+\" data-v-93598fb0> <div class=\\\"muted mt8\\\" data-v-93598fb0>\"+_vm._ssrEscape(_vm._s(_vm.text))+\"</div>\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./null-data.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./null-data.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./null-data.vue?vue&type=template&id=93598fb0&scoped=true&\"\nimport script from \"./null-data.vue?vue&type=script&lang=js&\"\nexport * from \"./null-data.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./null-data.vue?vue&type=style&index=0&id=93598fb0&prod&lang=scss&scoped=true&\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n \"93598fb0\",\n \"6e759c9a\"\n \n)\n\nexport default component.exports"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AAAA;AAAA;AAAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACPA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;;;;;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
|
|
@ -1,353 +0,0 @@
|
|||
exports.ids = [15];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 168:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(184);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("8e6e7932", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 183:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(168);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 184:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".number-box[data-v-1d9d8f36]{align-items:center;display:inline-flex}.number-box .number-input[data-v-1d9d8f36]{align-items:center;justify-content:center;margin:0 6px;padding:0;position:relative;text-align:center}.number-box .minus[data-v-1d9d8f36],.number-box .plus[data-v-1d9d8f36]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.number-box .plus[data-v-1d9d8f36]{border-radius:0 2px 2px 0}.number-box .minus[data-v-1d9d8f36]{border-radius:2px 0 0 2px}.number-box .disabled[data-v-1d9d8f36]{background:#f7f8fa!important;color:#c8c9cc!important}.number-box .input-disabled[data-v-1d9d8f36]{background-color:#f2f3f5!important;color:#c8c9cc!important}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 196:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/number-box.vue?vue&type=template&id=1d9d8f36&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "number-box"
|
||||
}, [_vm._ssrNode("<div" + _vm._ssrClass(null, {
|
||||
minus: true,
|
||||
disabled: _vm.disabled || _vm.inputVal <= _vm.min
|
||||
}) + _vm._ssrStyle(null, {
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
color: _vm.color
|
||||
}, null) + " data-v-1d9d8f36><div" + _vm._ssrStyle(null, {
|
||||
fontSize: _vm.size + 'px'
|
||||
}, null) + " data-v-1d9d8f36>-</div></div> <input" + _vm._ssrAttr("disabled", _vm.disabledInput || _vm.disabled) + " type=\"text\"" + _vm._ssrAttr("value", _vm.inputVal) + _vm._ssrClass(null, {
|
||||
'number-input': true,
|
||||
'input-disabled': _vm.disabled
|
||||
}) + _vm._ssrStyle(null, {
|
||||
color: _vm.color,
|
||||
fontSize: _vm.size + 'px',
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
width: _vm.inputWidth + 'px'
|
||||
}, null) + " data-v-1d9d8f36> <div" + _vm._ssrClass("plus", {
|
||||
disabled: _vm.disabled || _vm.inputVal >= _vm.max
|
||||
}) + _vm._ssrStyle(null, {
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
color: _vm.color
|
||||
}, null) + " data-v-1d9d8f36><div" + _vm._ssrStyle(null, {
|
||||
fontSize: _vm.size + 'px'
|
||||
}, null) + " data-v-1d9d8f36>+</div></div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/number-box.vue?vue&type=template&id=1d9d8f36&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/number-box.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var number_boxvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
// 预显示的数字
|
||||
value: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: ' #F2F3F5'
|
||||
},
|
||||
// 最小值
|
||||
min: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
// 最大值
|
||||
max: {
|
||||
type: Number,
|
||||
default: 99999
|
||||
},
|
||||
// 步进值,每次加或减的值
|
||||
step: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// 是否禁用加减操作
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// input的字体大小,单位px
|
||||
size: {
|
||||
type: [Number, String],
|
||||
default: 14
|
||||
},
|
||||
// input宽度,单位px
|
||||
inputWidth: {
|
||||
type: [Number, String],
|
||||
default: 64
|
||||
},
|
||||
//字体颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: '#333'
|
||||
},
|
||||
// input高度,单位px
|
||||
inputHeight: {
|
||||
type: [Number, String],
|
||||
default: 32
|
||||
},
|
||||
// index索引,用于列表中使用,让用户知道是哪个numberbox发生了变化,一般使用for循环出来的index值即可
|
||||
index: {
|
||||
type: [Number, String],
|
||||
default: ''
|
||||
},
|
||||
// 是否禁用输入框,与disabled作用于输入框时,为OR的关系,即想要禁用输入框,又可以加减的话
|
||||
// 设置disabled为false,disabledInput为true即可
|
||||
disabledInput: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否只能输入大于或等于0的整数(正整数)
|
||||
positiveInteger: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
asyncChange: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value(v1, v2) {
|
||||
if (!this.changeFromInner) {
|
||||
this.inputVal = v1;
|
||||
this.$nextTick(function () {
|
||||
this.changeFromInner = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
inputVal(v1, v2) {
|
||||
if (v1 == '') return;
|
||||
let value = 0;
|
||||
let tmp = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(v1);
|
||||
if (tmp && v1 >= this.min && v1 <= this.max) value = v1;else value = v2;
|
||||
if (this.positiveInteger) {
|
||||
if (v1 < 0 || String(v1).indexOf('.') !== -1) {
|
||||
value = v2;
|
||||
this.$nextTick(() => {
|
||||
this.inputVal = v2;
|
||||
});
|
||||
}
|
||||
}
|
||||
if (this.asyncChange) {
|
||||
return;
|
||||
}
|
||||
// 发出change事件
|
||||
this.handleChange(value, 'change');
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
inputVal: 1,
|
||||
// 输入框中的值,不能直接使用props中的value,因为应该改变props的状态
|
||||
timer: null,
|
||||
// 用作长按的定时器
|
||||
changeFromInner: false,
|
||||
// 值发生变化,是来自内部还是外部
|
||||
innerChangeTimer: null // 内部定时器
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.inputVal = Number(this.value);
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
btnTouchStart(callback) {
|
||||
this[callback]();
|
||||
},
|
||||
minus() {
|
||||
this.computeVal('minus');
|
||||
},
|
||||
plus() {
|
||||
this.computeVal('plus');
|
||||
},
|
||||
calcPlus(num1, num2) {
|
||||
let baseNum, baseNum1, baseNum2;
|
||||
try {
|
||||
baseNum1 = num1.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum1 = 0;
|
||||
}
|
||||
try {
|
||||
baseNum2 = num2.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum2 = 0;
|
||||
}
|
||||
baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
|
||||
let precision = baseNum1 >= baseNum2 ? baseNum1 : baseNum2;
|
||||
return ((num1 * baseNum + num2 * baseNum) / baseNum).toFixed(precision);
|
||||
},
|
||||
calcMinus(num1, num2) {
|
||||
let baseNum, baseNum1, baseNum2;
|
||||
try {
|
||||
baseNum1 = num1.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum1 = 0;
|
||||
}
|
||||
try {
|
||||
baseNum2 = num2.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum2 = 0;
|
||||
}
|
||||
baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
|
||||
let precision = baseNum1 >= baseNum2 ? baseNum1 : baseNum2;
|
||||
return ((num1 * baseNum - num2 * baseNum) / baseNum).toFixed(precision);
|
||||
},
|
||||
computeVal(type) {
|
||||
if (this.disabled) return;
|
||||
let value = 0;
|
||||
// 减
|
||||
if (type === 'minus') {
|
||||
value = this.calcMinus(this.inputVal, this.step);
|
||||
} else if (type === 'plus') {
|
||||
value = this.calcPlus(this.inputVal, this.step);
|
||||
}
|
||||
// 判断是否小于最小值和大于最大值
|
||||
if (value < this.min || value > this.max) {
|
||||
return;
|
||||
}
|
||||
if (this.asyncChange) {
|
||||
this.$emit('change', value);
|
||||
} else {
|
||||
this.inputVal = value;
|
||||
this.handleChange(value, type);
|
||||
}
|
||||
},
|
||||
// 处理用户手动输入的情况
|
||||
onBlur(event) {
|
||||
let val = 0;
|
||||
let value = event.target.value;
|
||||
console.log(value);
|
||||
if (!/(^\d+$)/.test(value)) {
|
||||
val = this.min;
|
||||
} else {
|
||||
val = +value;
|
||||
}
|
||||
if (val > this.max) {
|
||||
val = this.max;
|
||||
} else if (val < this.min) {
|
||||
val = this.min;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.inputVal = val;
|
||||
});
|
||||
this.handleChange(val, 'blur');
|
||||
},
|
||||
// 输入框获得焦点事件
|
||||
onFocus() {
|
||||
this.$emit('focus');
|
||||
},
|
||||
handleChange(value, type) {
|
||||
if (this.disabled) return;
|
||||
// 清除定时器,避免造成混乱
|
||||
if (this.innerChangeTimer) {
|
||||
clearTimeout(this.innerChangeTimer);
|
||||
this.innerChangeTimer = null;
|
||||
}
|
||||
this.changeFromInner = true;
|
||||
this.innerChangeTimer = setTimeout(() => {
|
||||
this.changeFromInner = false;
|
||||
}, 150);
|
||||
this.$emit('input', Number(value));
|
||||
this.$emit(type, {
|
||||
value: Number(value),
|
||||
index: this.index
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/number-box.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_number_boxvue_type_script_lang_js_ = (number_boxvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/number-box.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(183)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_number_boxvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"1d9d8f36",
|
||||
"6cb818cd"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var number_box = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=number-box.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,997 +0,0 @@
|
|||
exports.ids = [16,7,9,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 165:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(177);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("bc9d2028", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 176:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(165);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_deliver_search_vue_vue_type_style_index_0_id_79dec466_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 177:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".deliver-search-container .deliver-box .deliver-recode-box[data-v-79dec466]{background-color:#f2f2f2;padding:10px 20px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img[data-v-79dec466]{height:72px;position:relative;width:72px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img .float-count[data-v-79dec466]{background-color:rgba(0,0,0,.5);bottom:0;color:#fff;font-size:12px;height:20px;position:absolute;width:100%}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container[data-v-79dec466]{flex:1}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .recode-label[data-v-79dec466]{width:70px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]{border:1px solid #ff2c3c;border-radius:60px;cursor:pointer;font-size:12px;height:20px;margin-left:8px;min-width:42px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]:hover{background-color:#fff}.deliver-search-container .deliver-box .deliver-flow-box[data-v-79dec466]{padding-left:15px}.deliver-search-container .deliver-box .time-line-title[data-v-79dec466]{font-size:16px;font-weight:500px;margin-bottom:10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 179:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/deliver-search.vue?vue&type=template&id=79dec466&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "deliver-search-container"
|
||||
}, [_c('el-dialog', {
|
||||
attrs: {
|
||||
"visible": _vm.showDialog,
|
||||
"top": "30vh",
|
||||
"width": "900px",
|
||||
"title": "物流查询"
|
||||
},
|
||||
on: {
|
||||
"update:visible": function ($event) {
|
||||
_vm.showDialog = $event;
|
||||
}
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "deliver-box"
|
||||
}, [_c('div', {
|
||||
staticClass: "deliver-recode-box flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-img"
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": _vm.deliverOrder.image
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "float-count flex row-center"
|
||||
}, [_vm._v("共" + _vm._s(_vm.deliverOrder.count) + "件商品")])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "recode-info-container m-l-10"
|
||||
}, [_c('div', {
|
||||
staticClass: "flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("物流状态:")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "primary lg",
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.deliverOrder.tips))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"margin": "6px 0"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("快递公司:")]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverOrder.shipping_name))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex"
|
||||
}, [_c('div', {
|
||||
staticClass: "recode-label"
|
||||
}, [_vm._v("快递单号:")]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverOrder.invoice_no))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "copy-btn primary flex row-center",
|
||||
on: {
|
||||
"click": _vm.onCopy
|
||||
}
|
||||
}, [_vm._v("复制")])])])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "deliver-flow-box m-t-16"
|
||||
}, [_c('el-timeline', [_vm.deliverFinish.tips ? _c('el-timeline-item', [_c('div', [_c('div', {
|
||||
staticClass: "flex lg"
|
||||
}, [_c('div', {
|
||||
staticClass: "m-r-8",
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v("\n " + _vm._s(_vm.deliverTake.contacts) + "\n ")]), _vm._v(" "), _c('div', {
|
||||
staticStyle: {
|
||||
"font-weight": "500"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.deliverTake.mobile))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "lighter m-t-8"
|
||||
}, [_vm._v(_vm._s(_vm.deliverTake.address))])])]) : _vm._e(), _vm._v(" "), _vm.deliverFinish.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverFinish.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverFinish.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverFinish.tips))])]) : _vm._e(), _vm._v(" "), _vm.delivery.traces && _vm.delivery.traces.length ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.delivery.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title m-b-8"
|
||||
}, [_vm._v(_vm._s(_vm.delivery.title))]), _vm._v(" "), _vm._l(_vm.delivery.traces, function (item, index) {
|
||||
return _c('el-timeline-item', {
|
||||
key: index,
|
||||
attrs: {
|
||||
"timestamp": item[0]
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "muted"
|
||||
}, [_vm._v(_vm._s(item[1]))])]);
|
||||
})], 2) : _vm._e(), _vm._v(" "), _vm.deliverShipment.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverShipment.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverShipment.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverShipment.tips))])]) : _vm._e(), _vm._v(" "), _vm.deliverBuy.tips ? _c('el-timeline-item', {
|
||||
attrs: {
|
||||
"timestamp": _vm.deliverBuy.time
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "time-line-title"
|
||||
}, [_vm._v(_vm._s(_vm.deliverBuy.title))]), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.deliverBuy.tips))])]) : _vm._e()], 1)], 1)])])], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue?vue&type=template&id=79dec466&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/deliver-search.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var deliver_searchvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
value: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
aid: {
|
||||
type: Number | String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showDialog: false,
|
||||
deliverBuy: {},
|
||||
delivery: {},
|
||||
deliverFinish: {},
|
||||
deliverOrder: {},
|
||||
deliverShipment: {},
|
||||
deliverTake: {},
|
||||
timeLineArray: []
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
value(val) {
|
||||
console.log(val, 'val');
|
||||
this.showDialog = val;
|
||||
},
|
||||
showDialog(val) {
|
||||
if (val) {
|
||||
if (this.aid) {
|
||||
this.timeLineArray = [];
|
||||
this.getDeliverTraces();
|
||||
}
|
||||
}
|
||||
this.$emit("input", val);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getDeliverTraces() {
|
||||
let data = {
|
||||
id: this.aid
|
||||
};
|
||||
let res = await this.$get("order/orderTraces", {
|
||||
params: data
|
||||
});
|
||||
if (res.code == 1) {
|
||||
let {
|
||||
buy,
|
||||
delivery,
|
||||
finish,
|
||||
order,
|
||||
shipment,
|
||||
take
|
||||
} = res.data;
|
||||
this.deliverBuy = buy;
|
||||
this.delivery = delivery;
|
||||
this.deliverFinish = finish;
|
||||
this.deliverOrder = order;
|
||||
this.deliverShipment = shipment;
|
||||
this.deliverTake = take;
|
||||
this.timeLineArray.push(this.deliverFinish);
|
||||
this.timeLineArray.push(this.delivery);
|
||||
this.timeLineArray.push(this.deliverShipment);
|
||||
this.timeLineArray.push(this.deliverBuy);
|
||||
console.log(this.timeLineArray);
|
||||
}
|
||||
},
|
||||
onCopy() {
|
||||
// this.deliverOrder.invoice_no;
|
||||
let oInput = document.createElement('input');
|
||||
oInput.value = this.deliverOrder.invoice_no;
|
||||
document.body.appendChild(oInput);
|
||||
oInput.select();
|
||||
document.execCommand("Copy");
|
||||
this.$message.success("复制成功");
|
||||
oInput.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_deliver_searchvue_type_script_lang_js_ = (deliver_searchvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/deliver-search.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(176)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_deliver_searchvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"79dec466",
|
||||
"3bcc2756"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var deliver_search = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 191:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(209);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("29808a8a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 208:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_order_list_vue_vue_type_style_index_0_id_0a397790_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(191);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_order_list_vue_vue_type_style_index_0_id_0a397790_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_order_list_vue_vue_type_style_index_0_id_0a397790_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_order_list_vue_vue_type_style_index_0_id_0a397790_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_order_list_vue_vue_type_style_index_0_id_0a397790_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 209:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".order-list{padding:0 16px}.order-list .item{margin-bottom:20px}.order-list .item .item-hd{background:#f2f2f2;border:1px solid #e5e5e5;height:40px;padding:0 20px}.order-list .item .item-hd .status{text-align:right;width:100px}.order-list .item .item-con{align-items:stretch;box-shadow:0 3px 4px rgba(0,0,0,.08)}.order-list .item .item-con .goods{padding:17px 0;width:560px}.order-list .item .item-con .goods .goods-item{padding:10px 20px}.order-list .item .item-con .goods .goods-item .goods-img{flex:none;height:72px;margin-right:10px;width:72px}.order-list .item .item-con .goods .goods-item .goods-name{width:100%}.order-list .item .item-con .goods .goods-item .goods-name .num{padding:0 42px}.order-list .item .item-con .pay-price{border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5;width:200px}.order-list .item .item-con .operate{width:185px}.order-list .item .item-con .operate>div{cursor:pointer}.order-list .item .item-con .operate .btn{border-radius:2px;height:32px;width:120px}.order-list .item .item-con .operate .btn.plain{border:1px solid #ff2c3c}.uploadBtn{color:#fff}.pre-box{align-items:center;border-top:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:20px}.pre-item{border-radius:6rpx;height:120rpx;margin-bottom:20rpx;margin-right:20rpx;overflow:hidden;position:relative;width:120rpx}.pre-item-image{height:120rpx;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 259:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/order-list.vue?vue&type=template&id=0a397790&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "order-list"
|
||||
}, [_vm._l(_vm.list, function (item) {
|
||||
return _vm._ssrNode("<div class=\"item m-b-16\">", "</div>", [_vm._ssrNode("<div class=\"item-hd flex\">", "</div>", [_c('nuxt-link', {
|
||||
staticClass: "flex-1 lighter sm line-1 m-r-20",
|
||||
staticStyle: {
|
||||
"min-width": "0"
|
||||
},
|
||||
attrs: {
|
||||
"to": `/shop_street_detail?id=${item.shop.id}`
|
||||
}
|
||||
}, [_vm._v("\n " + _vm._s(item.shop.name) + "\n ")]), _vm._ssrNode(" <div class=\"flex-1 lighter sm\">" + _vm._ssrEscape("\n 下单时间:" + _vm._s(item.create_time) + "\n ") + "</div> <div class=\"flex-1 lighter sm\">" + _vm._ssrEscape("\n 订单编号:" + _vm._s(item.order_sn) + "\n ") + "</div> <div" + _vm._ssrClass(null, ['status sm', {
|
||||
primary: item.order_status == 0
|
||||
}]) + ">" + _vm._ssrEscape("\n " + _vm._s(_vm.getOrderStatus(item.order_status)) + "\n ") + "</div>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"item-con\">", "</div>", [_vm._ssrNode("<div class=\"flex\" style=\"align-items: stretch;\">", "</div>", [_vm._ssrNode("<div class=\"goods\">", "</div>", _vm._l(item.order_goods, function (goods, index) {
|
||||
return _c('nuxt-link', {
|
||||
key: index,
|
||||
staticClass: "goods-item flex",
|
||||
attrs: {
|
||||
"to": `/goods_details/${goods.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"src": goods.image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "goods-info flex-1"
|
||||
}, [_c('div', {
|
||||
staticClass: "goods-name m-b-8 flex row-between"
|
||||
}, [_c('div', {
|
||||
staticClass: "line1",
|
||||
staticStyle: {
|
||||
"width": "350px"
|
||||
}
|
||||
}, [goods.is_seckill ? _c('el-tag', {
|
||||
attrs: {
|
||||
"size": "mini",
|
||||
"effect": "plain"
|
||||
}
|
||||
}, [_vm._v("秒杀")]) : _vm._e(), _vm._v("\n\t\t\t\t\t " + _vm._s(goods.goods_name) + "\n\t\t\t\t\t ")], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "num"
|
||||
}, [_vm._v("x" + _vm._s(goods.goods_num))])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "sm muted m-b-8"
|
||||
}, [_vm._v("\n\t\t\t\t\t " + _vm._s(goods.spec_value) + "\n\t\t\t\t\t ")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "primary"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": goods.goods_price
|
||||
}
|
||||
})], 1)])], 1);
|
||||
}), 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"pay-price flex-col col-center row-center\" style=\"padding-left: 30px\">", "</div>", [_vm._ssrNode("<div class=\"lighter\">" + _vm._ssrEscape("共" + _vm._s(item.goods_count) + "件商品") + "</div> "), _vm._ssrNode("<div class=\"lighter m-t-8 flex\">", "</div>", [_vm._ssrNode("\n\t\t\t\t\t 付款金额:\n\t\t\t\t\t "), _vm._ssrNode("<span class=\"primary\">", "</span>", [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.order_amount,
|
||||
"subscript-size": 12,
|
||||
"first-size": 16,
|
||||
"second-size": 12
|
||||
}
|
||||
})], 1)], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"operate flex-col col-center row-center sm\">", "</div>", [item.pay_btn ? _c('nuxt-link', {
|
||||
staticClass: "btn m-b-16 bg-primary flex row-center white sm",
|
||||
attrs: {
|
||||
"to": `/payment?id=${item.id}&from=order`
|
||||
}
|
||||
}, [_c('span', {
|
||||
staticClass: "m-r-8"
|
||||
}, [_vm._v("去付款")]), _vm._v(" "), _vm.getCancelTime(item.order_cancel_time) > 0 ? _c('count-down', {
|
||||
attrs: {
|
||||
"time": _vm.getCancelTime(item.order_cancel_time),
|
||||
"format": "hh:mm:ss"
|
||||
},
|
||||
on: {
|
||||
"finish": function ($event) {
|
||||
return _vm.$emit('refresh');
|
||||
}
|
||||
}
|
||||
}) : _vm._e()], 1) : _vm._e(), _vm._ssrNode(" " + (item.take_btn ? "<div class=\"btn m-b-10 primary flex row-center sm plain\">\n\t\t\t\t\t 确认收货\n\t\t\t\t\t </div>" : "<!---->") + " " + (item.delivery_btn ? "<div class=\"m-b-10 muted flex row-center sm\">\n\t\t\t\t\t 物流查询\n\t\t\t\t\t </div>" : "<!---->") + " " + (item.cancel_btn ? "<div class=\"m-b-10 muted row-center sm\">\n\t\t\t\t\t 取消订单\n\t\t\t\t\t </div>" : "<!---->") + " " + (item.del_btn ? "<div class=\"m-b-10 muted row-center sm\">\n\t\t\t\t\t 删除订单\n\t\t\t\t\t </div>" : "<!---->") + " "), _c('nuxt-link', {
|
||||
staticClass: "lighter",
|
||||
attrs: {
|
||||
"to": `/user/order/detail?id=${item.id}`
|
||||
}
|
||||
}, [_c('span', [_vm._v("查看详情")])]), _vm._ssrNode(" "), _c('el-upload', {
|
||||
staticClass: "upload-demo",
|
||||
attrs: {
|
||||
"action": _vm.action,
|
||||
"multiple": true,
|
||||
"limit": 10,
|
||||
"headers": {
|
||||
token: _vm.$store.state.token
|
||||
},
|
||||
"show-file-list": false,
|
||||
"on-success": _vm.onSuccess
|
||||
}
|
||||
}, [item.pay_btn == 0 && item.del_btn != 1 ? _c('el-button', {
|
||||
staticClass: "m-t-10 muted row-center sm uploadBtn",
|
||||
attrs: {
|
||||
"type": "primary",
|
||||
"size": "mini"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
return _vm.uploadContract(item.id);
|
||||
}
|
||||
}
|
||||
}, [_vm._v("上传合同")]) : _vm._e()], 1)], 2)], 2)])], 2);
|
||||
}), _vm._ssrNode(" "), _c('deliver-search', {
|
||||
attrs: {
|
||||
"aid": _vm.aid
|
||||
},
|
||||
model: {
|
||||
value: _vm.showDeliver,
|
||||
callback: function ($$v) {
|
||||
_vm.showDeliver = $$v;
|
||||
},
|
||||
expression: "showDeliver"
|
||||
}
|
||||
})], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/order-list.vue?vue&type=template&id=0a397790&
|
||||
|
||||
// EXTERNAL MODULE: ./config/app.js
|
||||
var app = __webpack_require__(33);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/order-list.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var order_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showDeliver: false,
|
||||
aid: -1,
|
||||
action: app["a" /* default */].baseUrl + "/api/file/formimage",
|
||||
baseUrl: app["a" /* default */].baseUrl + '/',
|
||||
uploadId: '' //上传的id
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
console.log(this.list);
|
||||
},
|
||||
methods: {
|
||||
handleOrder(type, id) {
|
||||
this.type = type;
|
||||
this.orderId = id;
|
||||
this.$confirm(this.getTipsText(type), {
|
||||
title: '温馨提示',
|
||||
center: true,
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
callback: action => {
|
||||
if (action == 'confirm') {
|
||||
this.postOrder();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
async postOrder() {
|
||||
const {
|
||||
type,
|
||||
orderId
|
||||
} = this;
|
||||
let url = '';
|
||||
switch (type) {
|
||||
case 0:
|
||||
url = 'order/cancel';
|
||||
break;
|
||||
case 1:
|
||||
url = 'order/del';
|
||||
break;
|
||||
case 2:
|
||||
url = 'order/confirm';
|
||||
break;
|
||||
}
|
||||
let {
|
||||
code,
|
||||
data,
|
||||
msg
|
||||
} = await this.$post(url, {
|
||||
id: orderId
|
||||
});
|
||||
if (code == 1) {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: 'success'
|
||||
});
|
||||
this.$emit('refresh');
|
||||
}
|
||||
},
|
||||
getTipsText(type) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
return '确认取消订单吗?';
|
||||
case 1:
|
||||
return '确认删除订单吗?';
|
||||
case 2:
|
||||
return '确认收货吗?';
|
||||
}
|
||||
},
|
||||
showDeliverDialog(id) {
|
||||
console.log('showDeliverDialog');
|
||||
this.aid = id;
|
||||
this.showDeliver = true;
|
||||
},
|
||||
// 上传合同选中的id
|
||||
uploadContract(id) {
|
||||
this.uploadId = id;
|
||||
console.log(this.uploadId);
|
||||
},
|
||||
async onSuccess(response, file, fileList) {
|
||||
console.log(response, file, fileList);
|
||||
let that = this;
|
||||
if (fileList) {
|
||||
let result = fileList.map(item => item.response.data.base_uri).join(',');
|
||||
let params = {
|
||||
order_id: that.uploadId,
|
||||
path: result
|
||||
};
|
||||
let respond = await that.$post("order/contractUpload", params);
|
||||
if (respond.code == 1) {
|
||||
this.$message({
|
||||
message: '上传成功,可进入详情查看',
|
||||
type: "success"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getOrderStatus() {
|
||||
return status => {
|
||||
let text = '';
|
||||
switch (status) {
|
||||
case 0:
|
||||
text = '待支付';
|
||||
break;
|
||||
case 1:
|
||||
text = '待发货';
|
||||
break;
|
||||
case 2:
|
||||
text = '待收货';
|
||||
break;
|
||||
case 3:
|
||||
text = '已完成';
|
||||
break;
|
||||
case 4:
|
||||
text = '订单已关闭';
|
||||
break;
|
||||
}
|
||||
return text;
|
||||
};
|
||||
},
|
||||
getCancelTime() {
|
||||
return time => time - Date.now() / 1000;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/order-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_order_listvue_type_script_lang_js_ = (order_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/order-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(208)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_order_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"77159843"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var order_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default,CountDown: __webpack_require__(148).default,DeliverSearch: __webpack_require__(179).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=order-list.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,178 +0,0 @@
|
|||
exports.ids = [17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=price-formate.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"components/price-formate.js","sources":["webpack:///./components/price-formate.vue?d305","webpack:///./components/price-formate.vue","webpack:///./components/price-formate.vue?e320","webpack:///./components/price-formate.vue?fac7","webpack:///./components/price-formate.vue?d647","webpack:///./components/price-formate.vue?236f"],"sourcesContent":["// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--3-oneOf-1-2!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./price-formate.vue?vue&type=style&index=0&id=62f154aa&prod&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add CSS to SSR context\nvar add = require(\"!../node_modules/vue-style-loader/lib/addStylesServer.js\").default\nmodule.exports.__inject__ = function (context) {\n add(\"d7ac674a\", content, true, context)\n};","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{class:(_vm.lineThrough ? 'line-through' : '') + 'price-format',style:({ color: _vm.color, 'font-weight': _vm.weight })},[_vm._ssrNode(((_vm.showSubscript)?(\"<span\"+(_vm._ssrStyle(null,{\n 'font-size': _vm.subscriptSize + 'px',\n 'margin-right': '1px',\n }, null))+\">¥</span>\"):\"<!---->\")+\" <span\"+(_vm._ssrStyle(null,{ 'font-size': _vm.firstSize + 'px', 'margin-right': '1px' }, null))+\">\"+_vm._ssrEscape(_vm._s(_vm.priceSlice.first))+\"</span> \"+((_vm.priceSlice.second)?(\"<span\"+(_vm._ssrStyle(null,{ 'font-size': _vm.secondSize + 'px' }, null))+\">\"+_vm._ssrEscape(\".\"+_vm._s(_vm.priceSlice.second))+\"</span>\"):\"<!---->\"))])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./price-formate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./price-formate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./price-formate.vue?vue&type=template&id=62f154aa&\"\nimport script from \"./price-formate.vue?vue&type=script&lang=js&\"\nexport * from \"./price-formate.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./price-formate.vue?vue&type=style&index=0&id=62f154aa&prod&lang=css&\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n \"fc05bd98\"\n \n)\n\nexport default component.exports","export * from \"-!../node_modules/vue-style-loader/index.js??ref--3-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--3-oneOf-1-2!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./price-formate.vue?vue&type=style&index=0&id=62f154aa&prod&lang=css&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".price-format{align-items:baseline;display:flex}\", \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACXA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;;;;;AAJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvBA;AAAA;AAAA;AAAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}
|
|
@ -1,148 +0,0 @@
|
|||
exports.ids = [18];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 169:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(186);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("79d4ec36", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 185:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(169);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 186:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".shop-item[data-v-871c1244]{background-position:50%;background-size:cover;border-radius:6px;height:400px;padding:10px;width:270px}.shop-item .shop-info[data-v-871c1244]{border-radius:6px;padding:18px 15px}.shop-item .shop-info .logo[data-v-871c1244]{border-radius:16px;height:70px;margin-top:-45px;width:70px}.shop-item .shop-info .sales[data-v-871c1244]{background-color:#f2f2f2;border-radius:4px;display:inline-block;margin-top:6px;padding:4px 10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 197:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/shop-item.vue?vue&type=template&id=871c1244&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('nuxt-link', {
|
||||
staticClass: "shop-item flex-col row-right",
|
||||
style: {
|
||||
'background-image': `url(${_vm.cover})`
|
||||
},
|
||||
attrs: {
|
||||
"to": `/shop_street_detail?id=${_vm.shopId}`
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "bg-white shop-info text-center"
|
||||
}, [_c('el-image', {
|
||||
staticClass: "logo",
|
||||
attrs: {
|
||||
"src": _vm.logo
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-t-12 line-1 lg"
|
||||
}, [_vm.type == 1 ? _c('el-tag', {
|
||||
attrs: {
|
||||
"size": "mini"
|
||||
}
|
||||
}, [_vm._v("自营")]) : _vm._e(), _vm._v(" " + _vm._s(_vm.name) + "\n ")], 1), _vm._v(" "), _c('span', {
|
||||
staticClass: "xs muted sales"
|
||||
}, [_vm._v("共" + _vm._s(_vm.sales) + "件商品")])], 1)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue?vue&type=template&id=871c1244&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/shop-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var shop_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
cover: {
|
||||
type: String
|
||||
},
|
||||
shopId: {
|
||||
type: [String, Number]
|
||||
},
|
||||
logo: {
|
||||
type: String
|
||||
},
|
||||
type: {
|
||||
type: [String, Number]
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
sales: {
|
||||
type: [String, Number]
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_shop_itemvue_type_script_lang_js_ = (shop_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(185)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_shop_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"871c1244",
|
||||
"1e5fe2f4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var shop_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=shop-item.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,190 +0,0 @@
|
|||
exports.ids = [19];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 152:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(164);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("cfbdabb4", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 163:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(152);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_upload_vue_vue_type_style_index_0_id_9cabb86c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 164:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".v-upload .el-upload--picture-card[data-v-9cabb86c]{height:76px;line-height:76px;width:76px}.v-upload .el-upload-list--picture-card .el-upload-list__item[data-v-9cabb86c]{height:76px;width:76px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 166:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/upload.vue?vue&type=template&id=9cabb86c&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "v-upload"
|
||||
}, [_c('el-upload', {
|
||||
attrs: {
|
||||
"list-type": "picture-card",
|
||||
"action": _vm.url + '/api/file/formimage',
|
||||
"limit": _vm.limit,
|
||||
"on-success": _vm.success,
|
||||
"on-error": _vm.error,
|
||||
"on-remove": _vm.remove,
|
||||
"on-change": _vm.onChange,
|
||||
"headers": {
|
||||
token: _vm.$store.state.token
|
||||
},
|
||||
"auto-upload": _vm.autoUpload,
|
||||
"accept": "image/jpg,image/jpeg,image/png",
|
||||
"before-upload": _vm.beforeAvatarUpload
|
||||
}
|
||||
}, [_vm.isSlot ? _vm._t("default") : _c('div', [_c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v("上传图片")])])], 2)], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/upload.vue?vue&type=template&id=9cabb86c&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./config/app.js
|
||||
var app = __webpack_require__(33);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/upload.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var uploadvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
limit: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
autoUpload: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
onChange: {
|
||||
type: Function,
|
||||
default: () => {}
|
||||
}
|
||||
},
|
||||
watch: {},
|
||||
data() {
|
||||
return {
|
||||
url: app["a" /* default */].baseUrl
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
success(res, file, fileList) {
|
||||
if (!this.autoUpload) {
|
||||
return;
|
||||
}
|
||||
this.$message({
|
||||
message: '上传成功',
|
||||
type: 'success'
|
||||
});
|
||||
this.$emit('success', fileList);
|
||||
},
|
||||
remove(file, fileList) {
|
||||
this.$emit('remove', fileList);
|
||||
},
|
||||
error(res) {
|
||||
this.$message({
|
||||
message: '上传失败,请重新上传',
|
||||
type: 'error'
|
||||
});
|
||||
},
|
||||
beforeAvatarUpload(file) {
|
||||
var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1);
|
||||
console.log('fdsadsf');
|
||||
const extension = testmsg === 'jpg';
|
||||
const extension2 = testmsg === 'png';
|
||||
const extension4 = testmsg === 'jpeg';
|
||||
if (!extension && !extension2) {
|
||||
this.$message({
|
||||
message: '上传文件只能是 jpg, jpeg, png格式!',
|
||||
type: 'warning'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return extension || extension2 || extension4;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/upload.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_uploadvue_type_script_lang_js_ = (uploadvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/upload.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(163)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_uploadvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"9cabb86c",
|
||||
"7f9ac0f2"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var upload = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=upload.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,9 +0,0 @@
|
|||
<!doctype html>
|
||||
<html {{ html_attrs }}>
|
||||
<head {{ head_attrs }}>
|
||||
{{ HEAD }}
|
||||
</head>
|
||||
<body {{ body_attrs }}>
|
||||
{{ APP }}
|
||||
<script src="/_nuxt/1016d27.js"></script><script src="/_nuxt/c184b2a.js"></script><script src="/_nuxt/cea9cc6.js"></script><script src="/_nuxt/064d494.js"></script></body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<!doctype html>
|
||||
<html {{ html_attrs }}>
|
||||
<head {{ head_attrs }}>
|
||||
{{ HEAD }}
|
||||
</head>
|
||||
<body {{ body_attrs }}>
|
||||
{{ APP }}
|
||||
</body>
|
||||
</html>
|
|
@ -1,151 +0,0 @@
|
|||
exports.ids = [20];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 217:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(263);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("248f4eb1", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 262:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7dfc4742_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(217);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7dfc4742_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7dfc4742_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7dfc4742_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_7dfc4742_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 263:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".news-details-container .nav-container[data-v-7dfc4742]{padding:15px 16px}.news-details-container .content-box[data-v-7dfc4742]{display:flex;flex-direction:row}.news-details-container .content-box .news-detail-box[data-v-7dfc4742]{background-color:#fff;width:100%}.news-details-container .content-box .news-detail-box .content-header[data-v-7dfc4742]{border-bottom:1px solid #e5e5e5;margin:0 20px;padding:20px 0}.news-details-container .content-box .news-detail-box .content-header .news-detail-title[data-v-7dfc4742]{color:#222;font-size:24px;font-weight:500}.news-details-container .content-box .news-detail-box .content-html-box[data-v-7dfc4742]{padding:24px 20px}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-7dfc4742]{overflow:hidden;width:100%}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-7dfc4742] img{width:100%}.news-details-container .content-box .recommend-box[data-v-7dfc4742]{width:264px}.news-details-container .content-box .recommend-box .recommend-box-header[data-v-7dfc4742]{border-bottom:1px solid #e5e5e5;padding:15px 10px}.news-details-container .content-box .recommend-box .recommend-box-header .primary-line[data-v-7dfc4742]{background-color:#ff2c3c;height:20px;margin-right:10px;width:4px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item[data-v-7dfc4742]{cursor:pointer;padding:10px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item .goods-info[data-v-7dfc4742]{margin-top:8px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 353:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/about_us/index.vue?vue&type=template&id=7dfc4742&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "news-details-container mt16"
|
||||
}, [_vm._ssrNode("<div class=\"nav-container flex\" data-v-7dfc4742>", "</div>", [_vm._ssrNode("<div class=\"nr\" style=\"width: 70px\" data-v-7dfc4742>当前位置:</div> "), _c('el-breadcrumb', {
|
||||
staticStyle: {
|
||||
"flex": "1"
|
||||
},
|
||||
attrs: {
|
||||
"separator": "/"
|
||||
}
|
||||
}, [_c('el-breadcrumb-item', {
|
||||
attrs: {
|
||||
"to": {
|
||||
path: '/'
|
||||
}
|
||||
}
|
||||
}, [_vm._v("首页")]), _vm._v(" "), _c('el-breadcrumb-item', {
|
||||
staticClass: "line1"
|
||||
}, [_vm._v("关于我们")])], 1)], 2), _vm._ssrNode(" <div class=\"content-box\" data-v-7dfc4742><div class=\"news-detail-box\" data-v-7dfc4742><div class=\"content-header bg-white\" data-v-7dfc4742><div class=\"news-detail-title\" data-v-7dfc4742>\n 关于我们\n </div></div> <div class=\"content-html-box bg-white\" data-v-7dfc4742><div data-v-7dfc4742>" + _vm._s(_vm.detailsObj.content) + "</div></div></div></div>")], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/about_us/index.vue?vue&type=template&id=7dfc4742&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/about_us/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var about_usvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post,
|
||||
query
|
||||
}) {
|
||||
let detailsObj = {};
|
||||
let res = await $get("policy/aboutUs", {});
|
||||
if (res.code == 1) {
|
||||
detailsObj = res.data;
|
||||
}
|
||||
return {
|
||||
detailsObj
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {
|
||||
console.log('route', this.$route);
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/about_us/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_about_usvue_type_script_lang_js_ = (about_usvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/about_us/index.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(262)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_about_usvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"7dfc4742",
|
||||
"6a45d14e"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var about_us = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=index.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,564 +0,0 @@
|
|||
exports.ids = [21,7];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return client; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return loginType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SMSType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return FieldType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AfterSaleType; });
|
||||
const client = 5;
|
||||
const loginType = {
|
||||
SMS: 0,
|
||||
ACCOUNT: 1
|
||||
};
|
||||
|
||||
// 短信发送
|
||||
const SMSType = {
|
||||
// 注册
|
||||
REGISTER: 'ZCYZ',
|
||||
// 找回密码
|
||||
FINDPWD: 'ZHMM',
|
||||
// 登陆
|
||||
LOGIN: 'YZMDL',
|
||||
// 商家申请入驻
|
||||
SJSQYZ: 'SJSQYZ',
|
||||
// 更换手机号
|
||||
CHANGE_MOBILE: 'BGSJHM',
|
||||
// 绑定手机号
|
||||
BIND: 'BDSJHM'
|
||||
};
|
||||
const FieldType = {
|
||||
NONE: '',
|
||||
SEX: 'sex',
|
||||
NICKNAME: 'nickname',
|
||||
AVATAR: 'avatar',
|
||||
MOBILE: 'mobile'
|
||||
};
|
||||
|
||||
// 售后状态
|
||||
const AfterSaleType = {
|
||||
// 售后申请
|
||||
NORMAL: 'normal',
|
||||
// 处理中
|
||||
HANDLING: 'apply',
|
||||
// 已处理
|
||||
FINISH: 'finish'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 232:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(298);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("a27fb3d4", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 297:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_forget_pwd_vue_vue_type_style_index_0_id_11daf7c4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(232);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_forget_pwd_vue_vue_type_style_index_0_id_11daf7c4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_forget_pwd_vue_vue_type_style_index_0_id_11daf7c4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_forget_pwd_vue_vue_type_style_index_0_id_11daf7c4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_forget_pwd_vue_vue_type_style_index_0_id_11daf7c4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 298:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".forget-pwd-container[data-v-11daf7c4]{flex:1}.forget-pwd-container .forget-pwd-box[data-v-11daf7c4]{border:1px solid #e5e5e5;padding-bottom:55px;padding-top:40px;width:880px}.forget-pwd-container .forget-pwd-box .forget-pwd-title[data-v-11daf7c4]{font-size:24px}.forget-pwd-container .forget-pwd-box .form-box .forget-form-item[data-v-11daf7c4]{margin-top:24px}.forget-pwd-container .forget-pwd-box .form-box .form-input[data-v-11daf7c4]{width:400px}.forget-pwd-container .forget-pwd-box .form-box .verify-code-img[data-v-11daf7c4]{background-color:red;height:40px;margin-left:26px;width:100px}.forget-pwd-container .forget-pwd-box .form-box .sms-btn[data-v-11daf7c4]{height:40px;margin-left:16px;width:120px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 368:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/forget_pwd.vue?vue&type=template&id=11daf7c4&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "forget-pwd-container flex-col row-center col-center"
|
||||
}, [_vm._ssrNode("<div class=\"forget-pwd-box flex-col col-center bg-white\" data-v-11daf7c4>", "</div>", [_vm._ssrNode("<div class=\"forget-pwd-title\" data-v-11daf7c4>忘记密码</div> "), _c('el-form', {
|
||||
staticClass: "form-box flex-col"
|
||||
}, [_c('div', {
|
||||
staticClass: "forget-form-item"
|
||||
}, [_c('el-input', {
|
||||
staticClass: "form-input",
|
||||
attrs: {
|
||||
"placeholder": "请输入手机号码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.telephone,
|
||||
callback: function ($$v) {
|
||||
_vm.telephone = $$v;
|
||||
},
|
||||
expression: "telephone"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-user",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "forget-form-item flex"
|
||||
}, [_c('el-input', {
|
||||
staticClass: "form-input",
|
||||
staticStyle: {
|
||||
"width": "264px"
|
||||
},
|
||||
attrs: {
|
||||
"placeholder": "短信验证码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.smsCode,
|
||||
callback: function ($$v) {
|
||||
_vm.smsCode = $$v;
|
||||
},
|
||||
expression: "smsCode"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-lock",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})]), _vm._v(" "), _c('el-button', {
|
||||
staticClass: "sms-btn",
|
||||
on: {
|
||||
"click": _vm.sendSMSCode
|
||||
}
|
||||
}, [_vm.canSend ? _c('div', [_vm._v("获取验证码")]) : _c('count-down', {
|
||||
attrs: {
|
||||
"time": 60,
|
||||
"format": "ss秒",
|
||||
"autoStart": ""
|
||||
},
|
||||
on: {
|
||||
"finish": function ($event) {
|
||||
_vm.canSend = true;
|
||||
}
|
||||
}
|
||||
})], 1)], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "forget-form-item"
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"placeholder": "请输入密码 (数字与字母自由组合)",
|
||||
"show-password": ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.password,
|
||||
callback: function ($$v) {
|
||||
_vm.password = $$v;
|
||||
},
|
||||
expression: "password"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-more-outline",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "forget-form-item"
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"placeholder": "再次输入密码",
|
||||
"show-password": ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.againPwd,
|
||||
callback: function ($$v) {
|
||||
_vm.againPwd = $$v;
|
||||
},
|
||||
expression: "againPwd"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-key",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex-col",
|
||||
staticStyle: {
|
||||
"margin-top": "46px"
|
||||
}
|
||||
}, [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.forgetFun
|
||||
}
|
||||
}, [_vm._v("确定")])], 1)])], 2)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/forget_pwd.vue?vue&type=template&id=11daf7c4&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/type.js
|
||||
var type = __webpack_require__(153);
|
||||
|
||||
// EXTERNAL MODULE: ./components/count-down.vue + 5 modules
|
||||
var count_down = __webpack_require__(148);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/forget_pwd.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
/* harmony default export */ var forget_pwdvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
layout: 'main',
|
||||
components: {
|
||||
CountDown: count_down["default"]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
telephone: '',
|
||||
smsCode: '',
|
||||
canSend: true,
|
||||
password: '',
|
||||
againPwd: ''
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async forgetFun() {
|
||||
if (!this.telephone) {
|
||||
this.$message({
|
||||
message: '请输入手机号码',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
} else if (!this.smsCode) {
|
||||
this.$message({
|
||||
message: '请输入验证码',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
} else if (!this.password) {
|
||||
this.$message({
|
||||
message: '请输入密码信息',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
} else if (this.password != this.againPwd) {
|
||||
this.$message({
|
||||
message: '两次输入密码不一致',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let res = await this.$post('login_password/forget', {
|
||||
mobile: this.telephone,
|
||||
code: this.smsCode,
|
||||
password: this.password,
|
||||
repassword: this.againPwd,
|
||||
client: type["d" /* client */]
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: '修改成功',
|
||||
type: 'success'
|
||||
});
|
||||
let time = setTimeout(() => {
|
||||
this.$router.replace('/account/login');
|
||||
clearTimeout(time);
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
async sendSMSCode() {
|
||||
if (!this.telephone) {
|
||||
this.$message({
|
||||
message: '请输入手机号码',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let res = await this.$post('sms/send', {
|
||||
mobile: this.telephone,
|
||||
key: type["c" /* SMSType */].FINDPWD
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.canSend = false;
|
||||
this.$message({
|
||||
message: '发送成功',
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/account/forget_pwd.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var account_forget_pwdvue_type_script_lang_js_ = (forget_pwdvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/forget_pwd.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(297)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
account_forget_pwdvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"11daf7c4",
|
||||
"666fe87c"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var forget_pwd = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {CountDown: __webpack_require__(148).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=forget_pwd.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,696 +0,0 @@
|
|||
exports.ids = [22,7];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return client; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return loginType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SMSType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return FieldType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AfterSaleType; });
|
||||
const client = 5;
|
||||
const loginType = {
|
||||
SMS: 0,
|
||||
ACCOUNT: 1
|
||||
};
|
||||
|
||||
// 短信发送
|
||||
const SMSType = {
|
||||
// 注册
|
||||
REGISTER: 'ZCYZ',
|
||||
// 找回密码
|
||||
FINDPWD: 'ZHMM',
|
||||
// 登陆
|
||||
LOGIN: 'YZMDL',
|
||||
// 商家申请入驻
|
||||
SJSQYZ: 'SJSQYZ',
|
||||
// 更换手机号
|
||||
CHANGE_MOBILE: 'BGSJHM',
|
||||
// 绑定手机号
|
||||
BIND: 'BDSJHM'
|
||||
};
|
||||
const FieldType = {
|
||||
NONE: '',
|
||||
SEX: 'sex',
|
||||
NICKNAME: 'nickname',
|
||||
AVATAR: 'avatar',
|
||||
MOBILE: 'mobile'
|
||||
};
|
||||
|
||||
// 售后状态
|
||||
const AfterSaleType = {
|
||||
// 售后申请
|
||||
NORMAL: 'normal',
|
||||
// 处理中
|
||||
HANDLING: 'apply',
|
||||
// 已处理
|
||||
FINISH: 'finish'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 233:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(300);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("472b4c8f", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 299:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_login_vue_vue_type_style_index_0_id_9102fc34_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(233);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_login_vue_vue_type_style_index_0_id_9102fc34_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_login_vue_vue_type_style_index_0_id_9102fc34_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_login_vue_vue_type_style_index_0_id_9102fc34_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_login_vue_vue_type_style_index_0_id_9102fc34_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 300:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".login[data-v-9102fc34]{background-position:50%;background-repeat:no-repeat;background-size:cover;flex:1;min-width:1180px}.login .login-container[data-v-9102fc34]{height:100%;margin:0 auto;position:relative;width:1180px}.login .login-container .login-banner[data-v-9102fc34]{align-items:center;animation:loadimg-9102fc34 2s infinite;display:flex;height:440px;justify-content:center;margin-right:30px;overflow:hidden;transition:background-color 2s;width:750px}@keyframes loadimg-9102fc34{0%{background-color:#e4e4e4}50%{background-color:#f0f0f0}to{background-color:#e4e4e4}}.login .login-container .login-float-form-wrap[data-v-9102fc34]{height:440px;width:400px}.login .login-container .login-float-form-wrap .login-box[data-v-9102fc34]{background-color:#fff;display:flex;flex-direction:column;height:100%;justify-content:space-between}.login .login-container .login-float-form-wrap .login-box .login-header-box[data-v-9102fc34]{padding-top:20px}.login .login-container .login-float-form-wrap .login-box .login-header-box .header-tabs .header-tab[data-v-9102fc34]{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:35px;width:160px}.login .login-container .login-float-form-wrap .login-box .login-header-box .header-tabs .active-tab[data-v-9102fc34]{color:#ff2c3c;text-align:center}.login .login-container .login-float-form-wrap .login-box .login-header-box .header-tabs .active-tab[data-v-9102fc34]:after{background-color:#ff2c3c;content:\"\";height:2px;margin-top:8px;width:72px}.login .login-container .login-float-form-wrap .login-box .login-header-box .login-form-box[data-v-9102fc34]{padding:0 30px}.login .login-container .login-float-form-wrap .login-box .login-header-box .login-form-box .login-form-item[data-v-9102fc34]{margin-top:24px}.login .login-container .login-float-form-wrap .login-box .login-header-box .login-form-box .login-form-item .input-phone-num[data-v-9102fc34]{width:340px}.login .login-container .login-float-form-wrap .login-box .login-header-box .login-form-box .login-form-item .verify-code-img[data-v-9102fc34]{background-color:red;height:40px;margin-left:20px;width:100px}.login .login-container .login-float-form-wrap .login-box .login-header-box .login-form-box .login-form-item .sms-btn[data-v-9102fc34]{height:40px;margin-left:20px}.login .login-container .login-float-form-wrap .login-box .login-header-box .option-box[data-v-9102fc34]{margin-top:60px;padding:0 30px}.login .login-container .login-float-form-wrap .login-box .login-header-box .option-box[data-v-9102fc34] .el-checkbox{color:#888}.login .login-container .login-float-form-wrap .login-box .login-footer-box[data-v-9102fc34]{height:50px;padding:15px}.login .login-container .login-float-form-wrap .login-box .login-footer-box .login__other-item[data-v-9102fc34]{cursor:pointer}.login .login-container .login-float-form-wrap .login-box .login-footer-box .login__weixin-icon[data-v-9102fc34]{background-color:#0abd5d;border-radius:50%;color:#fff;height:1.5em;line-height:1.5em;text-align:center;width:1.5em}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 369:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/login.vue?vue&type=template&id=9102fc34&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "login flex col-center"
|
||||
}, [_vm._ssrNode("<div class=\"login-container flex col-stretch\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-banner\" data-v-9102fc34><img" + _vm._ssrAttr("src", _vm.config.pc_login_logo) + " height=\"100%\" data-v-9102fc34></div> "), _vm._ssrNode("<div class=\"login-float-form-wrap\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-box\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-header-box\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"header-tabs flex row-center\" data-v-9102fc34><div" + _vm._ssrClass("header-tab xxl", {
|
||||
'active-tab': _vm.loginStatus == 0
|
||||
}) + " data-v-9102fc34>验证码登录</div> <div" + _vm._ssrClass("header-tab xxl", {
|
||||
'active-tab': _vm.loginStatus == 1
|
||||
}) + " data-v-9102fc34>账号密码登录</div></div> "), _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.loginStatus == 0 ? '' : 'none'
|
||||
}) + " data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-form-box\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-form-item\" data-v-9102fc34>", "</div>", [_c('el-input', {
|
||||
staticClass: "input-phone-num",
|
||||
attrs: {
|
||||
"placeholder": "请输入手机号码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.telephone,
|
||||
callback: function ($$v) {
|
||||
_vm.telephone = $$v;
|
||||
},
|
||||
expression: "telephone"
|
||||
}
|
||||
}, [_c('el-select', {
|
||||
staticStyle: {
|
||||
"width": "100px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend",
|
||||
"placeholder": "请选择"
|
||||
},
|
||||
slot: "prepend",
|
||||
model: {
|
||||
value: _vm.selectNumberType,
|
||||
callback: function ($$v) {
|
||||
_vm.selectNumberType = $$v;
|
||||
},
|
||||
expression: "selectNumberType"
|
||||
}
|
||||
}, [_c('el-option', {
|
||||
attrs: {
|
||||
"label": "中国+86",
|
||||
"value": "1"
|
||||
}
|
||||
})], 1)], 1)], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"login-form-item flex\" data-v-9102fc34>", "</div>", [_c('el-input', {
|
||||
staticStyle: {
|
||||
"width": "210px"
|
||||
},
|
||||
attrs: {
|
||||
"placeholder": "短信验证码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.smsCode,
|
||||
callback: function ($$v) {
|
||||
_vm.smsCode = $$v;
|
||||
},
|
||||
expression: "smsCode"
|
||||
}
|
||||
}), _vm._ssrNode(" "), _c('el-button', {
|
||||
staticClass: "sms-btn",
|
||||
on: {
|
||||
"click": _vm.sendSMSCode
|
||||
}
|
||||
}, [_vm.canSend ? _c('div', [_vm._v("获取验证码")]) : _c('count-down', {
|
||||
attrs: {
|
||||
"time": 60,
|
||||
"format": "ss秒",
|
||||
"autoStart": true
|
||||
},
|
||||
on: {
|
||||
"finish": function ($event) {
|
||||
_vm.canSend = true;
|
||||
}
|
||||
}
|
||||
})], 1)], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"option-box flex-col\" data-v-9102fc34>", "</div>", [_c('el-checkbox', {
|
||||
staticClass: "muted",
|
||||
model: {
|
||||
value: _vm.isRemember,
|
||||
callback: function ($$v) {
|
||||
_vm.isRemember = $$v;
|
||||
},
|
||||
expression: "isRemember"
|
||||
}
|
||||
}, [_vm._v("记住账号")]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"m-t-20 flex-col\" data-v-9102fc34>", "</div>", [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.smsLogin
|
||||
}
|
||||
}, [_vm._v("立即登录")])], 1)], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.loginStatus == 1 ? '' : 'none'
|
||||
}) + " data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-form-box\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"login-form-item\" data-v-9102fc34>", "</div>", [_c('el-input', {
|
||||
staticClass: "input-phone-num",
|
||||
attrs: {
|
||||
"placeholder": "请输入账号/手机号码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.account,
|
||||
callback: function ($$v) {
|
||||
_vm.account = $$v;
|
||||
},
|
||||
expression: "account"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-user",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"login-form-item flex\" data-v-9102fc34>", "</div>", [_c('el-input', {
|
||||
attrs: {
|
||||
"placeholder": "请输入密码",
|
||||
"show-password": ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.password,
|
||||
callback: function ($$v) {
|
||||
_vm.password = $$v;
|
||||
},
|
||||
expression: "password"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-more-outline",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"option-box flex-col\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div class=\"flex row-between\" data-v-9102fc34>", "</div>", [_c('el-checkbox', {
|
||||
staticClass: "muted",
|
||||
model: {
|
||||
value: _vm.isRemember,
|
||||
callback: function ($$v) {
|
||||
_vm.isRemember = $$v;
|
||||
},
|
||||
expression: "isRemember"
|
||||
}
|
||||
}, [_vm._v("记住账号")]), _vm._ssrNode(" "), _c('nuxt-link', {
|
||||
staticClass: "muted",
|
||||
attrs: {
|
||||
"to": "/account/forget_pwd"
|
||||
}
|
||||
}, [_vm._v("忘记密码?")])], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"m-t-20 flex-col\" data-v-9102fc34>", "</div>", [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.accountLogin
|
||||
}
|
||||
}, [_vm._v("立即登录")])], 1)], 2)], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"login-footer-box flex row-between\" data-v-9102fc34>", "</div>", [_vm._ssrNode("<div data-v-9102fc34></div> "), _c('nuxt-link', {
|
||||
staticClass: "primary",
|
||||
attrs: {
|
||||
"to": "/account/register"
|
||||
}
|
||||
}, [_vm._v("注册账号")])], 2)], 2)])], 2)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/login.vue?vue&type=template&id=9102fc34&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/type.js
|
||||
var type = __webpack_require__(153);
|
||||
|
||||
// EXTERNAL MODULE: external "js-cookie"
|
||||
var external_js_cookie_ = __webpack_require__(13);
|
||||
var external_js_cookie_default = /*#__PURE__*/__webpack_require__.n(external_js_cookie_);
|
||||
|
||||
// EXTERNAL MODULE: external "vuex"
|
||||
var external_vuex_ = __webpack_require__(2);
|
||||
|
||||
// EXTERNAL MODULE: ./components/count-down.vue + 5 modules
|
||||
var count_down = __webpack_require__(148);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/login.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var loginvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
layout: 'main',
|
||||
components: {
|
||||
CountDown: count_down["default"]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 选择电话类型
|
||||
selectNumberType: '中国+86',
|
||||
// 账号
|
||||
account: '',
|
||||
// 密码
|
||||
password: '',
|
||||
// 电话号码
|
||||
telephone: '',
|
||||
// 图形验证码
|
||||
verifyCode: '',
|
||||
// 短信验证码
|
||||
smsCode: '',
|
||||
isRemember: true,
|
||||
// 短信登陆或账号登陆 0 ==》 短信 1 ==》账号
|
||||
loginStatus: type["e" /* loginType */].SMS,
|
||||
canSend: true
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...Object(external_vuex_["mapState"])(['config'])
|
||||
},
|
||||
methods: {
|
||||
...Object(external_vuex_["mapMutations"])(['setToken']),
|
||||
...Object(external_vuex_["mapActions"])(['getPublicData']),
|
||||
changeLoginType(type) {
|
||||
this.loginStatus = type;
|
||||
this.telephone = '';
|
||||
this.verifyCode = '';
|
||||
this.smsCode = '';
|
||||
let jsonPaser = JSON.parse(localStorage.getItem('ACCOUNT'));
|
||||
let telJson = JSON.parse(localStorage.getItem('TEL'));
|
||||
if (jsonPaser && jsonPaser.account) {
|
||||
this.account = jsonPaser.account;
|
||||
}
|
||||
if (telJson && telJson.telephone) {
|
||||
this.telephone = telJson.telephone;
|
||||
}
|
||||
},
|
||||
// 前往微信登录
|
||||
goWechatLogin() {
|
||||
this.$get('account/scanCode').then(({
|
||||
code,
|
||||
msg,
|
||||
data
|
||||
}) => {
|
||||
if (code !== 1) throw new Error(msg);
|
||||
window.open(data.url, '_self');
|
||||
}).catch(err => {
|
||||
this.$message.error(err.message);
|
||||
});
|
||||
},
|
||||
// 微信授权登录处理
|
||||
handleWechatLogin(params) {
|
||||
this.$post('account/scanLogin', params).then(({
|
||||
code,
|
||||
msg,
|
||||
data
|
||||
}) => {
|
||||
if (code !== 1) throw new Error(msg);
|
||||
external_js_cookie_default.a.set('token', data.token, {
|
||||
expires: 60
|
||||
});
|
||||
this.setToken(data.token);
|
||||
this.$router.replace({
|
||||
path: external_js_cookie_default.a.get('back_url') || '/'
|
||||
});
|
||||
external_js_cookie_default.a.remove('back_url');
|
||||
this.getPublicData();
|
||||
}).catch(err => {
|
||||
this.$message.error(err.message);
|
||||
});
|
||||
},
|
||||
async sendSMSCode() {
|
||||
if (!this.canSend) {
|
||||
return;
|
||||
}
|
||||
let res = await this.$post('sms/send', {
|
||||
mobile: this.telephone,
|
||||
key: type["c" /* SMSType */].LOGIN,
|
||||
client: type["d" /* client */]
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
});
|
||||
this.canSend = false;
|
||||
}
|
||||
},
|
||||
async smsLogin() {
|
||||
let res = await this.$post('account/smsLogin', {
|
||||
mobile: this.telephone,
|
||||
code: this.smsCode,
|
||||
client: type["d" /* client */]
|
||||
});
|
||||
if (res.code == 1) {
|
||||
const token = res.data.token;
|
||||
external_js_cookie_default.a.set('token', token, {
|
||||
expires: 60
|
||||
});
|
||||
this.setToken(token);
|
||||
this.$router.replace({
|
||||
path: external_js_cookie_default.a.get('back_url') || '/'
|
||||
});
|
||||
external_js_cookie_default.a.remove('back_url');
|
||||
this.getPublicData();
|
||||
if (this.isRemember) {
|
||||
localStorage.setItem('TEL', JSON.stringify({
|
||||
telephone: this.telephone
|
||||
}));
|
||||
} else {
|
||||
localStorage.setItem('TEL', JSON.stringify({
|
||||
telephone: ''
|
||||
}));
|
||||
}
|
||||
}
|
||||
},
|
||||
async accountLogin() {
|
||||
let res = await this.$post('account/login', {
|
||||
mobile: this.account,
|
||||
password: this.password,
|
||||
client: type["d" /* client */]
|
||||
});
|
||||
if (res.code == 1) {
|
||||
const token = res.data.token;
|
||||
external_js_cookie_default.a.set('token', token, {
|
||||
expires: 60
|
||||
});
|
||||
this.setToken(token);
|
||||
this.$router.replace({
|
||||
path: external_js_cookie_default.a.get('back_url') || '/'
|
||||
});
|
||||
external_js_cookie_default.a.remove('back_url');
|
||||
this.getPublicData();
|
||||
if (this.isRemember) {
|
||||
localStorage.setItem('ACCOUNT', JSON.stringify({
|
||||
account: this.account
|
||||
}));
|
||||
} else {
|
||||
localStorage.setItem('ACCOUNT', JSON.stringify({
|
||||
account: ''
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
try {
|
||||
var _JSON$parse, _JSON$parse2, _jsonPaser$account, _telJson$telephone;
|
||||
// 获取URL Query参数
|
||||
const query = this.$route.query;
|
||||
|
||||
// 如果存在code和state值,即为微信扫码授权后重定向至此
|
||||
query.code && query.state && this.handleWechatLogin({
|
||||
code: query.code,
|
||||
state: query.state
|
||||
});
|
||||
|
||||
// 获取缓存数据
|
||||
const jsonPaser = (_JSON$parse = JSON.parse(localStorage.getItem('ACCOUNT'))) !== null && _JSON$parse !== void 0 ? _JSON$parse : {};
|
||||
const telJson = (_JSON$parse2 = JSON.parse(localStorage.getItem('TEL'))) !== null && _JSON$parse2 !== void 0 ? _JSON$parse2 : {};
|
||||
// 利用缓存数据初始化表单值
|
||||
this.account = (_jsonPaser$account = jsonPaser === null || jsonPaser === void 0 ? void 0 : jsonPaser.account) !== null && _jsonPaser$account !== void 0 ? _jsonPaser$account : '';
|
||||
this.telephone = (_telJson$telephone = telJson === null || telJson === void 0 ? void 0 : telJson.telephone) !== null && _telJson$telephone !== void 0 ? _telJson$telephone : '';
|
||||
} catch (error) {}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/account/login.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var account_loginvue_type_script_lang_js_ = (loginvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/login.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(299)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
account_loginvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"9102fc34",
|
||||
"9d366d3c"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var login = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {CountDown: __webpack_require__(148).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=login.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,570 +0,0 @@
|
|||
exports.ids = [23,7];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return client; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return loginType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SMSType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return FieldType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AfterSaleType; });
|
||||
const client = 5;
|
||||
const loginType = {
|
||||
SMS: 0,
|
||||
ACCOUNT: 1
|
||||
};
|
||||
|
||||
// 短信发送
|
||||
const SMSType = {
|
||||
// 注册
|
||||
REGISTER: 'ZCYZ',
|
||||
// 找回密码
|
||||
FINDPWD: 'ZHMM',
|
||||
// 登陆
|
||||
LOGIN: 'YZMDL',
|
||||
// 商家申请入驻
|
||||
SJSQYZ: 'SJSQYZ',
|
||||
// 更换手机号
|
||||
CHANGE_MOBILE: 'BGSJHM',
|
||||
// 绑定手机号
|
||||
BIND: 'BDSJHM'
|
||||
};
|
||||
const FieldType = {
|
||||
NONE: '',
|
||||
SEX: 'sex',
|
||||
NICKNAME: 'nickname',
|
||||
AVATAR: 'avatar',
|
||||
MOBILE: 'mobile'
|
||||
};
|
||||
|
||||
// 售后状态
|
||||
const AfterSaleType = {
|
||||
// 售后申请
|
||||
NORMAL: 'normal',
|
||||
// 处理中
|
||||
HANDLING: 'apply',
|
||||
// 已处理
|
||||
FINISH: 'finish'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 234:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(302);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("62e62b82", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 301:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_register_vue_vue_type_style_index_0_id_42129c30_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(234);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_register_vue_vue_type_style_index_0_id_42129c30_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_register_vue_vue_type_style_index_0_id_42129c30_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_register_vue_vue_type_style_index_0_id_42129c30_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_register_vue_vue_type_style_index_0_id_42129c30_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 302:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".register-container[data-v-42129c30]{flex:1}.register-container .register-box[data-v-42129c30]{border:1px solid #e5e5e5;padding-bottom:55px;padding-top:40px;width:880px}.register-container .register-box .register-title[data-v-42129c30]{font-size:24px}.register-container .register-box .form-box .register-form-item[data-v-42129c30]{margin-top:24px}.register-container .register-box .form-box .register-form-item .form-input[data-v-42129c30]{width:400px}.register-container .register-box .form-box .register-form-item .verify-code-img[data-v-42129c30]{background-color:red;height:40px;margin-left:26px;width:100px}.register-container .register-box .form-box .register-form-item .sms-btn[data-v-42129c30]{height:40px;margin-left:16px;width:120px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 370:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/register.vue?vue&type=template&id=42129c30&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "register-container flex-col row-center col-center"
|
||||
}, [_vm._ssrNode("<div class=\"register-box flex-col col-center bg-white\" data-v-42129c30>", "</div>", [_vm._ssrNode("<div class=\"register-title\" data-v-42129c30>注册账号</div> "), _c('el-form', {
|
||||
staticClass: "form-box flex-col"
|
||||
}, [_c('div', {
|
||||
staticClass: "register-form-item"
|
||||
}, [_c('el-input', {
|
||||
staticClass: "form-input",
|
||||
attrs: {
|
||||
"placeholder": "请输入手机号码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.telephone,
|
||||
callback: function ($$v) {
|
||||
_vm.telephone = $$v;
|
||||
},
|
||||
expression: "telephone"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-user",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _vm.registerSetting ? _c('div', {
|
||||
staticClass: "register-form-item flex"
|
||||
}, [_c('el-input', {
|
||||
staticClass: "form-input",
|
||||
staticStyle: {
|
||||
"width": "264px"
|
||||
},
|
||||
attrs: {
|
||||
"placeholder": "短信验证码"
|
||||
},
|
||||
model: {
|
||||
value: _vm.smsCode,
|
||||
callback: function ($$v) {
|
||||
_vm.smsCode = $$v;
|
||||
},
|
||||
expression: "smsCode"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-lock",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})]), _vm._v(" "), _c('el-button', {
|
||||
staticClass: "sms-btn",
|
||||
on: {
|
||||
"click": _vm.sendSMSCode
|
||||
}
|
||||
}, [_vm.canSend ? _c('div', [_vm._v("获取验证码")]) : _c('count-down', {
|
||||
attrs: {
|
||||
"time": 60,
|
||||
"format": "ss秒",
|
||||
"autoStart": ""
|
||||
},
|
||||
on: {
|
||||
"finish": function ($event) {
|
||||
_vm.canSend = true;
|
||||
}
|
||||
}
|
||||
})], 1)], 1) : _vm._e(), _vm._v(" "), _c('div', {
|
||||
staticClass: "register-form-item"
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"placeholder": "请输入密码 (数字与字母自由组合)",
|
||||
"show-password": ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.password,
|
||||
callback: function ($$v) {
|
||||
_vm.password = $$v;
|
||||
},
|
||||
expression: "password"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-more-outline",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "register-form-item"
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"placeholder": "再次输入密码",
|
||||
"show-password": ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.againPwd,
|
||||
callback: function ($$v) {
|
||||
_vm.againPwd = $$v;
|
||||
},
|
||||
expression: "againPwd"
|
||||
}
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-key",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "prepend"
|
||||
},
|
||||
slot: "prepend"
|
||||
})])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex row-between",
|
||||
staticStyle: {
|
||||
"margin-top": "36px"
|
||||
}
|
||||
}, [_c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": "/account/login"
|
||||
}
|
||||
}, [_vm._v("已有账号,去登录")])], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-t-20 flex-col"
|
||||
}, [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.registerFun
|
||||
}
|
||||
}, [_vm._v("立即注册")])], 1)])], 2)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/register.vue?vue&type=template&id=42129c30&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/type.js
|
||||
var type = __webpack_require__(153);
|
||||
|
||||
// EXTERNAL MODULE: ./components/count-down.vue + 5 modules
|
||||
var count_down = __webpack_require__(148);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/account/register.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
/* harmony default export */ var registervue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
layout: 'main',
|
||||
components: {
|
||||
CountDown: count_down["default"]
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
telephone: '',
|
||||
smsCode: '',
|
||||
password: '',
|
||||
againPwd: '',
|
||||
canSend: true
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
registerSetting() {
|
||||
return this.$store.state.config.register_setting;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async sendSMSCode() {
|
||||
if (!this.canSend) {
|
||||
return;
|
||||
}
|
||||
let res = await this.$post('sms/send', {
|
||||
mobile: this.telephone,
|
||||
key: type["c" /* SMSType */].REGISTER
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
});
|
||||
this.canSend = false;
|
||||
}
|
||||
},
|
||||
async registerFun() {
|
||||
if (!this.telephone) {
|
||||
this.$message({
|
||||
message: '请输入手机号',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.registerSetting && !this.smsCode) {
|
||||
this.$message({
|
||||
message: '请输入短信验证码',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!this.password) {
|
||||
this.$message({
|
||||
message: '请输入密码',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.password != this.againPwd) {
|
||||
this.$message({
|
||||
message: '两次密码输入不一致',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let res = await this.$post('account/register', {
|
||||
mobile: this.telephone,
|
||||
password: this.password,
|
||||
code: this.smsCode,
|
||||
client: type["d" /* client */]
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.$message({
|
||||
message: '注册成功',
|
||||
type: 'success'
|
||||
});
|
||||
this.$router.replace('/account/login');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/account/register.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var account_registervue_type_script_lang_js_ = (registervue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/account/register.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(301)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
account_registervue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"42129c30",
|
||||
"3df83c3a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var register = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {CountDown: __webpack_require__(148).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=register.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,938 +0,0 @@
|
|||
exports.ids = [24,11,14,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 149:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(155);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("18c1d214", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 154:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(149);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 155:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{border-radius:4px;box-sizing:border-box;display:block;height:310px;margin-bottom:16px;padding:12px 12px 16px;transition:all .2s;width:224px}.goods-list .goods-item[data-v-060944d1]:hover{box-shadow:0 0 6px rgba(0,0,0,.1);transform:translateY(-8px)}.goods-list .goods-item .goods-img[data-v-060944d1]{height:200px;width:200px}.goods-list .goods-item .name[data-v-060944d1]{height:40px;line-height:20px;margin-bottom:10px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{border:1px solid transparent;border-radius:4px;padding:4px 12px}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{background-color:transparent;border-color:#ff2c3c;color:#ff2c3c}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 156:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "goods-list flex flex-wrap"
|
||||
}, _vm._l(_vm.list, function (item, index) {
|
||||
return _c('nuxt-link', {
|
||||
key: index,
|
||||
staticClass: "goods-item bg-white",
|
||||
style: {
|
||||
marginRight: (index + 1) % _vm.num == 0 ? 0 : '14px'
|
||||
},
|
||||
attrs: {
|
||||
"to": `/goods_details/${item.id || item.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"lazy": "",
|
||||
"src": item.image || item.goods_image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2"
|
||||
}, [_vm._v(_vm._s(item.name || item.goods_name))]), _vm._v(" "), _vm.type == 'seckill' ? _c('div', {
|
||||
staticClass: "seckill flex row-between"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary flex"
|
||||
}, [_vm._v("\n 秒杀价\n "), _c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.seckill_price,
|
||||
"first-size": 18
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
class: ['btn bg-primary white', {
|
||||
'not-start': _vm.status == 0,
|
||||
end: _vm.status == 2
|
||||
}]
|
||||
}, [_vm._v(_vm._s(_vm.getSeckillText) + "\n ")])]) : _c('div', {
|
||||
staticClass: "flex row-between flex-wrap"
|
||||
}, [_c('div', {
|
||||
staticClass: "price flex col-baseline"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.min_price || item.price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.market_price
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v(_vm._s(item.sales_total || item.sales_sum || 0) + "人购买")])])], 1);
|
||||
}), 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var goods_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
num: {
|
||||
type: Number,
|
||||
default: 5
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
},
|
||||
status: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
immediate: true,
|
||||
handler: function (val) {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSeckillText() {
|
||||
switch (this.status) {
|
||||
case 0:
|
||||
return "未开始";
|
||||
case 1:
|
||||
return "立即抢购";
|
||||
case 2:
|
||||
return "已结束";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_goods_listvue_type_script_lang_js_ = (goods_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(154)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_goods_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"060944d1",
|
||||
"50a5113b"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var goods_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 157:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/goods_null.d774c28.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 218:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(265);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("7c0f42e3", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 264:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_category_vue_vue_type_style_index_0_id_d0427c54_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(218);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_category_vue_vue_type_style_index_0_id_d0427c54_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_category_vue_vue_type_style_index_0_id_d0427c54_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_category_vue_vue_type_style_index_0_id_d0427c54_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_category_vue_vue_type_style_index_0_id_d0427c54_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 265:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".category[data-v-d0427c54]{padding:16px 0}.category .category-hd .category-wrap[data-v-d0427c54]{padding:0 16px}.category .category-hd .category-con[data-v-d0427c54]{word-wrap:break-word;align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding-top:16px}.category .category-hd .category-con .name[data-v-d0427c54]{flex:none}.category .category-hd .category-con .item[data-v-d0427c54]{cursor:pointer;margin-bottom:16px;margin-left:14px;width:140px}.category .category-hd .category-con .item.active[data-v-d0427c54],.category .category-hd .category-con .item[data-v-d0427c54]:hover{color:#ff2c3c}.category .category-hd .sort[data-v-d0427c54]{padding:15px 16px}.category .category-hd .sort .sort-name .item[data-v-d0427c54]{cursor:pointer;margin-right:30px}.category .category-hd .sort .sort-name .item.active[data-v-d0427c54]{color:#ff2c3c}.category .brand-list[data-v-d0427c54]{border-top:1px dashed #e5e5e5}.goods-list[data-v-d0427c54]{margin-top:20px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 354:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/category.vue?vue&type=template&id=d0427c54&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "category"
|
||||
}, [_vm._ssrNode("<div class=\"category-hd bg-white\" data-v-d0427c54><div class=\"category-wrap\" data-v-d0427c54><div class=\"category-con flex\" data-v-d0427c54><div class=\"name muted\" data-v-d0427c54>一级分类:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-d0427c54>" + _vm._ssrList(_vm.categoryOne, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.oneIndex == index
|
||||
}]) + " data-v-d0427c54>" + _vm._ssrEscape("\n " + _vm._s(item.name) + "\n ") + "</div>";
|
||||
}) + "</div></div> <div class=\"category-con flex\" data-v-d0427c54><div class=\"name muted\" data-v-d0427c54>二级分类:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-d0427c54><div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.twoIndex === ''
|
||||
}]) + " data-v-d0427c54>\n 全部\n </div> " + _vm._ssrList(_vm.categoryTwo, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.twoIndex === index
|
||||
}]) + " data-v-d0427c54>" + _vm._ssrEscape("\n " + _vm._s(item.name) + "\n ") + "</div>";
|
||||
}) + "</div></div> <div class=\"category-con flex\" data-v-d0427c54><div class=\"name muted\" data-v-d0427c54>三级分类:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-d0427c54><div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.threeIndex === ''
|
||||
}]) + " data-v-d0427c54>\n 全部\n </div> " + _vm._ssrList(_vm.categoryThree, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.threeIndex === index
|
||||
}]) + " data-v-d0427c54>" + _vm._ssrEscape("\n " + _vm._s(item.name) + "\n ") + "</div>";
|
||||
}) + "</div></div></div> <div class=\"sort flex bg-white\" data-v-d0427c54><div class=\"title muted\" data-v-d0427c54>排序方式:</div> <div class=\"sort-name m-l-16 flex lighter\" data-v-d0427c54><div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == ''
|
||||
}]) + " data-v-d0427c54>\n 综合\n </div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'price'
|
||||
}]) + " data-v-d0427c54>\n 价格\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'desc' ? '' : 'none'
|
||||
}) + " data-v-d0427c54></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'asc' ? '' : 'none'
|
||||
}) + " data-v-d0427c54></i></div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'sales_sum'
|
||||
}]) + " data-v-d0427c54>\n 销量\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'desc' ? '' : 'none'
|
||||
}) + " data-v-d0427c54></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'asc' ? '' : 'none'
|
||||
}) + " data-v-d0427c54></i></div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'brand' && _vm.brandList.length
|
||||
}]) + " data-v-d0427c54>\n\t\t\t\t\t 品牌\n\t\t\t\t\t</div></div></div> <div class=\"sort flex bg-white\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.sortType == 'brand' && _vm.brandList.length > 0 ? '' : 'none'
|
||||
}) + " data-v-d0427c54><div class=\"category-con flex\" style=\"padding-top: 0;\" data-v-d0427c54><div class=\"name muted\" data-v-d0427c54>品牌:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-d0427c54>" + _vm._ssrList(_vm.brandList, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.brandIndex == index
|
||||
}]) + " data-v-d0427c54>" + _vm._ssrEscape("\n\t\t\t\t " + _vm._s(item.name) + "\n\t\t\t\t ") + "</div>";
|
||||
}) + "</div></div></div></div> "), _vm.isHasGoods ? _vm._ssrNode("<div class=\"goods-list\" data-v-d0427c54>", "</div>", [_c('goods-list', {
|
||||
attrs: {
|
||||
"list": _vm.goodsList
|
||||
}
|
||||
}), _vm._ssrNode(" "), _vm.count ? _vm._ssrNode("<div class=\"pagination flex row-center\" style=\"padding-bottom: 38px\" data-v-d0427c54>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"page-size": 20
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1) : _vm._e()], 2) : _c('null-data', {
|
||||
attrs: {
|
||||
"img": __webpack_require__(157),
|
||||
"text": "暂无商品~"
|
||||
}
|
||||
})], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/category.vue?vue&type=template&id=d0427c54&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/category.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var categoryvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
watchQuery: true,
|
||||
async asyncData({
|
||||
query,
|
||||
$get
|
||||
}) {
|
||||
let {
|
||||
data
|
||||
} = await $get('pc/category');
|
||||
return {
|
||||
categoryList: data
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
count: 0,
|
||||
oneIndex: 0,
|
||||
twoIndex: '',
|
||||
threeIndex: '',
|
||||
brandIndex: -1,
|
||||
categoryOne: [],
|
||||
categoryTwo: [],
|
||||
categoryThree: [],
|
||||
sortType: '',
|
||||
saleSort: 'desc',
|
||||
priceSort: 'desc',
|
||||
brandSort: 'desc',
|
||||
page: '',
|
||||
goodsList: [],
|
||||
cateId: 0,
|
||||
isHasGoods: true,
|
||||
brandList: [] //品牌列表
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.changeSortType = Object(tools["b" /* trottle */])(this.changeSortType, 500, this);
|
||||
},
|
||||
methods: {
|
||||
changeData(id) {
|
||||
const {
|
||||
categoryList
|
||||
} = this;
|
||||
this.setIndex(id);
|
||||
this.categoryOne = categoryList;
|
||||
this.categoryTwo = categoryList[this.oneIndex] ? categoryList[this.oneIndex].sons : [];
|
||||
this.categoryThree = this.categoryTwo[this.twoIndex] ? this.categoryTwo[this.twoIndex].sons : [];
|
||||
this.setCateId(id);
|
||||
this.getGoods();
|
||||
this.brandIndex = '-1';
|
||||
this.sortType = '';
|
||||
this.brandList = [];
|
||||
},
|
||||
setCateId(id) {
|
||||
if (this.twoIndex == '' && this.threeIndex == '' && this.oneIndex !== '') {
|
||||
this.cateId = this.categoryOne[this.oneIndex].id;
|
||||
}
|
||||
if (this.threeIndex == '' && this.twoIndex !== '') {
|
||||
this.cateId = this.categoryTwo[this.twoIndex].id;
|
||||
}
|
||||
if (id) {
|
||||
this.cateId = id;
|
||||
}
|
||||
},
|
||||
setIndex(id) {
|
||||
const {
|
||||
categoryList
|
||||
} = this;
|
||||
categoryList.some((oitem, oindex) => {
|
||||
if (oitem.id === id) {
|
||||
this.oneIndex = oindex;
|
||||
this.twoIndex = '';
|
||||
this.threeIndex = '';
|
||||
return true;
|
||||
}
|
||||
return oitem.sons && oitem.sons.some((witem, windex) => {
|
||||
if (witem.id === id) {
|
||||
this.oneIndex = oindex;
|
||||
this.twoIndex = windex;
|
||||
this.threeIndex = '';
|
||||
return true;
|
||||
}
|
||||
return witem.sons && witem.sons.some((titem, tindex) => {
|
||||
if (titem.id === id) {
|
||||
this.oneIndex = oindex;
|
||||
this.twoIndex = windex;
|
||||
this.threeIndex = tindex;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
clickAllTwo() {
|
||||
this.twoIndex = '';
|
||||
this.threeIndex = '';
|
||||
this.changeData();
|
||||
},
|
||||
clickAll() {
|
||||
this.threeIndex = '';
|
||||
this.changeData();
|
||||
},
|
||||
changeSortType(type) {
|
||||
this.sortType = type;
|
||||
switch (type) {
|
||||
case 'price':
|
||||
if (this.priceSort == 'asc') {
|
||||
this.priceSort = 'desc';
|
||||
} else if (this.priceSort == 'desc') {
|
||||
this.priceSort = 'asc';
|
||||
}
|
||||
break;
|
||||
case 'sales_sum':
|
||||
if (this.saleSort == 'asc') {
|
||||
this.saleSort = 'desc';
|
||||
} else if (this.saleSort == 'desc') {
|
||||
this.saleSort = 'asc';
|
||||
}
|
||||
break;
|
||||
case 'brand':
|
||||
if (this.brandSort == 'asc') {
|
||||
this.brandSort = 'desc';
|
||||
} else if (this.brandSort == 'desc') {
|
||||
this.brandSort = 'asc';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
if (this.sortType == 'brand') {
|
||||
this.getBrand(); //获取品牌
|
||||
} else {
|
||||
this.getGoods();
|
||||
}
|
||||
},
|
||||
changePage(current) {
|
||||
this.page = current;
|
||||
this.getGoods();
|
||||
},
|
||||
async getGoods() {
|
||||
const {
|
||||
priceSort,
|
||||
sortType,
|
||||
saleSort
|
||||
} = this;
|
||||
const params = {
|
||||
page_size: 20,
|
||||
page_no: this.page,
|
||||
platform_cate_id: this.cateId
|
||||
};
|
||||
switch (sortType) {
|
||||
case 'price':
|
||||
params.sort_by_price = priceSort;
|
||||
break;
|
||||
case 'sales_sum':
|
||||
params.sort_by_sales = saleSort;
|
||||
break;
|
||||
}
|
||||
if (this.brandIndex >= 0) {
|
||||
params.brand_id = this.brandList[this.brandIndex].brand_id;
|
||||
}
|
||||
const {
|
||||
data: {
|
||||
lists,
|
||||
count
|
||||
}
|
||||
} = await this.$get('goods/getGoodsList', {
|
||||
params
|
||||
});
|
||||
this.goodsList = lists;
|
||||
if (!lists.length) {
|
||||
this.isHasGoods = false;
|
||||
} else {
|
||||
this.isHasGoods = true;
|
||||
}
|
||||
this.count = count;
|
||||
},
|
||||
// 获取品牌
|
||||
async getBrand() {
|
||||
const params = {
|
||||
page_size: 20,
|
||||
page_no: this.page,
|
||||
cate_id: this.cateId
|
||||
};
|
||||
const {
|
||||
data
|
||||
} = await this.$get('goods/getBrandListByCateId', {
|
||||
params
|
||||
});
|
||||
this.brandList = data;
|
||||
},
|
||||
// 获取品牌商品列表
|
||||
getBrandGoods(index) {
|
||||
this.brandIndex = index;
|
||||
this.getGoods();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
categoryList: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
const {
|
||||
id
|
||||
} = this.$route.query;
|
||||
this.changeData(Number(id));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/category.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_categoryvue_type_script_lang_js_ = (categoryvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/category.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(264)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_categoryvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"d0427c54",
|
||||
"518cd7c6"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var category = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {GoodsList: __webpack_require__(156).default,NullData: __webpack_require__(147).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=category.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,368 +0,0 @@
|
|||
exports.ids = [26];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 235:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(304);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("22387f82", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 303:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_demand_detail_vue_vue_type_style_index_0_id_af3068ba_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(235);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_demand_detail_vue_vue_type_style_index_0_id_af3068ba_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_demand_detail_vue_vue_type_style_index_0_id_af3068ba_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_demand_detail_vue_vue_type_style_index_0_id_af3068ba_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_demand_detail_vue_vue_type_style_index_0_id_af3068ba_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 304:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".news-details-container .nav-container[data-v-af3068ba]{padding:15px 16px}.news-details-container .content-box[data-v-af3068ba]{display:flex;flex-direction:row}.news-details-container .content-box .news-detail-box[data-v-af3068ba]{background-color:#fff;width:100%}.news-details-container .content-box .news-detail-box .content-header[data-v-af3068ba]{border-bottom:1px solid #e5e5e5;margin:0 20px;padding:20px 0;position:relative}.news-details-container .content-box .news-detail-box .content-header .news-detail-title[data-v-af3068ba]{color:#222;font-size:24px;font-weight:500;margin-bottom:30px;max-width:860px}.news-details-container .content-box .news-detail-box .content-html-box[data-v-af3068ba]{padding:24px 20px}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-af3068ba]{overflow:hidden;width:100%}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-af3068ba] img{width:100%}.news-details-container .content-box .recommend-box[data-v-af3068ba]{width:264px}.news-details-container .content-box .recommend-box .recommend-box-header[data-v-af3068ba]{border-bottom:1px solid #e5e5e5;padding:15px 10px}.news-details-container .content-box .recommend-box .recommend-box-header .primary-line[data-v-af3068ba]{background-color:#ff2c3c;height:20px;margin-right:10px;width:4px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item[data-v-af3068ba]{cursor:pointer;padding:10px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item .goods-info[data-v-af3068ba]{margin-top:8px}.demand-title[data-v-af3068ba]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;line-height:30px;max-width:900px;overflow:hidden;text-overflow:ellipsis}.sign[data-v-af3068ba]{position:absolute;right:0;top:30px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 371:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/demand_list/demand_detail.vue?vue&type=template&id=af3068ba&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "news-details-container mt16"
|
||||
}, [_vm._ssrNode("<div class=\"nav-container flex\" data-v-af3068ba>", "</div>", [_vm._ssrNode("<div class=\"nr\" style=\"width: 70px\" data-v-af3068ba>当前位置:</div> "), _c('el-breadcrumb', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"flex": "1"
|
||||
},
|
||||
attrs: {
|
||||
"separator": "/"
|
||||
}
|
||||
}, [_c('el-breadcrumb-item', {
|
||||
attrs: {
|
||||
"to": {
|
||||
path: '/'
|
||||
}
|
||||
}
|
||||
}, [_vm._v("首页")]), _vm._v(" "), _c('el-breadcrumb-item', [_c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": "/demand_list"
|
||||
}
|
||||
}, [_vm._v("我的需求")])], 1), _vm._v(" "), _c('el-breadcrumb-item', {
|
||||
staticClass: "line1 demand-title"
|
||||
}, [_vm._v(_vm._s(_vm.detailsObj.name))])], 1)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"content-box\" data-v-af3068ba>", "</div>", [_vm._ssrNode("<div class=\"news-detail-box m-r-16\" data-v-af3068ba>", "</div>", [_vm._ssrNode("<div class=\"content-header bg-white\" data-v-af3068ba>", "</div>", [_vm._ssrNode("<div class=\"news-detail-title\" data-v-af3068ba>" + _vm._ssrEscape("\n " + _vm._s(_vm.detailsObj.name) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"sign\" data-v-af3068ba>", "</div>", [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary",
|
||||
"icon": "el-icon-s-promotion"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
_vm.dialogFormVisible = true;
|
||||
}
|
||||
}
|
||||
}, [_vm._v("立即报名")])], 1), _vm._ssrNode(" <div class=\"flex\" data-v-af3068ba><div class=\"sm muted\" data-v-af3068ba>" + _vm._ssrEscape("\n 发布时间:" + _vm._s(_vm.detailsObj.create_time) + "\n ") + "</div> <div class=\"flex\" style=\"margin-left: 40px\" data-v-af3068ba><i class=\"el-icon-s-promotion muted\" data-v-af3068ba></i> <div class=\"muted\" style=\"margin-left: 3px;\" data-v-af3068ba>已报名<span style=\"margin:0 5px;color: #f00;\" data-v-af3068ba>" + _vm._ssrEscape(_vm._s(_vm.detailsObj.reports_count)) + "</span>人</div></div></div>")], 2), _vm._ssrNode(" <div class=\"content-html-box bg-white\" data-v-af3068ba><div data-v-af3068ba>" + _vm._s(_vm.detailsObj.content) + "</div></div>")], 2)]), _vm._ssrNode(" "), _c('el-dialog', {
|
||||
attrs: {
|
||||
"title": "立即报名",
|
||||
"visible": _vm.dialogFormVisible
|
||||
},
|
||||
on: {
|
||||
"update:visible": function ($event) {
|
||||
_vm.dialogFormVisible = $event;
|
||||
}
|
||||
}
|
||||
}, [_c('el-form', {
|
||||
ref: "form",
|
||||
attrs: {
|
||||
"model": _vm.form,
|
||||
"rules": _vm.rules
|
||||
}
|
||||
}, [_c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "姓名",
|
||||
"prop": "name",
|
||||
"label-width": _vm.formLabelWidth
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"autocomplete": "off"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.name,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "name", $$v);
|
||||
},
|
||||
expression: "form.name"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "电话",
|
||||
"prop": "phone",
|
||||
"label-width": _vm.formLabelWidth
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"autocomplete": "off"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.phone,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "phone", $$v);
|
||||
},
|
||||
expression: "form.phone"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "公司名称",
|
||||
"prop": "company",
|
||||
"label-width": _vm.formLabelWidth
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"autocomplete": "off"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.company,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "company", $$v);
|
||||
},
|
||||
expression: "form.company"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "报价",
|
||||
"prop": "price",
|
||||
"label-width": _vm.formLabelWidth
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"autocomplete": "off"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.price,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "price", $$v);
|
||||
},
|
||||
expression: "form.price"
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('el-form-item', {
|
||||
attrs: {
|
||||
"label": "其他",
|
||||
"label-width": _vm.formLabelWidth
|
||||
}
|
||||
}, [_c('el-input', {
|
||||
attrs: {
|
||||
"type": "textarea",
|
||||
"autocomplete": "off"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.remarks,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(_vm.form, "remarks", $$v);
|
||||
},
|
||||
expression: "form.remarks"
|
||||
}
|
||||
})], 1)], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "dialog-footer",
|
||||
attrs: {
|
||||
"slot": "footer"
|
||||
},
|
||||
slot: "footer"
|
||||
}, [_c('el-button', {
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
_vm.dialogFormVisible = false;
|
||||
}
|
||||
}
|
||||
}, [_vm._v("取 消")]), _vm._v(" "), _c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary"
|
||||
},
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
return _vm.submitForm('form');
|
||||
}
|
||||
}
|
||||
}, [_vm._v("确 定")])], 1)], 1)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/demand_list/demand_detail.vue?vue&type=template&id=af3068ba&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/demand_list/demand_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var demand_detailvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post,
|
||||
query
|
||||
}) {
|
||||
let detailsObj = {};
|
||||
let demand_id = '';
|
||||
let recommend_list = [];
|
||||
demand_id = query.id;
|
||||
let res = await $get("demand/detail", {
|
||||
params: {
|
||||
id: query.id
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
detailsObj = res.data;
|
||||
}
|
||||
return {
|
||||
detailsObj,
|
||||
demand_id
|
||||
};
|
||||
},
|
||||
watchQuery: ['id'],
|
||||
data() {
|
||||
return {
|
||||
demand_id: '',
|
||||
dialogFormVisible: false,
|
||||
form: {
|
||||
name: '',
|
||||
phone: '',
|
||||
company: '',
|
||||
price: '',
|
||||
remarks: ''
|
||||
},
|
||||
formLabelWidth: '120px',
|
||||
rules: {
|
||||
name: [{
|
||||
required: true,
|
||||
message: '请输入姓名',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
phone: [{
|
||||
required: true,
|
||||
message: '请输入电话',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
company: [{
|
||||
required: true,
|
||||
message: '请输入公司名称',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
price: [{
|
||||
required: true,
|
||||
message: '请输入报价',
|
||||
trigger: 'blur'
|
||||
}]
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log('route', this.$route);
|
||||
// this.getNewsDetails(this.$route.query.id);
|
||||
},
|
||||
|
||||
methods: {
|
||||
async getNewsDetails(id) {
|
||||
let res = await this.$get("help/detail", {
|
||||
params: {
|
||||
id: id,
|
||||
client: 2
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.detailsObj = res.data;
|
||||
}
|
||||
},
|
||||
toOther(id) {
|
||||
this.$router.push('/help_center/help_center_detail?id=' + id);
|
||||
},
|
||||
// 表单提交
|
||||
submitForm(form) {
|
||||
console.log(this.demand_id);
|
||||
this.$refs[form].validate(valid => {
|
||||
if (valid) {
|
||||
console.log(this.form);
|
||||
let params = this.form;
|
||||
params.demand_id = this.demand_id;
|
||||
this.$post("demand/report", params).then(res => {
|
||||
if (res.code == 1) {
|
||||
this.dialogFormVisible = false, this.$message({
|
||||
message: '报名成功',
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/demand_list/demand_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var demand_list_demand_detailvue_type_script_lang_js_ = (demand_detailvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/demand_list/demand_detail.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(303)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
demand_list_demand_detailvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"af3068ba",
|
||||
"1f16e063"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var demand_detail = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=demand_detail.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,248 +0,0 @@
|
|||
exports.ids = [27];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 162:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/news_null.da0072f.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 220:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(269);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("773264c7", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 268:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_130ad19d_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(220);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_130ad19d_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_130ad19d_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_130ad19d_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_130ad19d_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 269:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".help-center-container .help-center-banner[data-v-130ad19d]{margin-top:16px}.help-center-container .help-center-box[data-v-130ad19d]{display:flex;flex-direction:row;margin-top:16px}.help-center-container .help-center-box .help-center-aside[data-v-130ad19d]{padding:20px 30px;width:160px}.help-center-container .help-center-box .help-center-aside .nav li[data-v-130ad19d]{cursor:pointer;margin:10px 0;padding:0 30px}.help-center-container .help-center-box .help-center-aside .nav .active-item[data-v-130ad19d]{border-left:3px solid #ff2c3c;color:#ff2c3c;padding-left:27px}.help-center-container .help-center-box .article-lists-container[data-v-130ad19d]{display:flex;flex-direction:column;justify-content:space-between;width:1004px}.help-center-container .help-center-box .article-lists-container .article-item[data-v-130ad19d]{border-bottom:1px solid #e5e5e5;cursor:pointer;margin:0 20px;padding:15px 0;position:relative}.help-center-container .help-center-box .article-lists-container .article-item .article-name[data-v-130ad19d]{margin-bottom:11px;margin-top:13px;max-width:720px}.help-center-container .help-center-box .article-lists-container .help-center-pagination[data-v-130ad19d]{margin-bottom:30px;padding-top:38px}.help-center-container .help-center-box .article-lists-container .data-null[data-v-130ad19d]{padding-top:150px}[data-v-130ad19d] .el-pagination.is-background .btn-prev{background:#fff;padding:0 10px}[data-v-130ad19d] .el-pagination.is-background .btn-next{background:#fff;padding:0 10px}[data-v-130ad19d] .el-pagination.is-background .el-pager li{background:#fff;padding:0 10px}.article-content[data-v-130ad19d]{max-height:140px;min-height:50px;overflow:hidden}.sign[data-v-130ad19d]{position:absolute;right:0;top:30px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 356:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/demand_list/index.vue?vue&type=template&id=130ad19d&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "help-center-container"
|
||||
}, [_vm._ssrNode("<div class=\"help-center-box\" data-v-130ad19d>", "</div>", [_vm._ssrNode("<div class=\"article-lists-container m-l-16 bg-white\" style=\"width: 100%;\" data-v-130ad19d>", "</div>", [_vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: !_vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-130ad19d>", "</div>", [_vm._ssrNode("<div data-v-130ad19d>", "</div>", _vm._l(_vm.articleList, function (item) {
|
||||
return _c('nuxt-link', {
|
||||
key: item.id,
|
||||
staticClass: "article-item flex-col bg-white",
|
||||
attrs: {
|
||||
"to": '/demand_list/demand_detail?id=' + item.id
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "lg article-name line2",
|
||||
staticStyle: {
|
||||
"font-weight": "bold"
|
||||
}
|
||||
}, [_vm._v(_vm._s(item.name))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "lighter article-content",
|
||||
domProps: {
|
||||
"innerHTML": _vm._s(item.content)
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex row-between",
|
||||
staticStyle: {
|
||||
"margin-top": "16px"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "sm muted"
|
||||
}, [_vm._v("发布时间:" + _vm._s(item.create_time))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex m-l-16"
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-s-promotion muted"
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted",
|
||||
staticStyle: {
|
||||
"margin-left": "3px"
|
||||
}
|
||||
}, [_vm._v("已报名"), _c('span', {
|
||||
staticStyle: {
|
||||
"margin": "0 5px",
|
||||
"color": "#f00"
|
||||
}
|
||||
}, [_vm._v(_vm._s(item.reports_count))]), _vm._v("人")])])]), _vm._v(" "), _c('div', {
|
||||
staticClass: "sign"
|
||||
}, [_c('el-button', {
|
||||
attrs: {
|
||||
"type": "primary",
|
||||
"icon": "el-icon-s-promotion"
|
||||
}
|
||||
}, [_vm._v("查看报名")])], 1)]);
|
||||
}), 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"help-center-pagination row-center\" data-v-130ad19d>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"page-size": 10
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1)], 2), _vm._ssrNode(" <div class=\"data-null column-center\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-130ad19d><img" + _vm._ssrAttr("src", __webpack_require__(162)) + " style=\"width: 150px;height: 150px;\" data-v-130ad19d> <div class=\"xs muted\" data-v-130ad19d>\n 暂无消息记录~\n </div></div>")], 2)])]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/demand_list/index.vue?vue&type=template&id=130ad19d&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/demand_list/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var demand_listvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post
|
||||
}) {
|
||||
let currentId = 0;
|
||||
let articleList = [];
|
||||
let count = 0;
|
||||
let dataNull = true;
|
||||
let listsRes = await $get("demand/lists", {
|
||||
params: {
|
||||
page_size: 1
|
||||
}
|
||||
});
|
||||
if (listsRes.code == 1) {
|
||||
articleList = listsRes.data.list;
|
||||
count = listsRes.data.count;
|
||||
if (count <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
return {
|
||||
articleList,
|
||||
count,
|
||||
dataNull
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
articleList: [],
|
||||
count: 0,
|
||||
swiperOptions: {
|
||||
width: 1180
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.articleList, 'articleList');
|
||||
},
|
||||
methods: {
|
||||
async changePage(current) {
|
||||
let res = await this.$get("demand/lists", {
|
||||
params: {
|
||||
cid: this.currentId,
|
||||
page_no: current,
|
||||
page_size: 10
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.articleList = res.data.list;
|
||||
if (this.articleList.length <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
changeList(id) {
|
||||
this.currentId = id;
|
||||
this.changePage(1);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/demand_list/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_demand_listvue_type_script_lang_js_ = (demand_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/demand_list/index.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(268)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_demand_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"130ad19d",
|
||||
"29380ff0"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var demand_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=index.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,956 +0,0 @@
|
|||
exports.ids = [28,2,8,14,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(159);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("488d347e", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(151);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 159:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "ad-item",
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(_vm.item);
|
||||
}
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.item.image,
|
||||
"fit": "cover"
|
||||
}
|
||||
})], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var ad_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
let {
|
||||
link_type,
|
||||
link,
|
||||
params
|
||||
} = item;
|
||||
switch (link_type) {
|
||||
case 3:
|
||||
window.open(item.link);
|
||||
break;
|
||||
default:
|
||||
if (["/goods_details"].includes(link)) {
|
||||
link += `/${params.id}`;
|
||||
} else {
|
||||
link += Object(tools["a" /* paramsToStr */])(params);
|
||||
}
|
||||
this.$router.push({
|
||||
path: link
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_ad_itemvue_type_script_lang_js_ = (ad_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(158)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_ad_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"368017b1",
|
||||
"36d600e7"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var ad_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 167:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(182);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("23f4c996", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 173:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/coupons_img_receive.7169d0c.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 174:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/bg_coupon_s.7cd7066.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 175:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/bg_coupon.dc72a74.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 181:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(167);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_coupons_list_vue_vue_type_style_index_0_id_4191a6d7_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 182:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(34);
|
||||
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(174);
|
||||
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(175);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
||||
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".coupons-list[data-v-4191a6d7]{flex-wrap:wrap;padding:0 18px;position:relative}.coupons-list .item[data-v-4191a6d7]{cursor:pointer;margin-bottom:20px;margin-right:16px;position:relative}.coupons-list .item .info[data-v-4191a6d7]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat;background-size:100%;height:80px;padding:0 10px;width:240px}.coupons-list .item .info.gray[data-v-4191a6d7]{background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ")}.coupons-list .item .info .info-hd[data-v-4191a6d7]{overflow:hidden}.coupons-list .item .tips[data-v-4191a6d7]{background-color:#f2f2f2;height:30px;padding:0 8px;position:relative}.coupons-list .item .tips .tips-con[data-v-4191a6d7]{background-color:#f2f2f2;left:0;padding:10px;position:absolute;top:30px;width:100%;z-index:99}.coupons-list .item .receice[data-v-4191a6d7]{height:45px;position:absolute;right:0;top:0;width:58px}.coupons-list .item .choose[data-v-4191a6d7]{background-color:#ffe72c;color:#ff2c3c;padding:1px 5px;position:absolute;right:0;top:0}.coupons-list .more[data-v-4191a6d7]{bottom:20px;cursor:pointer;position:absolute;right:30px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 195:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/coupons-list.vue?vue&type=template&id=4191a6d7&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "coupons-list flex"
|
||||
}, [_vm._l(_vm.couponsList, function (item, index) {
|
||||
return [_vm._ssrNode("<div class=\"item\"" + _vm._ssrStyle(null, null, {
|
||||
display: item.isShow ? '' : 'none'
|
||||
}) + " data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, ['info white', {
|
||||
gray: _vm.type == 2 || _vm.type == 1 || item.is_get
|
||||
}]) + " data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div class=\"info-hd flex\" data-v-4191a6d7>", "</div>", [_vm._ssrNode("<div data-v-4191a6d7>", "</div>", [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.money,
|
||||
"first-size": 38,
|
||||
"second-size": 38
|
||||
}
|
||||
})], 1), _vm._ssrNode(" <div class=\"m-l-8 flex1\" data-v-4191a6d7><div class=\"line1\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.name)) + "</div> <div class=\"xs line1\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.condition_type_desc)) + "</div></div>")], 2), _vm._ssrNode(" <div class=\"info-time xs\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.user_time_desc)) + "</div>")], 2), _vm._ssrNode(" <div class=\"tips flex row-between\" data-v-4191a6d7><div class=\"muted xs\" data-v-4191a6d7>" + _vm._ssrEscape(_vm._s(item.use_scene_desc)) + "</div> " + (item.use_goods_type != 1 && (_vm.type == 1 || _vm.type == 2 || _vm.type == 0) ? "<div data-v-4191a6d7><i" + _vm._ssrClass(null, _vm.showTips[index] ? 'el-icon-arrow-up' : 'el-icon-arrow-down') + " data-v-4191a6d7></i> " + (item.use_scene_desc != '全场通用' && _vm.showTips[index] ? "<div class=\"tips-con xs lighter\" data-v-4191a6d7>" + _vm._ssrEscape("\n " + _vm._s(item.use_goods_desc) + "\n ") + "</div>" : "<!---->") + "</div>" : "<!---->") + " " + (_vm.type == 3 && !item.is_get ? "<div class=\"primary sm\" data-v-4191a6d7>\n 立即领取\n </div>" : "<!---->") + "</div> " + (item.is_get ? "<img" + _vm._ssrAttr("src", __webpack_require__(173)) + " alt class=\"receice\" data-v-4191a6d7>" : "<!---->") + " " + (_vm.type == 4 && _vm.id == item.id ? "<div class=\"choose xs\" data-v-4191a6d7>已选择</div>" : "<!---->"))], 2)];
|
||||
}), _vm._ssrNode(" " + (_vm.showMore && _vm.list.length > 4 ? "<div class=\"more muted\" data-v-4191a6d7>" + _vm._ssrEscape("\n " + _vm._s(_vm.isMore ? '收起' : '更多') + "\n ") + "<i" + _vm._ssrClass(null, _vm.isMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down') + " data-v-4191a6d7></i></div>" : "<!---->"))], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue?vue&type=template&id=4191a6d7&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: external "vuex"
|
||||
var external_vuex_ = __webpack_require__(2);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/coupons-list.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var coupons_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
type: {
|
||||
type: Number
|
||||
},
|
||||
showMore: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showTips: [],
|
||||
couponsList: [],
|
||||
id: "",
|
||||
isMore: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
...Object(external_vuex_["mapActions"])(["getPublicData"]),
|
||||
onHandle(id, isGet) {
|
||||
this.id = id;
|
||||
const {
|
||||
type
|
||||
} = this;
|
||||
switch (type) {
|
||||
case 0:
|
||||
// 可使用
|
||||
break;
|
||||
case 1:
|
||||
break;
|
||||
// 使用
|
||||
case 2:
|
||||
break;
|
||||
//不可以用
|
||||
case 3:
|
||||
// 领券
|
||||
if (!isGet) {
|
||||
this.getCoupon();
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
//使用
|
||||
if (this.selectId == id) {
|
||||
this.id = "";
|
||||
}
|
||||
this.$emit("use", this.id);
|
||||
this.selectId = this.id;
|
||||
break;
|
||||
}
|
||||
},
|
||||
async getCoupon() {
|
||||
const {
|
||||
msg,
|
||||
code
|
||||
} = await this.$post("coupon/getCoupon", {
|
||||
coupon_id: this.id
|
||||
});
|
||||
if (code == 1) {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: "success"
|
||||
});
|
||||
this.getPublicData();
|
||||
this.$emit("reflash");
|
||||
}
|
||||
},
|
||||
onShowTips(index) {
|
||||
const {
|
||||
showTips
|
||||
} = this;
|
||||
this.showTips[index] = showTips[index] ? 0 : 1;
|
||||
// 拷贝数组
|
||||
this.showTips = Object.assign([], this.showTips);
|
||||
},
|
||||
changeShow() {
|
||||
this.isMore = !this.isMore;
|
||||
this.list.forEach((item, index) => {
|
||||
item.isShow = true;
|
||||
if (!this.isMore && index >= 4) {
|
||||
item.isShow = false;
|
||||
}
|
||||
});
|
||||
this.couponsList = [...this.list];
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
handler: function (val) {
|
||||
if (val.length) {
|
||||
// 默认选中第一张
|
||||
if (this.type == 4) {
|
||||
this.id = val[0].id;
|
||||
this.selectId = this.id;
|
||||
this.$emit("use", this.id);
|
||||
}
|
||||
}
|
||||
let arr = val.map(item => {
|
||||
return 0;
|
||||
});
|
||||
this.showTips = arr;
|
||||
this.list.forEach((item, index) => {
|
||||
item.isShow = true;
|
||||
if (this.showMore) {
|
||||
if (index >= 4) {
|
||||
item.isShow = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.couponsList = this.list;
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_coupons_listvue_type_script_lang_js_ = (coupons_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/coupons-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(181)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_coupons_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"4191a6d7",
|
||||
"b724d438"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var coupons_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 201:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/coupon_null.73b15be.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 221:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(271);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("76339ff6", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 270:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_get_coupons_vue_vue_type_style_index_0_id_0eab541e_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(221);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_get_coupons_vue_vue_type_style_index_0_id_0eab541e_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_get_coupons_vue_vue_type_style_index_0_id_0eab541e_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_get_coupons_vue_vue_type_style_index_0_id_0eab541e_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_get_coupons_vue_vue_type_style_index_0_id_0eab541e_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 271:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".get-coupons{padding:16px 0}.get-coupons .coupons{padding:0 14px}.get-coupons .coupons .title{font-size:20px;padding:16px 18px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 357:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/get_coupons.vue?vue&type=template&id=0eab541e&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "get-coupons"
|
||||
}, [_vm._ssrNode("<div class=\"help-center-banner\">", "</div>", [_c('client-only', [_c('swiper', {
|
||||
ref: "mySwiper",
|
||||
attrs: {
|
||||
"options": _vm.swiperOptions
|
||||
}
|
||||
}, _vm._l(_vm.bannerList, function (item, index) {
|
||||
return _c('swiper-slide', {
|
||||
key: index,
|
||||
staticClass: "swiper-item"
|
||||
}, [_c('ad-item', {
|
||||
attrs: {
|
||||
"item": item
|
||||
}
|
||||
})], 1);
|
||||
}), 1)], 1)], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"coupons bg-white\">", "</div>", [_vm._ssrNode("<div class=\"title weight-500\">每日领券</div> "), _vm._ssrNode("<div class=\"list\">", "</div>", [_vm.couponList.length ? _c('coupons-list', {
|
||||
attrs: {
|
||||
"list": _vm.couponList,
|
||||
"type": 3
|
||||
},
|
||||
on: {
|
||||
"reflash": _vm.getCouponsList
|
||||
}
|
||||
}) : _c('null-data', {
|
||||
attrs: {
|
||||
"img": __webpack_require__(201),
|
||||
"text": "暂无优惠券~"
|
||||
}
|
||||
})], 1)], 2)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/get_coupons.vue?vue&type=template&id=0eab541e&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/get_coupons.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var get_couponsvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
query,
|
||||
$get
|
||||
}) {
|
||||
const {
|
||||
data
|
||||
} = await $get("coupon/getCouponList");
|
||||
console.log('datafadadaasd', data);
|
||||
const {
|
||||
data: banner
|
||||
} = await $get("ad_content/lists", {
|
||||
params: {
|
||||
pid: 27,
|
||||
terminal: 2
|
||||
}
|
||||
});
|
||||
return {
|
||||
couponList: data.lists,
|
||||
bannerList: banner
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
swiperOptions: {
|
||||
width: 1180
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async getCouponsList() {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = await this.$get("coupon/getCouponList");
|
||||
if (code == 1) {
|
||||
this.couponList = data.lists;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/get_coupons.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_get_couponsvue_type_script_lang_js_ = (get_couponsvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/get_coupons.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(270)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_get_couponsvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"0ea0eee8"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var get_coupons = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {AdItem: __webpack_require__(160).default,CouponsList: __webpack_require__(195).default,NullData: __webpack_require__(147).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=get_coupons.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,989 +0,0 @@
|
|||
exports.ids = [30,2,11,14,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 149:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(155);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("18c1d214", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(159);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("488d347e", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 154:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(149);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 155:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{border-radius:4px;box-sizing:border-box;display:block;height:310px;margin-bottom:16px;padding:12px 12px 16px;transition:all .2s;width:224px}.goods-list .goods-item[data-v-060944d1]:hover{box-shadow:0 0 6px rgba(0,0,0,.1);transform:translateY(-8px)}.goods-list .goods-item .goods-img[data-v-060944d1]{height:200px;width:200px}.goods-list .goods-item .name[data-v-060944d1]{height:40px;line-height:20px;margin-bottom:10px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{border:1px solid transparent;border-radius:4px;padding:4px 12px}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{background-color:transparent;border-color:#ff2c3c;color:#ff2c3c}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 156:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "goods-list flex flex-wrap"
|
||||
}, _vm._l(_vm.list, function (item, index) {
|
||||
return _c('nuxt-link', {
|
||||
key: index,
|
||||
staticClass: "goods-item bg-white",
|
||||
style: {
|
||||
marginRight: (index + 1) % _vm.num == 0 ? 0 : '14px'
|
||||
},
|
||||
attrs: {
|
||||
"to": `/goods_details/${item.id || item.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"lazy": "",
|
||||
"src": item.image || item.goods_image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2"
|
||||
}, [_vm._v(_vm._s(item.name || item.goods_name))]), _vm._v(" "), _vm.type == 'seckill' ? _c('div', {
|
||||
staticClass: "seckill flex row-between"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary flex"
|
||||
}, [_vm._v("\n 秒杀价\n "), _c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.seckill_price,
|
||||
"first-size": 18
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
class: ['btn bg-primary white', {
|
||||
'not-start': _vm.status == 0,
|
||||
end: _vm.status == 2
|
||||
}]
|
||||
}, [_vm._v(_vm._s(_vm.getSeckillText) + "\n ")])]) : _c('div', {
|
||||
staticClass: "flex row-between flex-wrap"
|
||||
}, [_c('div', {
|
||||
staticClass: "price flex col-baseline"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.min_price || item.price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.market_price
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v(_vm._s(item.sales_total || item.sales_sum || 0) + "人购买")])])], 1);
|
||||
}), 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var goods_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
num: {
|
||||
type: Number,
|
||||
default: 5
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
},
|
||||
status: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
immediate: true,
|
||||
handler: function (val) {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSeckillText() {
|
||||
switch (this.status) {
|
||||
case 0:
|
||||
return "未开始";
|
||||
case 1:
|
||||
return "立即抢购";
|
||||
case 2:
|
||||
return "已结束";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_goods_listvue_type_script_lang_js_ = (goods_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(154)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_goods_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"060944d1",
|
||||
"50a5113b"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var goods_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 157:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/goods_null.d774c28.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(151);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 159:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "ad-item",
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(_vm.item);
|
||||
}
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.item.image,
|
||||
"fit": "cover"
|
||||
}
|
||||
})], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var ad_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
let {
|
||||
link_type,
|
||||
link,
|
||||
params
|
||||
} = item;
|
||||
switch (link_type) {
|
||||
case 3:
|
||||
window.open(item.link);
|
||||
break;
|
||||
default:
|
||||
if (["/goods_details"].includes(link)) {
|
||||
link += `/${params.id}`;
|
||||
} else {
|
||||
link += Object(tools["a" /* paramsToStr */])(params);
|
||||
}
|
||||
this.$router.push({
|
||||
path: link
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_ad_itemvue_type_script_lang_js_ = (ad_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(158)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_ad_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"368017b1",
|
||||
"36d600e7"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var ad_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 255:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(352);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("57e76e4a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 351:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_type_vue_vue_type_style_index_0_id_ce5d761c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(255);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_type_vue_vue_type_style_index_0_id_ce5d761c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_type_vue_vue_type_style_index_0_id_ce5d761c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_type_vue_vue_type_style_index_0_id_ce5d761c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_type_vue_vue_type_style_index_0_id_ce5d761c_prod_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 352:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".goods-list .banner img{display:block;width:100%}.goods-list .sort{padding:15px 16px}.goods-list .sort .sort-name .item{cursor:pointer;margin-right:30px}.goods-list .sort .sort-name .item.active{color:#ff2c3c}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 391:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/goods_list/_type.vue?vue&type=template&id=ce5d761c&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "goods-list"
|
||||
}, [_vm._ssrNode("<div class=\"banner m-t-16\">", "</div>", [_c('client-only', [_c('swiper', {
|
||||
ref: "mySwiper",
|
||||
attrs: {
|
||||
"options": _vm.swiperOptions
|
||||
}
|
||||
}, _vm._l(_vm.ad, function (item, index) {
|
||||
return _c('swiper-slide', {
|
||||
key: index,
|
||||
staticClass: "swiper-item"
|
||||
}, [_c('ad-item', {
|
||||
attrs: {
|
||||
"item": item
|
||||
}
|
||||
})], 1);
|
||||
}), 1)], 1)], 1), _vm._ssrNode(" <div class=\"sort m-b-16 flex bg-white\"><div class=\"sort-title\">排序方式:</div> <div class=\"sort-name m-l-16 flex\"><div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == ''
|
||||
}]) + ">\n 综合\n </div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'price'
|
||||
}]) + ">\n 价格\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'desc' ? '' : 'none'
|
||||
}) + "></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'asc' ? '' : 'none'
|
||||
}) + "></i></div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'sales_sum'
|
||||
}]) + ">\n 销量\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'desc' ? '' : 'none'
|
||||
}) + "></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'asc' ? '' : 'none'
|
||||
}) + "></i></div></div></div> "), _vm.goodsList.length ? [_c('goods-list', {
|
||||
attrs: {
|
||||
"list": _vm.goodsList
|
||||
}
|
||||
}), _vm._ssrNode(" "), _vm.count ? _vm._ssrNode("<div class=\"pagination flex m-t-30 row-center\" style=\"padding-bottom: 38px\">", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"hide-on-single-page": "",
|
||||
"page-size": 20
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1) : _vm._e()] : _c('null-data', {
|
||||
attrs: {
|
||||
"img": __webpack_require__(157),
|
||||
"text": "暂无商品~"
|
||||
}
|
||||
})], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/goods_list/_type.vue?vue&type=template&id=ce5d761c&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/goods_list/_type.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var _typevue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
params,
|
||||
query
|
||||
}) {
|
||||
const {
|
||||
type
|
||||
} = params;
|
||||
let pid = 0;
|
||||
let ad = [];
|
||||
switch (type) {
|
||||
case "1":
|
||||
pid = 25;
|
||||
break;
|
||||
case "2":
|
||||
pid = 26;
|
||||
break;
|
||||
}
|
||||
const {
|
||||
data
|
||||
} = await $get("ad_content/lists", {
|
||||
params: {
|
||||
pid: pid,
|
||||
terminal: 2
|
||||
}
|
||||
});
|
||||
if (!data.length) return;
|
||||
ad = data;
|
||||
return {
|
||||
ad
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
sortType: "",
|
||||
swiperOptions: {
|
||||
width: 1180
|
||||
},
|
||||
saleSort: "desc",
|
||||
priceSort: "desc",
|
||||
page: "",
|
||||
count: 0,
|
||||
ad: "",
|
||||
goodsList: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getGoods();
|
||||
this.changeSortType = Object(tools["b" /* trottle */])(this.changeSortType, 500, this);
|
||||
},
|
||||
methods: {
|
||||
changeSortType(type) {
|
||||
this.sortType = type;
|
||||
switch (type) {
|
||||
case "price":
|
||||
if (this.priceSort == "asc") {
|
||||
this.priceSort = "desc";
|
||||
} else if (this.priceSort == "desc") {
|
||||
this.priceSort = "asc";
|
||||
}
|
||||
break;
|
||||
case "sales_sum":
|
||||
if (this.saleSort == "asc") {
|
||||
this.saleSort = "desc";
|
||||
} else if (this.saleSort == "desc") {
|
||||
this.saleSort = "asc";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
this.getGoods();
|
||||
},
|
||||
changePage(current) {
|
||||
this.page = current;
|
||||
this.getGoods();
|
||||
},
|
||||
async getGoods() {
|
||||
const {
|
||||
name
|
||||
} = this.$route.query;
|
||||
const {
|
||||
priceSort,
|
||||
sortType,
|
||||
saleSort
|
||||
} = this;
|
||||
let sort = "";
|
||||
switch (sortType) {
|
||||
case "price":
|
||||
sort = priceSort;
|
||||
break;
|
||||
case "sales_sum":
|
||||
sort = saleSort;
|
||||
break;
|
||||
}
|
||||
const {
|
||||
data: {
|
||||
list,
|
||||
count
|
||||
}
|
||||
} = await this.$get("pc/goodsList", {
|
||||
params: {
|
||||
page_size: 20,
|
||||
page_no: this.page,
|
||||
sort_type: sortType,
|
||||
sort,
|
||||
name
|
||||
}
|
||||
});
|
||||
this.count = count;
|
||||
this.goodsList = list;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'$route.query.name'() {
|
||||
this.getGoods();
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/goods_list/_type.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var goods_list_typevue_type_script_lang_js_ = (_typevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/goods_list/_type.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(351)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
goods_list_typevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"0fb657ac"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var _type = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {AdItem: __webpack_require__(160).default,GoodsList: __webpack_require__(156).default,NullData: __webpack_require__(147).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=_type.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,199 +0,0 @@
|
|||
exports.ids = [31];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 236:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(306);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("ab08f652", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 305:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_help_center_detail_vue_vue_type_style_index_0_id_b24e7310_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(236);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_help_center_detail_vue_vue_type_style_index_0_id_b24e7310_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_help_center_detail_vue_vue_type_style_index_0_id_b24e7310_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_help_center_detail_vue_vue_type_style_index_0_id_b24e7310_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_help_center_detail_vue_vue_type_style_index_0_id_b24e7310_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 306:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".news-details-container .nav-container[data-v-b24e7310]{padding:15px 16px}.news-details-container .content-box[data-v-b24e7310]{display:flex;flex-direction:row}.news-details-container .content-box .news-detail-box[data-v-b24e7310]{background-color:#fff;width:900px}.news-details-container .content-box .news-detail-box .content-header[data-v-b24e7310]{border-bottom:1px solid #e5e5e5;margin:0 20px;padding:20px 0}.news-details-container .content-box .news-detail-box .content-header .news-detail-title[data-v-b24e7310]{color:#222;font-size:24px;font-weight:500;margin-bottom:43px}.news-details-container .content-box .news-detail-box .content-html-box[data-v-b24e7310]{padding:24px 20px}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-b24e7310]{overflow:hidden;width:100%}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-b24e7310] img{width:100%}.news-details-container .content-box .recommend-box[data-v-b24e7310]{width:264px}.news-details-container .content-box .recommend-box .recommend-box-header[data-v-b24e7310]{border-bottom:1px solid #e5e5e5;padding:15px 10px}.news-details-container .content-box .recommend-box .recommend-box-header .primary-line[data-v-b24e7310]{background-color:#ff2c3c;height:20px;margin-right:10px;width:4px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item[data-v-b24e7310]{cursor:pointer;padding:10px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item .goods-info[data-v-b24e7310]{margin-top:8px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 372:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/help_center/help_center_detail.vue?vue&type=template&id=b24e7310&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "news-details-container mt16"
|
||||
}, [_vm._ssrNode("<div class=\"nav-container flex\" data-v-b24e7310>", "</div>", [_vm._ssrNode("<div class=\"nr\" style=\"width: 70px\" data-v-b24e7310>当前位置:</div> "), _c('el-breadcrumb', {
|
||||
staticStyle: {
|
||||
"flex": "1"
|
||||
},
|
||||
attrs: {
|
||||
"separator": "/"
|
||||
}
|
||||
}, [_c('el-breadcrumb-item', {
|
||||
attrs: {
|
||||
"to": {
|
||||
path: '/'
|
||||
}
|
||||
}
|
||||
}, [_vm._v("首页")]), _vm._v(" "), _c('el-breadcrumb-item', [_c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": "/help_center"
|
||||
}
|
||||
}, [_vm._v("帮助中心")])], 1), _vm._v(" "), _c('el-breadcrumb-item', {
|
||||
staticClass: "line1",
|
||||
staticStyle: {
|
||||
"max-width": "800px"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.detailsObj.title))])], 1)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"content-box\" data-v-b24e7310>", "</div>", [_vm._ssrNode("<div class=\"news-detail-box m-r-16\" data-v-b24e7310><div class=\"content-header bg-white\" data-v-b24e7310><div class=\"news-detail-title\" data-v-b24e7310>" + _vm._ssrEscape("\n " + _vm._s(_vm.detailsObj.title) + "\n ") + "</div> <div class=\"flex\" data-v-b24e7310><div class=\"sm muted\" data-v-b24e7310>" + _vm._ssrEscape("\n 发布时间:" + _vm._s(_vm.detailsObj.create_time) + "\n ") + "</div> <div class=\"flex\" style=\"margin-left: 40px\" data-v-b24e7310><i class=\"el-icon-view muted\" data-v-b24e7310></i> <div class=\"muted\" style=\"margin-left: 3px;\" data-v-b24e7310>" + _vm._ssrEscape(_vm._s(_vm.detailsObj.visit) + " 人浏览") + "</div></div></div></div> <div class=\"content-html-box bg-white\" data-v-b24e7310><div data-v-b24e7310>" + _vm._s(_vm.detailsObj.content) + "</div></div></div> "), _vm._ssrNode("<div class=\"recommend-box\" data-v-b24e7310>", "</div>", [_vm._ssrNode("<div class=\"recommend-box-header flex bg-white\" data-v-b24e7310><div class=\"primary-line\" data-v-b24e7310></div> <div class=\"xxl\" style=\"font-weight: 500\" data-v-b24e7310>为您推荐</div></div> "), _vm._ssrNode("<div class=\"recommend-box-content bg-white\" data-v-b24e7310>", "</div>", [_vm._ssrNode("<div class=\"recommend-list-container\" data-v-b24e7310>", "</div>", _vm._l(_vm.recommend_list, function (item) {
|
||||
return _vm._ssrNode("<div class=\"recommend-list-item\" data-v-b24e7310>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "244px",
|
||||
"height": "183px",
|
||||
"border-radius": "6px"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": item.image
|
||||
}
|
||||
}), _vm._ssrNode(" <div class=\"goods-info\" data-v-b24e7310><div class=\"line2 goods-name\" data-v-b24e7310>" + _vm._ssrEscape(_vm._s(item.title)) + "</div> <div class=\"flex\" style=\"margin-top: 10px\" data-v-b24e7310><i class=\"el-icon-view muted\" data-v-b24e7310></i> <div class=\"muted xs\" style=\"margin-left: 4px;\" data-v-b24e7310>" + _vm._ssrEscape(_vm._s(item.visit) + " 人浏览") + "</div></div></div>")], 2);
|
||||
}), 0)])], 2)], 2)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/help_center/help_center_detail.vue?vue&type=template&id=b24e7310&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/help_center/help_center_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var help_center_detailvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post,
|
||||
query
|
||||
}) {
|
||||
let detailsObj = {};
|
||||
let recommend_list = [];
|
||||
let res = await $get("help/detail", {
|
||||
params: {
|
||||
id: query.id,
|
||||
client: 2
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
detailsObj = res.data;
|
||||
recommend_list = res.data.recommend_list;
|
||||
}
|
||||
return {
|
||||
detailsObj,
|
||||
recommend_list
|
||||
};
|
||||
},
|
||||
watchQuery: ['id'],
|
||||
data() {
|
||||
return {
|
||||
recommend_list: []
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log('route', this.$route);
|
||||
// this.getNewsDetails(this.$route.query.id);
|
||||
},
|
||||
|
||||
methods: {
|
||||
async getNewsDetails(id) {
|
||||
let res = await this.$get("help/detail", {
|
||||
params: {
|
||||
id: id,
|
||||
client: 2
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.detailsObj = res.data;
|
||||
this.recommend_list = res.data.recommend_list;
|
||||
}
|
||||
},
|
||||
toOther(id) {
|
||||
this.$router.push('/help_center/help_center_detail?id=' + id);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/help_center/help_center_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var help_center_help_center_detailvue_type_script_lang_js_ = (help_center_detailvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/help_center/help_center_detail.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(305)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
help_center_help_center_detailvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"b24e7310",
|
||||
"a2664da4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var help_center_detail = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=help_center_detail.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,497 +0,0 @@
|
|||
exports.ids = [32,2];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(159);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("488d347e", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(151);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 159:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "ad-item",
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(_vm.item);
|
||||
}
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.item.image,
|
||||
"fit": "cover"
|
||||
}
|
||||
})], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var ad_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
let {
|
||||
link_type,
|
||||
link,
|
||||
params
|
||||
} = item;
|
||||
switch (link_type) {
|
||||
case 3:
|
||||
window.open(item.link);
|
||||
break;
|
||||
default:
|
||||
if (["/goods_details"].includes(link)) {
|
||||
link += `/${params.id}`;
|
||||
} else {
|
||||
link += Object(tools["a" /* paramsToStr */])(params);
|
||||
}
|
||||
this.$router.push({
|
||||
path: link
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_ad_itemvue_type_script_lang_js_ = (ad_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(158)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_ad_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"368017b1",
|
||||
"36d600e7"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var ad_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 162:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/news_null.da0072f.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 222:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(273);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("c32a33b8", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 272:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a4d4b5a2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(222);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a4d4b5a2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a4d4b5a2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a4d4b5a2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a4d4b5a2_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 273:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".help-center-container .help-center-banner[data-v-a4d4b5a2]{margin-top:16px}.help-center-container .help-center-box[data-v-a4d4b5a2]{display:flex;flex-direction:row;margin-top:16px}.help-center-container .help-center-box .help-center-aside[data-v-a4d4b5a2]{padding:20px 30px;width:160px}.help-center-container .help-center-box .help-center-aside .nav li[data-v-a4d4b5a2]{cursor:pointer;margin:10px 0;padding:0 30px}.help-center-container .help-center-box .help-center-aside .nav .active-item[data-v-a4d4b5a2]{border-left:3px solid #ff2c3c;color:#ff2c3c;padding-left:27px}.help-center-container .help-center-box .article-lists-container[data-v-a4d4b5a2]{display:flex;flex-direction:column;justify-content:space-between;width:1004px}.help-center-container .help-center-box .article-lists-container .article-item[data-v-a4d4b5a2]{border-bottom:1px solid #e5e5e5;cursor:pointer;margin:0 20px;padding:15px 0}.help-center-container .help-center-box .article-lists-container .article-item .article-name[data-v-a4d4b5a2]{margin-bottom:11px;margin-top:13px;max-width:720px}.help-center-container .help-center-box .article-lists-container .help-center-pagination[data-v-a4d4b5a2]{margin-bottom:30px;padding-top:38px}.help-center-container .help-center-box .article-lists-container .data-null[data-v-a4d4b5a2]{padding-top:150px}[data-v-a4d4b5a2] .el-pagination.is-background .btn-prev{background:#fff;padding:0 10px}[data-v-a4d4b5a2] .el-pagination.is-background .btn-next{background:#fff;padding:0 10px}[data-v-a4d4b5a2] .el-pagination.is-background .el-pager li{background:#fff;padding:0 10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 358:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/help_center/index.vue?vue&type=template&id=a4d4b5a2&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "help-center-container"
|
||||
}, [_vm._ssrNode("<div class=\"help-center-banner\" data-v-a4d4b5a2>", "</div>", [_c('client-only', [_c('swiper', {
|
||||
ref: "mySwiper",
|
||||
attrs: {
|
||||
"options": _vm.swiperOptions
|
||||
}
|
||||
}, _vm._l(_vm.bannerList, function (item, index) {
|
||||
return _c('swiper-slide', {
|
||||
key: index,
|
||||
staticClass: "swiper-item"
|
||||
}, [_c('ad-item', {
|
||||
attrs: {
|
||||
"item": item
|
||||
}
|
||||
})], 1);
|
||||
}), 1)], 1)], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"help-center-box\" data-v-a4d4b5a2>", "</div>", [_vm._ssrNode("<div class=\"help-center-aside bg-white\" data-v-a4d4b5a2><ul class=\"nav flex-col col-center\" data-v-a4d4b5a2><li" + _vm._ssrClass("flex", {
|
||||
'active-item': _vm.currentId <= 0
|
||||
}) + " data-v-a4d4b5a2>全部</li> " + _vm._ssrList(_vm.categoryList, function (item) {
|
||||
return "<li" + _vm._ssrClass("flex", {
|
||||
'active-item': item.id == _vm.currentId
|
||||
}) + " data-v-a4d4b5a2>" + _vm._ssrEscape(_vm._s(item.name)) + "</li>";
|
||||
}) + "</ul></div> "), _vm._ssrNode("<div class=\"article-lists-container m-l-16 bg-white\" data-v-a4d4b5a2>", "</div>", [_vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: !_vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-a4d4b5a2>", "</div>", [_vm._ssrNode("<div data-v-a4d4b5a2>", "</div>", _vm._l(_vm.articleList, function (item) {
|
||||
return _c('nuxt-link', {
|
||||
key: item.id,
|
||||
staticClass: "article-item flex row-between bg-white",
|
||||
attrs: {
|
||||
"to": '/help_center/help_center_detail?id=' + item.id
|
||||
}
|
||||
}, [_c('div', [_c('div', {
|
||||
staticClass: "lg article-name line2"
|
||||
}, [_vm._v(_vm._s(item.title))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "lighter"
|
||||
}, [_vm._v(_vm._s(item.intro))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"margin-top": "56px"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "sm muted"
|
||||
}, [_vm._v("发布时间:" + _vm._s(item.create_time))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex m-l-16"
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-view muted"
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted",
|
||||
staticStyle: {
|
||||
"margin-left": "3px"
|
||||
}
|
||||
}, [_vm._v(_vm._s(item.visit) + " 人浏览")])])])]), _vm._v(" "), _c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "200px",
|
||||
"height": "150px",
|
||||
"border-radius": "6px"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": item.image
|
||||
}
|
||||
})], 1);
|
||||
}), 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"help-center-pagination row-center\" data-v-a4d4b5a2>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"page-size": 10
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1)], 2), _vm._ssrNode(" <div class=\"data-null column-center\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-a4d4b5a2><img" + _vm._ssrAttr("src", __webpack_require__(162)) + " style=\"width: 150px;height: 150px;\" data-v-a4d4b5a2> <div class=\"xs muted\" data-v-a4d4b5a2>\n 暂无消息记录~\n </div></div>")], 2)], 2)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/help_center/index.vue?vue&type=template&id=a4d4b5a2&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/help_center/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var help_centervue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post
|
||||
}) {
|
||||
let categoryList = [];
|
||||
let currentId = 0;
|
||||
let articleList = [];
|
||||
let count = 0;
|
||||
let dataNull = true;
|
||||
const banner = $get("ad_content/lists", {
|
||||
params: {
|
||||
pid: 29,
|
||||
terminal: 2
|
||||
}
|
||||
});
|
||||
let res = await $get("help/category");
|
||||
const {
|
||||
data: bannerList
|
||||
} = await banner;
|
||||
if (res.code == 1) {
|
||||
categoryList = res.data;
|
||||
currentId = 0;
|
||||
let listsRes = await $get("help/lists", {
|
||||
params: {
|
||||
cid: currentId,
|
||||
page_size: 10
|
||||
}
|
||||
});
|
||||
if (listsRes.code == 1) {
|
||||
articleList = listsRes.data.list;
|
||||
count = listsRes.data.count;
|
||||
if (count <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
categoryList,
|
||||
articleList,
|
||||
count,
|
||||
currentId,
|
||||
bannerList,
|
||||
dataNull
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
categoryList: [],
|
||||
articleList: [],
|
||||
currentId: -1,
|
||||
count: 0,
|
||||
swiperOptions: {
|
||||
width: 1180
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.articleList, 'articleList');
|
||||
},
|
||||
methods: {
|
||||
async changePage(current) {
|
||||
let res = await this.$get("help/lists", {
|
||||
params: {
|
||||
cid: this.currentId,
|
||||
page_no: current,
|
||||
page_size: 10
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.articleList = res.data.list;
|
||||
if (this.articleList.length <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
changeList(id) {
|
||||
this.currentId = id;
|
||||
this.changePage(1);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/help_center/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_help_centervue_type_script_lang_js_ = (help_centervue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/help_center/index.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(272)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_help_centervue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"a4d4b5a2",
|
||||
"000e689e"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var help_center = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {AdItem: __webpack_require__(160).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=index.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,497 +0,0 @@
|
|||
exports.ids = [34,2];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(159);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("488d347e", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(151);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ad_item_vue_vue_type_style_index_0_id_368017b1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 159:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".ad-item[data-v-368017b1]{cursor:pointer;height:100%;width:100%}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "ad-item",
|
||||
on: {
|
||||
"click": function ($event) {
|
||||
$event.stopPropagation();
|
||||
return _vm.goPage(_vm.item);
|
||||
}
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
attrs: {
|
||||
"src": _vm.item.image,
|
||||
"fit": "cover"
|
||||
}
|
||||
})], 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=template&id=368017b1&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ad-item.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var ad_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
let {
|
||||
link_type,
|
||||
link,
|
||||
params
|
||||
} = item;
|
||||
switch (link_type) {
|
||||
case 3:
|
||||
window.open(item.link);
|
||||
break;
|
||||
default:
|
||||
if (["/goods_details"].includes(link)) {
|
||||
link += `/${params.id}`;
|
||||
} else {
|
||||
link += Object(tools["a" /* paramsToStr */])(params);
|
||||
}
|
||||
this.$router.push({
|
||||
path: link
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_ad_itemvue_type_script_lang_js_ = (ad_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/ad-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(158)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_ad_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"368017b1",
|
||||
"36d600e7"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var ad_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 162:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/news_null.da0072f.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 223:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(275);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("29028bd4", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 274:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1c8e48dc_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(223);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1c8e48dc_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1c8e48dc_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1c8e48dc_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_1c8e48dc_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 275:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".help-center-container .help-center-banner[data-v-1c8e48dc]{margin-top:16px}.help-center-container .help-center-box[data-v-1c8e48dc]{display:flex;flex-direction:row;margin-top:16px}.help-center-container .help-center-box .help-center-aside[data-v-1c8e48dc]{padding:20px 30px;width:160px}.help-center-container .help-center-box .help-center-aside .nav li[data-v-1c8e48dc]{cursor:pointer;margin:10px 0;padding:0 30px}.help-center-container .help-center-box .help-center-aside .nav .active-item[data-v-1c8e48dc]{border-left:3px solid #ff2c3c;color:#ff2c3c;padding-left:27px}.help-center-container .help-center-box .article-lists-container[data-v-1c8e48dc]{display:flex;flex-direction:column;justify-content:space-between;width:1004px}.help-center-container .help-center-box .article-lists-container .article-item[data-v-1c8e48dc]{border-bottom:1px solid #e5e5e5;cursor:pointer;margin:0 20px;padding:15px 0}.help-center-container .help-center-box .article-lists-container .article-item .article-name[data-v-1c8e48dc]{margin-bottom:11px;margin-top:13px;max-width:720px}.help-center-container .help-center-box .article-lists-container .help-center-pagination[data-v-1c8e48dc]{margin-bottom:30px;padding-top:38px}.help-center-container .help-center-box .article-lists-container .data-null[data-v-1c8e48dc]{padding-top:150px}[data-v-1c8e48dc] .el-pagination.is-background .btn-prev{background:#fff;padding:0 10px}[data-v-1c8e48dc] .el-pagination.is-background .btn-next{background:#fff;padding:0 10px}[data-v-1c8e48dc] .el-pagination.is-background .el-pager li{background:#fff;padding:0 10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 359:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/news_list/index.vue?vue&type=template&id=1c8e48dc&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "help-center-container"
|
||||
}, [_vm._ssrNode("<div class=\"help-center-banner\" data-v-1c8e48dc>", "</div>", [_c('client-only', [_c('swiper', {
|
||||
ref: "mySwiper",
|
||||
attrs: {
|
||||
"options": _vm.swiperOptions
|
||||
}
|
||||
}, _vm._l(_vm.bannerList, function (item, index) {
|
||||
return _c('swiper-slide', {
|
||||
key: index,
|
||||
staticClass: "swiper-item"
|
||||
}, [_c('ad-item', {
|
||||
attrs: {
|
||||
"item": item
|
||||
}
|
||||
})], 1);
|
||||
}), 1)], 1)], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"help-center-box\" data-v-1c8e48dc>", "</div>", [_vm._ssrNode("<div class=\"help-center-aside bg-white\" data-v-1c8e48dc><ul class=\"nav flex-col col-center\" data-v-1c8e48dc><li" + _vm._ssrClass("flex", {
|
||||
'active-item': _vm.currentId <= 0
|
||||
}) + " data-v-1c8e48dc>全部</li> " + _vm._ssrList(_vm.categoryList, function (item) {
|
||||
return "<li" + _vm._ssrClass("flex", {
|
||||
'active-item': item.id == _vm.currentId
|
||||
}) + " data-v-1c8e48dc>" + _vm._ssrEscape(_vm._s(item.name)) + "</li>";
|
||||
}) + "</ul></div> "), _vm._ssrNode("<div class=\"article-lists-container m-l-16 bg-white\" data-v-1c8e48dc>", "</div>", [_vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: !_vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-1c8e48dc>", "</div>", [_vm._ssrNode("<div data-v-1c8e48dc>", "</div>", _vm._l(_vm.articleList, function (item) {
|
||||
return _c('nuxt-link', {
|
||||
key: item.id,
|
||||
staticClass: "article-item flex row-between bg-white",
|
||||
attrs: {
|
||||
"to": '/news_list/news_list_detail?id=' + item.id
|
||||
}
|
||||
}, [_c('div', [_c('div', {
|
||||
staticClass: "lg article-name line2"
|
||||
}, [_vm._v(_vm._s(item.title))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "lighter"
|
||||
}, [_vm._v(_vm._s(item.intro))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex",
|
||||
staticStyle: {
|
||||
"margin-top": "56px"
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "sm muted"
|
||||
}, [_vm._v("发布时间:" + _vm._s(item.create_time))]), _vm._v(" "), _c('div', {
|
||||
staticClass: "flex m-l-16"
|
||||
}, [_c('i', {
|
||||
staticClass: "el-icon-view muted"
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted",
|
||||
staticStyle: {
|
||||
"margin-left": "3px"
|
||||
}
|
||||
}, [_vm._v(_vm._s(item.visit) + " 人浏览")])])])]), _vm._v(" "), _c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "200px",
|
||||
"height": "150px",
|
||||
"border-radius": "6px"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": item.image
|
||||
}
|
||||
})], 1);
|
||||
}), 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"help-center-pagination row-center\" data-v-1c8e48dc>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"page-size": 10
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1)], 2), _vm._ssrNode(" <div class=\"data-null column-center\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.dataNull ? '' : 'none'
|
||||
}) + " data-v-1c8e48dc><img" + _vm._ssrAttr("src", __webpack_require__(162)) + " style=\"width: 150px;height: 150px;\" data-v-1c8e48dc> <div class=\"xs muted\" data-v-1c8e48dc>\n 暂无消息记录~\n </div></div>")], 2)], 2)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/news_list/index.vue?vue&type=template&id=1c8e48dc&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/news_list/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var news_listvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post
|
||||
}) {
|
||||
let categoryList = [];
|
||||
let currentId = 0;
|
||||
let articleList = [];
|
||||
let count = 0;
|
||||
let dataNull = true;
|
||||
const banner = $get("ad_content/lists", {
|
||||
params: {
|
||||
pid: 28,
|
||||
terminal: 2
|
||||
}
|
||||
});
|
||||
let res = await $get("article/category");
|
||||
const {
|
||||
data: bannerList
|
||||
} = await banner;
|
||||
if (res.code == 1) {
|
||||
categoryList = res.data;
|
||||
currentId = 0;
|
||||
let listsRes = await $get("article/lists", {
|
||||
params: {
|
||||
cid: currentId,
|
||||
page_size: 10
|
||||
}
|
||||
});
|
||||
if (listsRes.code == 1) {
|
||||
articleList = listsRes.data.list;
|
||||
count = listsRes.data.count;
|
||||
if (count <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
categoryList,
|
||||
articleList,
|
||||
count,
|
||||
currentId,
|
||||
bannerList,
|
||||
dataNull
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
categoryList: [],
|
||||
articleList: [],
|
||||
currentId: -1,
|
||||
count: 0,
|
||||
swiperOptions: {
|
||||
width: 1180
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.articleList, 'articleList');
|
||||
},
|
||||
methods: {
|
||||
async changePage(current) {
|
||||
let res = await this.$get("article/lists", {
|
||||
params: {
|
||||
cid: this.currentId,
|
||||
page_no: current,
|
||||
page_size: 10
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.articleList = res.data.list;
|
||||
if (this.articleList.length <= 0) {
|
||||
dataNull = true;
|
||||
} else {
|
||||
dataNull = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
changeList(id) {
|
||||
this.currentId = id;
|
||||
this.changePage(1);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/news_list/index.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_news_listvue_type_script_lang_js_ = (news_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/news_list/index.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(274)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_news_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"1c8e48dc",
|
||||
"9e327b30"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var news_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {AdItem: __webpack_require__(160).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=index.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,194 +0,0 @@
|
|||
exports.ids = [35];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 237:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(308);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("00e2f713", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 307:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_news_list_detail_vue_vue_type_style_index_0_id_662c3d70_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(237);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_news_list_detail_vue_vue_type_style_index_0_id_662c3d70_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_news_list_detail_vue_vue_type_style_index_0_id_662c3d70_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_news_list_detail_vue_vue_type_style_index_0_id_662c3d70_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_news_list_detail_vue_vue_type_style_index_0_id_662c3d70_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 308:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".news-details-container .nav-container[data-v-662c3d70]{padding:15px 16px}.news-details-container .content-box[data-v-662c3d70]{display:flex;flex-direction:row}.news-details-container .content-box .news-detail-box[data-v-662c3d70]{background-color:#fff;width:900px}.news-details-container .content-box .news-detail-box .content-header[data-v-662c3d70]{border-bottom:1px solid #e5e5e5;margin:0 20px;padding:20px 0}.news-details-container .content-box .news-detail-box .content-header .news-detail-title[data-v-662c3d70]{color:#222;font-size:24px;font-weight:500;margin-bottom:43px}.news-details-container .content-box .news-detail-box .content-html-box[data-v-662c3d70]{padding:24px 20px}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-662c3d70]{overflow:hidden;width:100%}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-662c3d70] img{width:100%}.news-details-container .content-box .recommend-box[data-v-662c3d70]{width:264px}.news-details-container .content-box .recommend-box .recommend-box-header[data-v-662c3d70]{border-bottom:1px solid #e5e5e5;padding:15px 10px}.news-details-container .content-box .recommend-box .recommend-box-header .primary-line[data-v-662c3d70]{background-color:#ff2c3c;height:20px;margin-right:10px;width:4px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item[data-v-662c3d70]{cursor:pointer;padding:10px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item .goods-info[data-v-662c3d70]{margin-top:8px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 373:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/news_list/news_list_detail.vue?vue&type=template&id=662c3d70&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "news-details-container mt16"
|
||||
}, [_vm._ssrNode("<div class=\"nav-container flex\" data-v-662c3d70>", "</div>", [_vm._ssrNode("<div class=\"nr\" style=\"width: 70px\" data-v-662c3d70>当前位置:</div> "), _c('el-breadcrumb', {
|
||||
staticStyle: {
|
||||
"flex": "1"
|
||||
},
|
||||
attrs: {
|
||||
"separator": "/"
|
||||
}
|
||||
}, [_c('el-breadcrumb-item', {
|
||||
attrs: {
|
||||
"to": {
|
||||
path: '/'
|
||||
}
|
||||
}
|
||||
}, [_vm._v("首页")]), _vm._v(" "), _c('el-breadcrumb-item', [_c('nuxt-link', {
|
||||
attrs: {
|
||||
"to": "/news_list"
|
||||
}
|
||||
}, [_vm._v("商城资讯")])], 1), _vm._v(" "), _c('el-breadcrumb-item', {
|
||||
staticClass: "line1",
|
||||
staticStyle: {
|
||||
"max-width": "800px"
|
||||
}
|
||||
}, [_vm._v(_vm._s(_vm.detailsObj.title))])], 1)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"content-box\" data-v-662c3d70>", "</div>", [_vm._ssrNode("<div class=\"news-detail-box m-r-16\" data-v-662c3d70><div class=\"content-header bg-white\" data-v-662c3d70><div class=\"news-detail-title\" data-v-662c3d70>" + _vm._ssrEscape("\n " + _vm._s(_vm.detailsObj.title) + "\n ") + "</div> <div class=\"flex\" data-v-662c3d70><div class=\"sm muted\" data-v-662c3d70>" + _vm._ssrEscape("\n 发布时间:" + _vm._s(_vm.detailsObj.create_time) + "\n ") + "</div> <div class=\"flex\" style=\"margin-left: 40px\" data-v-662c3d70><i class=\"el-icon-view muted\" data-v-662c3d70></i> <div class=\"muted\" style=\"margin-left: 3px;\" data-v-662c3d70>" + _vm._ssrEscape(_vm._s(_vm.detailsObj.visit) + " 人浏览") + "</div></div></div></div> <div class=\"content-html-box bg-white\" data-v-662c3d70><div data-v-662c3d70>" + _vm._s(_vm.detailsObj.content) + "</div></div></div> "), _vm._ssrNode("<div class=\"recommend-box\" data-v-662c3d70>", "</div>", [_vm._ssrNode("<div class=\"recommend-box-header flex bg-white\" data-v-662c3d70><div class=\"primary-line\" data-v-662c3d70></div> <div class=\"xxl\" style=\"font-weight: 500\" data-v-662c3d70>为您推荐</div></div> "), _vm._ssrNode("<div class=\"recommend-box-content bg-white\" data-v-662c3d70>", "</div>", [_vm._ssrNode("<div class=\"recommend-list-container\" data-v-662c3d70>", "</div>", _vm._l(_vm.recommend_list, function (item) {
|
||||
return _vm._ssrNode("<div class=\"recommend-list-item\" data-v-662c3d70>", "</div>", [_c('el-image', {
|
||||
staticStyle: {
|
||||
"width": "244px",
|
||||
"height": "183px",
|
||||
"border-radius": "6px"
|
||||
},
|
||||
attrs: {
|
||||
"fit": "cover",
|
||||
"src": item.image
|
||||
}
|
||||
}), _vm._ssrNode(" <div class=\"goods-info\" data-v-662c3d70><div class=\"line2 goods-name\" data-v-662c3d70>" + _vm._ssrEscape(_vm._s(item.title)) + "</div> <div class=\"flex\" style=\"margin-top: 10px\" data-v-662c3d70><i class=\"el-icon-view muted\" data-v-662c3d70></i> <div class=\"muted xs\" style=\"margin-left: 4px;\" data-v-662c3d70>" + _vm._ssrEscape(_vm._s(item.visit) + " 人浏览") + "</div></div></div>")], 2);
|
||||
}), 0)])], 2)], 2)], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/news_list/news_list_detail.vue?vue&type=template&id=662c3d70&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/news_list/news_list_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var news_list_detailvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
$get,
|
||||
$post,
|
||||
query
|
||||
}) {
|
||||
let detailsObj = {};
|
||||
let recommend_list = [];
|
||||
let res = await $get("pc/articleDetail", {
|
||||
params: {
|
||||
id: query.id,
|
||||
client: 2
|
||||
}
|
||||
});
|
||||
if (res.code == 1) {
|
||||
detailsObj = res.data;
|
||||
recommend_list = res.data.recommend_list;
|
||||
}
|
||||
return {
|
||||
detailsObj,
|
||||
recommend_list
|
||||
};
|
||||
},
|
||||
watchQuery: ['id'],
|
||||
data() {
|
||||
return {
|
||||
recommend_list: []
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log('route', this.$route);
|
||||
// this.getNewsDetails(this.$route.query.id);
|
||||
},
|
||||
|
||||
methods: {
|
||||
// async getNewsDetails(id) {
|
||||
// let res = await this.$get("article/detail", {params: {id: id, client: 2}});
|
||||
// if(res.code == 1) {
|
||||
// this.detailsObj = res.data;
|
||||
// this.recommend_list = res.data.recommend_list
|
||||
// }
|
||||
// },
|
||||
toOther(id) {
|
||||
this.$router.push('/news_list/news_list_detail?id=' + id);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/news_list/news_list_detail.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var news_list_news_list_detailvue_type_script_lang_js_ = (news_list_detailvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/news_list/news_list_detail.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(307)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
news_list_news_list_detailvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"662c3d70",
|
||||
"69a43f00"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var news_list_detail = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=news_list_detail.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,743 +0,0 @@
|
|||
exports.ids = [36,7,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 148:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _vm.time >= 0 ? _c('div', [_c('client-only', [_vm.isSlot ? _vm._t("default") : _c('span', [_vm._v(_vm._s(_vm.formateTime))])], 2)], 1) : _vm._e();
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=template&id=2fbaab86&
|
||||
|
||||
// CONCATENATED MODULE: ./utils/parseTime.js
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const HOUR = 60 * MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
function parseTimeData(time) {
|
||||
const days = Math.floor(time / DAY);
|
||||
const hours = sliceTwo(Math.floor(time % DAY / HOUR));
|
||||
const minutes = sliceTwo(Math.floor(time % HOUR / MINUTE));
|
||||
const seconds = sliceTwo(Math.floor(time % MINUTE / SECOND));
|
||||
return {
|
||||
days: days,
|
||||
hours: hours,
|
||||
minutes: minutes,
|
||||
seconds: seconds
|
||||
};
|
||||
}
|
||||
function sliceTwo(str) {
|
||||
return (0 + str.toString()).slice(-2);
|
||||
}
|
||||
function parseFormat(format, timeData) {
|
||||
let days = timeData.days;
|
||||
let hours = timeData.hours,
|
||||
minutes = timeData.minutes,
|
||||
seconds = timeData.seconds;
|
||||
if (format.indexOf('dd') !== -1) {
|
||||
format = format.replace('dd', days);
|
||||
}
|
||||
if (format.indexOf('hh') !== -1) {
|
||||
format = format.replace('hh', sliceTwo(hours));
|
||||
}
|
||||
if (format.indexOf('mm') !== -1) {
|
||||
format = format.replace('mm', sliceTwo(minutes));
|
||||
}
|
||||
if (format.indexOf('ss') !== -1) {
|
||||
format = format.replace('ss', sliceTwo(seconds));
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/count-down.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var count_downvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
isSlot: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
default: 'hh:mm:ss'
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
time: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
if (value) {
|
||||
this.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeObj: {},
|
||||
formateTime: 0
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
createTimer(fn) {
|
||||
return setTimeout(fn, 100);
|
||||
},
|
||||
isSameSecond(time1, time2) {
|
||||
return Math.floor(time1) === Math.floor(time2);
|
||||
},
|
||||
start() {
|
||||
if (this.counting) {
|
||||
return;
|
||||
}
|
||||
this.counting = true;
|
||||
this.endTime = Date.now() + this.remain * 1000;
|
||||
this.setTimer();
|
||||
},
|
||||
setTimer() {
|
||||
this.tid = this.createTimer(() => {
|
||||
let remain = this.getRemain();
|
||||
if (!this.isSameSecond(remain, this.remain) || remain === 0) {
|
||||
this.setRemain(remain);
|
||||
}
|
||||
if (this.remain !== 0) {
|
||||
this.setTimer();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRemain() {
|
||||
return Math.max(this.endTime - Date.now(), 0);
|
||||
},
|
||||
pause() {
|
||||
this.counting = false;
|
||||
clearTimeout(this.tid);
|
||||
},
|
||||
reset() {
|
||||
this.pause();
|
||||
this.remain = this.time;
|
||||
this.setRemain(this.remain);
|
||||
if (this.autoStart) {
|
||||
this.start();
|
||||
}
|
||||
},
|
||||
setRemain(remain) {
|
||||
const {
|
||||
format
|
||||
} = this;
|
||||
this.remain = remain;
|
||||
const timeData = parseTimeData(remain);
|
||||
this.formateTime = parseFormat(format, timeData);
|
||||
this.$emit('change', timeData);
|
||||
if (remain === 0) {
|
||||
this.pause();
|
||||
this.$emit('finish');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/count-down.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_count_downvue_type_script_lang_js_ = (count_downvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/count-down.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_count_downvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"7d29ecb4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var count_down = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return client; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return loginType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SMSType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return FieldType; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AfterSaleType; });
|
||||
const client = 5;
|
||||
const loginType = {
|
||||
SMS: 0,
|
||||
ACCOUNT: 1
|
||||
};
|
||||
|
||||
// 短信发送
|
||||
const SMSType = {
|
||||
// 注册
|
||||
REGISTER: 'ZCYZ',
|
||||
// 找回密码
|
||||
FINDPWD: 'ZHMM',
|
||||
// 登陆
|
||||
LOGIN: 'YZMDL',
|
||||
// 商家申请入驻
|
||||
SJSQYZ: 'SJSQYZ',
|
||||
// 更换手机号
|
||||
CHANGE_MOBILE: 'BGSJHM',
|
||||
// 绑定手机号
|
||||
BIND: 'BDSJHM'
|
||||
};
|
||||
const FieldType = {
|
||||
NONE: '',
|
||||
SEX: 'sex',
|
||||
NICKNAME: 'nickname',
|
||||
AVATAR: 'avatar',
|
||||
MOBILE: 'mobile'
|
||||
};
|
||||
|
||||
// 售后状态
|
||||
const AfterSaleType = {
|
||||
// 售后申请
|
||||
NORMAL: 'normal',
|
||||
// 处理中
|
||||
HANDLING: 'apply',
|
||||
// 已处理
|
||||
FINISH: 'finish'
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 202:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/pay_success.ba8c958.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 224:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(278);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("0b99cf8c", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 276:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/pay_wait.7e5d06b.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 277:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_payment_vue_vue_type_style_index_0_id_3bd5351c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(224);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_payment_vue_vue_type_style_index_0_id_3bd5351c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_payment_vue_vue_type_style_index_0_id_3bd5351c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_payment_vue_vue_type_style_index_0_id_3bd5351c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_payment_vue_vue_type_style_index_0_id_3bd5351c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 278:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".payment[data-v-3bd5351c]{margin:16px 0;padding:0 40px}.payment .payment-hd>img[data-v-3bd5351c]{height:32px;width:32px}.payment .payment-hd .status[data-v-3bd5351c]{font-size:24px}.payment .payment-con[data-v-3bd5351c],.payment .payment-hd[data-v-3bd5351c]{border-bottom:1px dashed hsla(0,0%,90%,.898);padding:32px 0}.payment .payment-con .item[data-v-3bd5351c]{align-items:flex-start}.payment .payment-footer[data-v-3bd5351c]{padding:32px 0}.payment .payment-footer .pay-way[data-v-3bd5351c]{border:1px dashed hsla(0,0%,90%,.898);cursor:pointer;height:68px;margin-right:32px;min-width:200px;padding:0 20px}.payment .payment-footer .pay-way img[data-v-3bd5351c]{height:30px;width:30px}.payment .payment-footer .btn[data-v-3bd5351c]{border:1px solid hsla(0,0%,90%,.898);height:40px;width:134px}.payment .el-dialog .pay-code[data-v-3bd5351c]{height:270px;width:270px}.payment .el-dialog .pay-money[data-v-3bd5351c]{align-items:baseline;font-size:18px;margin-top:24px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 360:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/payment.vue?vue&type=template&id=3bd5351c&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "payment bg-white"
|
||||
}, [_vm._ssrNode("<div class=\"payment-hd flex\" data-v-3bd5351c>", "</div>", [_vm.order.pay_status == 0 ? [_vm._ssrNode("<img" + _vm._ssrAttr("src", __webpack_require__(276)) + " alt data-v-3bd5351c> <div class=\"status m-l-8 m-r-16 weight-500\" data-v-3bd5351c>" + _vm._ssrEscape("\n " + _vm._s(_vm.getOrderStatus(_vm.order.order_status)) + "\n ") + "</div> "), _vm.getCancelTime(_vm.order.cancel_time) > 0 ? _vm._ssrNode("<div class=\"flex\" data-v-3bd5351c>", "</div>", [_vm._ssrNode("\n 请在\n "), _c('count-down', {
|
||||
style: {
|
||||
color: '#FF2C3C'
|
||||
},
|
||||
attrs: {
|
||||
"time": _vm.getCancelTime(_vm.order.cancel_time),
|
||||
"format": "hh时mm分ss秒"
|
||||
},
|
||||
on: {
|
||||
"finish": _vm.getOrder
|
||||
}
|
||||
}), _vm._ssrNode("\n 完成支付, 超时后将取消订单\n ")], 2) : _vm._e()] : _vm._e(), _vm._ssrNode(" " + (_vm.order.pay_status == 1 ? "<img" + _vm._ssrAttr("src", __webpack_require__(202)) + " alt data-v-3bd5351c> <div class=\"status m-l-8 m-r-16 weight-500\" data-v-3bd5351c>支付成功</div>" : "<!---->"))], 2), _vm._ssrNode(" <div class=\"payment-con\" data-v-3bd5351c><div class=\"item flex m-b-16\" data-v-3bd5351c>" + _vm._ssrEscape("订单编号:" + _vm._s(_vm.order.order_sn)) + "</div> <div class=\"item flex m-b-16\" data-v-3bd5351c>\n 订单价格:<span class=\"primary\" data-v-3bd5351c>" + _vm._ssrEscape("¥" + _vm._s(_vm.order.total_amount)) + "</span></div> <div class=\"item flex m-b-16\" data-v-3bd5351c>\n 收货地址:\n <div data-v-3bd5351c>" + _vm._ssrEscape("\n " + _vm._s(_vm.address.contact) + " " + _vm._s(_vm.address.mobile) + "\n ") + "<span class=\"m-l-16\" data-v-3bd5351c>" + _vm._ssrEscape(_vm._s(_vm.address.delivery_address)) + "</span></div></div> <div class=\"item flex m-b-16\" data-v-3bd5351c>\n 商品名称:\n <div data-v-3bd5351c>" + _vm._ssrList(_vm.order.order_goods, function (item, index) {
|
||||
return "<div data-v-3bd5351c><div class=\"flex lin-1\" data-v-3bd5351c>" + _vm._ssrEscape("\n 【商品" + _vm._s(index + 1) + "】- " + _vm._s(item.goods_name) + "\n ") + "</div></div>";
|
||||
}) + "</div></div></div> "), _vm._ssrNode("<div class=\"payment-footer\" data-v-3bd5351c>", "</div>", [_vm.order.pay_status == 0 && _vm.order.order_status == 0 ? [_vm._ssrNode("<div class=\"title lg weight-500\" data-v-3bd5351c>请选择支付方式</div> <div class=\"flex m-t-16\" data-v-3bd5351c>" + _vm._ssrList(_vm.payWayArr, function (item, index) {
|
||||
return "<div class=\"pay-way flex row-center\" data-v-3bd5351c><img" + _vm._ssrAttr("src", item.image) + " alt data-v-3bd5351c> <div class=\"m-l-16\" data-v-3bd5351c><span class=\"md\" data-v-3bd5351c>" + _vm._ssrEscape(_vm._s(item.name)) + "</span> <div class=\"muted m-t-2 sm\" data-v-3bd5351c>" + _vm._ssrEscape(_vm._s(item.extra)) + "</div></div></div>";
|
||||
}) + "</div>")] : _c('nuxt-link', {
|
||||
staticClass: "btn flex row-center",
|
||||
attrs: {
|
||||
"to": "/user/order"
|
||||
}
|
||||
}, [_vm._v("查看订单")])], 2), _vm._ssrNode(" "), _c('el-dialog', {
|
||||
attrs: {
|
||||
"title": "微信支付",
|
||||
"visible": _vm.showWxpay,
|
||||
"width": "700px",
|
||||
"center": ""
|
||||
},
|
||||
on: {
|
||||
"update:visible": function ($event) {
|
||||
_vm.showWxpay = $event;
|
||||
},
|
||||
"close": _vm.clearTimer
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "flex-col col-center black"
|
||||
}, [_c('img', {
|
||||
staticClass: "pay-code",
|
||||
attrs: {
|
||||
"src": _vm.payInfo,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-t-8",
|
||||
staticStyle: {
|
||||
"font-size": "18px"
|
||||
}
|
||||
}, [_vm._v("\n 微信扫一扫,完成支付\n ")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "pay-money flex"
|
||||
}, [_c('span', [_vm._v("需支付金额:")]), _vm._v(" "), _c('span', {
|
||||
staticClass: "primary"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": _vm.order.total_amount,
|
||||
"subscript-size": 18,
|
||||
"first-size": 28,
|
||||
"second-size": 28
|
||||
}
|
||||
})], 1)])])])], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/payment.vue?vue&type=template&id=3bd5351c&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/type.js
|
||||
var type = __webpack_require__(153);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/payment.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var paymentvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
query,
|
||||
$get
|
||||
}) {
|
||||
const {
|
||||
data
|
||||
} = await $get('order/getPayStatus', {
|
||||
params: {
|
||||
id: query.id,
|
||||
from: query.from
|
||||
}
|
||||
});
|
||||
return {
|
||||
order: data,
|
||||
address: data.address
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showWxpay: false,
|
||||
showAlipay: false,
|
||||
payWayArr: [],
|
||||
payInfo: {},
|
||||
cancelTime: 0,
|
||||
alipayHtml: '',
|
||||
address: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.id = this.$route.query.id;
|
||||
this.from = this.$route.query.from;
|
||||
this.getPayway();
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async getPayway() {
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await this.$get('order/getPayWay', {
|
||||
params: {
|
||||
from: 'order',
|
||||
order_id: this.id
|
||||
}
|
||||
});
|
||||
if (code == 1) {
|
||||
this.payWayArr = data.pay_way;
|
||||
if (!this.payWayArr.length) this.$message({
|
||||
message: '请联系管理员配置支付方式',
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
},
|
||||
async orderPay(payWay) {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = await this.$post('pay/unifiedpay', {
|
||||
order_id: this.id,
|
||||
pay_way: payWay,
|
||||
from: this.from
|
||||
});
|
||||
if (code == 1) {
|
||||
this.payInfo = data;
|
||||
this.showWxpay = true;
|
||||
this.createTimer();
|
||||
} else if (code == 10001) {
|
||||
let divForm = document.getElementsByTagName('divform');
|
||||
if (divForm.length) {
|
||||
document.body.removeChild(divForm[0]);
|
||||
}
|
||||
const div = document.createElement('divform');
|
||||
div.innerHTML = data; // data就是接口返回的form 表单字符串
|
||||
document.body.appendChild(div);
|
||||
document.forms[0].submit();
|
||||
} else if (code == 20001) {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: 'success'
|
||||
});
|
||||
this.getOrder();
|
||||
}
|
||||
},
|
||||
clearTimer() {
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
createTimer() {
|
||||
if (this.timer) clearInterval(this.timer);
|
||||
this.timer = setInterval(() => {
|
||||
this.getOrder();
|
||||
}, 2000);
|
||||
},
|
||||
async getOrder() {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = await this.$get('order/getPayStatus', {
|
||||
params: {
|
||||
id: this.id,
|
||||
from: this.from
|
||||
}
|
||||
});
|
||||
if (code == 1) {
|
||||
this.order = data;
|
||||
if (data.pay_status == 1) {
|
||||
clearInterval(this.timer);
|
||||
this.showWxpay = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getOrderStatus() {
|
||||
return status => {
|
||||
let text = '';
|
||||
switch (status) {
|
||||
case 0:
|
||||
text = '待支付';
|
||||
break;
|
||||
case 1:
|
||||
text = '待发货';
|
||||
break;
|
||||
case 2:
|
||||
text = '待收货';
|
||||
break;
|
||||
case 3:
|
||||
text = '已完成';
|
||||
break;
|
||||
case 4:
|
||||
text = '订单已关闭';
|
||||
break;
|
||||
}
|
||||
return text;
|
||||
};
|
||||
},
|
||||
getCancelTime() {
|
||||
return time => time - Date.now() / 1000;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/payment.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_paymentvue_type_script_lang_js_ = (paymentvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/payment.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(277)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_paymentvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"3bd5351c",
|
||||
"a39e9724"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var payment = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {CountDown: __webpack_require__(148).default,PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=payment.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,875 +0,0 @@
|
|||
exports.ids = [37,11,14,17];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 140:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(143);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("d7ac674a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 141:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('span', {
|
||||
class: (_vm.lineThrough ? 'line-through' : '') + 'price-format',
|
||||
style: {
|
||||
color: _vm.color,
|
||||
'font-weight': _vm.weight
|
||||
}
|
||||
}, [_vm._ssrNode((_vm.showSubscript ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.subscriptSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">¥</span>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.firstSize + 'px',
|
||||
'margin-right': '1px'
|
||||
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.priceSlice.first)) + "</span> " + (_vm.priceSlice.second ? "<span" + _vm._ssrStyle(null, {
|
||||
'font-size': _vm.secondSize + 'px'
|
||||
}, null) + ">" + _vm._ssrEscape("." + _vm._s(_vm.priceSlice.second)) + "</span>" : "<!---->"))]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=template&id=62f154aa&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var price_formatevue_type_script_lang_js_ = ({
|
||||
data() {
|
||||
return {
|
||||
priceSlice: {}
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
firstSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
secondSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
color: {
|
||||
type: String
|
||||
},
|
||||
weight: {
|
||||
type: [String, Number],
|
||||
default: 400
|
||||
},
|
||||
price: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
showSubscript: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
subscriptSize: {
|
||||
type: Number,
|
||||
default: 14
|
||||
},
|
||||
lineThrough: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.priceFormat();
|
||||
},
|
||||
watch: {
|
||||
price(val) {
|
||||
this.priceFormat();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
priceFormat() {
|
||||
let {
|
||||
price
|
||||
} = this;
|
||||
let priceSlice = {};
|
||||
if (price !== null) {
|
||||
price = String(price).split('.');
|
||||
priceSlice.first = price[0];
|
||||
priceSlice.second = price[1];
|
||||
this.priceSlice = priceSlice;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_price_formatevue_type_script_lang_js_ = (price_formatevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/price-formate.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(142)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_price_formatevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
null,
|
||||
"fc05bd98"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var price_formate = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 142:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_3_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_3_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_price_formate_vue_vue_type_style_index_0_id_62f154aa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 143:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".price-format{align-items:baseline;display:flex}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 144:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(146);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e01d57a", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 145:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_null_data_vue_vue_type_style_index_0_id_93598fb0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 146:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "bg-white flex-col col-center null-data"
|
||||
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.img) + " alt class=\"img-null\"" + _vm._ssrStyle(null, _vm.imgStyle, null) + " data-v-93598fb0> <div class=\"muted mt8\" data-v-93598fb0>" + _vm._ssrEscape(_vm._s(_vm.text)) + "</div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=template&id=93598fb0&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var null_datavue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
img: {
|
||||
type: String
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: '暂无数据'
|
||||
},
|
||||
imgStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/null-data.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_null_datavue_type_script_lang_js_ = (null_datavue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/null-data.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(145)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_null_datavue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"93598fb0",
|
||||
"6e759c9a"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var null_data = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 149:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(155);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("18c1d214", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 150:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return trottle; });
|
||||
/* unused harmony export strToParams */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return paramsToStr; });
|
||||
/* unused harmony export copyClipboard */
|
||||
//节流
|
||||
const trottle = (func, time = 1000, context) => {
|
||||
let previous = new Date(0).getTime();
|
||||
return function (...args) {
|
||||
let now = new Date().getTime();
|
||||
if (now - previous > time) {
|
||||
func.apply(context, args);
|
||||
previous = now;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//获取url后的参数 以对象返回
|
||||
function strToParams(str) {
|
||||
var newparams = {};
|
||||
for (let item of str.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1];
|
||||
}
|
||||
return newparams;
|
||||
}
|
||||
|
||||
//对象参数转为以?&拼接的字符
|
||||
function paramsToStr(params) {
|
||||
let p = '';
|
||||
if (typeof params == 'object') {
|
||||
p = '?';
|
||||
for (let props in params) {
|
||||
p += `${props}=${params[props]}&`;
|
||||
}
|
||||
p = p.slice(0, -1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 复制到剪切板
|
||||
* @param value { String } 复制内容
|
||||
* @return { Promise } resolve | reject
|
||||
*/
|
||||
const copyClipboard = value => {
|
||||
const elInput = document.createElement('input');
|
||||
elInput.setAttribute('value', value);
|
||||
document.body.appendChild(elInput);
|
||||
elInput.select();
|
||||
try {
|
||||
if (document.execCommand('copy')) return Promise.resolve();else throw new Error();
|
||||
} catch (err) {
|
||||
return Promise.reject(err);
|
||||
} finally {
|
||||
document.body.removeChild(elInput);
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 154:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(149);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_goods_list_vue_vue_type_style_index_0_id_060944d1_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 155:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{border-radius:4px;box-sizing:border-box;display:block;height:310px;margin-bottom:16px;padding:12px 12px 16px;transition:all .2s;width:224px}.goods-list .goods-item[data-v-060944d1]:hover{box-shadow:0 0 6px rgba(0,0,0,.1);transform:translateY(-8px)}.goods-list .goods-item .goods-img[data-v-060944d1]{height:200px;width:200px}.goods-list .goods-item .name[data-v-060944d1]{height:40px;line-height:20px;margin-bottom:10px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{border:1px solid transparent;border-radius:4px;padding:4px 12px}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{background-color:transparent;border-color:#ff2c3c;color:#ff2c3c}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 156:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "goods-list flex flex-wrap"
|
||||
}, _vm._l(_vm.list, function (item, index) {
|
||||
return _c('nuxt-link', {
|
||||
key: index,
|
||||
staticClass: "goods-item bg-white",
|
||||
style: {
|
||||
marginRight: (index + 1) % _vm.num == 0 ? 0 : '14px'
|
||||
},
|
||||
attrs: {
|
||||
"to": `/goods_details/${item.id || item.goods_id}`
|
||||
}
|
||||
}, [_c('el-image', {
|
||||
staticClass: "goods-img",
|
||||
attrs: {
|
||||
"lazy": "",
|
||||
"src": item.image || item.goods_image,
|
||||
"alt": ""
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "name line-2"
|
||||
}, [_vm._v(_vm._s(item.name || item.goods_name))]), _vm._v(" "), _vm.type == 'seckill' ? _c('div', {
|
||||
staticClass: "seckill flex row-between"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary flex"
|
||||
}, [_vm._v("\n 秒杀价\n "), _c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.seckill_price,
|
||||
"first-size": 18
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
class: ['btn bg-primary white', {
|
||||
'not-start': _vm.status == 0,
|
||||
end: _vm.status == 2
|
||||
}]
|
||||
}, [_vm._v(_vm._s(_vm.getSeckillText) + "\n ")])]) : _c('div', {
|
||||
staticClass: "flex row-between flex-wrap"
|
||||
}, [_c('div', {
|
||||
staticClass: "price flex col-baseline"
|
||||
}, [_c('div', {
|
||||
staticClass: "primary m-r-8"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.min_price || item.price,
|
||||
"first-size": 16
|
||||
}
|
||||
})], 1), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted sm line-through"
|
||||
}, [_c('price-formate', {
|
||||
attrs: {
|
||||
"price": item.market_price
|
||||
}
|
||||
})], 1)]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted xs"
|
||||
}, [_vm._v(_vm._s(item.sales_total || item.sales_sum || 0) + "人购买")])])], 1);
|
||||
}), 1);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=template&id=060944d1&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var goods_listvue_type_script_lang_js_ = ({
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
num: {
|
||||
type: Number,
|
||||
default: 5
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
},
|
||||
status: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
list: {
|
||||
immediate: true,
|
||||
handler: function (val) {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSeckillText() {
|
||||
switch (this.status) {
|
||||
case 0:
|
||||
return "未开始";
|
||||
case 1:
|
||||
return "立即抢购";
|
||||
case 2:
|
||||
return "已结束";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_goods_listvue_type_script_lang_js_ = (goods_listvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/goods-list.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(154)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_goods_listvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"060944d1",
|
||||
"50a5113b"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var goods_list = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {PriceFormate: __webpack_require__(141).default})
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 157:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/goods_null.d774c28.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 225:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(280);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("3085ce78", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 279:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_search_goodsList_vue_vue_type_style_index_0_id_076e8004_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(225);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_search_goodsList_vue_vue_type_style_index_0_id_076e8004_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_search_goodsList_vue_vue_type_style_index_0_id_076e8004_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_search_goodsList_vue_vue_type_style_index_0_id_076e8004_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_search_goodsList_vue_vue_type_style_index_0_id_076e8004_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 280:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".category[data-v-076e8004]{padding:16px 0}.category .category-hd .category-wrap[data-v-076e8004]{padding:0 16px}.category .category-hd .category-con[data-v-076e8004]{word-wrap:break-word;align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding-top:16px}.category .category-hd .category-con .name[data-v-076e8004]{flex:none}.category .category-hd .category-con .item[data-v-076e8004]{cursor:pointer;margin-bottom:16px;margin-left:14px;width:140px}.category .category-hd .category-con .item.active[data-v-076e8004],.category .category-hd .category-con .item[data-v-076e8004]:hover{color:#ff2c3c}.category .category-hd .sort[data-v-076e8004]{padding:15px 16px}.category .category-hd .sort .sort-name .item[data-v-076e8004]{cursor:pointer;margin-right:30px}.category .category-hd .sort .sort-name .item.active[data-v-076e8004]{color:#ff2c3c}.category .brand-list[data-v-076e8004]{border-top:1px dashed #e5e5e5}.goods-list[data-v-076e8004]{margin-top:20px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 361:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/search_goodsList.vue?vue&type=template&id=076e8004&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "category"
|
||||
}, [_vm._ssrNode("<div class=\"category-hd bg-white\" data-v-076e8004><div class=\"category-wrap\" data-v-076e8004><div class=\"category-con flex\" data-v-076e8004><div class=\"name muted\" data-v-076e8004>全部分类:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-076e8004>" + _vm._ssrList(_vm.categoryThree, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item line1', {
|
||||
active: _vm.threeIndex === index
|
||||
}]) + " data-v-076e8004>" + _vm._ssrEscape("\n " + _vm._s(item.name) + "\n ") + "</div>";
|
||||
}) + "</div></div></div> <div class=\"sort flex bg-white\" data-v-076e8004><div class=\"title muted\" data-v-076e8004>排序方式:</div> <div class=\"sort-name m-l-16 flex lighter\" data-v-076e8004><div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == ''
|
||||
}]) + " data-v-076e8004>\n 综合\n </div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'price'
|
||||
}]) + " data-v-076e8004>\n 价格\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'desc' ? '' : 'none'
|
||||
}) + " data-v-076e8004></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.priceSort == 'asc' ? '' : 'none'
|
||||
}) + " data-v-076e8004></i></div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'sales_sum'
|
||||
}]) + " data-v-076e8004>\n 销量\n <i class=\"el-icon-arrow-down\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'desc' ? '' : 'none'
|
||||
}) + " data-v-076e8004></i> <i class=\"el-icon-arrow-up\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.saleSort == 'asc' ? '' : 'none'
|
||||
}) + " data-v-076e8004></i></div> <div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.sortType == 'brand' && _vm.brandList.length
|
||||
}]) + " data-v-076e8004>\n\t\t\t\t\t 品牌\n\t\t\t\t\t</div></div></div> <div class=\"sort flex bg-white\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.sortType == 'brand' && _vm.brandList.length > 0 ? '' : 'none'
|
||||
}) + " data-v-076e8004><div class=\"category-con flex\" style=\"padding-top: 0;\" data-v-076e8004><div class=\"name muted\" data-v-076e8004>品牌:</div> <div class=\"category-list flex flex-wrap lighter\" data-v-076e8004>" + _vm._ssrList(_vm.brandList, function (item, index) {
|
||||
return "<div" + _vm._ssrClass(null, ['item', {
|
||||
active: _vm.brandIndex == index
|
||||
}]) + " data-v-076e8004>" + _vm._ssrEscape("\n\t\t\t\t " + _vm._s(item.name) + "\n\t\t\t\t ") + "</div>";
|
||||
}) + "</div></div></div></div> "), _vm.isHasGoods ? _vm._ssrNode("<div class=\"goods-list\" data-v-076e8004>", "</div>", [_c('goods-list', {
|
||||
attrs: {
|
||||
"list": _vm.goodsList
|
||||
}
|
||||
}), _vm._ssrNode(" "), _vm.count ? _vm._ssrNode("<div class=\"pagination flex row-center\" style=\"padding-bottom: 38px\" data-v-076e8004>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"hide-on-single-page": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"page-size": 20
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1) : _vm._e()], 2) : _c('null-data', {
|
||||
attrs: {
|
||||
"img": __webpack_require__(157),
|
||||
"text": "暂无商品~"
|
||||
}
|
||||
})], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/search_goodsList.vue?vue&type=template&id=076e8004&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: ./utils/tools.js
|
||||
var tools = __webpack_require__(150);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/search_goodsList.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var search_goodsListvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
watchQuery: true,
|
||||
async asyncData({
|
||||
query,
|
||||
$get
|
||||
}) {
|
||||
let {
|
||||
data
|
||||
} = await $get('goodsCategory/getThirdListByKeyword', {
|
||||
params: {
|
||||
keyword: query.name
|
||||
}
|
||||
});
|
||||
return {
|
||||
categoryList: data
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
count: 0,
|
||||
threeIndex: 0,
|
||||
brandIndex: -1,
|
||||
categoryThree: [],
|
||||
sortType: '',
|
||||
saleSort: 'desc',
|
||||
priceSort: 'desc',
|
||||
brandSort: 'desc',
|
||||
page: '',
|
||||
goodsList: [],
|
||||
cateId: 0,
|
||||
isHasGoods: true,
|
||||
brandList: [] //品牌列表
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.changeSortType = Object(tools["b" /* trottle */])(this.changeSortType, 500, this);
|
||||
},
|
||||
methods: {
|
||||
changeData(id, index) {
|
||||
const {
|
||||
categoryList
|
||||
} = this;
|
||||
this.categoryThree = categoryList;
|
||||
this.threeIndex = index || 0;
|
||||
this.cateId = id || categoryList[this.threeIndex].id;
|
||||
this.getGoods();
|
||||
this.brandIndex = '-1';
|
||||
this.sortType = '';
|
||||
this.brandList = [];
|
||||
},
|
||||
changeSortType(type) {
|
||||
this.sortType = type;
|
||||
switch (type) {
|
||||
case 'price':
|
||||
if (this.priceSort == 'asc') {
|
||||
this.priceSort = 'desc';
|
||||
} else if (this.priceSort == 'desc') {
|
||||
this.priceSort = 'asc';
|
||||
}
|
||||
break;
|
||||
case 'sales_sum':
|
||||
if (this.saleSort == 'asc') {
|
||||
this.saleSort = 'desc';
|
||||
} else if (this.saleSort == 'desc') {
|
||||
this.saleSort = 'asc';
|
||||
}
|
||||
break;
|
||||
case 'brand':
|
||||
if (this.brandSort == 'asc') {
|
||||
this.brandSort = 'desc';
|
||||
} else if (this.brandSort == 'desc') {
|
||||
this.brandSort = 'asc';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
if (this.sortType == 'brand') {
|
||||
this.getBrand(); //获取品牌
|
||||
} else {
|
||||
this.getGoods();
|
||||
}
|
||||
},
|
||||
changePage(current) {
|
||||
this.page = current;
|
||||
this.getGoods();
|
||||
},
|
||||
async getGoods() {
|
||||
const {
|
||||
priceSort,
|
||||
sortType,
|
||||
saleSort
|
||||
} = this;
|
||||
const params = {
|
||||
page_size: 20,
|
||||
page_no: this.page,
|
||||
platform_cate_id: this.cateId
|
||||
};
|
||||
switch (sortType) {
|
||||
case 'price':
|
||||
params.sort_by_price = priceSort;
|
||||
break;
|
||||
case 'sales_sum':
|
||||
params.sort_by_sales = saleSort;
|
||||
break;
|
||||
}
|
||||
if (this.brandIndex >= 0) {
|
||||
params.brand_id = this.brandList[this.brandIndex].brand_id;
|
||||
}
|
||||
const {
|
||||
data: {
|
||||
lists,
|
||||
count
|
||||
}
|
||||
} = await this.$get('goods/getGoodsList', {
|
||||
params
|
||||
});
|
||||
this.goodsList = lists;
|
||||
if (!lists.length) {
|
||||
this.isHasGoods = false;
|
||||
} else {
|
||||
this.isHasGoods = true;
|
||||
}
|
||||
this.count = count;
|
||||
},
|
||||
// 获取品牌
|
||||
async getBrand() {
|
||||
const params = {
|
||||
page_size: 20,
|
||||
page_no: this.page,
|
||||
cate_id: this.cateId
|
||||
};
|
||||
const {
|
||||
data
|
||||
} = await this.$get('goods/getBrandListByCateId', {
|
||||
params
|
||||
});
|
||||
this.brandList = data;
|
||||
},
|
||||
// 获取品牌商品列表
|
||||
getBrandGoods(index) {
|
||||
this.brandIndex = index;
|
||||
this.getGoods();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
categoryList: {
|
||||
immediate: true,
|
||||
handler(value) {
|
||||
const {
|
||||
id
|
||||
} = this.$route.query;
|
||||
this.changeData(Number(id));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/search_goodsList.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_search_goodsListvue_type_script_lang_js_ = (search_goodsListvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/search_goodsList.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(279)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_search_goodsListvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"076e8004",
|
||||
"19ed7af6"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var search_goodsList = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {GoodsList: __webpack_require__(156).default,NullData: __webpack_require__(147).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=search_goodsList.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,833 +0,0 @@
|
|||
exports.ids = [39,15];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 168:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(184);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("8e6e7932", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 183:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(168);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_number_box_vue_vue_type_style_index_0_id_1d9d8f36_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 184:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".number-box[data-v-1d9d8f36]{align-items:center;display:inline-flex}.number-box .number-input[data-v-1d9d8f36]{align-items:center;justify-content:center;margin:0 6px;padding:0;position:relative;text-align:center}.number-box .minus[data-v-1d9d8f36],.number-box .plus[data-v-1d9d8f36]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.number-box .plus[data-v-1d9d8f36]{border-radius:0 2px 2px 0}.number-box .minus[data-v-1d9d8f36]{border-radius:2px 0 0 2px}.number-box .disabled[data-v-1d9d8f36]{background:#f7f8fa!important;color:#c8c9cc!important}.number-box .input-disabled[data-v-1d9d8f36]{background-color:#f2f3f5!important;color:#c8c9cc!important}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 196:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/number-box.vue?vue&type=template&id=1d9d8f36&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "number-box"
|
||||
}, [_vm._ssrNode("<div" + _vm._ssrClass(null, {
|
||||
minus: true,
|
||||
disabled: _vm.disabled || _vm.inputVal <= _vm.min
|
||||
}) + _vm._ssrStyle(null, {
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
color: _vm.color
|
||||
}, null) + " data-v-1d9d8f36><div" + _vm._ssrStyle(null, {
|
||||
fontSize: _vm.size + 'px'
|
||||
}, null) + " data-v-1d9d8f36>-</div></div> <input" + _vm._ssrAttr("disabled", _vm.disabledInput || _vm.disabled) + " type=\"text\"" + _vm._ssrAttr("value", _vm.inputVal) + _vm._ssrClass(null, {
|
||||
'number-input': true,
|
||||
'input-disabled': _vm.disabled
|
||||
}) + _vm._ssrStyle(null, {
|
||||
color: _vm.color,
|
||||
fontSize: _vm.size + 'px',
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
width: _vm.inputWidth + 'px'
|
||||
}, null) + " data-v-1d9d8f36> <div" + _vm._ssrClass("plus", {
|
||||
disabled: _vm.disabled || _vm.inputVal >= _vm.max
|
||||
}) + _vm._ssrStyle(null, {
|
||||
background: _vm.bgColor,
|
||||
height: _vm.inputHeight + 'px',
|
||||
color: _vm.color
|
||||
}, null) + " data-v-1d9d8f36><div" + _vm._ssrStyle(null, {
|
||||
fontSize: _vm.size + 'px'
|
||||
}, null) + " data-v-1d9d8f36>+</div></div>")]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/number-box.vue?vue&type=template&id=1d9d8f36&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/number-box.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var number_boxvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
// 预显示的数字
|
||||
value: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: ' #F2F3F5'
|
||||
},
|
||||
// 最小值
|
||||
min: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
// 最大值
|
||||
max: {
|
||||
type: Number,
|
||||
default: 99999
|
||||
},
|
||||
// 步进值,每次加或减的值
|
||||
step: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// 是否禁用加减操作
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// input的字体大小,单位px
|
||||
size: {
|
||||
type: [Number, String],
|
||||
default: 14
|
||||
},
|
||||
// input宽度,单位px
|
||||
inputWidth: {
|
||||
type: [Number, String],
|
||||
default: 64
|
||||
},
|
||||
//字体颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: '#333'
|
||||
},
|
||||
// input高度,单位px
|
||||
inputHeight: {
|
||||
type: [Number, String],
|
||||
default: 32
|
||||
},
|
||||
// index索引,用于列表中使用,让用户知道是哪个numberbox发生了变化,一般使用for循环出来的index值即可
|
||||
index: {
|
||||
type: [Number, String],
|
||||
default: ''
|
||||
},
|
||||
// 是否禁用输入框,与disabled作用于输入框时,为OR的关系,即想要禁用输入框,又可以加减的话
|
||||
// 设置disabled为false,disabledInput为true即可
|
||||
disabledInput: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否只能输入大于或等于0的整数(正整数)
|
||||
positiveInteger: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
asyncChange: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value(v1, v2) {
|
||||
if (!this.changeFromInner) {
|
||||
this.inputVal = v1;
|
||||
this.$nextTick(function () {
|
||||
this.changeFromInner = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
inputVal(v1, v2) {
|
||||
if (v1 == '') return;
|
||||
let value = 0;
|
||||
let tmp = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(v1);
|
||||
if (tmp && v1 >= this.min && v1 <= this.max) value = v1;else value = v2;
|
||||
if (this.positiveInteger) {
|
||||
if (v1 < 0 || String(v1).indexOf('.') !== -1) {
|
||||
value = v2;
|
||||
this.$nextTick(() => {
|
||||
this.inputVal = v2;
|
||||
});
|
||||
}
|
||||
}
|
||||
if (this.asyncChange) {
|
||||
return;
|
||||
}
|
||||
// 发出change事件
|
||||
this.handleChange(value, 'change');
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
inputVal: 1,
|
||||
// 输入框中的值,不能直接使用props中的value,因为应该改变props的状态
|
||||
timer: null,
|
||||
// 用作长按的定时器
|
||||
changeFromInner: false,
|
||||
// 值发生变化,是来自内部还是外部
|
||||
innerChangeTimer: null // 内部定时器
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.inputVal = Number(this.value);
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
btnTouchStart(callback) {
|
||||
this[callback]();
|
||||
},
|
||||
minus() {
|
||||
this.computeVal('minus');
|
||||
},
|
||||
plus() {
|
||||
this.computeVal('plus');
|
||||
},
|
||||
calcPlus(num1, num2) {
|
||||
let baseNum, baseNum1, baseNum2;
|
||||
try {
|
||||
baseNum1 = num1.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum1 = 0;
|
||||
}
|
||||
try {
|
||||
baseNum2 = num2.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum2 = 0;
|
||||
}
|
||||
baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
|
||||
let precision = baseNum1 >= baseNum2 ? baseNum1 : baseNum2;
|
||||
return ((num1 * baseNum + num2 * baseNum) / baseNum).toFixed(precision);
|
||||
},
|
||||
calcMinus(num1, num2) {
|
||||
let baseNum, baseNum1, baseNum2;
|
||||
try {
|
||||
baseNum1 = num1.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum1 = 0;
|
||||
}
|
||||
try {
|
||||
baseNum2 = num2.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
baseNum2 = 0;
|
||||
}
|
||||
baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
|
||||
let precision = baseNum1 >= baseNum2 ? baseNum1 : baseNum2;
|
||||
return ((num1 * baseNum - num2 * baseNum) / baseNum).toFixed(precision);
|
||||
},
|
||||
computeVal(type) {
|
||||
if (this.disabled) return;
|
||||
let value = 0;
|
||||
// 减
|
||||
if (type === 'minus') {
|
||||
value = this.calcMinus(this.inputVal, this.step);
|
||||
} else if (type === 'plus') {
|
||||
value = this.calcPlus(this.inputVal, this.step);
|
||||
}
|
||||
// 判断是否小于最小值和大于最大值
|
||||
if (value < this.min || value > this.max) {
|
||||
return;
|
||||
}
|
||||
if (this.asyncChange) {
|
||||
this.$emit('change', value);
|
||||
} else {
|
||||
this.inputVal = value;
|
||||
this.handleChange(value, type);
|
||||
}
|
||||
},
|
||||
// 处理用户手动输入的情况
|
||||
onBlur(event) {
|
||||
let val = 0;
|
||||
let value = event.target.value;
|
||||
console.log(value);
|
||||
if (!/(^\d+$)/.test(value)) {
|
||||
val = this.min;
|
||||
} else {
|
||||
val = +value;
|
||||
}
|
||||
if (val > this.max) {
|
||||
val = this.max;
|
||||
} else if (val < this.min) {
|
||||
val = this.min;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.inputVal = val;
|
||||
});
|
||||
this.handleChange(val, 'blur');
|
||||
},
|
||||
// 输入框获得焦点事件
|
||||
onFocus() {
|
||||
this.$emit('focus');
|
||||
},
|
||||
handleChange(value, type) {
|
||||
if (this.disabled) return;
|
||||
// 清除定时器,避免造成混乱
|
||||
if (this.innerChangeTimer) {
|
||||
clearTimeout(this.innerChangeTimer);
|
||||
this.innerChangeTimer = null;
|
||||
}
|
||||
this.changeFromInner = true;
|
||||
this.innerChangeTimer = setTimeout(() => {
|
||||
this.changeFromInner = false;
|
||||
}, 150);
|
||||
this.$emit('input', Number(value));
|
||||
this.$emit(type, {
|
||||
value: Number(value),
|
||||
index: this.index
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/number-box.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_number_boxvue_type_script_lang_js_ = (number_boxvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/number-box.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(183)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_number_boxvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"1d9d8f36",
|
||||
"6cb818cd"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var number_box = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 227:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(287);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("1e518390", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 284:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAP1BMVEUAAACAgIBsbGxsbGxubm5xcXFwcHBubm5vb29ubm5vb29ubm5ubm5wcHBwcHBvb29wcHBvb29vb29wcHBwcHCw1+evAAAAFHRSTlMAAhooOj9AQUdITFhoj5/F29zj5uF9dOwAAABQSURBVBjTY2DADrgERMBAiAMuJMQGodkE4EIiaAx+ERTAj6oIwcQqxCjMwMnHwMtNIyEGHpAQOzOqI5hYCLhLiBUmwioICxtBmAeRQgcFAABfsQZNXvKDKwAAAABJRU5ErkJggg=="
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 285:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "img/cart_null.663f237.png";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 286:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_cart_vue_vue_type_style_index_0_id_750ce260_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(227);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_cart_vue_vue_type_style_index_0_id_750ce260_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_cart_vue_vue_type_style_index_0_id_750ce260_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_cart_vue_vue_type_style_index_0_id_750ce260_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_cart_vue_vue_type_style_index_0_id_750ce260_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 287:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".shop-cart[data-v-750ce260]{padding:24px 0}.shop-cart .cart-list[data-v-750ce260]{min-height:600px}.shop-cart .cart-list .cart-hd[data-v-750ce260]{color:#101010;height:50px;margin-bottom:10px;padding:10px}.shop-cart .cart-list .cart-con[data-v-750ce260]{padding:0 10px}.shop-cart .cart-list .cart-con .shop[data-v-750ce260]{border-bottom:1px solid #d7d7d7;padding:20px 10px}.shop-cart .cart-list .cart-con .item[data-v-750ce260]{border-bottom:1px dashed #e5e5e5;padding:20px 10px}.shop-cart .cart-list .cart-con .item[data-v-750ce260]:last-child{border-bottom:0}.shop-cart .cart-list .check-box[data-v-750ce260]{padding-left:10px;width:40px}.shop-cart .cart-list .info[data-v-750ce260]{width:450px}.shop-cart .cart-list .info .pictrue[data-v-750ce260]{margin-right:10px}.shop-cart .cart-list .info .pictrue img[data-v-750ce260]{height:72px;width:72px}.shop-cart .cart-list .info .name[data-v-750ce260]{margin-bottom:10px}.shop-cart .cart-list .price[data-v-750ce260]{width:150px}.shop-cart .cart-list .num[data-v-750ce260]{width:250px}.shop-cart .cart-list .money[data-v-750ce260]{width:150px}.shop-cart .cart-list .delete-btn[data-v-750ce260]{cursor:pointer}.shop-cart .cart-footer[data-v-750ce260]{padding:20px}.shop-cart .cart-footer .total .btn[data-v-750ce260]{border-radius:4px;cursor:pointer;height:50px;width:152px}.shop-cart .data-null[data-v-750ce260]{padding-top:170px;text-align:center}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 363:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/shop_cart.vue?vue&type=template&id=750ce260&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "shop-cart"
|
||||
}, [_vm._ssrNode("<div class=\"cart-list\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div" + _vm._ssrStyle(null, null, {
|
||||
display: !_vm.isDataNull ? '' : 'none'
|
||||
}) + " data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"cart-hd flex bg-white\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"check-box\" data-v-750ce260>", "</div>", [_c('el-checkbox', {
|
||||
on: {
|
||||
"change": function ($event) {
|
||||
return _vm.onBoxClick($event, 3, '');
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: _vm.isSelectedAll,
|
||||
callback: function ($$v) {
|
||||
_vm.isSelectedAll = $$v;
|
||||
},
|
||||
expression: "isSelectedAll"
|
||||
}
|
||||
}, [_vm._v("全选")])], 1), _vm._ssrNode(" <div class=\"info flex row-center\" data-v-750ce260>商品信息</div> <div class=\"price flex row-center\" data-v-750ce260>单价</div> <div class=\"num flex row-center\" data-v-750ce260>数量</div> <div class=\"money flex row-center\" data-v-750ce260>合计</div> <div class=\"operate flex row-center\" data-v-750ce260>操作</div>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"cart-con bg-white\" data-v-750ce260>", "</div>", _vm._l(_vm.shopCartList, function (item, index) {
|
||||
return _vm._ssrNode("<div class=\"m-b-10 bg-white\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"flex shop\" data-v-750ce260>", "</div>", [_c('el-checkbox', {
|
||||
attrs: {
|
||||
"value": item.is_selected == 1
|
||||
},
|
||||
on: {
|
||||
"change": function ($event) {
|
||||
return _vm.onBoxClick($event, 1, index);
|
||||
}
|
||||
}
|
||||
}), _vm._ssrNode(" <div class=\"xs normal m-l-10\" data-v-750ce260>" + _vm._ssrEscape("\n " + _vm._s(item.shop.shop_name) + "\n ") + "</div>")], 2), _vm._ssrNode(" "), _vm._l(item.cart, function (item2, index2) {
|
||||
return _vm._ssrNode("<div class=\"item flex\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"check-box\" data-v-750ce260>", "</div>", [_c('el-checkbox', {
|
||||
attrs: {
|
||||
"value": item2.selected == 1
|
||||
},
|
||||
on: {
|
||||
"change": function ($event) {
|
||||
return _vm.onBoxClick($event, 2, item2.cart_id);
|
||||
}
|
||||
}
|
||||
})], 1), _vm._ssrNode(" "), _c('nuxt-link', {
|
||||
staticClass: "info flex",
|
||||
attrs: {
|
||||
"to": '/goods_details/' + item2.goods_id
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "pictrue flexnone"
|
||||
}, [_c('img', {
|
||||
attrs: {
|
||||
"src": item2.image,
|
||||
"alt": ""
|
||||
}
|
||||
})]), _vm._v(" "), _c('div', [_c('div', {
|
||||
staticClass: "name line2"
|
||||
}, [_vm._v("\n " + _vm._s(item2.goods_name) + "\n ")]), _vm._v(" "), _c('div', {
|
||||
staticClass: "muted"
|
||||
}, [_vm._v("\n " + _vm._s(item2.spec_value_str) + "\n ")])])]), _vm._ssrNode(" <div class=\"price flex row-center\" data-v-750ce260>" + _vm._ssrEscape("\n ¥" + _vm._s(item2.price) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"num flex row-center\" data-v-750ce260>", "</div>", [_c('number-box', {
|
||||
attrs: {
|
||||
"min": 1,
|
||||
"async-change": ""
|
||||
},
|
||||
on: {
|
||||
"change": function ($event) {
|
||||
return _vm.changeShopCartCount($event, item2.cart_id);
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: item2.goods_num,
|
||||
callback: function ($$v) {
|
||||
_vm.$set(item2, "goods_num", $$v);
|
||||
},
|
||||
expression: "item2.goods_num"
|
||||
}
|
||||
})], 1), _vm._ssrNode(" <div class=\"money flex row-center\" data-v-750ce260>" + _vm._ssrEscape("\n ¥" + _vm._s(item2.sub_price) + "\n ") + "</div> "), _c('el-popconfirm', {
|
||||
attrs: {
|
||||
"title": "确定删除该商品吗?",
|
||||
"confirm-button-text": "确定",
|
||||
"cancel-button-text": "取消",
|
||||
"icon": "el-icon-info",
|
||||
"icon-color": "red"
|
||||
},
|
||||
on: {
|
||||
"confirm": function ($event) {
|
||||
return _vm.goodsDelete(item2.cart_id);
|
||||
}
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "operate flex row-center delete-btn",
|
||||
attrs: {
|
||||
"slot": "reference"
|
||||
},
|
||||
slot: "reference"
|
||||
}, [_c('img', {
|
||||
attrs: {
|
||||
"src": __webpack_require__(284)
|
||||
}
|
||||
})])])], 2);
|
||||
})], 2);
|
||||
}), 0), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"cart-footer flex row-between bg-white\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"lighter flex\" data-v-750ce260>", "</div>", [_vm._ssrNode("<div class=\"check-box\" data-v-750ce260>", "</div>", [_c('el-checkbox', {
|
||||
on: {
|
||||
"change": function ($event) {
|
||||
return _vm.onBoxClick($event, 3, '');
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: _vm.isSelectedAll,
|
||||
callback: function ($$v) {
|
||||
_vm.isSelectedAll = $$v;
|
||||
},
|
||||
expression: "isSelectedAll"
|
||||
}
|
||||
}, [_vm._v("全选")])], 1), _vm._ssrNode(" <div style=\"margin: 0 24px\" data-v-750ce260></div> "), _c('el-popconfirm', {
|
||||
attrs: {
|
||||
"title": "确定删除选中商品吗?",
|
||||
"confirm-button-text": "确定",
|
||||
"cancel-button-text": "取消",
|
||||
"icon": "el-icon-info",
|
||||
"icon-color": "red"
|
||||
},
|
||||
on: {
|
||||
"confirm": _vm.deleteSelectedGoods
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "xs normal",
|
||||
staticStyle: {
|
||||
"cursor": "pointer"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "reference"
|
||||
},
|
||||
slot: "reference"
|
||||
}, [_vm._v("\n 删除选中商品\n ")])]), _vm._ssrNode(" "), _c('el-popconfirm', {
|
||||
attrs: {
|
||||
"title": "确定清空吗?",
|
||||
"confirm-button-text": "确定",
|
||||
"cancel-button-text": "取消",
|
||||
"icon": "el-icon-info",
|
||||
"icon-color": "red"
|
||||
},
|
||||
on: {
|
||||
"confirm": _vm.deleteAlldGoods
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "m-l-14 xs muted",
|
||||
staticStyle: {
|
||||
"cursor": "pointer"
|
||||
},
|
||||
attrs: {
|
||||
"slot": "reference"
|
||||
},
|
||||
slot: "reference"
|
||||
}, [_vm._v("\n 清空购物车\n ")])])], 2), _vm._ssrNode(" <div class=\"total flex\" data-v-750ce260><div class=\"flex m-r-14\" data-v-750ce260><div class=\"xs\" data-v-750ce260>" + _vm._ssrEscape("已选" + _vm._s(_vm.selected) + "件商品") + "</div> <div class=\"primary m-l-20\" style=\"font-size: 22px\" data-v-750ce260>" + _vm._ssrEscape("\n ¥" + _vm._s(_vm.totalAmount) + "\n ") + "</div></div> <div class=\"white lg btn flex row-center\"" + _vm._ssrStyle(null, {
|
||||
background: _vm.selected == 0 ? '#A4ADB3' : '#FF2C3C'
|
||||
}, null) + " data-v-750ce260>\n 去结算\n </div></div>")], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"column-center data-null\"" + _vm._ssrStyle(null, null, {
|
||||
display: _vm.isDataNull ? '' : 'none'
|
||||
}) + " data-v-750ce260>", "</div>", [_vm._ssrNode("<img" + _vm._ssrAttr("src", __webpack_require__(285)) + " style=\"width: 150px; height: 150px\" data-v-750ce260> <div class=\"muted xs m-t-10\" data-v-750ce260>购物车是空的~</div> "), _vm._ssrNode("<div class=\"m-t-30\" data-v-750ce260>", "</div>", [_c('el-button', {
|
||||
attrs: {
|
||||
"round": "",
|
||||
"type": "primary",
|
||||
"size": "medium"
|
||||
},
|
||||
on: {
|
||||
"click": _vm.toIndex
|
||||
}
|
||||
}, [_vm._v("去逛逛~")])], 1)], 2)], 2)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/shop_cart.vue?vue&type=template&id=750ce260&scoped=true&
|
||||
|
||||
// EXTERNAL MODULE: external "vuex"
|
||||
var external_vuex_ = __webpack_require__(2);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/shop_cart.vue?vue&type=script&lang=js&
|
||||
|
||||
/* harmony default export */ var shop_cartvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
shopCartList: [],
|
||||
totalAmount: 0,
|
||||
totalNum: 0,
|
||||
isDataNull: false
|
||||
};
|
||||
},
|
||||
mounted() {},
|
||||
computed: {
|
||||
// 是否全选
|
||||
isSelectedAll: {
|
||||
get() {
|
||||
if (!this.shopCartList.length) return false;
|
||||
if (this.allInvalid()) return false;
|
||||
let index = this.shopCartList.findIndex(item => item.is_selected == 0);
|
||||
return index == -1 ? true : false;
|
||||
},
|
||||
set(val) {
|
||||
return val;
|
||||
}
|
||||
},
|
||||
// 已经选择的数量
|
||||
selected: {
|
||||
get() {
|
||||
return this.shopCartList.reduce((pre, item) => {
|
||||
return pre.concat(item.cart.filter(i => i.selected == 1));
|
||||
}, []).length;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...Object(external_vuex_["mapActions"])(['getPublicData']),
|
||||
async getCartList() {
|
||||
let res = await this.$get('cart/lists');
|
||||
if (res.code == 1) {
|
||||
this.shopCartList = Object.assign([], res.data.lists);
|
||||
this.totalAmount = res.data.total_amount;
|
||||
this.totalNum = res.data.total_num;
|
||||
if (this.shopCartList.length > 0) {
|
||||
this.isDataNull = false;
|
||||
} else {
|
||||
this.isDataNull = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
// 更改选中状态 type为1选中店铺/2选中商品/3全选
|
||||
onBoxClick(e, type, number) {
|
||||
let cartId = [];
|
||||
switch (type) {
|
||||
case 1:
|
||||
cartId = this.shopCartList[number].cart.map(item => item.cart_id);
|
||||
break;
|
||||
case 2:
|
||||
cartId.push(number);
|
||||
break;
|
||||
case 3:
|
||||
cartId = this.shopCartList.reduce((pre, item) => {
|
||||
return pre.concat(item.cart.map(i => i.cart_id));
|
||||
}, cartId);
|
||||
break;
|
||||
}
|
||||
this.changeSelected(cartId, e);
|
||||
},
|
||||
cartInvalid(item) {
|
||||
return item.goods_status == 0 || item.goods_del != 0 ? true : false;
|
||||
},
|
||||
shopInvalid(item) {
|
||||
return item.cart.every(citem => this.cartInvalid(citem));
|
||||
},
|
||||
allInvalid() {
|
||||
return this.shopCartList.every(item => this.shopInvalid(item));
|
||||
},
|
||||
// 选中/取消选中购物车
|
||||
async changeSelected(id, selected) {
|
||||
let res = await this.$post('cart/selected', {
|
||||
cart_id: id,
|
||||
selected: selected
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.getCartList();
|
||||
}
|
||||
},
|
||||
// 修改购物车商品数量
|
||||
async changeShopCartCount(number, cartId) {
|
||||
let res = await this.$post('cart/change', {
|
||||
cart_id: cartId,
|
||||
goods_num: number
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.getCartList();
|
||||
this.getPublicData();
|
||||
}
|
||||
},
|
||||
// 删除购物车商品
|
||||
async goodsDelete(cartId) {
|
||||
let res = await this.$post('cart/del', {
|
||||
cart_id: cartId
|
||||
});
|
||||
if (res.code == 1) {
|
||||
this.getPublicData();
|
||||
this.getCartList();
|
||||
this.$message({
|
||||
message: '删除商品成功',
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
},
|
||||
// 删除选中购物车
|
||||
deleteSelectedGoods() {
|
||||
let selectedGoodsArr = this.shopCartList.reduce((pre, item) => {
|
||||
return pre.concat(item.cart.filter(i => i.selected == 1));
|
||||
}, []);
|
||||
if (selectedGoodsArr.length <= 0) {
|
||||
this.$message({
|
||||
message: '没有选择商品',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let cartIdArr = selectedGoodsArr.map(item => item.cart_id);
|
||||
this.goodsDelete(cartIdArr);
|
||||
},
|
||||
// 清空购物车
|
||||
deleteAlldGoods() {
|
||||
let allGoodsArr = this.shopCartList.reduce((pre, item) => {
|
||||
return pre.concat(item.cart.filter(i => i.cart_id));
|
||||
}, []);
|
||||
if (allGoodsArr.length <= 0) {
|
||||
this.$message({
|
||||
message: '没有商品',
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let cartIdArr = allGoodsArr.map(item => item.cart_id);
|
||||
this.goodsDelete(cartIdArr);
|
||||
},
|
||||
getSelectCart() {
|
||||
const {
|
||||
shopCartList
|
||||
} = this;
|
||||
return shopCartList.reduce((pre, item) => {
|
||||
return pre.concat(item.cart.filter(i => i.selected && !this.cartInvalid(i)).map(i => i.cart_id));
|
||||
}, []);
|
||||
},
|
||||
// 去购买商品
|
||||
toOrderBuy() {
|
||||
let {
|
||||
shopCartList
|
||||
} = this;
|
||||
let goods = [];
|
||||
let carts = this.getSelectCart();
|
||||
if (carts.length == 0) return this.$message.err('您还没有选择商品哦');
|
||||
// 处理出商品数组数据
|
||||
shopCartList.forEach(item => {
|
||||
if (item.cart.length != 0) {
|
||||
item.cart.forEach((el, i) => {
|
||||
// 选中的商品才能进入
|
||||
if (el.selected == 1) {
|
||||
goods.push({
|
||||
item_id: el.item_id,
|
||||
num: el.goods_num,
|
||||
goods_id: el.goods_id,
|
||||
shop_id: item.shop.shop_id
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
const params = {
|
||||
carts: carts,
|
||||
goods: goods,
|
||||
type: 'cart'
|
||||
};
|
||||
this.$router.push({
|
||||
path: '/confirm_order',
|
||||
query: {
|
||||
data: encodeURIComponent(JSON.stringify(params))
|
||||
}
|
||||
});
|
||||
},
|
||||
toIndex() {
|
||||
this.$router.push('/');
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCartList();
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/shop_cart.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_shop_cartvue_type_script_lang_js_ = (shop_cartvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/shop_cart.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(286)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_shop_cartvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"750ce260",
|
||||
"eed2909e"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var shop_cart = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {NumberBox: __webpack_require__(196).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=shop_cart.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,342 +0,0 @@
|
|||
exports.ids = [40,18];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 169:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(186);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("79d4ec36", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 185:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(169);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_item_vue_vue_type_style_index_0_id_871c1244_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 186:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".shop-item[data-v-871c1244]{background-position:50%;background-size:cover;border-radius:6px;height:400px;padding:10px;width:270px}.shop-item .shop-info[data-v-871c1244]{border-radius:6px;padding:18px 15px}.shop-item .shop-info .logo[data-v-871c1244]{border-radius:16px;height:70px;margin-top:-45px;width:70px}.shop-item .shop-info .sales[data-v-871c1244]{background-color:#f2f2f2;border-radius:4px;display:inline-block;margin-top:6px;padding:4px 10px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 197:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/shop-item.vue?vue&type=template&id=871c1244&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('nuxt-link', {
|
||||
staticClass: "shop-item flex-col row-right",
|
||||
style: {
|
||||
'background-image': `url(${_vm.cover})`
|
||||
},
|
||||
attrs: {
|
||||
"to": `/shop_street_detail?id=${_vm.shopId}`
|
||||
}
|
||||
}, [_c('div', {
|
||||
staticClass: "bg-white shop-info text-center"
|
||||
}, [_c('el-image', {
|
||||
staticClass: "logo",
|
||||
attrs: {
|
||||
"src": _vm.logo
|
||||
}
|
||||
}), _vm._v(" "), _c('div', {
|
||||
staticClass: "m-t-12 line-1 lg"
|
||||
}, [_vm.type == 1 ? _c('el-tag', {
|
||||
attrs: {
|
||||
"size": "mini"
|
||||
}
|
||||
}, [_vm._v("自营")]) : _vm._e(), _vm._v(" " + _vm._s(_vm.name) + "\n ")], 1), _vm._v(" "), _c('span', {
|
||||
staticClass: "xs muted sales"
|
||||
}, [_vm._v("共" + _vm._s(_vm.sales) + "件商品")])], 1)]);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue?vue&type=template&id=871c1244&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/shop-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var shop_itemvue_type_script_lang_js_ = ({
|
||||
components: {},
|
||||
props: {
|
||||
cover: {
|
||||
type: String
|
||||
},
|
||||
shopId: {
|
||||
type: [String, Number]
|
||||
},
|
||||
logo: {
|
||||
type: String
|
||||
},
|
||||
type: {
|
||||
type: [String, Number]
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
sales: {
|
||||
type: [String, Number]
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
});
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var components_shop_itemvue_type_script_lang_js_ = (shop_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./components/shop-item.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(185)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
components_shop_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"871c1244",
|
||||
"1e5fe2f4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var shop_item = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 228:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||||
|
||||
// load the styles
|
||||
var content = __webpack_require__(289);
|
||||
if(content.__esModule) content = content.default;
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
if(content.locals) module.exports = content.locals;
|
||||
// add CSS to SSR context
|
||||
var add = __webpack_require__(4).default
|
||||
module.exports.__inject__ = function (context) {
|
||||
add("49749861", content, true, context)
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 288:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_street_vue_vue_type_style_index_0_id_62a34c9e_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(228);
|
||||
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_street_vue_vue_type_style_index_0_id_62a34c9e_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_street_vue_vue_type_style_index_0_id_62a34c9e_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_street_vue_vue_type_style_index_0_id_62a34c9e_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_shop_street_vue_vue_type_style_index_0_id_62a34c9e_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 289:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// Imports
|
||||
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3);
|
||||
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
|
||||
// Module
|
||||
___CSS_LOADER_EXPORT___.push([module.i, ".shop-street[data-v-62a34c9e]{padding:20px 0;width:1180px}.shop-street .shop-cart[data-v-62a34c9e]{height:400px;margin-bottom:20px;width:270px}.shop-street .shop-cart[data-v-62a34c9e]:not(:nth-of-type(4n)){margin-right:20px}.shop-street .shop-cart .shop-desc[data-v-62a34c9e]{background-color:#fff;border-radius:6px;height:124px;margin-bottom:9px;margin-top:247px;position:relative;width:249px}.shop-street .shop-cart .shop-desc .shop-logo[data-v-62a34c9e]{left:89px;position:absolute;top:-26px;z-index:10}.shop-street .shop-cart .shop-desc .shop-name[data-v-62a34c9e]{color:#101010;font-size:16px;margin-bottom:4px;margin-top:52px;padding:0 10px;text-align:center}.shop-street .shop-cart .shop-desc .goods-num[data-v-62a34c9e]{background:#e5e5e5;border-radius:4px;color:#999;font-size:12px;height:24px;margin-bottom:20px;padding-top:4px;text-align:center;width:82px}", ""]);
|
||||
// Exports
|
||||
___CSS_LOADER_EXPORT___.locals = {};
|
||||
module.exports = ___CSS_LOADER_EXPORT___;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 364:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/shop_street.vue?vue&type=template&id=62a34c9e&scoped=true&
|
||||
var render = function render() {
|
||||
var _vm = this,
|
||||
_c = _vm._self._c;
|
||||
return _c('div', {
|
||||
staticClass: "street"
|
||||
}, [_vm._ssrNode("<div class=\"shop-street flex flex-wrap flex-center\" data-v-62a34c9e>", "</div>", _vm._l(_vm.shopList, function (item, index) {
|
||||
return _vm._ssrNode("<div data-v-62a34c9e>", "</div>", [_vm._ssrNode("<div class=\"shop-cart\" data-v-62a34c9e>", "</div>", [_c('shop-item', {
|
||||
attrs: {
|
||||
"cover": item.cover,
|
||||
"shopId": item.id,
|
||||
"logo": item.logo,
|
||||
"type": item.type,
|
||||
"name": item.name,
|
||||
"sales": item.on_sale_goods
|
||||
}
|
||||
})], 1)]);
|
||||
}), 0), _vm._ssrNode(" "), _vm.count ? _vm._ssrNode("<div style=\"padding-bottom: 38px; text-align: center\" data-v-62a34c9e>", "</div>", [_c('el-pagination', {
|
||||
attrs: {
|
||||
"background": "",
|
||||
"layout": "prev, pager, next",
|
||||
"total": _vm.count,
|
||||
"prev-text": "上一页",
|
||||
"next-text": "下一页",
|
||||
"hide-on-single-page": "",
|
||||
"page-size": _vm.pageSize
|
||||
},
|
||||
on: {
|
||||
"current-change": _vm.changePage
|
||||
}
|
||||
})], 1) : _vm._e()], 2);
|
||||
};
|
||||
var staticRenderFns = [];
|
||||
|
||||
// CONCATENATED MODULE: ./pages/shop_street.vue?vue&type=template&id=62a34c9e&scoped=true&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/shop_street.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var shop_streetvue_type_script_lang_js_ = ({
|
||||
head() {
|
||||
return {
|
||||
title: this.$store.getters.headTitle,
|
||||
link: [{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: this.$store.getters.favicon
|
||||
}]
|
||||
};
|
||||
},
|
||||
async asyncData({
|
||||
query,
|
||||
$get
|
||||
}) {
|
||||
const {
|
||||
data: {
|
||||
list,
|
||||
count
|
||||
}
|
||||
} = await $get('shop/getShopList', {
|
||||
params: {
|
||||
page_size: 8,
|
||||
page_no: 1
|
||||
}
|
||||
});
|
||||
return {
|
||||
shopList: list,
|
||||
count: count
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
shopList: [],
|
||||
count: 0,
|
||||
page: 1,
|
||||
pageSize: 8
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
changePage(current) {
|
||||
this.page = current;
|
||||
this.getShopList();
|
||||
},
|
||||
async getShopList() {
|
||||
const {
|
||||
page,
|
||||
pageSize
|
||||
} = this;
|
||||
const {
|
||||
data: {
|
||||
list,
|
||||
count
|
||||
},
|
||||
code
|
||||
} = await this.$get('shop/getShopList', {
|
||||
params: {
|
||||
page_size: pageSize,
|
||||
page_no: page
|
||||
}
|
||||
});
|
||||
if (code == 1) {
|
||||
this.shopList = list;
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./pages/shop_street.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var pages_shop_streetvue_type_script_lang_js_ = (shop_streetvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./pages/shop_street.vue
|
||||
|
||||
|
||||
|
||||
function injectStyles (context) {
|
||||
|
||||
var style0 = __webpack_require__(288)
|
||||
if (style0.__inject__) style0.__inject__(context)
|
||||
|
||||
}
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
pages_shop_streetvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
injectStyles,
|
||||
"62a34c9e",
|
||||
"4793c8d4"
|
||||
|
||||
)
|
||||
|
||||
/* harmony default export */ var shop_street = __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/* nuxt-component-imports */
|
||||
installComponents(component, {ShopItem: __webpack_require__(197).default})
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
};;
|
||||
//# sourceMappingURL=shop_street.js.map
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue