فهرست منبع

客户跟进记录详情

zhaoxiaohai 2 سال پیش
والد
کامیت
353bd1b2b2

+ 47 - 0
packageA/setclient/modules/trace/detail/index.js

@@ -0,0 +1,47 @@
+Page({
+    data: {
+        ownertable: null,
+        ownerid: null,
+        detail: {},
+        tabbarList: [{
+            icon: "icon-bianji",
+            label: "编辑"
+        }, {
+            icon: "icon-shanchu",
+            label: "作废"
+        }]
+    },
+    onLoad(options) {
+        this.setData({
+            ownertable: options.ownertable,
+            ownerid: options.ownerid,
+            detail: {
+                ...wx.getStorageSync('temporary')
+            }
+        })
+        wx.removeStorage("temporary");
+    },
+    tabbarOnClick({
+        detail
+    }) {
+        const pages = getCurrentPages(),
+            item = this.data.detail;
+        switch (detail.label) {
+            case "编辑":
+                wx.navigateTo({
+                    url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&content=${item.content}&type=${item.type}&sys_datafollowupid=${item.sys_datafollowupid}`
+                });
+                break;
+            case "作废":
+                wx.navigateTo({
+                    url: `/packageA/setclient/modules/trace/list/delete?item=${JSON.stringify({
+                        "sys_datafollowupid": item.sys_datafollowupid,
+                        "ownertable": this.data.ownertable,
+                        "ownerid": this.data.ownerid
+                    })}`,
+                })
+                break;
+        }
+    },
+    onShareAppMessage() {}
+})

+ 4 - 0
packageA/setclient/modules/trace/detail/index.json

@@ -0,0 +1,4 @@
+{
+    "usingComponents": {},
+    "navigationBarTitleText": "跟进动态详情"
+}

+ 97 - 0
packageA/setclient/modules/trace/detail/index.scss

@@ -0,0 +1,97 @@
+.box {
+    width: 100vw;
+    background-color: #ffffff;
+    box-sizing: border-box;
+    padding: 20rpx 0 20rpx 30rpx;
+
+    .head {
+        display: flex;
+
+        .portrait {
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            width: 80rpx;
+            height: 80rpx;
+            background: #3874F6;
+            border-radius: 50%;
+            font-size: 28rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #FFFFFF;
+            margin-right: 20rpx;
+            flex-shrink: 0;
+        }
+
+        .content {
+            .title {
+                font-size: 30rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                color: #333333;
+
+                text {
+                    font-size: 24rpx;
+                    font-family: PingFang SC-Regular, PingFang SC;
+                    color: #999999;
+                    margin-left: 20rpx;
+                }
+            }
+
+            .time {
+                font-size: 24rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                color: #999999;
+                margin-top: 8rpx;
+            }
+        }
+
+    }
+
+    .main {
+        margin-top: 34rpx;
+        padding-bottom: 20rpx;
+        border-bottom: 1px solid #ddd;
+        padding-right: 30rpx;
+        box-sizing: border-box;
+
+        .title {
+            font-size: 24rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #999999;
+        }
+
+        .content {
+            font-size: 28rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #666666;
+            margin-top: 20rpx;
+            word-break: break-all;
+        }
+    }
+
+    .bottom {
+        display: flex;
+
+        >view {
+            flex: 1;
+
+            .label {
+                font-size: 24rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                color: #999999;
+                margin-top: 20rpx;
+            }
+
+            .con {
+                font-size: 28rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                color: #333333;
+                margin-top: 10rpx;
+
+                .iconfont {
+                    margin-left: 20rpx;
+                    color: #FA8C16;
+                }
+            }
+        }
+    }
+}

+ 29 - 0
packageA/setclient/modules/trace/detail/index.wxml

@@ -0,0 +1,29 @@
+<view class="box">
+    <view class="head">
+        <view class="portrait">
+            {{detail.createby[0]}}
+        </view>
+        <view class="content">
+            <view class="title">
+                {{detail.createby}}<text>{{detail.userextend[0].position}}</text>
+            </view>
+            <view class="time">{{detail.createdate}}</view>
+        </view>
+    </view>
+    <view class="main">
+        <view class="title">跟进内容</view>
+        <view class="content">{{detail.content}}</view>
+    </view>
+    <view class="bottom">
+        <view>
+            <view class="label">跟进方式</view>
+            <view class="con">{{detail.type}}</view>
+        </view>
+        <view>
+            <view class="label">跟进联系人</view>
+            <view class="con">17757394388<text class="iconfont icon-shujubodadianhua1" /></view>
+        </view>
+    </view>
+</view>
+
+<Yl_Tabbar list='{{tabbarList}}' bind:callback="tabbarOnClick" />