#
whycq
2023-11-21 662445047bd24967041b74cd6be53b7493ff312d
pages/business/saleManage/cstmrDetls.vue
@@ -6,10 +6,24 @@
               <image src="../../../static/image/zuzhibumen.png" mode="aspectFit"></image>
               <view>{{saleManage.name}}</view>
            </view>
            <view class="cstmr-tel">
            <!-- <view class="cstmr-tel">
               {{saleManage.company$}} | 
               {{saleManage.money ? saleManage.pcd$ : '--'}} | 
               {{saleManage.director$ ? saleManage.pcd$ : '--'}}
            </view> -->
            <view class="cstmr-tel">
               <view class="tel-box">
                  <view>客户电话</view>
                  <view >{{cstmr.tel ? cstmr.tel : '--'}}</view>
               </view>
               <view class="tel-box">
                  <view>客户详细地址</view>
                  <view >{{cstmr.addr ? cstmr.addr : '--'}}</view>
               </view>
               <view class="tel-box">
                  <view>负责人</view>
                  <view >{{cstmr.director$ ? cstmr.director$ : '--'}}</view>
               </view>
            </view>
         </view>
         <view class="container">
@@ -77,9 +91,7 @@
         }
      },
      onLoad(option) { 
         if (option == '') {
            console.log(option);
         if (JSON.stringify(option) != "{}") {
            this.id = option.id
            this.init()
            this.autoLoad('follower','')
@@ -91,11 +103,12 @@
            const eventChannel = this.getOpenerEventChannel();
            eventChannel.on('cstmr', function(data) {
               _this.id = data.data
               console.log(data.data);
               _this.init()
            })
            this.init()
            this.autoLoad('follower','')
            setTimeout(()=>{
               this.getFollowers()
            },500)
         }
@@ -112,7 +125,6 @@
               method: 'GET',
               success(res) {
                  res = res.data
                  console.log(res);
                  that.saleManage = res.data
                  that.cstmr = res.data
                  that.cstmrId = that.cstmr.id
@@ -257,10 +269,18 @@
      height: 35rpx;
   }
   .cstmr-tel {
      min-height: 60rpx;
      line-height: 60rpx;
      font-size: 24rpx;
      color: #303133;
      display: flex;
   }
   .tel-box {
      margin-top: 20rpx;
      padding-right: 8rpx;
      margin-left: 10rpx;
      border-right: 1px solid #b1b3b8;
   }
   .tel-box:last-child {
      border: none
   }
   .container {
      margin-top: 10px;