Browse Source

添加水印图

230320a303 1 year ago
parent
commit
194c8a0bed

BIN
src/components/hlSign/img/bg1.png


BIN
src/components/hlSign/img/bg2.png


+ 28 - 0
src/components/hlSign/index.js

@@ -0,0 +1,28 @@
+import Taro, { Component } from '@tarojs/taro'
+import './index.scss'
+import { View } from '@tarojs/components'
+export default class Footer extends Component {
+  constructor (props) {
+    super(props)
+    this.state = {
+    }
+  }
+  componentWillMount () {
+  }
+
+
+
+  render () {
+    const r = Math.random()
+    console.log(r)
+    return (
+      <View className='scoped-hl-sign'>
+        {
+          r > 0.5
+          ? <Image className="img" src='./img/bg1.png' />
+          : <Image className="img" src='./img/bg2.png' />
+        }
+      </View>
+    )
+  }
+}

+ 8 - 0
src/components/hlSign/index.scss

@@ -0,0 +1,8 @@
+.scoped-hl-sign {
+  width: 750px;
+  height: 99px;
+  .img {
+    width: 750px;
+    height: 99px;
+  }
+}

+ 2 - 0
src/pages/index/index.jsx

@@ -3,6 +3,7 @@ import { View, ScrollView, Image, Navigator, Swiper, SwiperItem } from '@tarojs/
 
 import Footer from '@/c/footer'
 import SearchHouse from '@/c/searchHouse'
+import hlSign from '@/c/hlSign'
 import InfoMore from './components/infoMore'
 import NewsNews from './components/news'
 // import News2 from './components/news/index2'
