Ver Fonte

置顶图标

lifanagju_citu há 1 mês atrás
pai
commit
9a314f0e87
2 ficheiros alterados com 10 adições e 5 exclusões
  1. 9 4
      components/PositionList/index.vue
  2. 1 1
      static/svg/topUp.svg

+ 9 - 4
components/PositionList/index.vue

@@ -12,7 +12,7 @@
               <rich-text v-if="item.name?.indexOf('style') !== -1" class="job-name" :nodes="item.name"></rich-text>
               <view v-else class="job-name">{{ formatName(item.name) }}</view>
             </view>
-            <image v-if="item.top && tab === 1" src="/static/svg/topUp.svg" class="TopUpSvg ss-m-r-10" @tap.stop="topUpSvgClick(item)"></image>
+            <image v-if="item.top && tab === 1" src="/static/svg/topUp.svg" class="TopUpSvg"></image>
           </view>
           <!-- 职位类型 -->
           <view class="font-size-13 ellipsis ss-m-5" style="color: #808080;">
@@ -64,7 +64,7 @@
       ></uni-popup-dialog>
     </uni-popup>
     <!-- 支付 -->
-    <payPopup v-if="props.payable" ref="payRef" amount="123" @paySuccess="paySuccess"></payPopup>
+    <payPopup v-if="props.payable" ref="payRef" @paySuccess="paySuccess"></payPopup>
   </view>
 </template>
 
@@ -209,7 +209,7 @@ const handleToResume = (val) => {
 
 const paySuccess = () => {
   emit('refresh', true)
-  setTimeout(() => { uni.showToast({ title: '发布成功', icon: 'success' }) }, 1000)
+  setTimeout(() => { uni.showToast({ title: '发布成功', icon: 'success', duration: 2000 }) }, 1000)
 }
 
 </script>
@@ -300,6 +300,7 @@ const paySuccess = () => {
 }
 .mList {
   margin-bottom: 20rpx;
+  position: relative;
 }
 /* 列表触底暂无更多 */
 .noMore{ text-align:center; color:grey; }
@@ -355,6 +356,10 @@ const paySuccess = () => {
 	}
 }
 .TopUpSvg {
-  width: 25px; height: 25px; color: #FB8C00;
+  width: 45px;
+  height: 45px;
+  position: absolute;
+  top: -3px;
+  right: -4px;
 }
 </style>

+ 1 - 1
static/svg/topUp.svg

@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1742979347889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1803" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M128 128l768 0 0 89.6-768 0 0-89.6ZM732.288 496 555.7888 309.8624c-10.9504-11.2064-26.4128-18.4896-43.7888-18.4896s-32.832 7.2832-43.6032 18.6048L291.5264 495.8656c-9.2288 10.0224-15.1104 22.9696-15.1104 37.3248 0 30.816 26.3808 55.8016 58.8992 55.8016 0.4544 0 0.896-0.0576 1.344-0.0704l0 0.352L416 589.2736 416 896l192 0L608 589.2736l77.1904 0 0-0.448c1.1648 0.064 2.3104 0.1792 3.5008 0.1792 32.5248 0 58.8992-24.992 58.8992-55.8144C747.5904 518.8352 741.7024 505.8944 732.288 496z" fill="#FB8C00" p-id="1804"></path></svg>
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1743062770074" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11776" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M960.4 905.9l-842.1-842h603.9L960.4 302z" fill="#fc554e" p-id="11777" data-spm-anchor-id="a313x.search_index.0.i12.7cff3a81dxDEBI" class=""></path><path d="M630.8 404.4l-6.9 6.9-118.5-118.5 6.9-6.9 18.2 18.2 56.6-56.6 31.1 31.1c3-2.2 6.5-4.3 10.1-6.9l-49.6-49.6 7.1-7.1 50.9 50.9c3.1-2.3 6.5-4.6 9.4-6.7l-45.5-45.5 26.3-26.3 103.7 103.7-26.3 26.3-49-49c-3.1 2-6.5 4.3-9.7 6.5l54.6 54.6-7.1 7.1-56.2-56.2c-3.8 2.4-7.3 4.6-10.5 6.5l42.3 42.3-56.6 56.6 18.7 18.6zM539 312.7l64.1 64.1 8.8-8.8-64.1-64.1-8.8 8.8z m14.3-14.3l64.1 64.1 8.6-8.6-64.1-64.1-8.6 8.6z m86.5 41.8l-64.1-64.1-8.2 8.2 64.1 64.1 8.2-8.2z m-50.4-77.9l-8.1 8.1 64.1 64.1 8.1-8.1-64.1-64.1z m61.9-37l-22.5-22.5-12.8 12.8 22.5 22.5 12.8-12.8z m-4.5 21.1l23.3 23.3 12.8-12.8-23.3-23.3-12.8 12.8z m31.5 31.5l23.7 23.7 12.8-12.8-23.7-23.7-12.8 12.8zM769.9 356.6l-87.7 87.7c-5.8 5.8-9.8 7.1-15.1 4.9-5.5-2.3-12.3-8.5-22.8-19.3 2-3.1 4.3-8.4 5.4-12.4 8.1 8.6 15.5 16 17.6 17.9 2.4 2.2 3.9 2.3 6.1 0.1l87.7-87.7-22.1-22.2 8.5-8.5 49.7 49.7-8.5 8.5-18.8-18.7z m6.1 115.2c-16.8 16.8-42.3 32.3-88.9 11.3 0.8-3 1.8-8.8 1.8-12.5 43.8 22.2 64.3 6.6 78.4-7.5l27.3-27.3 8.8 8.8-27.4 27.2z m29.8-58.9c5.8-2.8 12.8-6.9 18.5-10.4l-28.8-28.8 7.9-7.9 69.8 69.8-7.9 7.9-31.1-31.1c-6.6 3.1-13.7 6.5-19.8 9l31.3 31.3-62.8 62.8-8.8-8.8 54.4-54.4-41.9-41.9-54.7 54.7-8.4-8.4 63-63 19.3 19.2z m-48.4 82.6c3.4 16.3 6.2 38 5.8 50.5l-12.7 0.5c0.4-12.3-1.9-34.5-4.7-51.1h11.6z" fill="#ffffff" p-id="11778" data-spm-anchor-id="a313x.search_index.0.i13.7cff3a81dxDEBI" class="selected"></path></svg>