Commit d4b1543c by 胡悦
2 parents 8d0c34c1 d33a8862
......@@ -65,12 +65,12 @@
</el-form-item>
</el-row>
<el-row>
<el-form-item size="small" label="会员类型" >
<el-form-item size="small" label="会员类型">
<el-select size="small" v-model="searchForm.memberType" placeholder="请选择">
<el-option v-for="item in memberTypeLists" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="开通日期" style="margin-left:-10px">
<el-form-item size="small" label="开通日期" style="margin-left: -10px">
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item>
......@@ -80,7 +80,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable ref="memberCenterRef" v-if="isReload" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable ref="memberCenterRef" v-if="isReload" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="accountName" slot-scope="scope">
<div>{{ scope.scope.accountName }}</div>
<div>{{ scope.scope.mobile }}</div>
......@@ -89,26 +89,26 @@
</div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<!-- <el-scrollbar> -->
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
<div class="equity-item" v-for="(item, index) in merchantData.carServiceList" :key="index">
<div class="equity-item-icon"><img :src="item.equityIcon" /></div>
<div class="equity-item-name">{{ item.equityName }}</div>
<div class="equity-item-desc">{{ item.equityDesc }}</div>
</div>
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
<div class="equity-item" v-for="(item, index) in merchantData.carServiceList" :key="index">
<div class="equity-item-icon"><img :src="item.equityIcon" /></div>
<div class="equity-item-name">{{ item.equityName }}</div>
<div class="equity-item-desc">{{ item.equityDesc }}</div>
</div>
<div v-for="(item, index) in merchantData.goodsServiceList" :key="index">
<div class="equity-name">{{ item.goodsCategory }}</div>
<div class="equity-panel">
<div class="equity-item" v-for="(v, xindex) in item.equityGoodsGroupDescDtos" :key="xindex">
<div class="equity-item-icon"><img :src="v.equityIcon" /></div>
<div class="equity-item-name">{{ v.equityName }}</div>
<div class="equity-item-desc">{{ v.equityDesc }}</div>
</div>
</div>
<div v-for="(item, index) in merchantData.goodsServiceList" :key="index">
<div class="equity-name">{{ item.goodsCategory }}</div>
<div class="equity-panel">
<div class="equity-item" v-for="(v, xindex) in item.equityGoodsGroupDescDtos" :key="xindex">
<div class="equity-item-icon"><img :src="v.equityIcon" /></div>
<div class="equity-item-name">{{ v.equityName }}</div>
<div class="equity-item-desc">{{ v.equityDesc }}</div>
</div>
</div>
</div>
</div>
<!-- </el-scrollbar> -->
</glsx-dialog>
</div>
......@@ -140,7 +140,7 @@ export default {
// }, 1000)
}
return {
isReload:true,
isReload: true,
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -152,10 +152,10 @@ export default {
userInfo: '',
status: '',
merchantName: '',
memberType:''
memberType: ''
},
searchFormTable: {},
memberTypeLists:[
memberTypeLists: [
{
dictValue: '',
dictLabel: '全部'
......@@ -240,7 +240,7 @@ export default {
price: '',
marketPrice: '',
linkUrl: '',
tryAble:''
tryAble: ''
},
copyRuleForm: {},
rules: {
......@@ -263,7 +263,7 @@ export default {
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
this.merchantId = this.$globalState.session.merchantId
}
this.getCardContentFun()
},
......@@ -301,13 +301,15 @@ export default {
},
getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => {
this.ruleForm.equityId = res[0].id
if(!(res && res.length)){
return
}
this.ruleForm.equityId = res[0].id
this.ruleForm.cardName = res[0].cardClassName
this.ruleForm.price = res[0].price
this.ruleForm.marketPrice = res[0].marketPrice
this.ruleForm.linkUrl = res[0].url
this.ruleForm.tryAble=res[0].tryAble
this.ruleForm.tryAble = res[0].tryAble
})
},
openEditWrap() {
......@@ -330,7 +332,7 @@ export default {
params.cardClassName = this.ruleForm.cardName
params.price = this.ruleForm.price
params.marketPrice = this.ruleForm.marketPrice
params.tryAble=this.ruleForm.tryAble
params.tryAble = this.ruleForm.tryAble
updateCardContent(params).then(res => {
if (!res) {
return
......
......@@ -241,6 +241,7 @@ export default {
display: flex;
height: 34px;
.choseItem {
cursor: pointer;
width: 120px;
height: 34px;
line-height: 34px;
......
......@@ -171,7 +171,7 @@ export default {
this.$nextTick(()=>{
this.isReload=true
})
},
handleSearch() {
this.$refs.memberServiceRef.refreshTable()
......@@ -186,7 +186,10 @@ export default {
//创建服务
handleCreate() {
this.$router.push({
path: '/memberCenter/serviceAddUpdateLook'
path: '/memberCenter/serviceAddUpdateLook',
query:{
$title:encodeURI('创建服务')
}
})
},
//失效
......@@ -227,7 +230,8 @@ export default {
path: '/memberCenter/serviceAddUpdateLook',
query: {
couponId: row.id,
title: '编辑'
title: '编辑',
$title:encodeURI('编辑服务')
}
})
},
......@@ -236,7 +240,8 @@ export default {
path: '/memberCenter/serviceAddUpdateLook',
query: {
couponId: row.id,
title: '查看'
title: '查看',
$title:encodeURI('查看服务')
}
})
},
......
......@@ -120,7 +120,7 @@ export default {
this.getLoginCountFun()
},
methods: {
getLoginCountFun() {
getLoginCountFun() {
//loginType:5是查会员套餐浏览次数
getLoginCount({ loginType: 5 }).then(res => {
//获取是否第一次点击该页面
......@@ -130,11 +130,11 @@ export default {
closePanel() {
this.isFirstShow = false
},
handleReset() {
handleReset() {
this.searchForm = {
merchantId: 44184606
}
this.handleSearch()
this.handleSearch()
},
handleSearch() {
this.$refs.memberSetMealRef.refreshTable()
......@@ -148,7 +148,9 @@ export default {
//创建套餐
handleCreate() {
this.$router.push('/memberCenter/setmealAddUpdate')
this.$router.push({path:'/memberCenter/setmealAddUpdate',query:{
$title:encodeURI('创建套餐')
}})
},
handleClose() {
this.isDialogVisible = !this.isDialogVisible
......@@ -192,7 +194,7 @@ export default {
})
},
handleEdit(row) {
this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id } })
this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id,$title:encodeURI('编辑套餐') } })
},
// 查看示例效果
handleLook(row) {},
......
......@@ -5,7 +5,7 @@
<p class="edit-title">{{ title }}</p>
<div class="comment-container">
<div class="flex">
<img class="img-100" :src="commentInfo.customerImg" />
<img class="img-100" :src="commentInfo.goodsImage" />
<span class="good-name">{{commentInfo.goodsName}}</span>
</div>
<div class="flex m-t-24">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!