周立森 5 년 전
부모
커밋
6f0de12767
3개의 변경된 파일27개의 추가작업 그리고 18개의 파일을 삭제
  1. 4
    4
      config/dev.js
  2. 22
    13
      src/pages/person/index.js
  3. 1
    1
      src/pages/project/detail/index.js

+ 4
- 4
config/dev.js 파일 보기

@@ -5,12 +5,12 @@ 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.jinchengjiaye.com"',//测试
9
-    //WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    HOST:  '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    // HOST: '"http://192.168.0.84:8080"',
13
-    // WSS_HOST: '"ws://192.168.0.84:8080"',
12
+    // HOST: '"http://192.168.0.72:8080"',
13
+    // WSS_HOST: '"ws://192.168.0.72:8080"',
14 14
   },
15 15
   weapp: {},
16 16
   h5: {}

+ 22
- 13
src/pages/person/index.js 파일 보기

@@ -93,18 +93,27 @@ export default class Person extends Component {
93 93
 
94 94
 
95 95
       putRegisterConsultant().then(res => {
96
-        // console.log("匹配成功,请退出小程序重新登录即可")
97
-        Taro.showToast({
98
-          title: "匹配成功,请退出小程序重新登录即可",
99
-          icon: "none",
100
-          duration:3000
101
-        })
96
+        console.log("res", res)
97
+
98
+        if (res) {
99
+          Taro.showToast({
100
+            title: "匹配成功,请退出小程序重新登录即可",
101
+            icon: "none",
102
+            duration: 3000
103
+          })
104
+        } else {
105
+          Taro.showToast({
106
+            title: "匹配失败,请联系相关管理人员",
107
+            icon: "none",
108
+            duration: 3000
109
+          })
110
+        }
102 111
       }).catch(err => {
103 112
         console.error(err)
104 113
         Taro.showToast({
105 114
           title: "匹配失败,请联系相关管理人员",
106 115
           icon: "none",
107
-          duration:3000
116
+          duration: 3000
108 117
         })
109 118
       })
110 119
     }
@@ -176,7 +185,7 @@ export default class Person extends Component {
176 185
               {
177 186
                 user.personType == 'Realty Consultant' && (
178 187
                   <Navigator url={`/pages/person/spread/index`} className="tuiguang">
179
-                    
188
+
180 189
                     <Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
181 190
                     <View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
182 191
                   </Navigator>
@@ -193,10 +202,10 @@ export default class Person extends Component {
193 202
             <Text className='qiandao-text'>签到得积分,积分兑好礼,马上去签到吧!</Text>
194 203
             {/* <View className={user.havaSigned ? 'reday-qiandao-btn' : 'qiandao-btn'} onClick={this.doSign}>{user.havaSigned ? '已签到' : '签到'}</View> */}
195 204
             {
196
-                user.havaSigned ?
197
-                  ( <View className='reday-qiandao-btn' onClick={this.doSign}> 已签到</View> ):
198
-                  (<View className="qiandao__btn" onClick={this.doSign}>签到</View>)
199
-              }
205
+              user.havaSigned ?
206
+                (<View className='reday-qiandao-btn' onClick={this.doSign}> 已签到</View>) :
207
+                (<View className='qiandao-btn' onClick={this.doSign}>签到</View>)
208
+            }
200 209
             {/* <Text className='integral-cont_btn' onClick={this.goShop}>去兑换</Text> */}
201 210
 
202 211
           </View>
@@ -213,7 +222,7 @@ export default class Person extends Component {
213 222
                         <View onClick={() => this.redirectTo(menu.url)} style={{ color: menu.style }} className="menu-item-con" key={`menu-${inx}`}>
214 223
                           <Image className="left-icon" src={menu.icon} ></Image>
215 224
                           <View className="menu-maintext">
216
-                            <Text className="menu-name" style={ menu.style }>{menu.name}</Text>
225
+                            <Text className="menu-name" style={menu.style}>{menu.name}</Text>
217 226
                             <Text className="right-icon"></Text>
218 227
                           </View>
219 228
                         </View>

+ 1
- 1
src/pages/project/detail/index.js 파일 보기

@@ -985,7 +985,7 @@ export default class Index extends Component {
985 985
         // loop={true}
986 986
         // muted={false}
987 987
 
988
-        // show-mute-btn='true'
988
+        show-mute-btn='true'
989 989
         // onPlay={this.onPlay}
990 990
         // show-center-play-btn='false'
991 991
         // onPause= {this.onPause}