Commit 72888b86 by 李长胜

会员中心修改

1 parent c6efb215
...@@ -216,7 +216,6 @@ export default { ...@@ -216,7 +216,6 @@ export default {
{ {
label: '开通日期', label: '开通日期',
prop: 'activeTime' prop: 'activeTime'
// addHtml: 'activeTime' // addHtml: 'activeTime'
}, },
{ {
...@@ -240,7 +239,8 @@ export default { ...@@ -240,7 +239,8 @@ export default {
cardName: '', cardName: '',
price: '', price: '',
marketPrice: '', marketPrice: '',
linkUrl: '' linkUrl: '',
tryAble:''
}, },
copyRuleForm: {}, copyRuleForm: {},
rules: { rules: {
...@@ -263,7 +263,7 @@ export default { ...@@ -263,7 +263,7 @@ export default {
created() { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
} }
this.getCardContentFun() this.getCardContentFun()
}, },
...@@ -301,11 +301,13 @@ export default { ...@@ -301,11 +301,13 @@ export default {
}, },
getCardContentFun() { getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => { getCardContent({ merchantId: this.merchantId }).then(res => {
this.ruleForm.equityId = res[0].id this.ruleForm.equityId = res[0].id
this.ruleForm.cardName = res[0].cardClassName this.ruleForm.cardName = res[0].cardClassName
this.ruleForm.price = res[0].price this.ruleForm.price = res[0].price
this.ruleForm.marketPrice = res[0].marketPrice this.ruleForm.marketPrice = res[0].marketPrice
this.ruleForm.linkUrl = res[0].url this.ruleForm.linkUrl = res[0].url
this.ruleForm.tryAble=res[0].tryAble
}) })
}, },
openEditWrap() { openEditWrap() {
...@@ -328,7 +330,7 @@ export default { ...@@ -328,7 +330,7 @@ export default {
params.cardClassName = this.ruleForm.cardName params.cardClassName = this.ruleForm.cardName
params.price = this.ruleForm.price params.price = this.ruleForm.price
params.marketPrice = this.ruleForm.marketPrice params.marketPrice = this.ruleForm.marketPrice
params.tryAble=this.ruleForm.tryAble
updateCardContent(params).then(res => { updateCardContent(params).then(res => {
if (!res) { if (!res) {
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!