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