Commit 1bb5fa92 by 王志慧

commit

1 parent 6406137a
...@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) { ...@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) {
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data) // return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -94,12 +94,13 @@ export default { ...@@ -94,12 +94,13 @@ export default {
selectGiftDialog selectGiftDialog
}, },
data() { data() {
// else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) {
// return callback(new Error('套餐售价不能低于会员卡价格'))
// }
var validatePrice = (rule, value, callback) => { var validatePrice = (rule, value, callback) => {
if (!value) { if (!value) {
return callback(new Error('请输入售价')) return callback(new Error('请输入售价'))
} else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) { } else {
return callback(new Error('套餐售价不能低于会员卡价格'))
} else {
callback() callback()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!