张延森 преди 5 години
родител
ревизия
321ef5e545

+ 4
- 4
config/prod.js Целия файл

@@ -3,12 +3,12 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"http://192.168.0.218:8080"',
7
-    // WSS_HOST: '"ws://192.168.0.218:8080"',
6
+    HOST: '"http://192.168.0.72:8080"',
7
+    WSS_HOST: '"ws://192.168.0.72:8080"',
8 8
     // HOST:  '"https://dev.jinchengjiaye.com"',
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
-    HOST: '"https://lt.pawoma.cn"',
11
-    WSS_HOST: '"wss://lt.pawoma.cn"',
10
+    //   HOST: '"https://lt.pawoma.cn"',
11
+    //   WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
   },
13 13
   weapp: {},
14 14
   h5: {}

+ 1
- 1
project.config.json Целия файл

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行",
5
-	"appid": "wxda1f84b79b3edeb3",
5
+	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 0
src/app.js Целия файл

@@ -162,6 +162,7 @@ class App extends Component {
162 162
       this.getRouterParams().then(router => {
163 163
         Taro.setStorageSync('router', router)
164 164
         console.info('router2:', router)
165
+        console.info('-----------')
165 166
         const { query: payload } = router
166 167
         // login
167 168
         login(payload, res => {

BIN
src/assets/play.png Целия файл


+ 2
- 2
src/pages/activity/detail/assistance.js Целия файл

@@ -516,7 +516,7 @@ export default class Detail extends Component {
516 516
             <View className="ass-page">
517 517
               <Notice></Notice>
518 518
               <View className="detail-banner">
519
-                <Image mode="widthFix" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
519
+                <Image mode="aspectFill" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
520 520
 
521 521
                 <View className="rest-time">
522 522
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
@@ -617,7 +617,7 @@ export default class Detail extends Component {
617 617
                 </View>
618 618
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
619 619
                 <View style="padding:0 40rpx">
620
-                  <Image src={getThumbnail(detail.activityInstructions)} mode="widthFix" style="width:100%;margin-bottom:20px;"></Image>
620
+                  <Image src={getThumbnail(detail.activityInstructions)} mode="aspectFill" style="width:100%;margin-bottom:20px;"></Image>
621 621
                 </View>
622 622
 
623 623
               </ScrollView>

+ 4
- 4
src/pages/activity/detail/index.js Целия файл

@@ -318,7 +318,7 @@ export default class Detail extends Component {
318 318
             <View>
319 319
               <Notice></Notice>
320 320
               <View className="detail-banner">
321
-                <Image mode="widthFix" src={getThumbnail(detail.imgUrl)} className="detail-banner__img"></Image>
321
+                <Image mode="aspectFill" src={getThumbnail(detail.imgUrl)} className="detail-banner__img"></Image>
322 322
               </View>
323 323
               <ScrollView
324 324
                 scrollY
@@ -369,13 +369,13 @@ export default class Detail extends Component {
369 369
                 {
370 370
                   posterShow && (
371 371
                     <Button className='btn poster-btn' onClick={() => { this.togglePosterStatus(true) }}>
372
-                      <Image mode="widthFix" src={require('@assets/tupian_3@3x.png')} className="btn-icon"></Image>
372
+                      <Image mode="aspectFill" src={require('@assets/tupian_3@3x.png')} className="btn-icon"></Image>
373 373
                       <Text className="txt">海报</Text>
374 374
                     </Button>
375 375
                   )
376 376
                 }
377 377
                 <Button className="btn share-btn" open-type="share">
378
-                  <Image mode="widthFix" src={require('@assets/fasong@3x.png')} className="btn-icon"></Image>
378
+                  <Image mode="aspectFill" src={require('@assets/fasong@3x.png')} className="btn-icon"></Image>
379 379
                   <Text className="txt">分享</Text>
380 380
                 </Button>
381 381
 
@@ -407,7 +407,7 @@ export default class Detail extends Component {
407 407
                   <Text className="page-section__title">报名信息</Text>
408 408
                   <View className='page-content'>
409 409
                     <Input className='inputName' onInput={this.onInputText.bind(this)} type='text' placeholder='请输入姓名' />
410
-                    <Picker mode='selector' range={this.state.selector} onChange={this.onChange}>
410
+                    <Picker mode='aspectFill' range={this.state.selector} onChange={this.onChange}>
411 411
                       <View className='picker'>
412 412
                         <Text>参加人数</Text>
413 413
                         <Text className='content'>{this.state.selectorChecked}</Text>

+ 1
- 1
src/pages/activity/detail/index.scss Целия файл

@@ -23,7 +23,7 @@
23 23
 .detail-banner {
24 24
   position: relative;
25 25
   overflow: hidden;
26
-  height: 624px;
26
+  height: 600px;
27 27
   width: 100%;
28 28
 
29 29
   &__img {

+ 1
- 1
src/pages/activity/item/index.scss Целия файл

@@ -71,7 +71,7 @@
71 71
   }
72 72
   .pic {
73 73
     width: 100%;
74
-    height:332px;
74
+    height:388px;
75 75
     display: block;
76 76
   }
77 77
 

+ 1
- 1
src/pages/agent/become/index.js Целия файл

@@ -122,7 +122,7 @@ export default class Index extends Component {
122 122
     const { userInfo: { person: { phone } } } = this.props
123 123
     return (
124 124
       <View className='page'>
125
-        <Image src={bannerImg} className='banner' mode='widthFix'></Image>
125
+        <Image src={bannerImg} className='banner' mode='aspectFill'></Image>
126 126
         <View className='become_agent'>
127 127
           {/* <View className='agent_type'>
128 128
             <Text className='agent_title'>经纪人类型</Text>

+ 1
- 1
src/pages/agent/index.js Целия файл

@@ -87,7 +87,7 @@ export default class Index extends Component {
87 87
         {/* 生成海报 */}
88 88
         {posterVisible && (<Poster data={posterData} toggle={this.toggleMakePosterModal}></Poster>)}
89 89
         <View className='page'>
90
-          <Image src={topImg} className='top_img' mode='widthFix'></Image>
90
+          <Image src={topImg} className='top_img' mode='aspectFill'></Image>
91 91
           <View className='agent_info'>
92 92
             <Image src={agent.avatarurl} className='agent_avatar'></Image>
93 93
             <View className='agent_info-center'>

+ 2
- 2
src/pages/agent/progress/index.js Целия файл

@@ -150,8 +150,8 @@ export default class Index extends Component {
150 150
       <View className='client__progress'>
151 151
         <View className='client__infor'>
152 152
           <View className='clieng__name'>{detail.name}</View>
153
-          <View className='clieng__build'><Image mode="widthFix" className='build__img' src={buildImg}></Image>意向楼盘:{detail.intention || '暂无'}</View>
154
-          <View className='clieng__phone'><Image mode="widthFix" className='phone__img' src={phoneImg}></Image>{detail.phone || '暂无'}</View>
153
+          <View className='clieng__build'><Image mode="aspectFill" className='build__img' src={buildImg}></Image>意向楼盘:{detail.intention || '暂无'}</View>
154
+          <View className='clieng__phone'><Image mode="aspectFill" className='phone__img' src={phoneImg}></Image>{detail.phone || '暂无'}</View>
155 155
           {/* <Image className='client__img' src={headImg}></Image> */}
156 156
         </View>
157 157
         <View className='progress__infor'>

+ 3
- 3
src/pages/card/index.js Целия файл

@@ -432,10 +432,10 @@ export default class Index extends Component {
432 432
             <ScrollView scrollY>
433 433
               <View className='mycard__user__info'>
434 434
                 <View className='mycard__user__imgox'>
435
-                  <Image className='mycard__user__img' src={picture} mode="widthFix"></Image>
435
+                  <Image className='mycard__user__img' src={picture} mode="aspectFill"></Image>
436 436
                   <Image src={picture} mode="aspectFill" className='head__img'></Image>
437 437
                 </View>
438
-                <Image src={require('@assets/person/top.png')} className='top-img' mode="widthFix"></Image>
438
+                <Image src={require('@assets/person/top.png')} className='top-img' mode="aspectFill"></Image>
439 439
               </View>
440 440
 
441 441
               <View className='mycard__user__information'>
@@ -464,7 +464,7 @@ export default class Index extends Component {
464 464
 
465 465
                 </View>
466 466
                 <View className='row medal'>
467
-                  <Image mode="widthFix" className="img" src={require('@assets/person/jinpai.png')}></Image>
467
+                  <Image mode="aspectFill" className="img" src={require('@assets/person/jinpai.png')}></Image>
468 468
                   <Text>金牌置业顾问</Text>
469 469
                 </View>
470 470
 

+ 1
- 1
src/pages/im/msgItem/index.js Целия файл

@@ -62,7 +62,7 @@ export default class MsgItem extends Component {
62 62
       )
63 63
     }
64 64
     if (row.messageType === 'image') {
65
-      return (<Image className="item__content-img" mode="widthFix" src={row.message} onClick={this.onPreviewImg.bind(this, row)} />)
65
+      return (<Image className="item__content-img" mode="aspectFill" src={row.message} onClick={this.onPreviewImg.bind(this, row)} />)
66 66
     }
67 67
 
68 68
     return (<View className="item__content-txt">{row.message}</View>)

+ 1
- 1
src/pages/news/item.js Целия файл

@@ -14,7 +14,7 @@ export default class NewsItem extends Component {
14 14
     const { data } = this.props
15 15
     return (
16 16
       <View className="item" key={data.newsId} onClick={this.handleClick}>
17
-        <Image className="item-img" mode="aspectFill" src={getThumbnail(data.newsImg)}></Image>
17
+        <Image className="item-img"  src={getThumbnail(data.newsImg)}></Image>
18 18
         <View className="item-con">
19 19
           <View className="item-con__title">{data.newsName}</View>
20 20
           <View className="item-con__date">于{dayjs(data.createDate).format('YYYY-MM-DD  HH:mm:ss')}发布</View>

+ 5
- 5
src/pages/news/item.scss Целия файл

@@ -4,16 +4,16 @@
4 4
   display: flex;
5 5
   justify-content: space-between;
6 6
   align-items: center;
7
-	margin:0 30px;
7
+	// margin:0 30px;
8 8
 
9 9
   &-img {
10
-    width: 350px;
11
-    height: 160px;
12
-    margin-right: 30px;
10
+    width:220px;
11
+height:176px;
12
+    // margin-right: 60px;
13 13
   }
14 14
 
15 15
   &-con {
16
-    width: 100%;
16
+    width:450px;
17 17
     display: flex;
18 18
     flex-direction: column;
19 19
     justify-content: space-between;

+ 11
- 10
src/pages/person/index.js Целия файл

@@ -5,7 +5,7 @@ import { ROLE_CODE } from '@constants/user'
5 5
 import { queryUserInfo, doUserSignin } from '@services/user'
6 6
 import { connect } from '@tarojs/redux'
7 7
 import Notice from '@components/Notice'
8
-import { getCodeMessage, putRegisterConsultant} from '@services/getCode'
8
+import { getCodeMessage, putRegisterConsultant } from '@services/getCode'
9 9
 import * as actions from '@actions/user'
10 10
 import Authorize from '@components/authorize'
11 11
 
@@ -90,8 +90,8 @@ export default class Person extends Component {
90 90
       }
91 91
     }
92 92
     else {
93
-   
94
-    
93
+
94
+
95 95
       putRegisterConsultant().then(res => {
96 96
         // console.log("匹配成功,请退出小程序重新登录即可")
97 97
         Taro.showToast({
@@ -100,7 +100,8 @@ export default class Person extends Component {
100 100
       }).catch(err => {
101 101
         console.error(err)
102 102
         Taro.showToast({
103
-          title: "匹配失败,请联系相关管理人员"
103
+          title: "匹配失败,请联系相关管理人员",
104
+          icon: "none"
104 105
         })
105 106
       })
106 107
     }
@@ -157,7 +158,7 @@ export default class Person extends Component {
157 158
       <View className="person">
158 159
         <Notice></Notice>
159 160
         <View className="info">
160
-          <Image className="bg" src={require('@assets/mine/background.png')} mode='widthFix'></Image>
161
+          <Image className="bg" src={require('@assets/mine/background.png')} mode='aspectFill'></Image>
161 162
           <View className="content">
162 163
             <View className="info-block">
163 164
               <View className="avatar" onClick={this.goPersonDetail}>
@@ -169,14 +170,14 @@ export default class Person extends Component {
169 170
                 <View className="info-text__name">{user.name ? user.name : user.nickname}</View>
170 171
                 <View className="info-text__intro">积分 {user.points || 0}</View>
171 172
               </View>
172
-              {
173
+              {/* {
173 174
                 user.personType != 'customer' && (
174 175
                   <Navigator url={`/pages/person/spread/index`} className="tuiguang">
175 176
                     <Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
176 177
                     <View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
177 178
                   </Navigator>
178 179
                 )
179
-              }
180
+              } */}
180 181
             </View>
181 182
             {/* <View
182 183
               className={`sign__btn ${user.havaSigned && 'signed'}`}
@@ -195,16 +196,16 @@ export default class Person extends Component {
195 196
         <View>
196 197
           {
197 198
             menus.map((group, ginx) => {
198
-           
199
+
199 200
               return (
200 201
                 <Block key={`grp-${ginx}`}>
201 202
                   {
202 203
                     group.map((menu, inx) => {
203 204
                       return (
204
-                        <View onClick={() => this.redirectTo(menu.url)} className="menu-item-con" key={`menu-${inx}`}>
205
+                        <View onClick={() => this.redirectTo(menu.url)} style={{ color: menu.style }} className="menu-item-con" key={`menu-${inx}`}>
205 206
                           <Image className="left-icon" src={menu.icon} ></Image>
206 207
                           <View className="menu-maintext">
207
-                            <Text className="menu-name">{menu.name}</Text>
208
+                            <Text className="menu-name" style={ menu.style }>{menu.name}</Text>
208 209
                             <Text className="right-icon"></Text>
209 210
                           </View>
210 211
                         </View>

+ 6
- 1
src/pages/person/menus.js Целия файл

@@ -38,13 +38,15 @@ const menus = [
38 38
       icon: icons.homepage,
39 39
       extends: undefined,
40 40
       userTypes: [CONSULTANT],
41
+      style: '',
41 42
     },
42 43
     {
43 44
       name: '盘客工具',
44 45
       url: '/pages/person/customerAnalysis/index',
45 46
       icon: icons.homepage,
46 47
       extends: undefined,
47
-      userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
48
+      userTypes: [ CONSULTANT],
49
+      style: '',
48 50
     },
49 51
     // {
50 52
     //   name: '成为经纪人',
@@ -59,6 +61,7 @@ const menus = [
59 61
       icon: icons.recommend,
60 62
       extends: undefined,
61 63
       userTypes: [CUSTOMER,ESTATE_AGENT, CHANNEL_AGENT],
64
+      style: '',
62 65
     },
63 66
     // {
64 67
     //   name: '发展经纪人',
@@ -149,12 +152,14 @@ const menus = [
149 152
       icon: icons.development,
150 153
       extends: undefined,
151 154
       userTypes: [CUSTOMER,ESTATE_AGENT],
155
+      style: {color:'#888888'},
152 156
     },
153 157
     {
154 158
       name: '成为置业顾问',
155 159
       url: '',
156 160
       icon: icons.consultant,
157 161
       extends: undefined,
162
+      style: {color:'#888888'},
158 163
       userTypes: [CUSTOMER,ESTATE_AGENT],
159 164
     },
160 165
 

+ 3
- 1
src/pages/project/banner/index.js Целия файл

@@ -21,7 +21,7 @@ export default class SwiperBanner extends Component {
21 21
  
22 22
     const current = event.detail.current
23 23
    
24
-    this.props.onChange(current)
24
+    this.props.onChange|| this.props.onChange(current)
25 25
   
26 26
    
27 27
   
@@ -32,6 +32,8 @@ export default class SwiperBanner extends Component {
32 32
   }
33 33
   render () {
34 34
     const { list, style, indicatorDots, current } = this.props
35
+
36
+    console.log('banner',list)
35 37
     return (
36 38
       <View className='home-banner' style={style}>
37 39
         <Swiper

+ 124
- 34
src/pages/project/detail/index.js Целия файл

@@ -1,5 +1,5 @@
1 1
 import Taro, { Component } from '@tarojs/taro';
2
-import { View, Video } from '@tarojs/components'
2
+import { View, Video, SwiperItem, Swiper } from '@tarojs/components'
3 3
 import './index.scss'
4 4
 import Banner from '../banner'
5 5
 import HelpGroupBanner from '../swiper'
@@ -55,10 +55,12 @@ export default class Index extends Component {
55 55
     current: 1,
56 56
     btnstate: 1,// 1显示视频 0显示图片
57 57
     albumCurrent: 0,
58
+    videoPlayShow: 'flex',
58 59
   }
59 60
 
60 61
   componentWillMount() {
61 62
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
63
+
62 64
     ready.queue(() => {
63 65
       const router = Taro.getStorageSync('router')
64 66
       const id = this.$router.params.id || router.query.id
@@ -97,6 +99,7 @@ export default class Index extends Component {
97 99
 
98 100
   loadHelpGroupList() {
99 101
     const { buildingId } = this.state
102
+
100 103
     queryHelpGroup({ buildingId: buildingId }).then(res => {
101 104
       console.log(res, "buildingId")
102 105
       const helpList = []
@@ -708,7 +711,7 @@ export default class Index extends Component {
708 711
             <View className="title">助力活动</View>
709 712
             <View style={{ position: 'relative' }}>
710 713
               <HelpGroupBanner
711
-                style={{ height: '130px' }}
714
+                style={{ height: '250rpx' }}
712 715
                 indicatorDots={false}
713 716
                 list={helpList}
714 717
                 onClick={this.handleHelpClick}>
@@ -736,11 +739,12 @@ export default class Index extends Component {
736 739
       <Block>
737 740
         {groupList.length > 0 &&
738 741
           <View className="activity">
742
+            {console.log(groupList, '----groupList-----')}
739 743
             <View className="title">拼团活动</View>
740 744
             <View
741 745
               style={{ position: 'relative' }}>
742 746
               <HelpGroupBanner
743
-                style={{ height: '130px' }}
747
+                style={{ height: '250rpx' }}
744 748
                 indicatorDots={false}
745 749
                 list={groupList}
746 750
                 onClick={this.handleGroupClick}>
@@ -800,32 +804,70 @@ export default class Index extends Component {
800 804
 
801 805
     )
802 806
   }
803
-  renderActivities() {
807
+  renderActivities () {
808
+    // renderGroup () {
809
+    //   const { groupList } = this.state
810
+    //   return (
811
+    //     <Block>
812
+    //       {groupList.length > 0 &&
813
+    //         <View className="activity">
814
+    //           <View className="title">拼团活动</View>
815
+    //           <View
816
+    //             style={{ position: 'relative' }}>
817
+    //             <HelpGroupBanner
818
+    //               style={{ height: '250rpx' }}
819
+    //               indicatorDots={false}
820
+    //               list={groupList}
821
+    //               onClick={this.handleGroupClick}>
822
+    //             </HelpGroupBanner>
823
+    //           </View>
824
+    //         </View>
825
+    //       }
826
+    //     </Block>
827
+    //   )
828
+    // }
804 829
     const { activityList } = this.state
805 830
     return (
806 831
       <Block>
807 832
         {
808 833
           activityList.length > 0 && (
809
-            <View className="house-type">
810
-              <View className="section-head">
811
-                <Text className="section-head__title">热门活动</Text>
812
-                <View className="section-head__more" onClick={this.handleActivityMoreClick}>
813
-                  更多活动<Text className="iconfont icon-more"></Text>
814
-                </View>
834
+            <View className="activity">
835
+              {console.log(activityList, '----activityList-----')}
836
+              <View className="title">热门活动</View>
837
+              <View
838
+                style={{ position: 'relative' }}>
839
+                <HelpGroupBanner
840
+                  style={{ height: '250rpx' }}
841
+                  activityStyle={{ height: '334rpx' }}
842
+                  indicatorDots={false}
843
+                  list={activityList}
844
+                  type='activity'
845
+                // onClick={this.handleGroupClick}
846
+                >
847
+                </HelpGroupBanner>
848
+
815 849
               </View>
816
-              <ScrollView scrollX>
817
-                <View className="house-type__list" style="margin-top:10px">
818
-                  {
819
-                    activityList.map(item => (
820
-                      <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
821
-                        <Image mode="aspectFill" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
822
-                        <View className="news-item__title">{item.title}</View>
823
-                      </View>
824
-                    ))
825
-                  }
826
-                </View>
827
-              </ScrollView>
828 850
             </View>
851
+            // <View className="house-type">
852
+            //   <View className="section-head">
853
+            //     <Text className="section-head__title">热门活动</Text>
854
+            //     <View className="section-head__more" onClick={this.handleActivityMoreClick}>
855
+            //       更多活动<Text className="iconfont icon-more"></Text>
856
+            //     </View>
857
+            //   </View>
858
+            //   <ScrollView scrollX>
859
+            //     <View className="house-type__list" style="margin-top:10px">
860
+            //       {
861
+            //         activityList.map(item => (
862
+            //           <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
863
+            //             <Image mode="widthFix" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
864
+            //             <View className="news-item__title">{item.title}</View>
865
+            //           </View>
866
+            //         ))
867
+            //       }
868
+            //     </View>
869
+            //   </ScrollView>
870
+            // </View>
829 871
           )
830 872
         }
831 873
       </Block>
@@ -862,9 +904,39 @@ export default class Index extends Component {
862 904
       </Block>
863 905
     )
864 906
   }
907
+  plagVideo () {
908
+    let videoContext = wx.createVideoContext('myVideo')
909
+    console.log()
910
+    // this.setState({
911
+    //   videoPlayShow: 'none'
912
+    // })
913
+    videoContext.play()
914
+  }
865 915
 
866
-  renderVideo() {
916
+  onPlay () {
917
+    
918
+    console.log()
919
+    this.setState({
920
+      videoPlayShow: 'none'
921
+    })
922
+   
923
+  }
924
+
925
+  onPause () {
926
+   
927
+    this.setState({
928
+      videoPlayShow: 'flex'
929
+    })
930
+  
931
+  }
932
+
933
+  renderVideo () {
934
+    const {videoPlayShow}  = this.state
867 935
     const { projectDetail } = this.props
936
+    const { videoImage } = projectDetail
937
+    const imgSrc = videoImage[0].url
938
+
939
+
868 940
     return (
869 941
       <View
870 942
         className="pro__banner"
@@ -873,21 +945,39 @@ export default class Index extends Component {
873 945
         <Video
874 946
           src={projectDetail.videoUrl}
875 947
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
876
-          poster={getThumbnail(projectDetail.videoImage)}
948
+          poster={getThumbnail(imgSrc)}
877 949
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
878 950
           style={{
879
-            height: '278rpx',
880
-            width: '375rpx'
951
+            height: '600rpx',
952
+            width: '750rpx'
881 953
           }}
882
-          controls={true}
883
-          autoplay={false}
884
-
885
-          initialTime='0'
886
-          id='video'
887
-          loop={false}
888
-          muted={false}
954
+          id='myVideo'
955
+          controls={false}
956
+          // autoplay={false}
957
+
958
+          // initialTime='0'
959
+         
960
+          // loop={false}
961
+          // muted={false}
889 962
           show-mute-btn='true'
963
+          onPlay={this.onPlay}
964
+          show-center-play-btn='false'
965
+          onPause= {this.onPause}
966
+          // show-center-play-btn= 'f'
890 967
         ></Video>
968
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow  }}>
969
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
970
+        </Button>
971
+
972
+        {/* <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
973
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>style={{ display: posterShow }}
974
+        </Button>
975
+
976
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
977
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
978
+        </Button> */}
979
+
980
+      
891 981
       </View>
892 982
     )
893 983
   }
@@ -923,7 +1013,7 @@ export default class Index extends Component {
923 1013
                     // current
924 1014
                     onChange={this.changeCurrent.bind(this)}
925 1015
                     style={{
926
-                      height: '278px'
1016
+                      height: '600rpx'
927 1017
                     }}
928 1018
 
929 1019
                   ></Banner>

+ 20
- 5
src/pages/project/detail/index.scss Целия файл

@@ -48,7 +48,7 @@
48 48
 
49 49
 
50 50
   .wrap {
51
-    padding-top: 556px;
51
+    padding-top: 580px;
52 52
     background: transparent;
53 53
   }
54 54
 
@@ -116,11 +116,11 @@
116 116
     width: 320px;
117 117
     float: left;
118 118
     margin-bottom: 30px;
119
-    margin-right: 20px;
119
+    margin-right: 36px;
120 120
 
121 121
     &__pic {
122
-      width: 320px;
123
-      height: 240px;
122
+      width: 336px;
123
+      height: 268px;
124 124
       border-radius: 10px;
125 125
       background-color: #eee;
126 126
     }
@@ -793,13 +793,28 @@
793 793
     right: 5%;
794 794
     bottom: 30px;
795 795
   }
796
+
797
+  &-btn {
798
+    width: 110px;
799
+    height: 78px;
800
+    position: absolute;
801
+    top: 242px;
802
+    left: 320px;
803
+    padding: 0;
804
+    background: none;
805
+    &-img{
806
+      width: 110px;
807
+      height: 78px;
808
+    }
809
+  }
810
+
796 811
 }
797 812
 
798 813
 // 户型
799 814
 .house-type {
800 815
   position: relative;
801 816
   width: 100%;
802
-  padding: 40px;
817
+  padding: 30px;
803 818
   background: #fff;
804 819
   margin: 20px 0;
805 820
 

+ 57
- 162
src/pages/project/index.js Целия файл

@@ -48,7 +48,7 @@ export default class Index extends Component {
48 48
     vertical: true
49 49
   }
50 50
 
51
-  componentWillMount() {
51
+  componentWillMount () {
52 52
     this.qqmapsdk = new QQMapWX({
53 53
       key: 'TIIBZ-ZJG33-52T3L-Y3X4Q-NWKLV-KUB3B'
54 54
     })
@@ -71,7 +71,7 @@ export default class Index extends Component {
71 71
     })
72 72
   }
73 73
 
74
-  componentDidShow() {
74
+  componentDidShow () {
75 75
     if (this.props.curCity.id) {
76 76
       ready.queue(() => {
77 77
         this.loadData()
@@ -79,16 +79,24 @@ export default class Index extends Component {
79 79
     }
80 80
   }
81 81
 
82
-  componentWillUnmount() {
82
+  componentWillUnmount () {
83 83
     const { recordId } = this.state
84 84
     recordId && updatePoint(recordId)
85 85
   }
86 86
 
87
-  getLocation() {
88
-    const { cityList } = this.props
87
+  getLocation () {
88
+    const { cityList, userInfo: { person: { org } } } = this.props
89
+    let defaultCity = cityList.filter(item => {
90
+      return item.id == org.defaultCityId
91
+    })
92
+
93
+
94
+    console.log('-----defaultCity-->', defaultCity)
89 95
     Taro.getLocation().then(location => {
90 96
       Taro.setStorageSync('lat', location.latitude)
91 97
       Taro.setStorageSync('lon', location.longitude)
98
+
99
+
92 100
       this.qqmapsdk.reverseGeocoder({
93 101
         location,
94 102
         success: (res) => {
@@ -96,23 +104,32 @@ export default class Index extends Component {
96 104
           let city = res.result.address_component.city
97 105
 
98 106
           console.log('-----city-->', city)
107
+          console.log('-----cityList-->', cityList)
108
+
99 109
 
100 110
           let curCity = cityList.filter(item => {
101 111
             return item.name == city
102 112
           })
113
+
114
+
115
+
116
+
103 117
           Taro.showToast({
104 118
             title: `当前定位城市:${(curCity[0] || {}).name}`,
105 119
             icon: 'none',
106 120
           })
107
-          this.updateCity(curCity[0] || cityList[0])
121
+
122
+          this.updateCity(curCity[0] || defaultCity[0])
108 123
         },
109 124
         fail: (error) => {
125
+
126
+
110 127
           Taro.showToast({
111 128
             title: `定位城市错误...`,
112 129
             icon: 'none',
113 130
           })
114 131
           console.error(err)
115
-          this.updateCity(cityList[0])
132
+          this.updateCity(defaultCity[0])
116 133
         },
117 134
       })
118 135
     }).catch(err => {
@@ -128,140 +145,19 @@ export default class Index extends Component {
128 145
         })
129 146
       }
130 147
       console.error(err)
131
-      this.updateCity(cityList[0])
148
+      this.updateCity(defaultCity[0])
132 149
     })
133 150
   }
134 151
 
135
-  updateCity(payload) {
136
-    const NanJing = {
137
-      citycode: "025",
138
-      id: 320100,
139
-      initial: "N",
140
-      lat: "32.041544",
141
-      leveltype: 2,
142
-      lng: "118.767413",
143
-      name: "南京市",
144
-      parentid: 320000,
145
-      pinyin: "Nanjing",
146
-      shortname: "南京",
147
-      status: 1,
148
-      zipcode: "320100"
149
-    }
150
-
151
-    const GuiYang = {
152
-      citycode: "0851",
153
-      id: 520100,
154
-      initial: "G",
155
-      lat: "26.578343",
156
-      leveltype: 2,
157
-      lng: "106.713478",
158
-      name: "贵阳市",
159
-      parentid: 520000,
160
-      pinyin: "Nanjing",
161
-      shortname: "贵阳",
162
-      status: 1,
163
-      zipcode: "520100"
164
-    }
165
-    const LiuZhou = {
166
-      citycode: "0772",
167
-      id: 450200,
168
-      initial: "L",
169
-      lat: "24.314617",
170
-      leveltype: 2,
171
-      lng: "109.411703",
172
-      name: "柳州市",
173
-      parentid: 450000,
174
-      pinyin: "Liuzhou",
175
-      shortname: "柳州",
176
-      status: "1",
177
-      zipcode: "545001",
178
-    }
179
-    const KunMing = {
180
-      citycode: "0871",
181
-      id: 530100,
182
-      initial: "K",
183
-      lat: "25.040609",
184
-      leveltype: 2,
185
-      lng: "102.712251",
186
-      name: "昆明市",
187
-      parentid: 530000,
188
-      pinyin: "Kunming",
189
-      shortname: "昆明",
190
-      status: "1",
191
-      zipcode: "650500",
192
-    }
193
-    const HuZhou = {
194
-      citycode: "0572",
195
-      id: 330500,
196
-      initial: "H",
197
-      lat: "30.867198",
198
-      leveltype: 2,
199
-      lng: "120.102398",
200
-      name: "湖州市",
201
-      parentid: 330000,
202
-      pinyin: "Huzhou",
203
-      shortname: "湖州",
204
-      status: "1",
205
-      zipcode: "313000",
206
-    }
207
-
208
-
209
-    const appId = accountInfo.miniProgram.appId;
210
-    let params;
211
-
212
-    switch (appId) {
213
-      // 知与行
214
-      case 'wxd6f47a9bb3052175':
215
-        params = NanJing;
216
-        break;
217
-      // 橙蕉
218
-      case 'wxe3b1e683853800b5':
219
-        params = GuiYang;
220
-        break;
221
-      // 香颂
222
-      case 'wx09cd665abf378db7':
223
-        params = LiuZhou;
224
-        break;
225
-      // 诚通公园里
226
-      case 'wx7c72475f7f354d17':
227
-        params = HuZhou;
228
-        break;
229
-      // 北京城建
230
-      case 'wx766cfc5d8429c927':
231
-        params = NanJing;
232
-        break;
233
-      // 云南昊居
234
-      case 'wx03aca9d7d9b0b7f1':
235
-        params = KunMing;
236
-        break;
237
-      // 奥园金基
238
-      case 'wx7183d7d918a426d3':
239
-        params = NanJing;
240
-        break;
241
-      // 南京楼市
242
-      case 'wxb2175cd2ead31a60':
243
-        params = NanJing;
244
-        break;
245
-      // 融创
246
-      case 'wxe9e01aa4a3568f52':
247
-        params = NanJing;
248
-        break;
249
-      // 尾房宝
250
-      case 'wx755faa4b3ec76cd3':
251
-        params = NanJing;
252
-        break;
152
+  updateCity (payload) {
253 153
 
254
-      default:
255
-        params = payload;
256
-        break;
257
-    }
258 154
 
259
-    this.props.dispatchCitySelected(params).then(res => {
155
+    this.props.dispatchCitySelected(payload).then(res => {
260 156
       this.loadData()
261 157
     })
262 158
   }
263 159
 
264
-  loadData() {
160
+  loadData () {
265 161
     this.loadBannerList()
266 162
     this.loadHelpGroupList()
267 163
     this.loadNewsList()
@@ -269,7 +165,7 @@ export default class Index extends Component {
269 165
     this.loadList()
270 166
   }
271 167
 
272
-  loadOpenScreenBanner() {
168
+  loadOpenScreenBanner () {
273 169
     const payload = {
274 170
       // showPosition: 'index'
275 171
     }
@@ -287,7 +183,7 @@ export default class Index extends Component {
287 183
       })
288 184
     })
289 185
   }
290
-  loadBannerList() {
186
+  loadBannerList () {
291 187
     const { curCity } = this.props
292 188
     // 获取首页banner
293 189
     const payload = {
@@ -309,7 +205,7 @@ export default class Index extends Component {
309 205
     })
310 206
   }
311 207
 
312
-  loadHelpGroupList() {
208
+  loadHelpGroupList () {
313 209
     queryHelpGroup({ cityId: this.props.curCity.id, buildingId: '' }).then(res => {
314 210
       console.log(res, "res")
315 211
       this.setState({
@@ -320,7 +216,7 @@ export default class Index extends Component {
320 216
   }
321 217
 
322 218
 
323
-  loadNewsList() {
219
+  loadNewsList () {
324 220
     const { curCity } = this.props
325 221
     const payload = {
326 222
       pageNumber: 1,
@@ -336,7 +232,7 @@ export default class Index extends Component {
336 232
     })
337 233
   }
338 234
 
339
-  loadActivityList() {
235
+  loadActivityList () {
340 236
     const { curCity } = this.props
341 237
     const payload = {
342 238
       pageNumber: 1,
@@ -354,7 +250,7 @@ export default class Index extends Component {
354 250
     })
355 251
   }
356 252
 
357
-  loadList() {
253
+  loadList () {
358 254
     const { keywords } = this.state
359 255
     const { curCity } = this.props
360 256
 
@@ -406,7 +302,7 @@ export default class Index extends Component {
406 302
     }
407 303
   }
408 304
 
409
-  onViewDetail(item) {
305
+  onViewDetail (item) {
410 306
     Taro.navigateTo({
411 307
       url: `/pages/project/detail/index?id=${item.buildingId}`
412 308
     })
@@ -417,7 +313,7 @@ export default class Index extends Component {
417 313
     this.redirectTo(item)
418 314
   }
419 315
 
420
-  redirectTo({ targetId, contentType, buildingId } = {}) {
316
+  redirectTo ({ targetId, contentType, buildingId } = {}) {
421 317
     switch (contentType) {
422 318
       // 项目
423 319
       case 'project':
@@ -462,7 +358,7 @@ export default class Index extends Component {
462 358
     }
463 359
   }
464 360
 
465
-  handleHelpGroupClick(item) {
361
+  handleHelpGroupClick (item) {
466 362
     if (item.type == 1) {
467 363
       Taro.navigateTo({
468 364
         url: '/pages/activity/detail/assistance?id=' + item.activityId
@@ -474,7 +370,7 @@ export default class Index extends Component {
474 370
     }
475 371
   }
476 372
 
477
-  handleMaskClose() {
373
+  handleMaskClose () {
478 374
     this.setState({
479 375
       maskVisible: false
480 376
     })
@@ -499,23 +395,23 @@ export default class Index extends Component {
499 395
     })
500 396
   }
501 397
 
502
-  handleMaskBannerClick(data) {
398
+  handleMaskBannerClick (data) {
503 399
     this.redirectTo(data)
504 400
   }
505 401
 
506
-  handleLocationClick() {
402
+  handleLocationClick () {
507 403
     Taro.navigateTo({
508 404
       url: `/pages/city/index`
509 405
     })
510 406
   }
511 407
 
512
-  handleToHouseList() {
408
+  handleToHouseList () {
513 409
     Taro.navigateTo({
514 410
       url: '/pages/project/list/index'
515 411
     })
516 412
   }
517 413
 
518
-  handleProItemClick() {
414
+  handleProItemClick () {
519 415
     Taro.navigateTo({
520 416
       url: '/pages/project/list/index'
521 417
     })
@@ -525,11 +421,11 @@ export default class Index extends Component {
525 421
   // CHANNEL_AGENT: 'channel agent', // 渠道经纪人
526 422
   // DRIFT: 'drift', // 游客
527 423
   // CUSTOMER: 'customer' // 客户
528
-  toRecomonedPage() {
424
+  toRecomonedPage () {
529 425
     const {
530 426
       userInfo: { person: { personType } }
531 427
     } = this.props
532
-    if (personType === ROLE_CODE['DRIFT'] ||  !personType) {
428
+    if (personType === ROLE_CODE['DRIFT'] || !personType) {
533 429
       // 游客或者客户 区别是否有电话
534 430
       Taro.navigateTo({
535 431
         url: `/pages/agent/become/index`
@@ -541,17 +437,17 @@ export default class Index extends Component {
541 437
       console.log(this.props.curCity.id, "this.props.curCity.id")
542 438
     }
543 439
   }
544
-  toMapHouse() {
440
+  toMapHouse () {
545 441
     Taro.navigateTo({
546 442
       url: `/pages/project/map/index`
547 443
     })
548 444
   }
549 445
 
550 446
 
551
-  renderProjectList() {
447
+  renderProjectList () {
552 448
     const { proList: { records } } = this.props
553 449
     const { helpGroupList } = this.state
554
-    console.log(records,'proList')
450
+    console.log(records, 'proList')
555 451
     return (
556 452
       <Block>
557 453
         {
@@ -582,18 +478,18 @@ export default class Index extends Component {
582 478
           )
583 479
         }
584 480
 
585
-        {console.log(helpGroupList,'helpGroupList')}
481
+        {console.log(helpGroupList, 'helpGroupList')}
586 482
         {
587 483
           helpGroupList.length > 0 &&
588 484
           <View
589 485
             style={{
590
-              position: 'relative', padding: '20px 20px 0 20px'
486
+              position: 'relative', padding: '20px 15px 0 15px'
591 487
             }}>
592 488
 
593 489
             <HelpGroupBanner
594 490
               style={{
595 491
                 borderRadius: '6px',
596
-                height: '88px'
492
+                height: '230rpx'
597 493
               }}
598 494
               indicatorDots={false}
599 495
               list={helpGroupList}
@@ -607,12 +503,11 @@ export default class Index extends Component {
607 503
     )
608 504
   }
609 505
 
610
-  renderMaskBanner() {
506
+  renderMaskBanner () {
611 507
     const { maskBanner } = this.state
612 508
     return (
613 509
       <View className="mask-banner">
614 510
         <View className="content">
615
-          {console.log(maskBanner,'maskBanner')}
616 511
           <Image
617 512
             mode="widthFix"
618 513
             className="img"
@@ -626,7 +521,7 @@ export default class Index extends Component {
626 521
   }
627 522
 
628 523
 
629
-  render() {
524
+  render () {
630 525
     const { curCity } = this.props
631 526
     const { newsList } = this.state
632 527
     const { userInfo: { person: { personType } } } = this.props
@@ -642,20 +537,20 @@ export default class Index extends Component {
642 537
               <View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
643 538
                 <View
644 539
                   style={{
645
-                    height: '250px', position: 'relative'
540
+                    height: '600rpx', position: 'relative'
646 541
                   }}>
647 542
                   {
648 543
                     this.state.visBanner && (
649 544
                       <Banner
650 545
                         style={{
651
-                          height: '250px'
546
+                          height: '600rpx'
652 547
                         }}
653 548
                         indicatorDots={true}
654 549
                         list={this.state.bannerList}
655 550
                         onClick={this.handleBannerClick}
656
-                        onChange={()=>(1)}
657
-                        >
658
-                    
551
+                        onChange={() => (1)}
552
+                      >
553
+
659 554
                       </Banner>
660 555
                     )
661 556
                   }

+ 12
- 8
src/pages/project/index.scss Целия файл

@@ -79,7 +79,7 @@
79 79
 
80 80
 .section {
81 81
   background: white;
82
-  padding: 20px 35px;
82
+  padding: 30px;
83 83
 
84 84
   &-head {
85 85
     @extend .flex;
@@ -140,7 +140,7 @@
140 140
 
141 141
 .sectionn-customer {
142 142
   margin-top: 0;
143
-
143
+  
144 144
   .section-content {
145 145
     display: flex;
146 146
     justify-content: space-between;
@@ -148,15 +148,19 @@
148 148
     background:rgba(248,240,237,1);
149 149
     box-shadow:0px 2px 4px 0px rgba(187,156,121,0.22);
150 150
     border-radius:12px;
151
-    padding: 0px 20px;
151
+    width:690px;
152
+height:172px;
153
+    // padding: 0px 20px;
152 154
 
153 155
     .section-content_img{
154
-      width: 204px;
155
-      height: 132px;
156
+      width: 124px;
157
+      height: 138px;
158
+      margin-right: 20px;
156 159
     }
157 160
     .logo_img{
158
-      width:108px;
159
-      height:88px;
161
+      width:130px;
162
+      height:106px;
163
+      margin-left: 20px;
160 164
     }
161 165
     &_title {
162 166
       display: flex;
@@ -386,7 +390,7 @@
386 390
 .houses {
387 391
   box-shadow:0px 2px 12px 2px rgba(29,29,29,0.09);
388 392
   background: white;
389
-  padding: 30px 40px 20px 40px;
393
+  padding: 30px 30px 20px 30px;
390 394
   // .section-content{
391 395
   //   .item:last-of-type{
392 396
   //     border:none;

+ 2
- 2
src/pages/project/item/index.scss Целия файл

@@ -15,8 +15,8 @@
15 15
     position: relative;
16 16
     .item__img {
17 17
       width: 100%;
18
-      height: 332px;
19
-      border-radius: 20px;
18
+      height:388px;
19
+      border-radius: 12px;
20 20
     }
21 21
     .item__status{
22 22
       position: absolute;

+ 20
- 11
src/pages/project/swiper/index.js Целия файл

@@ -1,5 +1,5 @@
1 1
 import Taro, { Component } from '@tarojs/taro'
2
-import { View, Swiper, SwiperItem, Image } from '@tarojs/components'
2
+import { View, Swiper, SwiperItem, Image, Block } from '@tarojs/components'
3 3
 // import { cdn } from '@constants/api'
4 4
 import './index.scss'
5 5
 import emptyImg from '@assets/empty.png'
@@ -12,6 +12,10 @@ export default class SwiperBanner extends Component {
12 12
     style: {
13 13
       height: '200px'
14 14
     },
15
+    type:'',
16
+    // activityStyle: {
17
+    //   height: '200px'
18
+    // },
15 19
     onClick: function () { }
16 20
   }
17 21
 
@@ -19,10 +23,12 @@ export default class SwiperBanner extends Component {
19 23
     this.props.onClick(item)
20 24
   }
21 25
   render () {
22
-    const { list, style, indicatorDots, current } = this.props
26
+    const { list, style, indicatorDots, current, activityStyle,type } = this.props
27
+
28
+    const styles = activityStyle ? activityStyle : style
23 29
     return (
24
-      <View className='home-banner' style={style}>
25
-        {console.log(this.props, '---list---')}
30
+      <View className='home-banner' style={styles}>
31
+
26 32
         <Swiper
27 33
           className='home-banner__swiper'
28 34
           circular
@@ -36,13 +42,16 @@ export default class SwiperBanner extends Component {
36 42
               key={index}
37 43
               onClick={this.onBannerClick.bind(this, item)}
38 44
               className='home-banner__swiper-item'
39
-            >  {console.log(item, '---item1111---')}
40
-              <Image
41
-                mode="aspectFill"
42
-                style={style}
43
-                className='home-banner__swiper-item-img'
44
-                src={getThumbnail(item.bannerListImg || item.image || item.url || item.img || emptyImg)}
45
-              />
45
+            >
46
+              <View style={{ display: 'block' }}>
47
+                <Image
48
+                  mode="aspectFill"
49
+                  style={style}
50
+                  className='home-banner__swiper-item-img'
51
+                  src={getThumbnail(item.bannerListImg || item.image || item.url || item.img || item.imgUrl || emptyImg)}
52
+                />
53
+                {type=='activity' && <View className='home-banner__swiper-item__title'> {item.title}</View>}
54
+              </View>
46 55
             </SwiperItem>
47 56
           ))}
48 57
         </Swiper>

+ 33
- 3
src/pages/project/swiper/index.scss Целия файл

@@ -1,23 +1,53 @@
1
+@import "@styles/mixins.scss";
1 2
 @import "@styles/theme.scss";
2 3
 .home-banner {
3 4
   width: 100%;
4 5
   overflow: hidden;
5
-  height: 250px;
6
+  height: 400px;
6 7
 }
7 8
 
8 9
 .home-banner__swiper {
9 10
   // NOTE RN 的 Swiper 需要有高度,否则会报错
11
+  // @extend .flex;
12
+  // align-items: flex-start;
10 13
   height: 100%;
11 14
   &-item {
15
+    width: 100%;
12 16
     display: flex;
13 17
     flex-direction: row;
14 18
     justify-content: center;
15 19
 
16 20
     &-img {
17
-      width: 100%;
18
-      height: 100%!important;
21
+      width: 750px;
22
+      // height: 100%!important;
19 23
       overflow: hidden;
20 24
       border-radius: 0;
21 25
     }
26
+    &__title {
27
+            margin:20px 30px 0;
28
+            font-size:28px;
29
+font-family:PingFangSC-Regular,PingFang SC;
30
+font-weight:400;
31
+color:rgba(0,0,0,1);
32
+line-height:30px;
33
+          }
34
+
22 35
   }
23 36
 }
37
+// &-item {
38
+//     width: 320px;
39
+//     float: left;
40
+//     margin-bottom: 30px;
41
+//     margin-right: 20px;
42
+
43
+//     &__pic {
44
+//       width: 320px;
45
+//       height: 256px;
46
+//       border-radius: 10px;
47
+//       background-color: #eee;
48
+//     }
49
+
50
+//     &__title {
51
+//       margin-top: 20px;
52
+//       font-size: $font-size-title;
53
+//     }

+ 7
- 6
src/pages/shop/index.scss Целия файл

@@ -28,19 +28,20 @@
28 28
 .user_box{
29 29
   height: 300px;
30 30
   background-color:$primary-color; 
31
-  padding: 20px;
31
+  padding: 20px 40px;
32 32
   .user_con{
33 33
   padding:20px 40px;
34 34
   background-color: #fff;
35 35
   border-radius: 12px;
36 36
   position: relative;
37
-  height: 260px;
37
+  height: 254px;
38 38
   .bg{
39 39
     position: absolute;
40 40
     top:0;
41 41
     left:0;
42
-    width: 100%;
43
-    height: 100%;
42
+
43
+    width: 670px;
44
+    height: 254px;
44 45
     border-radius: 12px;
45 46
 
46 47
   }
@@ -176,8 +177,8 @@
176 177
     border-radius:12px;
177 178
 
178 179
     &__img {
179
-      width: 100%;
180
-      height: 320px;
180
+      width:336px;
181
+      height:336px;
181 182
       border-radius: 12px 12px 0 0;
182 183
     }
183 184
     // &__exchange {

+ 1
- 1
src/pages/shop/record/index.js Целия файл

@@ -65,7 +65,7 @@ export default class Index extends Component {
65 65
           records.length === 0 ? <EmptyPage text="暂无兑换记录哦~" /> : (
66 66
             records.map(item => (
67 67
               <View className="list-item" key={item.recId} onClick={this.onViewDetail.bind(this, item)}>
68
-								<Image className="cardBg"  src={item.status==0?require('@assets/person/card2.png'):require('@assets/person/card1.png')}/>
68
+								<Image className="cardBg" mode="aspectFill"  src={item.status==0?require('@assets/person/card2.png'):require('@assets/person/card1.png')}/>
69 69
 								<View className="top">
70 70
 									<View className="title-time">兑换时间:{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>
71 71
 									<View className="title-state">{item.status==0?"未领取":"已领取"}</View>

+ 2
- 2
src/pages/shop/record/index.scss Целия файл

@@ -48,8 +48,8 @@
48 48
 			left: 0;
49 49
 			display:flex;
50 50
 			.botttom_img{
51
-				width:174px;
52
-				height:127px;
51
+				width:200px;
52
+				height:200px;
53 53
 				border-radius:7px;
54 54
 				margin-left: 27px;
55 55
 			}