Commit eb36fbfe by member

修复会员成就的修改积分的bug

parent a17d27a9
No preview for this file type
......@@ -42,7 +42,7 @@ let fomatFloat = val => {
}
let defaultImg = val => {
if(!val) {
return './static/img/default.jpg'
return './static/img/default.png'
}
}
export { formatTime,fomatNumber,fomatText,formatYMD,fomatFloat,defaultImg }
......@@ -27,7 +27,9 @@
props: {
navpath: {
type: Array,
default: []
default() {
return []
}
}
},
methods: {
......
<template>
<div class="navbarwrap boxshow">
<el-breadcrumb separator="/">
<el-breadcrumb-item v-for="(item,index) in navpath" :to="{ path: item.path}" :key="index">{{ item.name }}</el-breadcrumb-item>
</el-breadcrumb>
<h1 class="navtitle">{{ navpath[navpath.length - 1].name }}</h1>
<div class="navbar">
<a class="navbar-item" :class="curitem === item.tab ? 'curnavbar' : ''" v-for="(item,index) in navtab" :key="index" @click="changeTab(item)">{{ item.name }}</a>
</div>
</div>
</template>
<script>
export default {
name: "navpath",
data() {
return {
curitem: 1
}
},
props: {
activeitem: {
type: Number,
default: 1
},
navpath: {
type: Array,
default: []
},
navtab: {
type: Array,
default: []
}
},
methods: {
changeTab(item) {
this.curitem = item.tab;
this.$emit('getCurTab',item.tab);
}
},
watch: {
activeitem(newVal,oldVal) {
this.curitem = newVal;
}
}
}
</script>
<style lang="stylus" scoped>
@import "../../../static/css/variables.styl";
.boxshow
border-bottom: 1px solid #e4e7ed;
box-shadow: 5px -1px 5px #dfdfdf;
.navbarwrap
padding: 25px 25px 0 25px;
background-color: #fff;
border-radius: 2px;
.navtitle{
margin: 30px 0 10px 0;
font-size: 20px;
font-weight: 700;
color: #303133;
}
.navbar
margin-top: 10px;
height: 40px;
line-height: 40px;
&-item
display: inline-block;
margin-right: 38px;
font-size: 14px;
color: #303133;
cursor: pointer;
&:last-child
margin-right: 0;
.curnavbar
position: relative;
color: $main-color;
&:after
position: absolute;
content: '';
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: $main-color;
</style>
<template>
<div class="achievementwrap">
<!-- <div class="achievementwrap-left" :style="{height: (bodyHeight - 64) + 'px'}">
<vue-gic-aside-menu :projectName="projectName" :leftModulesName="leftModulesName" :collapseFlag="$store.state.show"></vue-gic-aside-menu>
</div> -->
<div class="achievementwrap-right">
<div :style="{height: (bodyHeight - 190) + 'px'}">
<!-- <router-view></router-view> -->
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
bodyHeight: document.body.clientHeight || document.documentElement.clientHeight,
defaultActive: this.$route.path,
collapseFlag: false,
leftModulesName: '小程序配置',
projectName: 'member'
}
},
mounted() {
window.onresize = () => {
return (() => {
this.bodyHeight = document.body.clientHeight || document.documentElement.clientHeight;
})()
}
}
}
</script>
<style lang="stylus" scoped>
.left-aside-contain {
.el-submenu__title:hover {
background-color: #020b21;
}
}
// 使用页如果有加 scoped ,需要到公共样式中添加
.el-menu.el-menu--popup {
background: #020b21;
border-radius: 4px;
}
.achievementwrap{
display: flex;
min-width: 1200px;
overflow hidden
&-left{
flex: 0 0 200px;
width: 200px;
/*height: 100%;*/
/*overflow-y: auto;*/
background-color: #020b21;
}
&-right{
flex: 1;
overflow: auto;
}
}
.rewardname
margin-left 24px
line-height 0
.footer-box
background-color #f5f7fa
</style>
......@@ -95,7 +95,7 @@
</template>
<script>
import nav from '../../common/navbar/navbartwo.vue'
import nav from '../../common/navbar/navbar.vue'
import { doFetch } from "../../components/axios/api";
import url from '../../components/axios/url'
import {checkFalse, checkStatus, checkSuccess} from "../../../static/js/checkStatus";
......@@ -120,16 +120,6 @@
path: ''
}
],
// navtab: [
// {
// name: '消费类',
// tab: 1
// },
// {
// name: '互动类',
// tab: 2
// }
// ],
activeitem: 1,
tableData: [],
isEdit: null,
......@@ -227,6 +217,7 @@
},
selectCard(val) {
this.rewardForm.rewardReferId = val.coupCardId;
this.rewardForm.rewardName = (val && val.cardName) ? val.cardName : '';
this.rewardPrize = '重新选择';
this.showCardDialog = false;
......
......@@ -85,13 +85,13 @@
</div>
</el-dialog>
<!--编辑奖励-end-->
<vue-gic-card :projectName="projectName" :cardLimit="cardLimit" :cardType="cardType" :showCardDialog="showCardDialog"
<vue-gic-card :projectName="projectName" :cardLimit="cardLimit" :cardType="cardType" :showCardDialog="showCardDialog"
@selectCard="selectCard"></vue-gic-card>
</div>
</template>
<script>
import nav from '../../common/navbar/navbartwo.vue'
import nav from '../../common/navbar/navbar.vue'
import { doFetch } from "../../components/axios/api";
import url from '../../components/axios/url'
import {checkFalse, checkStatus, checkSuccess} from "../../../static/js/checkStatus";
......@@ -114,16 +114,6 @@
},
{ name: '消费类', path: '' }
],
// navtab: [
// {
// name: '消费类',
// tab: 1
// },
// {
// name: '互动类',
// tab: 2
// }
// ],
activeitem: 1,
tableData: [],
isEdit: null,
......@@ -219,7 +209,7 @@
return false;
}
}
let params = '';
let params = null;
if(this.rewardForm.achievementRewardType === 1) {
params = {
achievementEnterpriseRankId: this.rewardForm.achievementEnterpriseRankId,
......@@ -238,7 +228,7 @@
rewardReferId: this.rewardForm.rewardReferId
}
}
doFetch(url.achievementUpdate,params).then(res => {
doFetch(url.achievementUpdate, params).then(res => {
if(res.data.errorCode === 0) {
checkSuccess();
this.getAchievementList();
......@@ -256,6 +246,8 @@
this.rewardForm.rewardName = (val && val.cardName) ? val.cardName : '';
this.rewardPrize = '重新选择';
this.showCardDialog = false;
// 拿到卡券ID
this.rewardForm.rewardReferId = val.coupCardId;
},
selectRewardType(type) {
if(type === 1) {
......@@ -271,8 +263,8 @@
chooseCard() {
this.showCardDialog = true;
},
// rewardForm.rewardReferId
eidtRewardValue(row) {
this.rewardForm.achievementEnterpriseRankId = null;
this.rewardForm.rewardValue = null;
this.rewardForm.achievementRewardType = null;
this.dialogRewardVisible = true;
......@@ -281,6 +273,7 @@
this.rewardForm.rewardName = row.rewardName;
this.rewardForm.achievementRewardType = row.achievementRewardType;
this.rewardForm.rewardReferId = row.rewardReferId;
console.log(this.rewardForm.rewardReferId);
if(this.rewardForm.achievementRewardType === 1) {
this.rewardForm.rewardName = '';
}
......@@ -326,13 +319,18 @@
doFetch(url.achievementList).then(res => {
if(res.data.errorCode === 0) {
this.isEdit = res.data.result.isEdit;
// 互动类数据
let tempArr = res.data.result.achievememntList;
// achievementType 1 是消费数据 2 互动消费数据
this.achievememntTypeOneList = tempArr.filter(item => {
return item.achievementType == 1;
});
// 互动类
this.achievememntTypeTwoList = tempArr.filter(item => {
return item.achievementType == 2;
});
// 组装后台的数据 给消费类数据做展示使用
this.achievememntTypeList = this.achievememntTypeOneList.map(ele => ({
...ele,
isOpen: !!ele.isOpen ? true : false,
......
......@@ -13,7 +13,7 @@
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer" @click="linkDetail(scope.row.memberId)">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'" class="channelicon fr"
......@@ -37,7 +37,7 @@
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></span>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></span>
</el-popover>
<span>{{ scope.row.memberName | formatMember }}</span>
</div>
......
......@@ -12,6 +12,8 @@ export default {
name: "wechatmembers",
data() {
return {
load: false,
phoneNameNick: '',
isdot: false,
bodyHeight: document.body.clientHeight || document.documentElement.clientHeight,
storeId: this.$route.query.storeId || '',
......@@ -37,7 +39,6 @@ export default {
memberFields: [],
sortColName: '',
sortType: 'desc',
phoneNameCard: '',
fieldsStr: [],
dialogFieldVisible: false,
checkedFields: [],
......@@ -408,7 +409,7 @@ export default {
listSign: 'MemberProcessed',
listSignId: this.storeId,
sortField: '',
phoneNameNick: this.phoneNameCard
phoneNameNick: this.phoneNameNick
}).then(res => {
this.$refs[formName].resetFields();
if(res.data.errorCode === 0) {
......@@ -515,7 +516,7 @@ export default {
listSign: 'MemberProcessed',
listSignId: this.storeId,
sortField: '',
phoneNameNick: this.phoneNameCard
phoneNameNick: this.phoneNameNick
// memberSearchParamStr: this.selectAll == true ? '-1' : '', 会员列表的接口参数
// phoneNameCard: this.phoneNameCard, 会员列表的参数
// pageName: 'wxMember' 会员列表的参数
......@@ -847,9 +848,12 @@ export default {
storeId: this.storeId,
listSign: 'MemberProcessed',
pageSize: this.page.pageSize,
currentPage: this.page.currentPage
currentPage: this.page.currentPage,
phoneNameNick: this.phoneNameNick
}).then(res => {
this.load = true;
if(res.data.errorCode === 0) {
this.load = false;
if (res.data.result.page.result) {
this.memberData = res.data.result.page.result.map(ele => ({
...ele,
......@@ -868,6 +872,10 @@ export default {
}));
this.page.currentPage = res.data.result.page.currentPage;
this.page.totalCount = res.data.result.page.totalCount;
} else {
this.memberData = [];
this.page.totalCount = 0;
this.page.currentPage = 0;
}
}else {
checkFalse(res.data.message);
......
......@@ -14,7 +14,7 @@
会员共{{page.totalCount}}
<!-- <Navbar :memberType="1"></Navbar> -->
<el-input
v-model="phoneNameCard"
v-model="phoneNameNick"
placeholder="输入手机号码"
@keyup.native.enter="handleSearch"
style="width: 249px;"
......@@ -50,7 +50,7 @@
暂无批量处理数据
</div>
<el-badge slot="reference" :is-dot="isdot" class="item">
<el-button type="primary" icon="el-icon-time" style="width: 40px; line-height: 40px; padding: 0px;"></el-button>
<el-button type="primary" icon="el-icon-time" style="width: 32px; line-height: 32px; padding: 0px;"></el-button>
</el-badge>
</el-popover>
......@@ -58,7 +58,7 @@
</div>
<div class="tablecontent">
<el-table :data="memberData" tooltip-effect="dark" ref="multipleTable" @selection-change="handleSelectionChange" @sort-change='sortChange'>
<el-table :data="memberData" v-loading="load" tooltip-effect="dark" ref="multipleTable" @selection-change="handleSelectionChange" @sort-change='sortChange'>
<el-table-column type="selection" width="50"> </el-table-column>
<el-table-column label="基本信息" prop="name" >
<template slot-scope="scope">
......@@ -66,7 +66,7 @@
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer" @click="linkDetail(scope.row.memberId)">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'" class="channelicon fr"
......@@ -92,7 +92,7 @@
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></span>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></span>
</el-popover>
<span>{{ scope.row.memberName | formatMember }}</span>
</div>
......
......@@ -132,7 +132,7 @@ export default {
},
filters: {
defaultImg: val => {
if(!val) return './static/img/default.jpg';
if(!val) return './static/img/default.png';
},
formatColorSize: val => {
let temp = '';
......
......@@ -143,7 +143,7 @@
<el-table-column prop="productName" label="商品信息" width="200px">
<template slot-scope="scope">
<div class="record-info">
<div class="record-infoimg"><img width="60" height="60" src="/static/img/default.jpg" alt=""></div>
<div class="record-infoimg"><img width="60" height="60" src="/static/img/default.png" alt=""></div>
<div class="record-infocontent">
<div>{{ scope.row.productName }}</div>
<div>{{ scope.row.productCode }}</div>
......
......@@ -48,7 +48,7 @@
<el-option key="integral" label="调整积分" value="integral"></el-option>
<el-option key="grade" label="调整会员等级" value="grade"></el-option>
</el-select>
<el-button type="primary" icon="el-icon-setting" @click="handleMemberFields" style="width: 40px; line-height: 40px; padding: 0px; margin: 0 5px;"></el-button>
<el-button type="primary" icon="el-icon-setting" @click="handleMemberFields" style="width: 32px; line-height: 32px; padding: 0px; margin: 0 5px;"></el-button>
<el-popover
placement="top-start"
:width="popWidth"
......@@ -68,24 +68,24 @@
暂无批量处理数据
</div>
<el-badge slot="reference" :is-dot="isdot" class="item">
<el-button type="primary" icon="el-icon-time" style="width: 40px; line-height: 40px; padding: 0px;"></el-button>
<el-button type="primary" icon="el-icon-time" style="width: 32px; line-height: 32px; padding: 0px;"></el-button>
</el-badge>
</el-popover>
</div>
</div>
<div class="tablecontent">
<el-table :data="memberData" v-loading="load" tooltip-effect="dark" ref="multipleTable" @selection-change="handleSelectionChange" @sort-change='sortChange'>
<el-table-column type="selection" width="50"> </el-table-column>
<el-table-column type="selection" width="50" fixed> </el-table-column>
<div v-for="(item, index) in fieldsStr" :key="index">
<el-table-column :width="item == 'name' ? '150' : ''" v-if="item == 'name' || item == 'grade' || item == 'status' || item == 'channel' || item == 'frozenStatus'" :prop="item" :label="item | formatField">
<el-table-column :fixed="item === 'name'" :width="item == 'name' ? '150' : ''" v-if="item == 'name' || item == 'grade' || item == 'status' || item == 'channel' || item == 'frozenStatus'" :prop="item" :label="item | formatField">
<template slot-scope="scope">
<div v-if="item == 'name'" class="tablecontent-cell" @click="linkDetail(scope.row.memberId)">
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img">
<img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt="">
<img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt="">
</div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
......@@ -111,7 +111,7 @@
</div>
</div>
<span slot="reference">
<img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt="">
<img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt="">
</span>
</el-popover>
<span>{{ scope.row.memberName | formatMember }}</span>
......@@ -208,7 +208,7 @@
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img">
<img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt="">
<img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt="">
</div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
......@@ -234,7 +234,7 @@
</div>
</div>
<span slot="reference">
<img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt="">
<img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt="">
</span>
</el-popover>
<span>{{ scope.row.memberName | formatMember }}</span>
......
......@@ -80,7 +80,7 @@
<template slot-scope="scope">
<el-popover placement="top-start" width="400" height="180" trigger="hover">
<div class="record-clerkpopover">
<div class="record-popoverimg"><img width="150" height="150" :src="scope.row.clerkImageUrl ? scope.row.clerkImageUrl : './static/img/default.jpg'" alt=""></div>
<div class="record-popoverimg"><img width="150" height="150" :src="scope.row.clerkImageUrl ? scope.row.clerkImageUrl : './static/img/default.png'" alt=""></div>
<div class="record-popovercontent">
<p>{{ scope.row.clerkName }}</p>
<p><span class="record-infodetail">员工代码</span><span>{{ scope.row.clerkCode }}</span></p>
......@@ -90,7 +90,7 @@
</div>
</div>
<div slot="reference" class="record-clerk">
<span class="record-clerkimg"><img style="vertical-align: middle" width="60" height="60" :src="scope.row.clerkImageUrl ? scope.row.clerkImageUrl : './static/img/default.jpg'" alt=""></span>
<span class="record-clerkimg"><img style="vertical-align: middle" width="60" height="60" :src="scope.row.clerkImageUrl ? scope.row.clerkImageUrl : './static/img/default.png'" alt=""></span>
<span class="record-clerkname">{{ scope.row.clerkName }}<br>{{ scope.row.clerkCode }}</span>
</div>
</el-popover>
......@@ -147,7 +147,7 @@
<el-table-column prop="productName" label="商品信息" width="200px">
<template slot-scope="scope">
<div class="record-info">
<div class="record-infoimg"><img width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="record-infoimg"><img width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="record-infocontent">
<div>{{ scope.row.productName }}</div>
<div>{{ scope.row.productCode }}</div>
......
......@@ -86,7 +86,7 @@
</div>
</div>
<el-dialog
title="选择门店"
title="选择订单"
:visible.sync="checkVisible"
width="40%"
:close-on-click-modal="false">
......@@ -224,6 +224,7 @@
checkStatus(err);
})
},
// 核销操作
handleCheckDestory(opt) {
this.cardLogId = opt.cardLogId;
doFetch(url.checkCard, {
......@@ -330,6 +331,10 @@
this.orderId = opt.orderId;
},
confirmBtn() {
if (!this.cardLogId) {
checkFalse('订单ID不存在');
return;
}
doFetch('/api-member/member-card-write-off', {
memberId: this.memberId,
cardLogId: this.cardLogId,
......
......@@ -25,7 +25,10 @@
<span @click="selectAllmultipleList" class="multiple-all pointer" v-else>取消勾选</span>
</div>
<div class="right-btn">
<router-link to="/frozenList/frozenMember" class="frozen-mem">冻结会员</router-link>
<el-button type="primary" @click="unFrozen">
<router-link to="/frozenList/frozenMember" style="color: #fff">冻结会员</router-link>
</el-button>
<el-button type="primary" @click="unFrozen">批量解冻</el-button>
</div>
</div>
......@@ -52,7 +55,7 @@
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'" class="channelicon fr"
......@@ -76,7 +79,7 @@
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></span>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></span>
</el-popover>
<!-- <img :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : 'https://gss0.bdstatic.com/-4o3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike80%2C5%2C5%2C80%2C26/sign=d36dbe5170cf3bc7fc0dc5beb069d1c4/10dfa9ec8a136327d6b4806f918fa0ec08fac715.jpg'" class="basic-img"> -->
{{scope.row.memberName | formatMember}}
......@@ -485,10 +488,10 @@ export default {
margin-right 5px
font-size: 14px
color: #fff
background-color: #409EFF
border-color: #409EFF
height: 40px
line-height: 40px
background-color: #1890ff
border-color: #1890ff
height: 34px
line-height: 34px
border-radius: 4px
.choose-title
display: inline-block
......
......@@ -53,7 +53,7 @@
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '未关注微信服务号' : singleInfo.status == 1 ? '已关注微信服务号' : ''" class="channelicon fr"
......@@ -77,7 +77,7 @@
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></span>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></span>
</el-popover>
{{scope.row.memberName}}
</div>
......@@ -124,7 +124,7 @@
v-for="(item, index) in middleList"
:key="index">
<div class="basic-info">
<img :src="item.thirdImgUrl ? item.thirdImgUrl : './static/img/default.jpg'" class="list-img">
<img :src="item.thirdImgUrl ? item.thirdImgUrl : './static/img/default.png'" class="list-img">
<span class="txt">{{item.memberName}}</span>
</div>
<i class="el-icon-circle-close-outline icon-close" @click="removeItem(index)"></i>
......@@ -144,7 +144,10 @@
<p class="remark-txt">备注</p>
<gic-input v-model="remark" :max="20"></gic-input>
<div class="operator-btn">
<router-link to="/frozenList" class="back-link">返回</router-link>
<el-button>
<router-link to="/frozenList">返回</router-link>
</el-button>
<el-button class="frozen-all" :disabled="reasonbtn" @click="frozenAll">冻结选中会员</el-button>
</div>
</div>
......
......@@ -263,8 +263,8 @@
if(this.memberId) {
this.getIntegralDataPage();
this.getIntegralOperateType();
this.$store.commit('mutations-slide', false);
}
this.$store.commit('mutations-slide', false);
},
components: {
'v-nav': nav,
......
......@@ -47,11 +47,12 @@ export default {
if (res.data.result.appStatus == 1) {
this.value = true;
}
this.$message({
message: '设置成功!',
type: 'success'
});
// 主动设置
if (types == 2) {
this.$message({
message: '设置成功!',
type: 'success'
});
setTimeout(() => {
this.$router.push({path: '/wechatmembers'});
}, 1000);
......@@ -66,6 +67,7 @@ export default {
},
created() {
this.saveSet(1);
this.$store.commit('mutations-slide', true);
}
};
</script>
......
......@@ -13,7 +13,7 @@
<p style="color: #fff;">更新头像</p>
</div>
</div>
<img width="202px" height="202px" v-if="memberInfo.thirdImgUrl" class="wechat-portraitimg" :src="memberInfo.thirdImgUrl ? memberInfo.thirdImgUrl : './static/img/default.jpg'" alt="">
<img width="202px" height="202px" v-if="memberInfo.thirdImgUrl" class="wechat-portraitimg" :src="memberInfo.thirdImgUrl ? memberInfo.thirdImgUrl : './static/img/default.png'" alt="">
</div>
</div>
<div class="wechat-baseitems">
......
......@@ -50,7 +50,7 @@
<el-option key="mainstore" label="修改主门店" value="mainstore"></el-option>
<el-option key="store" label="修改协管门店" value="store"></el-option>
</el-select>
<el-button type="primary" icon="el-icon-setting" @click="handleMemberFields" style="width: 40px; line-height: 40px; padding: 0px; margin: 0 5px;"></el-button>
<el-button type="primary" icon="el-icon-setting" @click="handleMemberFields" style="width: 32px; line-height: 32px; padding: 0px; margin: 0 5px;"></el-button>
<el-popover
......@@ -73,7 +73,7 @@
暂无批量处理数据
</div>
<el-badge slot="reference" :is-dot="isdot" class="item">
<el-button type="primary" icon="el-icon-time" style="width: 40px; line-height: 40px; padding: 0px;"></el-button>
<el-button type="primary" icon="el-icon-time" style="width: 32px; line-height: 32px; padding: 0px;"></el-button>
</el-badge>
</el-popover>
......@@ -84,16 +84,16 @@
<div class="tablecontent">
<el-table v-loading="load" :data="memberData" tooltip-effect="dark" ref="multipleTable" @selection-change="handleSelectionChange" @sort-change='sortChange'>
<el-table-column type="selection" width="50"> </el-table-column>
<el-table-column type="selection" width="50" fixed> </el-table-column>
<div v-for="(item, index) in fieldsStr" :key="index">
<el-table-column v-if="item == 'name' || item == 'grade' || item == 'status' || item == 'channel' || item == 'createCardStoreName' || item == 'cardNo' || item == 'forzenStatus' || item == 'mainStoreName' " :prop="item" :label="item | formatField" width="160">
<el-table-column :fixed="item === 'name'" v-if="item == 'name' || item == 'grade' || item == 'status' || item == 'channel' || item == 'createCardStoreName' || item == 'cardNo' || item == 'forzenStatus' || item == 'mainStoreName' " :prop="item" :label="item | formatField" width="160">
<template slot-scope="scope">
<div v-if="item == 'name'" @click="linkDetail(scope.row.memberId)" style="cursor: pointer;" class="tablecontent-cell">
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer" @click="linkDetail(scope.row.memberId)">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'" class="channelicon fr"
......@@ -119,7 +119,7 @@
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></span>
<span slot="reference"><img class="tablecontent-cellimg mr6" width="60" height="60" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></span>
</el-popover>
<span>{{ scope.row.memberName | formatMember }}</span>
</div>
......@@ -219,7 +219,7 @@
<el-popover placement="top-start" width="400" height="180" trigger="hover" @show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.jpg'" alt=""></div>
<div class="singelinfo-img"><img width="100" height="100" :src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'" alt=""></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span :title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'" class="channelicon fr"
......
......@@ -321,6 +321,7 @@ p {
.groupmember
&-title
color: $gropmebercolor
margin-bottom 5px
.tablecontent
position relative
&-cell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment