| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <extend name="public/base"/>
- <block name="css">
- <style>
- .van-nav-bar--fixed {z-index:100;}
- .van-nav-bar .van-icon,.van-nav-bar__text {color:white;}
- .van-step--horizontal .van-step__title {font-size:16px;}
- .van-step--horizontal .van-step__icon {font-size:16px;}
- .van-step__circle {width:10px;height:10px;}
- .lw-list .list-item{padding:5px 10px;background:white;}
- .lw-list .list-content {display:flex;align-items:center;}
- .lw-list .list-content .list-left {width:50px;height:50px;}
- .lw-list .list-content .list-left img {width:50px;height:50px;}
- .lw-list .list-content .list-right {margin-left:20px;}
- .lw-list .list-content .list-right .name {color:black;height:30px;line-height:30px;}
- .lw-list .list-content .list-right .name .mobile {font-size:14px;color:var(--blue);}
- .lw-list .list-content .list-right .desc {color:#666;font-size:14px;height:20px;line-height:20px;}
- .lw-list .list-tool {border-top:1px solid #f8f9fb;margin-top:5px;display:flex;justify-content:flex-end;align-items:center;padding-top:5px;}
- .lw-list .list-tool .tool-btn {margin-left:5px;font-size:14px;border:1px solid #ccc;padding:5px 10px;border-radius:20px;color:#555;}
- .lw-list .list-tool .tool-btn.delete {border-color:var(--pink);color:var(--pink);}
- .lw-list .list-tool .tool-btn.match {border-color:var(--blue);color:var(--blue);}
- </style>
- </block>
- <block name="body">
- <!--头部-->
- <van-nav-bar
- class="bg-pink"
- fixed="true"
- left-text="返回"
- @click-left="onBack"
- left-arrow
- >
- <template #title>
- <span style="color:white;">跟进记录</span>
- </template>
- </van-nav-bar>
- <div style="width:100%;height:46px;"></div>
- <div class="lw-list">
- <div class="list-item">
- <div class="list-content">
- <div class="list-left">
- <img :src="dealAvatar(info.avatar,info.sex)" alt="">
- </div>
- <div class="list-right">
- <div class="name">{{info.realname}} <span class="mobile" v-if="info.mobile">({{info.mobile}})</span></div>
- <div class="desc">{{info.sex_text}} • {{info.age}}岁 • {{dealHigh(info.high)}}</div>
- </div>
- </div>
- </div>
- </div>
- <van-field
- v-model="form.content"
- rows="3"
- autosize
- label="跟进内容"
- type="textarea"
- placeholder="请输入跟进内容"
- show-word-limit
- ></van-field>
- <div style="padding:16px;">
- <van-button block class="bg-pink" @click="onSubmit">提交</van-button>
- </div>
- <van-empty description="暂无跟进记录" v-if="list.length == 0"></van-empty>
- <van-steps direction="vertical" :active="0">
- <van-step v-for="item in list">
- <h3>{{item.content}}</h3>
- <p>{{item.create_time_text}}</p>
- </van-step>
- </van-steps>
- </block>
- <block name="script">
- <script>
- new Vue({
- el: '#app',
- data() {
- return {
- info:{$info},
- form:{
- user_id: {$id},
- content: '',
- },
- list: {$list},
- };
- },
- methods: {
- onBack() {
- location.href = "{:url('index/index')}";
- },
- onSubmit() {
- $.post("{:url('followPost')}", this.form, function (json) {
- if (json.code == 0) {
- vant.Toast(json.msg);
- return false;
- }
- location.reload();
- }, 'json');
- },
- dealAvatar(avatar,sex) {
- if (avatar == '') {
- return '__TMPL__/public/assets/images/matchmaker/avatar' + sex + '.png'
- } else {
- return avatar;
- }
- },
- dealHigh(high) {
- return high ? high + 'CM' : '保密';
- },
- },
- computed: {
- }
- });
- </script>
- </block>
|