Commit 1316be6f by xinla

Merge remote-tracking branch 'origin/front_end_dev_1.0+' into front_end_dev

2 parents 5ad89783 307933fc
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
# 塬微管理系统/生产环境api # 塬微管理系统/生产环境api
VUE_APP_BASE_API = 'http://106.13.201.219' VUE_APP_BASE_API = 'http://106.13.201.219'
# 生产环境IP # 生产环境IP
VUE_APP_BASE_URL = 'http://106.13.201.219' VUE_APP_BASE_URL = 'http://106.13.201.219'
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
], //必填 ], //必填
success: (res) => { success: (res) => {
// 回调 // 回调
this.$toast('agentId成功:') // this.$toast('agentId成功:')
this.$store.state.agentConfigStatus = true this.$store.state.agentConfigStatus = true
}, },
fail: (res) => { fail: (res) => {
......
...@@ -38,12 +38,12 @@ const routes = [ ...@@ -38,12 +38,12 @@ const routes = [
}, },
// 用户画像详情 // 用户画像详情
{ {
path: '/detail', path: '/customerDetail',
name: 'detail', name: 'customerDetail',
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/portrait/detail.vue'), component: () => import(/* webpackChunkName: "about" */ '../views/portrait/customerDetail.vue'),
hidden: true, hidden: true,
meta: { meta: {
title: '', title: '',
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<div> <div>
<!-- 头部 --> <!-- 头部 -->
<div class="header"> <div class="header">
<span class="title"> 社群关系 </span> <span class="title"> 社群关系 </span>
<van-icon <van-icon
name="cross" name="cross"
...@@ -97,9 +96,13 @@ export default { ...@@ -97,9 +96,13 @@ export default {
commonGroup: [], // 共同的群聊 commonGroup: [], // 共同的群聊
// externalUserid: "wmiGuBCgAAIH-T9ekaE-Q52N2lKWeInw", // externalUserid: "wmiGuBCgAAIH-T9ekaE-Q52N2lKWeInw",
externalUserid: '', externalUserid: '',
userid: this.$store.state.userId, // 员工Id
} }
}, },
computed: {
userId() {
return this.$store.state.userId // 员工Id
},
},
created() { created() {
this.externalUserid = this.$route.query.customerId this.externalUserid = this.$route.query.customerId
......
...@@ -18,11 +18,25 @@ ...@@ -18,11 +18,25 @@
<div class="details"> <div class="details">
<div class="detail"> <div class="detail">
<div class="left"> <div class="left">
<div class="img"><img src="" alt="" /></div> <div class="img"><img :src="form.avatar" alt="" /></div>
<div class="right"> <div class="right">
<div> <div>
<span>张三 &nbsp; &nbsp;</span <span
><van-icon name="manager" color="#9c9c9c" /> >{{
form.remark
? form.remark
: form.name + '_' + form.remarkCorpName
}}
&nbsp; &nbsp;</span
><span
class="icon iconfont icon-man"
v-if="form.gender == 1"
></span>
<span
class="icon iconfont icon-xingbie"
v-else-if="form.gender == 2"
></span>
<van-icon name="manager" color="#9c9c9c" v-else />
</div> </div>
<div class="c9"> <div class="c9">
<span>昵称:</span><span>{{ form.name }}</span> <span>昵称:</span><span>{{ form.name }}</span>
...@@ -51,7 +65,16 @@ ...@@ -51,7 +65,16 @@
label="生日" label="生日"
placeholder="生日" placeholder="生日"
input-align="right" input-align="right"
@click="!flage ? (show = true) : ''"
/> />
<van-popup v-model="show"> 内容</van-popup>
<!-- <van-datetime-picker
v-model="currentDate"
type="date"
title="选择年月日"
:min-date="minDate"
:max-date="maxDate"
/> -->
<!-- -------------------------- --> <!-- -------------------------- -->
<van-field <van-field
v-model="form.email" v-model="form.email"
...@@ -107,11 +130,15 @@ export default { ...@@ -107,11 +130,15 @@ export default {
data() { data() {
return { return {
flage: true, flage: true,
// 选择生日
show: false,
minDate: new Date(1940, 0, 1),
maxDate: new Date(),
// 接口开始 // 接口开始
// 表单数据 // 表单数据
form: { form: {
externalUserid: '', // 客户Id externalUserid: '', // 客户Id
userId: this.$store.state.userId, // 员工Id userId: '', // 员工Id
name: '', // 昵称 name: '', // 昵称
remarkMobiles: '', // 手机号 remarkMobiles: '', // 手机号
birthday: '', // 客户生日 birthday: '', // 客户生日
...@@ -127,13 +154,16 @@ export default { ...@@ -127,13 +154,16 @@ export default {
}, },
computed: { computed: {
// 获取客户年龄 // 获取客户年龄
userId() {
return this.$store.state.userId // 员工Id
},
}, },
created() { created() {
this.form.externalUserid = this.$route.query.customerId this.form.externalUserid = this.$route.query.customerId
// 获取客户详细信息 // 获取客户详细信息
getCustomerInfo({ getCustomerInfo({
externalUserid: this.form.externalUserid, externalUserid: this.form.externalUserid,
userId: this.form.userId, userId: this.userId,
}) })
.then(({ data }) => { .then(({ data }) => {
console.log(data) console.log(data)
...@@ -145,6 +175,7 @@ export default { ...@@ -145,6 +175,7 @@ export default {
}) })
}, },
methods: { methods: {
// 选择生日
edit() { edit() {
this.flage = !this.flage this.flage = !this.flage
}, },
...@@ -165,10 +196,17 @@ export default { ...@@ -165,10 +196,17 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.iconfont {
color: #2c8cf0;
}
.icon-xingbie {
color: pink;
}
.header { .header {
margin: 20px 10px 10px; margin: 20px 10px 10px;
vertical-align: center; vertical-align: center;
// text-align: center; // text-align: center;
} }
.van-icon-cross { .van-icon-cross {
position: absolute; position: absolute;
......
...@@ -15,19 +15,32 @@ ...@@ -15,19 +15,32 @@
<div class="details"> <div class="details">
<div class="detail"> <div class="detail">
<div class="left"> <div class="left">
<div class="img"><img src="" alt="" /></div> <div class="img"><img :src="form.avatar" alt="" /></div>
<div class="right"> <div class="right">
<div> <div>
<span>张三 &nbsp; &nbsp;</span <span
><span class="icon iconfont icon-man"></span> >{{
<span class="icon iconfont icon-xingbie"></span> form.remark
? form.remark
: form.name + '_' + form.remarkCorpName
}}
&nbsp; &nbsp;</span
><span
class="icon iconfont icon-man"
v-if="form.gender == 1"
></span>
<span
class="icon iconfont icon-xingbie"
v-else-if="form.gender == 2"
></span>
<van-icon name="manager" color="#9c9c9c" v-else />
</div> </div>
<div class="c9"> <div class="c9">
<span>昵称:</span><span>{{ form.name }}</span> <span>昵称:</span><span>{{ form.name }}</span>
</div> </div>
</div> </div>
</div> </div>
<div class="data" @click="goRoute('/detail')">详细资料></div> <div class="data" @click="goRoute('/customerDetail')">详细资料></div>
</div> </div>
<div class="detail"> <div class="detail">
<div class="c9">手机号</div> <div class="c9">手机号</div>
...@@ -388,7 +401,7 @@ export default { ...@@ -388,7 +401,7 @@ export default {
// externalUserid: "wm2H-nDQAACG5x4XjsM1OoW8UVfpbn3A", // 客户Id // externalUserid: "wm2H-nDQAACG5x4XjsM1OoW8UVfpbn3A", // 客户Id
// externalUserid: "wmiGuBCgAAgeijfvvpJ62cBfwrB-c4kw", // externalUserid: "wmiGuBCgAAgeijfvvpJ62cBfwrB-c4kw",
externalUserid: '', externalUserid: '',
userid: this.$store.state.userId, // 员工Id // userId: this.$store.state.userId, // 员工Id
form: { form: {
name: '', // 昵称 name: '', // 昵称
remarkMobiles: '', // 手机号 remarkMobiles: '', // 手机号
...@@ -437,6 +450,9 @@ export default { ...@@ -437,6 +450,9 @@ export default {
}, },
}, },
computed: { computed: {
userId() {
return this.$store.state.userId
},
// activeLabel : () => { // activeLabel : () => {
// this.addTag.forEach((value) => { // this.addTag.forEach((value) => {
// value.name == this.name // value.name == this.name
...@@ -725,9 +741,10 @@ export default { ...@@ -725,9 +741,10 @@ export default {
}, },
getCustomerInfo() { getCustomerInfo() {
this.$toast('userId:' + this.userId)
getCustomerInfo({ getCustomerInfo({
externalUserid: this.externalUserid, externalUserid: this.externalUserid,
userid: this.userid, userId: this.userId,
}) })
.then(({ data }) => { .then(({ data }) => {
// console.log(data); // console.log(data);
...@@ -932,4 +949,7 @@ export default { ...@@ -932,4 +949,7 @@ export default {
.iconfont { .iconfont {
color: #2c8cf0; color: #2c8cf0;
} }
.icon-xingbie {
color: pink;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!