819527061@qq.com
2024-08-06 94e602cc5fac654ed9abe2dbea518a0300b8c6aa
pages/customer-page/customer-index/customer-index.vue
@@ -8,9 +8,9 @@
               style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain">
            </view>
               <!-- 自主配送界面 -->
            <view class="self-deliver">
            <view class="self-deliver" v-if="personnelType === 1">
               <view class="self-deliver_text">
                  创建日计划订单
                  创建日计划订单
               </view>
               <view class="self-deliver_btn">
                  <u-button text="去创建"
@@ -200,6 +200,7 @@
      data() {
         return {
            orderPlanData: [],
            personnelType:'', // 用户类型
            show: false, // 领取收发单弹出框
            receiveNum: null,
            getOrderNum: {
@@ -233,6 +234,7 @@
         init() {
            this.GetOrderPlan();
            this.getJhOrderPlanDataPage();
            this.getType();
         },
         // 获取发运计划列表
         GetOrderPlan() {
@@ -359,6 +361,17 @@
            uni.navigateTo({
               url: '/subPages/addDailyPlan/addDailyPlan'
            })
         },
         //获取用户标识
         getType(){
            this.$reqGetId('getPersonnelType',uni.getStorageSync('customerId')).then(res=>{
               console.log(res,'ressss')
               if(res.code === 0){
                 this.personnelType = res.data.personnelType;
               }else{
                  this.personnelType = '';
               }
            })
         }
      }
   };