Ver Fonte

feat: 订阅推送列表添加招采按钮

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe há 9 meses atrás
pai
commit
17947da1c0

BIN
apps/mobile/src/assets/image/icon/customer-bid.png


+ 56 - 0
apps/mobile/src/components/customerBid/index.vue

@@ -0,0 +1,56 @@
+<template>
+  <div class="customer-bid" :class="{ fadeOutRight: !scrollStatus }" :style="{ bottom: bottomPosition || '' }">
+    <div class="content" @click="jumpCustomerPage">
+      <img src="@/assets/image/icon/customer-bid.png" alt="">
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  props: {
+    scrollStatus: {
+      type: Boolean,
+      default: false
+    },
+    bottomPosition: {
+      type: String,
+      default: ''
+    }
+  },
+  data() {
+    return {
+      show: false
+    }
+  },
+  created() {},
+  methods: {
+    jumpCustomerPage() {
+      location.href = `/jyapp/free/customer`
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+  .customer-bid{
+    position: fixed;
+    width: 62px;
+    height: 62px;
+    bottom: 16%;
+    right: 2px;
+    z-index: 99;
+    &.fadeOutRight {
+      transform: translateX(98%);
+      opacity: 0.2;
+    }
+    .content{
+      height:100%;
+      text-align: center;
+    }
+    img{
+      width: 62px;
+      height: 62px;
+    }
+  }
+</style>

+ 9 - 1
apps/mobile/src/views/tabbar/Subscribe.vue

@@ -474,6 +474,12 @@
       :scroll-status="scrollStatus"
       bottom-position="12%"
     />
+    <!-- 招采 -->
+    <customer-bid
+      v-show="isLogin"
+      :scroll-status="scrollStatus"
+      bottom-position="19%"
+    />
     <DataReportTip
       v-model="dataReport.tip"
       :vSwitch="vSwitch"
@@ -512,6 +518,7 @@ import Ad from '@/components/ad/Ad'
 import popupDataexport from '@/components/dataExport/popupDataexport.vue'
 import CheckUserDialog from '@/views/identity/components/CheckUserDialog'
 import CustomerCorner from '@/components/customer/index'
+import CustomerBid from '@/components/customerBid/index'
 import { LINKS, vtMap, AdCode } from '@/data'
 import { wxShareMixin } from '@/utils/mixins/modules/wx-share'
 import { iosBackRefresh } from '@/utils/utils'
@@ -584,7 +591,8 @@ export default {
     bidStatusNode,
     popupDataexport,
     AreaThreeSidebar,
-    CustomerCorner
+    CustomerCorner,
+    CustomerBid
   },
   data() {
     return {