zqf 5 ماه پیش
والد
کامیت
f7079e44ae

+ 1 - 1
src/components/Labour/JobItem.vue

@@ -7,7 +7,7 @@
       :src="itemData.jobUrlsAfterConvert[0]"
       class="w-108 h-114 shrink"
     />
-    <view class="flex-1 w-0">
+    <view class="flex-1 w-0 ml-10">
       <view class="text-base text-black-3 truncate font-semibold">
         {{ itemData.jobTitle }}
       </view>

+ 2 - 1
src/pages/food/restaurant-foods/index.vue

@@ -123,7 +123,8 @@ function handleFoodUpdate({itemData, count}) {
 }
 
 const totalPrice = computed(() => {
-  return cartItems.value.reduce((sum, item) => sum + (item.price * item.count), 0);
+  const sum = cartItems.value.reduce((sum, item) => sum + (item.price * item.count), 0);
+  return parseFloat((sum).toFixed(2));
 });
 
 onReady(() => {

+ 2 - 1
src/pages/food/submit-order/index.vue

@@ -143,7 +143,8 @@ async function settlement() {
 }
 
 const totalPrice = computed(() => {
-  return cartItems.value.reduce((sum, item) => sum + (item.price * item.count), 0);
+  const sum = cartItems.value.reduce((sum, item) => sum + (item.price * item.count), 0);
+  return parseFloat((sum).toFixed(2));
 });
 
 const cartItems = ref([]);

+ 9 - 17
src/pages/labour/index.vue

@@ -14,14 +14,15 @@
       </swiper>
 
       <div class="pt-15 flex justify-between items-center">
-        <input
-          v-model="searchQuery.searchString"
-          placeholder="请输入搜索关键词"
-          shape="round"
-          @confirm="onSearch"
-          confirm-type="search"
-          class="flex-1"
-        />
+        <view class="flex-1">
+          <up-search
+            v-model="searchQuery.searchString"
+            placeholder="请输入搜索关键词"
+            :showAction="false"
+            placeholderColor="#919191"
+            @search="onSearch"
+          ></up-search>
+        </view>
         <div style="color: rgb(170 176 191)" class="w-40 flex items-center justify-center" @click="handleFilter">
           <!-- <icon name="filter-o" color="#fe8e2c" size="25" /> -->
           筛选
@@ -170,13 +171,4 @@ function reSearch() {
 button {
   line-height: 28px;
 }
-input {
-  color: rgb(50, 50, 51);
-  border: 1px solid rgb(226 230 239);
-  background-color: rgb(226 230 239);
-  border-radius: 10px;
-  padding-left: 10px;
-  font-size: 14px;
-  height: 24px;
-}
 </style>

+ 5 - 13
src/pages/travel/list.vue

@@ -1,12 +1,13 @@
 <template>
   <div>
     <div class="px-10 pt-20">
-      <input
+      <up-search
         v-model="searchStr"
         placeholder="请输入搜索关键词"
-        confirm-type="search"
-        @confirm="onSearch"
-      />
+        :showAction="false"
+        placeholderColor="#919191"
+        @search="onSearch"
+      ></up-search>
       <scroll-view
         v-if="dataList.length"
         type="list"
@@ -75,13 +76,4 @@ onLoad((options) => {
 </script>
 
 <style lang="scss" scoped>
-input {
-  color: rgb(50, 50, 51);
-  border: 1px solid rgb(226 230 239);
-  background-color: rgb(226 230 239);
-  border-radius: 10px;
-  padding-left: 10px;
-  font-size: 14px;
-  height: 24px;
-}
 </style>