New file |
| | |
| | | import service from "../libs/axios"; |
| | | |
| | | export const detailById = (param) =>{ |
| | | return service({ |
| | | url:"/memberCustomerTag/detail/"+ param, |
| | | method:"GET", |
| | | }) |
| | | } |
| | |
| | | .ant-col-md-6 { |
| | | display: block; |
| | | box-sizing: border-box; |
| | | width: 25%; |
| | | width: 28%; |
| | | float: left; |
| | | } |
| | | .info-2{ |
| | |
| | | <span class="label">注册时间:</span> |
| | | <span class="info">{{memberInfo.createTime}}</span> |
| | | </p> |
| | | <p class="item"> |
| | | <span class="label">用户自定义标签:</span> |
| | | <span class="inf0o" v-for="(item,index) in memberTags" :key="index">{{item.tagName}}<span v-if="index < memberTags.length - 1">, </span></span> |
| | | </p> |
| | | </div> |
| | | </div> |
| | | </Card> |
| | |
| | | <script> |
| | | |
| | | import * as API_Member from "@/api/member.js"; |
| | | import { detailById } from "@/api/memberCustomerTag.js" |
| | | |
| | | import ossManage from "@/views/sys/oss-manage/ossManage"; |
| | | import multipleMap from "@/components/map/multiple-map"; |
| | | import * as RegExp from '@/libs/RegExp.js'; |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | memberTags:null, |
| | | id: "",//会员id |
| | | loading: true, // 表单加载状态 |
| | | memberInfo: {},//会员信息 |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | |
| | | init() { |
| | | //查询会员信息 |
| | | this.getMemberInfo(); |
| | | //查询会员的历史积分数据 |
| | | this.getPointData(); |
| | | this.getMemberTags(); |
| | | }, |
| | | getMemberTags(){ |
| | | detailById(this.id).then(res =>{ |
| | | if (res.code === 200){ |
| | | this.memberTags = res.data; |
| | | } |
| | | }); |
| | | }, |
| | | //会员信息tab改变事件 |
| | | memberInfoChange(v) { |