Ver código fonte

修改坐标点

任重 2 meses atrás
pai
commit
4043802db9

+ 14 - 8
packages/app/src/pages-sub/home/mall/index.vue

@@ -148,7 +148,10 @@ onShareTimeline(() => ({
       <div class="absolute top-11 left-0 right-0 bottom-0 bg-white rounded-2xl shadow swiper">
         <SwiperEvo v-model="current" :items="favourableProducts">
           <template #default="{ item: it }">
-            <div class="w-full h-full px-4 flex items-center gap-3 box-border" @click="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)">
+            <div
+              class="w-full h-full px-4 flex items-center gap-3 box-border"
+              @click="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)"
+            >
               <wd-img
                 width="114"
                 height="114"
@@ -171,14 +174,16 @@ onShareTimeline(() => ({
 
                       <ProgressEvo
                         :height="6"
-                        :model-value="(it.exchangeCount / (it.productRepertory + it.exchangeCount) || 0) * 100"
+                        :model-value="
+                          (it.exchangeCount / (it.productRepertory + it.exchangeCount) || 0) * 100
+                        "
                         color="black"
                       ></ProgressEvo>
                     </div>
                     <div
                       class="text-black/40 text-[10px] font-normal font-['PingFang_SC'] leading-normal"
                     >
-                      还剩{{ it.productRepertory}}件
+                      还剩{{ it.productRepertory }}件
                     </div>
                   </template>
                   <template v-else>
@@ -193,7 +198,6 @@ onShareTimeline(() => ({
                       class="text-black/40 text-[10px] font-normal font-['PingFang_SC'] leading-normal"
                     >
                       <!--                      还剩{{ it.productRepertory - it.exchangeCount }}件-->
-                      数量不限
                     </div>
                   </template>
                 </div>
@@ -206,7 +210,9 @@ onShareTimeline(() => ({
                   </div>
                   <div class="flex-1"></div>
                   <div
-                    @click.stop="router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)"
+                    @click.stop="
+                      router.push(`/pages-sub/home/mall/detail/index?id=${it.productId}`)
+                    "
                   >
                     <wd-img width="106" height="40" :src="grabNow"></wd-img>
                   </div>
@@ -295,7 +301,7 @@ onShareTimeline(() => ({
 </template>
 
 <style lang="scss">
-	:deep(.swiper .swiper-item.h-full>view){
-		height:100%;
-	}
+:deep(.swiper .swiper-item.h-full > view) {
+  height: 100%;
+}
 </style>

+ 6 - 6
packages/app/src/pages/material/detail/index.vue

@@ -236,8 +236,8 @@ onShareTimeline(() => ({
                 custom-class=" bg-[#f2f2f2]! p-0! ml-4"
                 @click="
                   openLocation({
-                    latitude: shop.latitude,
-                    longitude: shop.longitude,
+                    latitude: shop.longitude,
+                    longitude: shop.latitude,
                     name: shopName,
                     address: shopAddr,
                   })
@@ -375,19 +375,19 @@ onShareTimeline(() => ({
   width: 40rpx;
 }
 .deal-title {
+  padding: 60rpx 0;
   font-size: 32rpx;
-  text-align: center;
   font-weight: bold;
-  padding: 60rpx 0;
+  text-align: center;
 }
 .deal-link {
   padding: 20rpx 30rpx;
+  margin-bottom: 60rpx;
   font-size: 28rpx;
   color: rgba(0, 0, 0, 0.45);
+  word-wrap: break-word;
   background-color: rgba(200, 200, 200, 0w);
   border-radius: 20rpx;
-  margin-bottom: 60rpx;
-  word-wrap: break-word;
 }
 :deep(.custom-shadow) {
   width: 100% !important;

+ 1 - 1
packages/merchant/src/layouts/tabbar.vue

@@ -285,7 +285,7 @@ onMounted(async () => {
                 <div>
                   {{ !dataForm.address.address ? '点击获取当前位置' : dataForm.address.address }}
                 </div>
-                <wd-icon name="refresh" size="14px" @click="getCurrentLocation"></wd-icon>
+                <wd-icon name="refresh" size="14px"></wd-icon>
               </div>
             </div>
           </template>