@@ -818,6 +819,7 @@ class Index extends Component {
           </View>
           {/* {this.renderHouseList()} */}
           {this.renderMainEntry()}
+          <hlSign />
           {this.renderTopNav()}
           {/* {this.renderLine()} */}
           {this.renderHotRecommend()}

+ 1 - 0
src/pages/index/index.scss

@@ -413,6 +413,7 @@ page {
 
 .scoped-main-entry {
   padding-top: 10px;
+  margin-bottom: 10px;
   .sme-top {
     position: relative;
     width: 716px;

+ 2 - 0
src/pagesHouse/index.jsx

@@ -2,6 +2,7 @@ import Taro, { Component } from '@tarojs/taro'
 import { View, Image, Text, Navigator } from '@tarojs/components'
 
 import SearchHouse from '@/c/searchHouse'
+import hlSign from '@/c/hlSign'
 import ListMore from '@/c/pageDataList/listMore'
 import Footer from '@/c/footer'
 import MultiSelect from '@/c/lform/MultiSelect'
@@ -986,6 +987,7 @@ class Index extends Component {
               {this.renderTheme()}
             </View>
           </View>
+          <hlSign />
           <View className="scoped-box">
             <View className="sb-title">全部楼盘</View>
             <View className="sb-content">

+ 2 - 0
src/pagesHouse/indexDtl.jsx

@@ -1,5 +1,6 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, Map, Image, Swiper, SwiperItem, Button, ScrollView } from '@tarojs/components'
+import hlSign from '@/c/hlSign'
 import { arrToObj } from '@utils'
 import LoginPopup from '@/c/login/Popup'
 import Comment from './components/indexDtl/comment'
@@ -550,6 +551,7 @@ class Index extends Component {
             <View className="k">初次交付</View>
             <View className="v">{curObj.deliver_time || '未知'}</View>
           </View>
+          <hlSign />
         </View>
       </View>
     )

+ 2 - 1
src/pagesHouse/list.jsx

@@ -1,6 +1,6 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, Image, Text, Navigator } from '@tarojs/components'
-
+import hlSign from '@/c/hlSign'
 import { AtSearchBar, AtTabs } from 'taro-ui'
 import ListMore from '@/c/pageDataList/listMore'
 import './list.scss'
@@ -1135,6 +1135,7 @@ class Index extends Component {
         lowerThreshold="60"
         onScrollToLower={this.onScrollToLower.bind(this)}
       >
+          <hlSign />
         <View className="l-house-list">
           {itemsList}
         </View>

+ 2 - 1
src/pagesMore/news/index.jsx

@@ -1,6 +1,6 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, Image, Navigator } from '@tarojs/components'
-
+import hlSign from '@/c/hlSign'
 import { AtSearchBar, AtTabs, AtTabsPane } from 'taro-ui'
 import ListMore from '@/c/pageDataList/listMore'
 import Footer from '@/c/footer'
@@ -740,6 +740,7 @@ class Index extends Component {
             &&
             <View className="scoped-tp-box">
               {this.renderTpTop()}
+              <hlSign />
               {this.renderTupai()}
             </View>
           }

+ 2 - 1
src/pagesOther/map/metro.jsx

@@ -1,7 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, ScrollView, Map } from '@tarojs/components'
 import ListMore from '@/c/pageDataList/listMore'
-
+import hlSign from '@/c/hlSign'
 import './metro.scss'
 import { arrToObj } from '@utils'
 
@@ -366,6 +366,7 @@ class Index extends Component {
       <View className="l-box">
         {this.renderPos()}
         {this.renderMetro()}
+        <hlSign />
         {this.renderEstate()}
       </View>
     )

+ 2 - 1
src/pagesQa/area.jsx

@@ -1,6 +1,6 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, Map, Navigator } from '@tarojs/components'
-
+import hlSign from '@/c/hlSign'
 import './area.scss'
 import { arrToObj } from '@utils'
 
@@ -185,6 +185,7 @@ class Index extends Component {
     const markers = JSON.parse(JSON.stringify([...areaArr]))
     return (
       <View className="l-box">
+        <hlSign />
         <Map
           longitude={mapDiyObj.center[0]}
           latitude={mapDiyObj.center[1]} 

+ 2 - 0
src/pagesQa/areaImg.jsx

@@ -1,6 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View } from '@tarojs/components'
 import './areaImg.scss'
+import hlSign from '@/c/hlSign'
 import { arrToObj } from '@utils'
 
 class Index extends Component {
@@ -112,6 +113,7 @@ class Index extends Component {
         <Navigator url={'/pagesOther/map/dtl'} className="scoped-top">
           <Image src={bg} className="bg" />
         </Navigator>
+        <hlSign />
         {this.renderOp()}
         {this.renderShare()}
         {this.renderFooter()}

+ 2 - 0
src/pagesQa/yhBaike.jsx

@@ -1,6 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View } from '@tarojs/components'
 import ListMore from '@/c/pageDataList/listMore'
+import hlSign from '@/c/hlSign'
 import './yhBaike.scss'
 import { arrToObj } from '@utils'
 
@@ -301,6 +302,7 @@ class Index extends Component {
     return (
       <View className="l-box scoped-box">
         {this.renderHeader()}
+        <hlSign />
         <View className="scoped-footer">
           <View className="sf-nav">
             {navItems}

+ 2 - 0
src/pagesSchool/area.jsx

@@ -1,6 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View } from '@tarojs/components'
 import Footer from '@/c/footer'
+import hlSign from '@/c/hlSign'
 import './area.scss'
 import { arrToObj } from '@utils'
 
@@ -116,6 +117,7 @@ class Index extends Component {
         <Navigator url={'/pagesOther/map/dtl'} className="scoped-top">
           <Image src={xqbanner} className="bg" />
         </Navigator>
+        <hlSign />
         {this.renderOp()}
         {this.renderShare()}
         <Footer current={1} />

+ 1 - 0
src/pagesSchool/area.scss

@@ -3,6 +3,7 @@
   display: flex;
   flex-wrap: wrap;
   padding-left: 30px;
+  margin-top: 20px;
   .sb-item {
     width: 332px;
     height: 170px;

+ 2 - 1
src/pagesSchool/class.jsx

@@ -1,7 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View } from '@tarojs/components'
 import './class.scss'
-
+import hlSign from '@/c/hlSign'
 class Index extends Component {
   onShareAppMessage() {
     const { curId, curObj } = this.state
@@ -83,6 +83,7 @@ class Index extends Component {
         <Navigator url={'/pagesMore/news/list?type=xqsc'} className="scoped-top">
           <Image src={xqbanner} className="bg" />
         </Navigator>
+        <hlSign />
         {this.renderOp()}
       </View>
     )

+ 2 - 0
src/pagesSchool/indexDtl.jsx

@@ -1,6 +1,7 @@
 import Taro, { Component } from '@tarojs/taro'
 import { View, ScrollView } from '@tarojs/components'
 import { arrToObj } from '@utils'
+import hlSign from '@/c/hlSign'
 import Comment from './components/indexDtl/comment'
 import House from './components/indexDtl/house'
 import HouseGh from './components/indexDtl/houseGh'
@@ -256,6 +257,7 @@ class Index extends Component {
         scrollIntoView={viewId}
       >
         {this.renderHeader()}
+        <hlSign />
         {this.renderRange()}
         <View className="scoped-bg">
           {