소스 검색

shop detail

吃个甘蔗嚼一年 3 년 전
부모
커밋
50df250127

+ 2
- 3
src/components/CollectList/MyCollect/index.jsx 파일 보기

@@ -27,7 +27,7 @@ export default (props) => {
27 27
   return (
28 28
     <View>
29 29
       {
30
-        targetType === "shop" && (
30
+        targetType === "shop_package" && (
31 31
           <view class='wrapper'>
32 32
             <view class='left-complete-one'   >
33 33
               <image className='left-image-1' src={ProCard_hot} style={{ display: item.targetType === 'shop_package' ? '' : 'none' }} ></image>
@@ -66,7 +66,7 @@ export default (props) => {
66 66
       }
67 67
       <View>
68 68
         {
69
-          targetType !== "shop" && (
69
+          targetType !== "shop_package" && (
70 70
             <view class='wrapper-tourist'>
71 71
               <view class='left-complete-one'   >
72 72
                 <view className='title-image'>
@@ -99,7 +99,6 @@ export default (props) => {
99 99
           )
100 100
         }
101 101
       </View>
102
-
103 102
     </View>
104 103
 
105 104
 

+ 22
- 10
src/components/CollectList/MyCollect/style.less 파일 보기

@@ -74,14 +74,16 @@
74 74
     }
75 75
     //图片
76 76
     .title-image {
77
-      width: 145px;
77
+      height: 144px;
78 78
       margin-left: 20px;
79 79
       border-radius: 24px;
80 80
       overflow: hidden;
81 81
       position: relative;
82
+     
82 83
       .image-1 {
83
-        width: 100%;
84
-        height: 145px;
84
+        width: 144px;
85
+        height: 144px;
86
+        margin: 0 ;
85 87
       }
86 88
       .image-2 {
87 89
         width: 89px;
@@ -286,14 +288,24 @@
286 288
     }
287 289
     //图片
288 290
     .title-image {
289
-      width: 145px;
290
-      margin-left: 20px;
291
-      border-radius: 24px;
292
-      overflow: hidden;
293
-      position: relative;
291
+      // width: 145px;
292
+      // margin-left: 20px;
293
+      // overflow: hidden;
294
+      // position: relative;
295
+      height: 144px;
296
+ margin-left: 20px;
297
+ border-radius: 24px;
298
+ overflow: hidden;
299
+ position: relative;
294 300
       .image-1 {
295
-        width: 100%;
296
-        height: 145px;
301
+        // width: 100%;
302
+        // height: 145px;
303
+        // border-radius: 10px;
304
+
305
+
306
+ width: 144px;
307
+ height: 144px;
308
+ margin: 0;
297 309
       }
298 310
       .image-2 {
299 311
         width: 89px;

+ 2
- 2
src/components/foodCards/foodCards.jsx 파일 보기

@@ -58,12 +58,12 @@ export default (props) => {
58 58
           <text className='storezf'>{star}</text>
59 59
         </view>
60 60
         <view>
61
-          <view className='contentImg'  onClick={() => { goFood() }}>
61
+          <view className='contentImg' onClick={() => { goFood() }}>
62 62
             <image src={item.poster} className='img1'></image>
63 63
             <image src={msTip} className='mstip'></image>
64 64
           </view>
65 65
           <view className='neirong'>
66
-            <view className='textword'  onClick={() => { goFood() }} >{(item.description).toString().length > 22 ? (item.description).substring(0, 22) + '...' : (item.description)}</view>
66
+            <view className='textword' onClick={() => { goFood() }} >{(item.description).toString().length > 22 ? (item.description).substring(0, 22) + '...' : (item.description)}</view>
67 67
             <view className='jiage' onClick={() => { goFood() }} >
68 68
               <text className='rmb' >¥&nbsp;&nbsp;</text>
69 69
               <text className='p1'><text className='price' >{(item.actualPrice / 100).toFixed(2)}</text>元&nbsp;&nbsp;</text>

+ 3
- 3
src/pages/details/foodDetails/foodDetails.jsx 파일 보기

@@ -1,3 +1,4 @@
1
+import Taro, { useShareAppMessage } from "@tarojs/taro";
1 2
 import CustomNav from "@/components/CustomNav";
2 3
 import withLayout from "@/layouts";
3 4
 import {
@@ -20,7 +21,6 @@ import share from "@/assets/icons/housemantj/景点分享.png";
20 21
 import good from "@/assets/icons/housemantj/景点爆赞.png";
21 22
 import baozan from "@/assets/icons/housemantj/爆赞.png";
22 23
 import weibaozan from "@/assets/icons/housemantj/未赞.png";
23
-import Taro, { useShareAppMessage } from "@tarojs/taro";
24 24
 import useSave from "@/utils/hooks/useSave";
25 25
 import useLike from "@/utils/hooks/useLike";
26 26
 import Extend from "../components/Extend/extend";
@@ -130,7 +130,7 @@ export default withLayout((props) => {
130 130
       });
131 131
     }
132 132
   }, [id]);
133
-  
133
+
134 134
   const star = parseFloat(
135 135
     (
136 136
       (detail.sweetScore + detail.environmentScore + detail.serviceScore) / 3).toFixed(1)
@@ -280,7 +280,7 @@ export default withLayout((props) => {
280 280
           分享
281 281
         </view>
282 282
         <view className="tab" onClick={toggleLike}>
283
-          <image className="good" style={{top:'1px'}} src={isLike > 0 ? baozan : weibaozan} />
283
+          <image className="good" style={{ top: '1px' }} src={isLike > 0 ? baozan : weibaozan} />
284 284
           {isLike > 0 ? "已爆赞" : "爆赞"}
285 285
         </view>
286 286
         <view className="tab" onClick={toggleSave}>

+ 8
- 5
src/shop/components/ShopKeeper/shopKeeper.jsx 파일 보기

@@ -20,15 +20,16 @@ export default (props) => {
20 20
   const { tabJump } = params || {}
21 21
 
22 22
   const [activeTab, setActiveTab] = useState(0)
23
-  const [phone, setPhone] = useState()
24
-  // const [isVerified, setisVerified] = useState(0)
23
+  const [phonea, setPhone] = useState()
24
+  const [isVerifieda, setisVerified] = useState(0)
25 25
   // const [queryParams, setQueryParams] = useState({ isVerified: isVerified, pageNum: 1, pageSize: 10, shopId: shop?.shopId, phone: phone })
26 26
 
27 27
   const queryParams = useMemo(() => ({
28 28
     shopId: shop?.shopId,
29
-    isVerified: `${tabJump}` === '1' ? 1 : 0,
30
-    phone: phone || '',
31
-  }), [phone, shop?.shopId, tabJump])
29
+    isVerified: isVerifieda,
30
+    // `${tabJump}` === '1' ? 1 : 0,
31
+    phone: phonea || '',
32
+  }), [phonea, shop?.shopId, isVerifieda])
32 33
 
33 34
 
34 35
   // 获取资源表信息
@@ -63,6 +64,8 @@ export default (props) => {
63 64
   const handleTabChange = (e) => {
64 65
     const { index } = e.detail
65 66
     setActiveTab(index)
67
+    setisVerified(index)
68
+
66 69
   }
67 70
   const tabs = [
68 71
     {