提交 e9c699c9 编写于 作者: guangjun.yang's avatar guangjun.yang

兑换的相关逻辑

上级 50965758
...@@ -40,6 +40,10 @@ export default { ...@@ -40,6 +40,10 @@ export default {
isShow: { isShow: {
type: Boolean, type: Boolean,
default: true default: true
},
changeErrorMsg: {
type: String,
default: ''
} }
}, },
// computed: { // computed: {
...@@ -63,18 +67,22 @@ export default { ...@@ -63,18 +67,22 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.activationCode = val.replace(/\s/g,'').replace(/.....(?!$)/g,'$& '); this.activationCode = val.replace(/\s/g,'').replace(/.....(?!$)/g,'$& ');
}); });
},
changeErrorMsg(val) {
if(val) {
this.errorMsg = val;
}
} }
}, },
methods: { methods: {
cancle() { cancle() {
console.log('cancle');
this.$emit("cancle"); this.$emit("cancle");
}, },
confirm() { confirm() {
console.log('confirm');
if(!this.activationCode || this.activationCode.length != 23) return; if(!this.activationCode || this.activationCode.length != 23) return;
let aCode = JSON.stringify(this.activationCode); let aCode = JSON.parse(JSON.stringify(this.activationCode));
this.$emit("confirm", aCode.replace(/\s/g,'')); aCode = aCode.replace(/\s/g,'');
this.$emit("confirm", aCode);
}, },
// bankCardKeyup() { // bankCardKeyup() {
// this.id_card = val.replace(/\s/g,'').replace(/....(?!$)/g,'$& '); // this.id_card = val.replace(/\s/g,'').replace(/....(?!$)/g,'$& ');
......
...@@ -19,7 +19,8 @@ service.interceptors.request.use(config => { ...@@ -19,7 +19,8 @@ service.interceptors.request.use(config => {
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
config.headers['token'] = config.data.token || '891F256CC48A4D57905F79C8F7628A74'; config.headers['token'] = config.data.token || '891F256CC48A4D57905F79C8F7628A74';
} }
// delete config.data.token; delete config.data.setEntry;
delete config.data.token;
} }
config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' }) config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
......
...@@ -13,7 +13,7 @@ module.exports = { ...@@ -13,7 +13,7 @@ module.exports = {
query = this.$route.query query = this.$route.query
} }
// alert('this.token' + this.token) // alert('this.token' + this.token)
this.token = this.getUrlKey('token') || (query && query.token) || 'EEF69589911F4D3CAC8700AC11EE8096' this.token = this.getUrlKey('token') || (query && query.token) || '4510A4F7DF72471D82EA3626C43A8696'
}, },
mounted() { mounted() {
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册