xujing пре 5 година
родитељ
комит
cdef4f651b

+ 4
- 4
config/dev.js Прегледај датотеку

@@ -5,14 +5,14 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST: '"https://dev.pawoma.cn"',//测试
9
-    // WSS_HOST: '"wss://dev.pawoma.cn"',
8
+    HOST: '"https://dev.pawoma.cn"',//测试
9
+    WSS_HOST: '"wss://dev.pawoma.cn"',
10 10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
11 11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
12 12
     // HOST: '"https://lt.pawoma.cn"',
13 13
     // WSS_HOST: '"wss://lt.pawoma.cn"',
14
-    HOST: '"http://127.0.0.1:8080"',
15
-    WSS_HOST: '"ws://127.0.0.1:8080"',
14
+    // HOST: '"http://127.0.0.1:8080"',
15
+    // WSS_HOST: '"ws://127.0.0.1:8080"',
16 16
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
17 17
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
18 18
     Version: 'V3.5.12'

+ 0
- 1
src/onlineSelling/components/ScrollMessage/index.js Прегледај датотеку

@@ -54,7 +54,6 @@ export default class ScrollMessage extends Component {
54 54
       <View className="scrollmessage">
55 55
         <View className="head">
56 56
           <Image style="width:44rpx;height:44rpx;margin-top: 10rpx;" src={require('../../assets/notice.png')}></Image>
57
-          {/* <NamedIcon name="notice" size={44} /> */}
58 57
         </View>
59 58
         <View className="body">
60 59
           <Swiper vertical autoplay>

+ 0
- 1
src/onlineSelling/components/ShareButtons/ShareBtn.js Прегледај датотеку

@@ -9,7 +9,6 @@ export default function ShareBtn(props) {
9 9
   return (
10 10
     <Button className="sharebtn" onClick={handleClick} openType={props.openType}>
11 11
       <View>
12
-        {/* <NamedIcon name={props.name} size={props.size || 56} /> */}
13 12
         {props.name=='share-friends'&&<Image style="width:56rpx;height:56rpx" src={require('../../assets/share-friends.png')}></Image>}
14 13
         {props.name=='sharing-circleoffriends'&&<Image style="width:56rpx;height:56rpx" src={require('../../assets/sharing-circleoffriends.png')}></Image>}
15 14
       </View>

+ 0
- 1
src/onlineSelling/pages/detail/index.js Прегледај датотеку

@@ -97,7 +97,6 @@ export default class Index extends Component {
97 97
   }
98 98
 
99 99
   handlePanoramaClick(panoramaLink) {
100
-    console.log(panoramaLink, "panoramapanoramapanoramapanoramapanoramapanoramapanoramapanoramapanorama")
101 100
 
102 101
     if (!panoramaLink) return;
103 102
 

+ 0
- 4
src/onlineSelling/pages/houseList/index.js Прегледај датотеку

@@ -386,12 +386,10 @@ export default class HouseList extends Component {
386 386
         </View>
387 387
         <View className="action">
388 388
           <View onClick={this.handleExplainClick}>
389
-            {/* <NamedIcon name="explain" size={50} /> */}
390 389
             <Image style="width:50rpx;height:50rpx" src={transferImage(require('../../assets/explain.png'))}></Image>
391 390
           </View>
392 391
           <View onClick={this.handleSearchClick}>
393 392
             <Image style="width:50rpx;height:50rpx" src={transferImage(require('../../assets/screen.png'))}></Image>
394
-            {/* <NamedIcon name="screen" size={50} /> */}
395 393
           </View>
396 394
         </View>
397 395
       </View>
@@ -422,12 +420,10 @@ export default class HouseList extends Component {
422 420
     return (
423 421
       <View className="bottombar">
424 422
         <Button className="btn record" onClick={this.handleRecordBtn}>
425
-          {/* <NamedIcon name="record" size="42" /> */}
426 423
           <Image style="width:42rpx;height:42rpx" src={transferImage(require('../../assets/record.png'))}></Image>
427 424
           <Text className="txt">选房记录</Text>
428 425
         </Button>
429 426
         <Button className="btn share" onClick={this.handleShareBtn}>
430
-          {/* <NamedIcon name="share" size="42" /> */}
431 427
           <Image style="width:42rpx;height:42rpx" src={transferImage(require('../../assets/share.png'))}></Image>
432 428
           <Text className="txt">分享</Text>
433 429
         </Button>

+ 1
- 1
src/onlineSelling/pages/raiseProfile/Cell.js Прегледај датотеку

@@ -15,7 +15,7 @@ export default function (props) {
15 15
             <View className="body">{props.body}</View>
16 16
             <View className="action" onClick={props.onActionClick}>
17 17
               {
18
-                props.action && (<NamedIcon name="copy" size={34} />)
18
+                props.action && (<Image src={require('../../assets/copy.png')} style="width:34rpx;height:34rpx"></Image>)
19 19
               }
20 20
             </View>
21 21
           </View>

+ 21
- 5
src/onlineSelling/pages/raiseProfile/index.js Прегледај датотеку

@@ -87,7 +87,7 @@ export default class Raise extends Component {
87 87
       <Block>
88 88
         <View className="cancelReason flexSpace">
89 89
           <View className="flexSpace-fixed">
90
-            <NamedIcon name="void" size={120} />
90
+            <Image src={require('../../assets/void.png')} style="width:120rpx;height:120rpx"></Image>
91 91
           </View>
92 92
           <View className="flexSpace-item" style="margin-left: 20px">
93 93
             <View>认筹单作废原因:</View>
@@ -100,10 +100,26 @@ export default class Raise extends Component {
100 100
   }
101 101
   // 跳转去交费
102 102
   toPay = () => {
103
-    const { raiseDeatil: { raiseRecordId } } = this.state
104
-    Taro.navigateTo({
105
-      url: `/onlineSelling/pages/raiseMoney/index?type=pay&raiseRecordId=${raiseRecordId}`
103
+    console.log(this.props, "this.propsthis.propsthis.props")
104
+    const { user: { userInfo: { miniApp: { tpls } } } } = this.props
105
+    const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true)[0] || {}).tplId
106
+
107
+    wx.requestSubscribeMessage({
108
+      tmplIds: [tplId],
109
+      success(res) {
110
+      },
111
+      fail(res) {
112
+
113
+      },
114
+      complete() {
115
+        const { raiseDeatil: { raiseRecordId } } = this.state
116
+
117
+        Taro.navigateTo({
118
+          url: `/onlineSelling/pages/raiseMoney/index?type=pay&raiseRecordId=${raiseRecordId}`
119
+        })
120
+      }
106 121
     })
122
+
107 123
   }
108 124
   // 未交费提示
109 125
   renderUnpayNotice() {
@@ -112,7 +128,7 @@ export default class Raise extends Component {
112 128
       <Block>
113 129
         <View className="unpayNotice flexSpace" onClick={this.toPay}>
114 130
           <View className="flexSpace-fixed">
115
-            <NamedIcon name="pay" size={64} />
131
+            <Image src={require('../../assets/pay.png')} style="width:64rpx;height:64rpx"></Image>
116 132
             <View className="a-line txt">未缴费?点我缴费</View>
117 133
           </View>
118 134
           <View className="flexSpace-fixed">

+ 1
- 0
src/onlineSelling/pages/raiseProfile/index.scss Прегледај датотеку

@@ -71,6 +71,7 @@
71 71
 .flexSpace {
72 72
   display: flex;
73 73
   justify-content: space-between;
74
+  align-items: center;
74 75
 
75 76
   &-fixed {
76 77
     flex: none;

+ 18
- 2
src/onlineSelling/pages/records/index.js Прегледај датотеку

@@ -12,6 +12,7 @@ import { transferImage } from '@/utils/tools'
12 12
 import PickerComponent from '../../components/Picker'
13 13
 import './index.scss'
14 14
 import * as houseActions from '@/actions/house'
15
+import * as noticeType from '@/constants/common.js'
15 16
 
16 17
 function noop() { }
17 18
 
@@ -185,9 +186,24 @@ export default class Records extends Component {
185 186
     )
186 187
   }
187 188
   toRaiseProfile(id) {
188
-    Taro.navigateTo({
189
-      url: `/onlineSelling/pages/raiseProfile/index?raiseRecordId=${id}`
189
+    const { userInfo: { miniApp: { tpls } } } = this.props
190
+    const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true)[0] || {}).tplId
191
+
192
+    wx.requestSubscribeMessage({
193
+      tmplIds: [tplId],
194
+      success(res) {
195
+      },
196
+      fail(res) {
197
+
198
+      },
199
+      complete() {
200
+        Taro.navigateTo({
201
+          url: `/onlineSelling/pages/raiseProfile/index?raiseRecordId=${id}`
202
+        })
203
+      }
190 204
     })
205
+
206
+
191 207
   }
192 208
   renderRaise() {
193 209
     const { raiseList, noRaiseRecord } = this.state