App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-10-20 8050665efc07f2666d803b14f01dfe07dc54da26
pages/other/wdxx.html
@@ -39,7 +39,17 @@
               </van-nav-bar>
            </van-sticky>
            <div class="head">
            <div v-if="messageArr.length===0">
               <div class="sacnBody">
                  <div class="box">
                     <div class="boxImg"></div>
                  </div>
                  <div class="scanText">暂无消息</div>
               </div>
            </div>
            <div v-else class="head">
               <div class="head_block">
                  <div class="head_left">
                     <div class="head_bar"></div>
@@ -55,11 +65,11 @@
                     <div slot="finish-icon">
                        <div class="messageIndex">{{index+1}}</div>
                     </div>
                     <div style="margin-left: 5px;">工位名称:{{item.gwmc}}</div>
                     <div style="margin-left: 5px;">生产车间:{{item.sccj}}</div>
                     <div style="margin-left: 5px;">呼叫类型:{{item.hjlx}}</div>
                     <div style="margin-left: 5px;">发起人员:{{item.fqry}}</div>
                     <div style="margin-left: 5px;">发起时间:{{item.fqsj}}</div>
                     <div style="margin-left: 5px;">工位名称:{{item.eqp_name}}</div>
                     <div style="margin-left: 5px;">生产车间:{{item.wkshp_name}}</div>
                     <div style="margin-left: 5px;">呼叫类型:{{item.typename}}</div>
                     <div style="margin-left: 5px;">发起人员:{{item.start_user}}</div>
                     <div style="margin-left: 5px;">发起时间:{{item.start_date}}</div>
                  </van-step>
               </van-steps>
            </div>
@@ -93,83 +103,7 @@
                     text: '退出登录'
                  },
               ],
               messageArr: [{
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
                  {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
               {
                  gwmc: '机加01工位',
                  sccj: '机加车间',
                  hjlx: '呼叫设备',
                  fqry: '张三',
                  fqsj: '2022-10-10 11:12:12'
               },   {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },   {
                     gwmc: '机加01工位',
                     sccj: '机加车间',
                     hjlx: '呼叫设备',
                     fqry: '张三',
                     fqsj: '2022-10-10 11:12:12'
                  },
               ]
               messageArr: []
            }
@@ -178,9 +112,20 @@
         },
         mounted() {
            this.getLoginAppAnDonMessage()
         },
         methods: {
         async   getLoginAppAnDonMessage() {
               const data = {
                  userid: localStorage.getItem('userid'),
                  usercode: localStorage.getItem('usercode'),
                  username: localStorage.getItem('username'),
                  usertype: localStorage.getItem('usertype'),
               }
               const res = await post('Login/LoginAppAnDonMessage' + formatParams(data))
               this.messageArr = res.data
            },
            onClickleft() {
               history.back()
            },