ソースを参照

移除动态title

xiaohaizhao 11 ヶ月 前
コミット
5c7e77ac89
3 ファイル変更450 行追加398 行削除
  1. 223 196
      packageA/affiche/detail.vue
  2. 226 201
      packageA/affiche/index.vue
  3. 1 1
      packageA/dailyYttendance/index.vue

+ 223 - 196
packageA/affiche/detail.vue

@@ -1,236 +1,263 @@
 <template>
-    <view>
-        <view class="content">
-            <view class="title" v-if="detail.title">
-                {{ detail.title }}
-            </view>
-            <view v-if="detail.content" class="box">
-                <u-parse :content="detail.content" />
-            </view>
-            <view v-if="showAttinfos" class="box">
-                <view class="top">
-                    <view class="text">
-                        附件
-                    </view>
-                    <view class="but" hover-class="navigator-hover" @click="showUModal = true">
-                        发邮箱
-                    </view>
-                </view>
-                <view class="list" v-for="item in detail.attinfos" :key="item.attachmentid" @click="previewAttinof(item)"
-                    hover-class="navigator-hover">
-                    {{ item.document }}
-                </view>
-            </view>
+  <view>
+    <view class="content">
+      <view class="title" v-if="detail.title">
+        {{ detail.title }}
+      </view>
+      <view v-if="detail.content" class="box">
+        <u-parse :content="detail.content" />
+      </view>
+      <view v-if="showAttinfos" class="box">
+        <view class="top">
+          <view class="text"> 附件 </view>
+          <view
+            class="but"
+            hover-class="navigator-hover"
+            @click="showUModal = true"
+          >
+            发邮箱
+          </view>
         </view>
-        <view style="height: 80px;" />
-        <u-modal :show="showUModal" confirmColor='#C30D23' ref="uModal" showCancelButton :asyncClose="true"
-            @confirm="onSend" @cancel="showUModal = false">
-            <view class="slot-content">
-                <view class="slot-title">
-                    发送邮件
-                </view>
-                <view class="slot-tips">
-                    文件将以邮件的形式发送到指定邮箱
-                </view>
-                <u--input :focus="focus" placeholder="请输入邮箱" v-model="eMail" border="bottom" clearable />
-            </view>
-        </u-modal>
-        <view class="bottom" v-if="detail.readstatus != '已知'">
-            <view class="but" hover-class="navigator-hover" @click="know">
-                确认已知晓公告
-            </view>
+        <view
+          class="list"
+          v-for="item in detail.attinfos"
+          :key="item.attachmentid"
+          @click="previewAttinof(item)"
+          hover-class="navigator-hover"
+        >
+          {{ item.document }}
         </view>
+      </view>
     </view>
+    <view style="height: 80px" />
+    <u-modal
+      :show="showUModal"
+      confirmColor="#C30D23"
+      ref="uModal"
+      showCancelButton
+      :asyncClose="true"
+      @confirm="onSend"
+      @cancel="showUModal = false"
+    >
+      <view class="slot-content">
+        <view class="slot-title"> 发送邮件 </view>
+        <view class="slot-tips"> 文件将以邮件的形式发送到指定邮箱 </view>
+        <u--input
+          :focus="focus"
+          placeholder="请输入邮箱"
+          v-model="eMail"
+          border="bottom"
+          clearable
+        />
+      </view>
+    </u-modal>
+    <view class="bottom" v-if="detail.readstatus != '已知'">
+      <view class="but" hover-class="navigator-hover" @click="know">
+        确认已知晓公告
+      </view>
+    </view>
+  </view>
 </template>
 
 <script>
