李志伟 3 年前
父节点
当前提交
09c045401a
共有 2 个文件被更改,包括 9 次插入8 次删除
  1. 5
    7
      src/pages/details/foodDetails/foodDetails.jsx
  2. 4
    1
      src/pages/details/mjDetails/sceneryDetails.jsx

+ 5
- 7
src/pages/details/foodDetails/foodDetails.jsx 查看文件

@@ -8,7 +8,7 @@ import {
8 8
 } from "@/services/home";
9 9
 import { getVerifyTargetList } from "@/services/payOrder";
10 10
 import { useState, useEffect, useRef } from "react";
11
-import { Button, Swiper, SwiperItem, View } from "@tarojs/components";
11
+import { Button, Swiper, SwiperItem, View, Ad } from "@tarojs/components";
12 12
 import { compressImage } from '@/utils'
13 13
 import Star from "@/components/Star/Star.jsx";
14 14
 import NoData from '@/components/NoData'
@@ -78,11 +78,6 @@ export default withLayout((props) => {
78 78
     }
79 79
   }, [router.params.enterType, router.params.scene])
80 80
 
81
-
82
-
83
-
84
-
85
-
86 81
   //本店指南
87 82
   const [extend, setExtend] = useState([]);
88 83
 
@@ -159,7 +154,7 @@ export default withLayout((props) => {
159 154
           </view>
160 155
       }
161 156
 
162
-      <SpinBox loading={loading} className='index-container' style={{ padding: '0 30rpx', background: '#F8F8F8'  }}>
157
+      <SpinBox loading={loading} className='index-container' style={{ padding: '0 30rpx', background: '#F8F8F8' }}>
163 158
         <scroll-view
164 159
           scrollY={isScroll}
165 160
           style={{ height: '100%' }}
@@ -229,6 +224,9 @@ export default withLayout((props) => {
229 224
               </view>
230 225
             </view>
231 226
           </view>
227
+          <view class="adContainer">
228
+            <Ad unit-id="adunit-e6c9885420df0aff" ad-type="video" ad-theme="white" />
229
+          </view>
232 230
           {
233 231
             spackage == '' && extend == "" ?
234 232
               <NoData /> :

+ 4
- 1
src/pages/details/mjDetails/sceneryDetails.jsx 查看文件

@@ -14,7 +14,7 @@ import SpinBox from "@/components/Spin/SpinBox";
14 14
 import TabIcon from '@/components/HorTabbar/TabIcon'
15 15
 import { useState, useEffect } from 'react'
16 16
 import { getTouristDetail, getExtendContent, getRecommendList } from '@/services/home'
17
-import { Swiper, SwiperItem, Button, View } from '@tarojs/components';
17
+import { Swiper, SwiperItem, Button, View,Ad } from '@tarojs/components';
18 18
 import useSave from "@/utils/hooks/useSave"
19 19
 import useLike from "@/utils/hooks/useLike"
20 20
 import Cards from '@/components/foodCards/foodCards.jsx'
@@ -156,6 +156,9 @@ export default withLayout((props) => {
156 156
               <image className='scTip' src={isSaved > 0 ? ax : good} /><text>{isSaved > 0 ? '已收藏' : '加入收藏'}</text>
157 157
             </view>
158 158
           </view>
159
+          <view class="adContainer">
160
+            <Ad unit-id="adunit-e6c9885420df0aff" ad-type="video" ad-theme="white" />
161
+          </view>
159 162
           <view style={{ position: 'relative', display: extend == '' ? 'none' : '' }}>
160 163
             <view className='title'>
161 164
               <image src={titlejd} />景点介绍