提交 7415c3dc authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 2f4d4a85
......@@ -45,7 +45,7 @@ export default {
form: {
name: '',
phone: '',
project_id: 1000,
project_id: 5009,
},
}
},
......
......@@ -39,11 +39,9 @@ export default {
font-weight: bold;
color: #c01540;
line-height: 25px;
width: 400px;
}
.des-box {
width: 400px;
margin-top: 24px;
margin-top: 10px;
p {
font-size: 14px;
color: #717171;
......
<template>
<div class="pay-pop-box">
<div class="content-box" v-if="!isCodeShow">
<i class="el-icon-close" @click="$emit('closePayPop')"></i>
<i class="el-icon-close" @click="$emit('close')"></i>
<div class="tips-cen">
<div class="name">活动名称:</div>
<div class="js">{{ train.title }}</div>
......@@ -72,7 +72,7 @@ export default {
.createOrder({
pay_type: this.payMethod,
shop_id: this.train.shop_id,
spu_id: this.train.shop_id,
spu_id: this.train.spu_id,
sku_id: this.train.sku_id,
form_id: this.form.id,
})
......@@ -111,14 +111,14 @@ export default {
},
closeClear() {
this.isCodeShow = false
this.$emit('closePayPop')
this.$emit('close')
},
payEnd(orderOn) {
const param = {
order_no: orderOn,
form_id: this.form.id.toString(),
form_id: this.form.id,
}
api.payEnd(param).then((res) => {})
api.payEnd(param)
},
},
beforeDestroy() {
......
差异被折叠。
......@@ -59,15 +59,8 @@ httpRequest.interceptors.request.use(
// 响应拦截
httpRequest.interceptors.response.use(
function (response) {
const { data } = response
if (parseInt(data.error) && data.message === '需要登录才能调用接口') {
location.href = `${process.env.loginURL}/login/index?redirect_uri=${encodeURIComponent(location.href)}`
return Promise.reject(data)
}
// enrollment
if (parseInt(data.error)) {
const { config, data } = response
if (config.url.includes('/api/microservices') && data.code !== 200) {
Message.error(data.message)
return Promise.reject(data)
}
......
export const IDCARD_REG =
/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9Xx]$)/
export const MOBILE_REG = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论