-import { viewMedias, viewFlies, formattedFiles } from "../../utils/settleFiles"
+import { viewMedias, viewFlies, formattedFiles } from "../../utils/settleFiles";
 export default {
-    data() {
-        return {
-            sat_noticeid: "",
-            detail: { readstatus: '已知' },
-            showAttinfos: false,
-            showUModal: false,
-            eMail: "",
-            focus: false,
-        }
+  data() {
+    return {
+      sat_noticeid: "",
+      detail: { readstatus: "已知" },
+      showAttinfos: false,
+      showUModal: false,
+      eMail: "",
+      focus: false,
+    };
+  },
+  watch: {
+    showUModal: function (newVale) {
+      setTimeout(() => {
+        this.focus = newVale;
+      }, 300);
     },
-    watch: {
-        showUModal: function (newVale) {
-            setTimeout(() => {
-                this.focus = newVale;
-            }, 300)
-        }
+  },
+  onLoad(options) {
+    uni.setNavigationBarTitle({
+      title: "企业公告",
+    });
+    this.sat_noticeid = options.id;
+    this.getDetail();
+  },
+  methods: {
+    getDetail() {
+      this.$Http
+        .basic({
+          id: "20221101095003",
+          content: {
+            sat_noticeid: this.sat_noticeid,
+          },
+        })
+        .then((res) => {
+          console.log("获取通告详情", res);
+          if (this.cutoff(res.msg)) return;
+          res.data.attinfos = formattedFiles(res.data.attinfos);
+          this.detail = res.data;
+          this.showAttinfos = res.data.attinfos.length != 0;
+        });
     },
-    onLoad(options) {
-        uni.setNavigationBarTitle({
-            title: this.getApps('资料库', '/packageA/affiche/detail').remark || '企业公告',
+    onSend() {
+      let { CheckEmail } = require("../../utils/basicInspection");
+      if (!CheckEmail(this.eMail || ""))
+        return (this.$refs.uModal.loading = false);
+      this.$Http
+        .basic({
+          id: "20240320153302",
+          content: {
+            sat_noticeid: this.detail.sat_noticeid,
+            email: this.eMail,
+          },
+        })
+        .then((res) => {
+          console.log("发送邮件", res);
+          if (this.cutoff(res.msg, "发送成功"))
+            return (this.$refs.uModal.loading = false);
+          this.showUModal = false;
         });
-        this.sat_noticeid = options.id;
-        this.getDetail();
     },
-    methods: {
-        getDetail() {
-            this.$Http.basic({
-                "id": "20221101095003",
-                "content": {
-                    "sat_noticeid": this.sat_noticeid
-                }
-            }).then(res => {
-                console.log("获取通告详情", res)
-                if (this.cutoff(res.msg)) return;
-                res.data.attinfos = formattedFiles(res.data.attinfos)
-                this.detail = res.data;
-                this.showAttinfos = res.data.attinfos.length != 0
-            })
-        },
-        onSend() {
-            let { CheckEmail } = require("../../utils/basicInspection");
-            if (!CheckEmail(this.eMail || '')) return this.$refs.uModal.loading = false;
-            this.$Http.basic({
-                "id": "20240320153302",
-                "content": {
-                    "sat_noticeid": this.detail.sat_noticeid,
-                    "email": this.eMail
-                }
-            }).then(res => {
-                console.log("发送邮件", res)
-                if (this.cutoff(res.msg, '发送成功')) return this.$refs.uModal.loading = false;
-                this.showUModal = false;
-            })
-        },
-        know() {
-            let that = this;
-            uni.showModal({
-                title: '提示',
-                content: '是否确定已经知晓该公告',
-                success: ({ confirm }) => {
-                    if (confirm) that.$Http.basic({
-                        "id": "20240320152902",
-                        "content": {
-                            "sat_noticeid": that.sat_noticeid
-                        }
-                    }).then(res => {
-                        if (that.cutoff(res.msg, '确定成功')) return;
-                        that.getDetail();
-                    })
+    know() {
+      let that = this;
+      uni.showModal({
+        title: "提示",
+        content: "是否确定已经知晓该公告",
+        success: ({ confirm }) => {
+          if (confirm)
+            that.$Http
+              .basic({
+                id: "20240320152902",
+                content: {
+                  sat_noticeid: that.sat_noticeid,
                 },
-            })
+              })
+              .then((res) => {
+                if (that.cutoff(res.msg, "确定成功")) return;
+                that.getDetail();
+              });
         },
-        previewAttinof(item) {
-            if (['image', 'video'].includes(item.fileType)) {
-                const list = this.detail.attinfos.filter(v => v.fileType == item.fileType),
-                    index = list.findIndex(v => v.attachmentid == item.attachmentid);
-                viewMedias(list, index, item.fileType)
-            } else {
-                viewFlies(item)
-            }
-        }
+      });
     },
-}
+    previewAttinof(item) {
+      if (["image", "video"].includes(item.fileType)) {
+        const list = this.detail.attinfos.filter(
+            (v) => v.fileType == item.fileType
+          ),
+          index = list.findIndex((v) => v.attachmentid == item.attachmentid);
+        viewMedias(list, index, item.fileType);
+      } else {
+        viewFlies(item);
+      }
+    },
+  },
+};
 </script>
 
 <style lang="scss">
 .content {
+  padding: 10px;
+  box-sizing: border-box;
+
+  .title {
+    width: 100%;
+    font-family: Source Han Sans SC, Source Han Sans SC;
+    font-weight: bold;
+    font-size: 18px;
+    color: #333333;
+    text-align: center;
+  }
+
+  .box {
+    width: 100%;
+    background: #ffffff;
+    border-radius: 8px;
     padding: 10px;
     box-sizing: border-box;
+    margin-top: 10px;
 
-    .title {
-        width: 100%;
-        font-family: Source Han Sans SC, Source Han Sans SC;
+    .top {
+      display: flex;
+      justify-content: space-between;
+
+      .text {
+        font-family: PingFang SC, PingFang SC;
         font-weight: bold;
-        font-size: 18px;
+        font-size: 16px;
         color: #333333;
-        text-align: center;
-    }
-
-    .box {
-        width: 100%;
-        background: #FFFFFF;
-        border-radius: 8px;
-        padding: 10px;
-        box-sizing: border-box;
-        margin-top: 10px;
+      }
 
-        .top {
-            display: flex;
-            justify-content: space-between;
-
-            .text {
-                font-family: PingFang SC, PingFang SC;
-                font-weight: bold;
-                font-size: 16px;
-                color: #333333;
-            }
-
-            .but {
-                width: 66px;
-                height: 32px;
-                background: #C30D23;
-                border-radius: 5px;
-                margin-top: -3px;
-                font-family: Source Han Sans SC, Source Han Sans SC;
-                font-size: 14px;
-                color: #FFFFFF;
-                line-height: 32px;
-                text-align: center;
-            }
-        }
+      .but {
+        width: 66px;
+        height: 32px;
+        background: #c30d23;
+        border-radius: 5px;
+        margin-top: -3px;
+        font-family: Source Han Sans SC, Source Han Sans SC;
+        font-size: 14px;
+        color: #ffffff;
+        line-height: 32px;
+        text-align: center;
+      }
     }
+  }
 }
 
 .slot-content {
-    width: 100%;
-    text-align: center;
+  width: 100%;
+  text-align: center;
 
-    .slot-title {
-        height: 26px;
-        font-family: Source Han Sans SC, Source Han Sans SC;
-        font-weight: bold;
-        font-size: 18px;
-        color: #000000;
-    }
-
-    .slot-tips {
-        line-height: 20px;
-        font-family: Source Han Sans SC, Source Han Sans SC;
-        font-size: 14px;
-        color: #666666;
-        margin-bottom: 30px;
-        margin-top: 10px;
-    }
-}
+  .slot-title {
+    height: 26px;
+    font-family: Source Han Sans SC, Source Han Sans SC;
+    font-weight: bold;
+    font-size: 18px;
+    color: #000000;
+  }
 
-.list {
+  .slot-tips {
+    line-height: 20px;
     font-family: Source Han Sans SC, Source Han Sans SC;
     font-size: 14px;
-    color: #095DE0;
-    line-height: 20px;
+    color: #666666;
+    margin-bottom: 30px;
     margin-top: 10px;
-    border-radius: 4px;
+  }
+}
+
+.list {
+  font-family: Source Han Sans SC, Source Han Sans SC;
+  font-size: 14px;
+  color: #095de0;
+  line-height: 20px;
+  margin-top: 10px;
+  border-radius: 4px;
 }
 
 .bottom {
-    position: fixed;
-    bottom: 0;
-    width: 100vw;
-    height: 65px;
-    background: #FFFFFF;
-    box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
+  position: fixed;
+  bottom: 0;
+  width: 100vw;
+  height: 65px;
+  background: #ffffff;
+  box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
 
-    .but {
-        width: 355px;
-        height: 45px;
-        line-height: 45px;
-        background: #C30D23;
-        border-radius: 5px;
-        font-family: PingFang SC, PingFang SC;
-        font-weight: bold;
-        font-size: 14px;
-        color: #FFFFFF;
-        text-align: center;
-        margin: 6px auto;
-    }
+  .but {
+    width: 355px;
+    height: 45px;
+    line-height: 45px;
+    background: #c30d23;
+    border-radius: 5px;
+    font-family: PingFang SC, PingFang SC;
+    font-weight: bold;
+    font-size: 14px;
+    color: #ffffff;
+    text-align: center;
+    margin: 6px auto;
+  }
 }
 </style>

+ 226 - 201
packageA/affiche/index.vue

@@ -1,236 +1,261 @@
 <template>
-    <view>
-        <u-tabs :list="types" :activeStyle="{ fontWeight: 'bold', color: '#C30D23' }" lineColor="#C30D23"
-            keyName="classname" @change="tabsChange" />
-        <view class="search-box">
-            <view hover-class="navigator-hover" class="switch" @click="changeStatus">
-                <view class="status" :class="activeStatus == '全部' ? 'active' : ''">
-                    全部
-                </view>
-                <view class="status" :class="activeStatus != '全部' ? 'active' : ''">
-                    未读
-                </view>
-            </view>
-            <u-search placeholder="搜索关键字" bgColor="#fff" v-model="keyword" @search="onSearch" @clear="onSearch"
-                :showAction="false" />
+  <view>
+    <u-tabs
+      :list="types"
+      :activeStyle="{ fontWeight: 'bold', color: '#C30D23' }"
+      lineColor="#C30D23"
+      keyName="classname"
+      @change="tabsChange"
+    />
+    <view class="search-box">
+      <view hover-class="navigator-hover" class="switch" @click="changeStatus">
+        <view class="status" :class="activeStatus == '全部' ? 'active' : ''">
+          全部
         </view>
-        <My_listbox ref="List" @getlist="getList">
-            <view style="height: 5px;" />
-            <navigator :url="'/packageA/affiche/detail?id=' + item.sat_noticeid" class="item" v-for="item in list"
-                :key="item.sat_noticeid" hover-class="navigator-hover">
-                <view class="title">{{ item.title }}</view>
-                <view class="line" />
-                <view class="date">{{ item.checkdate }}</view>
-                <view class="readstatus" :style="{
-                    color: colors[item.readstatus].color,
-                    background: colors[item.readstatus].back,
-                }">{{ item.readstatus }}</view>
-            </navigator>
-
-        </My_listbox>
+        <view class="status" :class="activeStatus != '全部' ? 'active' : ''">
+          未读
+        </view>
+      </view>
+      <u-search
+        placeholder="搜索关键字"
+        bgColor="#fff"
+        v-model="keyword"
+        @search="onSearch"
+        @clear="onSearch"
+        :showAction="false"
+      />
     </view>
+    <My_listbox ref="List" @getlist="getList">
+      <view style="height: 5px" />
+      <navigator
+        :url="'/packageA/affiche/detail?id=' + item.sat_noticeid"
+        class="item"
+        v-for="item in list"
+        :key="item.sat_noticeid"
+        hover-class="navigator-hover"
+      >
+        <view class="title">{{ item.title }}</view>
+        <view class="line" />
+        <view class="date">{{ item.checkdate }}</view>
+        <view
+          class="readstatus"
+          :style="{
+            color: colors[item.readstatus].color,
+            background: colors[item.readstatus].back,
+          }"
+          >{{ item.readstatus }}</view
+        >
+      </navigator>
+    </My_listbox>
+  </view>
 </template>
 
 <script>
 export default {
-    data() {
-        return {
-            activeStatus: '全部',
-            keyword: "",
-            list: [],
-            types: [],
-            "content": {
-                "where": {
-                    "condition": "",
-                    "sat_notice_classid": "",
-                    "isread": ""//0:已读.1:已知,2:未读
-                }
+  data() {
+    return {
+      activeStatus: "全部",
+      keyword: "",
+      list: [],
+      types: [],
+      content: {
+        where: {
+          condition: "",
+          sat_notice_classid: "",
+          isread: "", //0:已读.1:已知,2:未读
+        },
+      },
+      colors: {
+        已读: {
+          color: "#E3041F",
+          back: "#FFF0F2",
+        },
+        未读: {
+          color: "#FFFFFF",
+          back: "#E3041F",
+        },
+        已知: {
+          color: "#999999",
+          back: "#EEEEEE",
+        },
+      },
+    };
+  },
+  onLoad() {
+    uni.setNavigationBarTitle({
+      title: "企业公告",
+    });
+    this.getTypes();
+    this.getList();
+  },
+  onShow() {
+    this.updateList();
+  },
+  methods: {
+    getTypes() {
+      this.$Http
+        .basic({
+          id: "20221101094603",
+          content: {
+            pageNumber: 1,
+            pageSize: 9999,
+            where: {
+              condition: "",
+              isenable: 1,
             },
-            colors: {
-                已读: {
-                    color: '#E3041F',
-                    back: '#FFF0F2'
-                },
-                未读: {
-                    color: '#FFFFFF',
-                    back: '#E3041F'
-                },
-                已知: {
-                    color: '#999999',
-                    back: '#EEEEEE'
-                },
-            }
-        }
+          },
+        })
+        .then((res) => {
+          console.log("获取通告分类", res);
+          if (this.cutoff(res.msg)) return;
+          if (res.data.length > 1) {
+            res.data.unshift({
+              classname: "全部",
+              sat_notice_classid: "",
+            });
+            this.types = res.data;
+          }
+        });
     },
-    onLoad() {
-        uni.setNavigationBarTitle({
-            title: this.getApps('资料库', '/packageA/affiche/index').remark || '企业公告',
+    getList(init = false) {
+      if (this.paging(this.content, init)) return;
+      this.$Http
+        .basic({
+          id: "20221111090904",
+          content: this.content,
+        })
+        .then((res) => {
+          this.$refs.List.RefreshToComplete();
+          console.log("获取通告列表", res);
+          if (this.cutoff(res.msg)) return;
+          this.list =
+            res.pageNumber == 1 ? res.data : this.list.concat(res.data);
+          this.content = this.$refs.List.paging(this.content, res);
         });
-        this.getTypes()
-        this.getList()
     },
-    onShow() {
-        this.updateList()
+    updateList() {
+      if (this.content.pageNumber && this.content.pageNumber >= 2) {
+        let content = this.paging(this.content, true, true);
+        this.$Http
+          .basic({
+            id: "20221111090904",
+            content,
+          })
+          .then((res) => {
+            console.log("更新通告列表", res);
+            if (this.cutoff(res.msg)) return;
+            this.list = res.data;
+            this.$refs.List.paging(content, res, true);
+          });
+      }
     },
-    methods: {
-        getTypes() {
-            this.$Http.basic({
-                "id": "20221101094603",
-                "content": {
-                    "pageNumber": 1,
-                    "pageSize": 9999,
-                    "where": {
-                        "condition": "",
-                        "isenable": 1
-                    }
-                }
-            }).then(res => {
-                console.log("获取通告分类", res)
-                if (this.cutoff(res.msg)) return;
-                if (res.data.length > 1) {
-                    res.data.unshift({
-                        classname: "全部",
-                        sat_notice_classid: "",
-                    })
-                    this.types = res.data;
-                }
-
-            })
-        },
-        getList(init = false) {
-            if (this.paging(this.content, init)) return;
-            this.$Http.basic({
-                "id": "20221111090904",
-                content: this.content
-            }).then(res => {
-                this.$refs.List.RefreshToComplete()
-                console.log("获取通告列表", res)
-                if (this.cutoff(res.msg)) return;
-                this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
-                this.content = this.$refs.List.paging(this.content, res)
-            })
-        },
-        updateList() {
-            if (this.content.pageNumber && this.content.pageNumber >= 2) {
-                let content = this.paging(this.content, true, true)
-                this.$Http.basic({
-                    "id": "20221111090904",
-                    content
-                }).then(res => {
-                    console.log("更新通告列表", res)
-                    if (this.cutoff(res.msg)) return;
-                    this.list = res.data;
-                    this.$refs.List.paging(content, res, true)
-                })
-            }
-        },
-        changeStatus() {
-            this.activeStatus = this.activeStatus == '全部' ? '未读' : "全部";
-            this.content.where.isread = this.activeStatus == '全部' ? "" : 2;
-            this.getList(true);
-        },
-        tabsChange(e) {
-            this.content.where.sat_notice_classid = e.sat_notice_classid;
-            this.getList(true)
-        },
-        onSearch(e) {
-            this.content.where.condition = e || "";
-            this.getList(true)
-        },
+    changeStatus() {
+      this.activeStatus = this.activeStatus == "全部" ? "未读" : "全部";
+      this.content.where.isread = this.activeStatus == "全部" ? "" : 2;
+      this.getList(true);
     },
-}
+    tabsChange(e) {
+      this.content.where.sat_notice_classid = e.sat_notice_classid;
+      this.getList(true);
+    },
+    onSearch(e) {
+      this.content.where.condition = e || "";
+      this.getList(true);
+    },
+  },
+};
 </script>
 
 <style lang="scss">
 /deep/ .u-search__content {
-    height: 30px !important;
+  height: 30px !important;
 
-    .uni-input-wrapper {
-        font-size: 14px;
-    }
+  .uni-input-wrapper {
+    font-size: 14px;
+  }
 
-    .u-icon__icon {
-        font-size: 22px !important;
-    }
+  .u-icon__icon {
+    font-size: 22px !important;
+  }
 }
 
 .search-box {
-    display: flex;
-    align-items: center;
-    padding: 0 10px;
-    margin-top: 10px;
-    margin-bottom: 5px;
-    box-sizing: border-box;
+  display: flex;
+  align-items: center;
+  padding: 0 10px;
+  margin-top: 10px;
+  margin-bottom: 5px;
+  box-sizing: border-box;
 
-    .switch {
-        display: flex;
-        width: 96px;
-        height: 30px;
-        background: #fff;
-        margin-right: 10px;
-        border-radius: 15px;
+  .switch {
+    display: flex;
+    width: 96px;
+    height: 30px;
+    background: #fff;
+    margin-right: 10px;
+    border-radius: 15px;
 
-        .status {
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            height: 30px;
-            width: 48px;
-            border-radius: 15px;
-            font-family: Source Han Sans SC, Source Han Sans SC;
-            font-size: 14px;
-            color: #666666;
-            background: #fff;
-        }
+    .status {
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      height: 30px;
+      width: 48px;
+      border-radius: 15px;
+      font-family: Source Han Sans SC, Source Han Sans SC;
+      font-size: 14px;
+      color: #666666;
+      background: #fff;
+    }
 
-        .active {
-            background: #C30D23;
-            color: #fff;
-        }
+    .active {
+      background: #c30d23;
+      color: #fff;
     }
+  }
 }
 
 .item {
-    position: relative;
-    width: 355px;
-    background: #FFFFFF;
-    border-radius: 8px;
-    margin: 0 auto 8px;
-    padding: 15px 10px;
-    box-sizing: border-box;
+  position: relative;
+  width: 355px;
+  background: #ffffff;
+  border-radius: 8px;
+  margin: 0 auto 8px;
+  padding: 15px 10px;
+  box-sizing: border-box;
 
-    .title {
-        width: 281px;
-        font-family: Source Han Sans SC, Source Han Sans SC;
-        font-weight: bold;
-        font-size: 14px;
-        color: #333333;
-    }
+  .title {
+    width: 281px;
+    font-family: Source Han Sans SC, Source Han Sans SC;
+    font-weight: bold;
+    font-size: 14px;
+    color: #333333;
+  }
 
-    .line {
-        width: 335px;
-        height: 1px;
-        background: #eeeeee;
-        margin-top: 15px;
-    }
+  .line {
+    width: 335px;
+    height: 1px;
+    background: #eeeeee;
+    margin-top: 15px;
+  }
 
-    .date {
-        line-height: 20px;
-        font-size: 14px;
-        color: #666666;
-        margin-top: 10px;
-    }
+  .date {
+    line-height: 20px;
+    font-size: 14px;
+    color: #666666;
+    margin-top: 10px;
+  }
 
-    .readstatus {
-        position: absolute;
-        top: 10px;
-        right: 0;
-        width: 44px;
-        height: 24px;
-        line-height: 24px;
-        font-size: 12px;
-        text-align: center;
-        border-radius: 12px 0px 0px 12px;
-    }
+  .readstatus {
+    position: absolute;
+    top: 10px;
+    right: 0;
+    width: 44px;
+    height: 24px;
+    line-height: 24px;
+    font-size: 12px;
+    text-align: center;
+    border-radius: 12px 0px 0px 12px;
+  }
 }
 </style>

+ 1 - 1
packageA/dailyYttendance/index.vue

@@ -63,7 +63,7 @@ export default {
     },
     onLoad() {
         uni.setNavigationBarTitle({
-            title: this.getApps('资料库', '/packageA/dailyYttendance/index').remark || '每日一签',
+            title: '每日一签',
         });
         this.viewDate = this.formatTime().split(" ")[0]
         const time = this.viewDate.split("-")