yangan
2024-08-02 78252f8407345ffceed8157a1c1685c09cdec029
pages/customer-page/customer-index/customer-index.vue
@@ -6,9 +6,10 @@
            <view class="wait-collection"
               :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }">
            </view>
            <view style="height: 382rpx;width: 100%;"></view>
            <!-- 引导页 -->
            <view class="noob-tour"
               v-if="roleType===4">
               v-if="roleType===4&&isFirstLogin">
               <combined-title title="操作指引"></combined-title>
               <u-cell-group>
                  <u-cell title="新手指引"
@@ -25,11 +26,12 @@
                  </u-cell>
               </u-cell-group>
            </view>
            <view style="position: relative;top: -120px;">
            <view style="position: relative;">
               <u-empty mode="data"
                  icon="http://cdn.uviewui.com/uview/empty/data.png"
                  textSize="30"
                  iconSize="1000"
                  text="暂无数据"
                  v-if="orderPlanData.length == 0"></u-empty>
            </view>
            <view class="collection-form">
@@ -62,6 +64,11 @@
                        </view>
                     </view> -->
                     <view class="car-num">{{ item.code||''}}</view>
                  </view>
                  <!-- 添加创建时间 -->
                  <view class="third-line">
                     <text style="font-size: 28rpx;color: #515151" >创建时间:</text>
                     <view  style="font-size: 28rpx;color: #515151">{{ item.createTime }}</view>
                  </view>
                  <view class="third-line">
                     <view class="time-icon">
@@ -102,6 +109,7 @@
                     icon="http://cdn.uviewui.com/uview/empty/data.png"
                     textSize="30"
                     iconSize="1000"
                     text="暂无数据"
                     v-if="historyCoalData.length == 0"></u-empty>
                  <view class="history-information"
                     v-for="(item, index) in historyCoalData"
@@ -134,6 +142,11 @@
                           <view class="third-line_num">{{ item.tmCount }}</view>
                        </view>
                     </view>
                     <!-- 添加创建时间 -->
                  <view class="fourth" style="justify-content: start;">
                     <view style="font-size: 28rpx;color: #515151" >创建时间:</view>
                     <view  style="font-size: 28rpx;color: #515151">{{ item.createTime }}</view>
                  </view>
                     <view class="fourth">
                        <view class="fourth-icon">
                           <view
@@ -161,7 +174,7 @@
         <view class="previewImage-container">
            <view class="previewImage-container">
               <previewImage ref="previewImage"
                  :imgs="TourImgList"
                  :imgs="customerTourImgList"
                  :saveBtn='false'></previewImage>
            </view>
         </view>
@@ -193,6 +206,8 @@
   import combinedTitle from '@/components/combined-title/combined-title.vue';
   import { customerId } from '@/utils/status';
   import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
   import { BaseUrl } from '@/api/publicInterface.js'
   import { mapState } from 'vuex'
   export default {
      props: {
         orderPlanDataStore: {
@@ -214,6 +229,7 @@
         }
      },
      computed: {
         ...mapState(['customerTourImgList']),
         roleType() {
            return uni.getStorageSync('roleType');
         },
@@ -247,27 +263,23 @@
            onlineurl,
            previewImageShow: false,
            previewImageSrc: '',
            TourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg',
               'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality02.jpg',
               'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality03.jpg',
               'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality04.jpg',
               'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality05.jpg'
            ],
            imgIndex: 0,
            startX: 0, // 触摸起始点的X坐标
            endX: 0, // 触摸结束点的X坐标
            transition: false
            phone: "",
            isFirstLogin: true
         };
      },
      onLoad() {},
      mounted() {
         this.getLogOn()
      },
      onShow() {
         this.init();
      },
      methods: {
         init() {
            this.GetOrderPlan();
            this.getJhOrderPlanDataPage();
            this.onlineurl = onlineurl;
            // this.getLogOn()
         },
         // 获取发运计划列表
         GetOrderPlan() {
@@ -391,8 +403,27 @@
               .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` });
         },
         noobTour(v) {
            this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality01.jpg')
         }
            this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg')
         },
         getLogOn() {
            this.$reqGet('getUserEntity').then(res => {
               this.phone = res.data.phone
            }).then(() => {
               uni.request({
                  url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`,
                  success: res => {
                     // res.data.data 为1 代表第一次登录  为0取消学习指引  为2代表存在
                     if (res.data.data === 1) {
                        this.noobTour()
                     } else if (res.data.data === 2) {
                        this.isFirstLogin = true
                     } else {
                        this.isFirstLogin = false
                     }
                  }
               });
            })
         },
      }
   };
</script>
@@ -408,7 +439,7 @@
   .wait-collection {
      width: 100%;
      height: 600rpx;
      position: relative;
      position: fixed;
      top: vww(-10);
      z-index: 0;
   }
@@ -432,7 +463,7 @@
   .history-numbers {
      width: 100%;
      position: relative;
      top: vww(-110);
      // top: vww(-110);
      .history-information {
         width: 690rpx;
@@ -526,9 +557,8 @@
   }
   .noob-tour {
      margin-bottom: vww(10);
      margin-bottom: vww(30);
      position: relative;
      top: -120px;
   }
   .u-popup {
@@ -558,7 +588,7 @@
            width: vww(345);
            margin: 0 vww(15);
            position: relative;
            top: vww(-144);
            // top: vww(-144);
            .collection-form-item {
               width: 690rpx;