xujing 5 年前
父节点
当前提交
591f173a39

+ 4
- 4
config/prod.js 查看文件

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://dev.fangdeal.cn"', //测试
7
-    WSS_HOST: '"wss://dev.fangdeal.cn"',
8
-    // HOST: '"https://wx.fangdeal.cn"', //正式
9
-    // WSS_HOST: '"wss://wx.fangdeal.cn"',
6
+    // HOST: '"https://dev.fangdeal.cn"', //测试
7
+    // WSS_HOST: '"wss://dev.fangdeal.cn"',
8
+    HOST: '"https://wx.fangdeal.cn"', //正式
9
+    WSS_HOST: '"wss://wx.fangdeal.cn"',
10 10
     OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
11 11
     OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
12 12
     Version: "V3.5.28"

+ 1
- 1
project.config.json 查看文件

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

+ 1
- 1
src/components/Poster/index.js 查看文件

@@ -118,7 +118,7 @@ export default class Poster extends Component {
118 118
               {
119 119
                 done && images.map((img, inx) => {
120 120
                   return (
121
-                    <SwiperItem key={`img-${inx}`} style=" text-align: center;">
121
+                    <SwiperItem key={`img-${inx}`} style=" text-align: center; display: flex;">
122 122
                       <Image className="result-img" mode="aspectFit" lazy-load src={img} onClick={this.onPreview}></Image>
123 123
                     </SwiperItem>
124 124
                   )

+ 1
- 1
src/pages/activity/detail/poster.scss 查看文件

@@ -43,7 +43,7 @@
43 43
       border-radius: 10px;
44 44
       padding: 40px 0;
45 45
       text-align: center;
46
-
46
+      display: flex;
47 47
       .result-img {
48 48
         height: 60vh;
49 49
         display: block;

+ 20
- 19
src/pages/card/index.js 查看文件

@@ -77,7 +77,6 @@ export default class Index extends Component {
77 77
       const { dispatchCardInfo, dispatchProjectDetail } = this.props;
78 78
       Taro.showLoading();
79 79
       dispatchCardInfo(cardId, { ...queryInfo }).then(res => {
80
-        Taro.hideLoading();
81 80
         this.setState({
82 81
           loaded: true,
83 82
           isSave: res.isSave
@@ -91,6 +90,7 @@ export default class Index extends Component {
91 90
         this.setState({
92 91
           posterData
93 92
         });
93
+        Taro.hideLoading();
94 94
       });
95 95
     }
96 96
   }
@@ -252,7 +252,7 @@ export default class Index extends Component {
252 252
 
253 253
     Taro.getLocation({
254 254
       //返回可以用于Taro.openLocation的经纬度,官方提示bug: iOS 6.3.30 type 参数不生效,只会返回 wgs84 类型的坐标信息
255
-      success: function(res) {
255
+      success: function (res) {
256 256
         Taro.openLocation({
257 257
           latitude,
258 258
           longitude,
@@ -631,6 +631,7 @@ export default class Index extends Component {
631 631
   // 选择图片
632 632
   bindAlbumClick(e) {
633 633
     e.stopPropagation();
634
+    const { userInfo: { person: { personId } } } = this.props;
634 635
     Taro.chooseImage({
635 636
       count: 1,
636 637
       sizeType: ["original", "compressed"], //可选择原图或压缩后的图片
@@ -641,7 +642,7 @@ export default class Index extends Component {
641 642
             url: `/pages/card/photo?photoUrl=${encodeURIComponent(data[0])}`
642 643
           });
643 644
         });
644
-      }
645
+      },
645 646
     });
646 647
   }
647 648
 
@@ -766,20 +767,20 @@ export default class Index extends Component {
766 767
                         )}
767 768
                       </View>
768 769
                     ) : (
769
-                      <Button
770
-                        className="clear-btn"
771
-                        open-type="getPhoneNumber"
772
-                        onGetphonenumber={this.getPhoneNumber}
773
-                      >
774
-                        <Image
775
-                          src={require("@/assets/person/zixun.png")}
776
-                          className="chat-img"
777
-                        ></Image>
778
-                        {unReadNum > 0 && (
779
-                          <Text className="unread-num">{unReadNum}</Text>
780
-                        )}
781
-                      </Button>
782
-                    ))}
770
+                        <Button
771
+                          className="clear-btn"
772
+                          open-type="getPhoneNumber"
773
+                          onGetphonenumber={this.getPhoneNumber}
774
+                        >
775
+                          <Image
776
+                            src={require("@/assets/person/zixun.png")}
777
+                            className="chat-img"
778
+                          ></Image>
779
+                          {unReadNum > 0 && (
780
+                            <Text className="unread-num">{unReadNum}</Text>
781
+                          )}
782
+                        </Button>
783
+                      ))}
783 784
                 </View>
784 785
                 <View className="row medal">
785 786
                   <Image
@@ -865,7 +866,7 @@ export default class Index extends Component {
865 866
                   <View className="detailed__tel" onClick={this.makePhoneCall}>
866 867
                     <View className="detailed__tel__txt">
867 868
                       <Text className="tel__txt" space="emsp">
868
-                        手机 
869
+                        手机
869 870
                       </Text>{" "}
870 871
                       {cardInfo.phone}
871 872
                     </View>
@@ -874,7 +875,7 @@ export default class Index extends Component {
874 875
                   <View className="detailed__add" onClick={this.getLocation}>
875 876
                     <View className="detailed__add__txt">
876 877
                       <Text className="add__txt" space="emsp">
877
-                        地址 
878
+                        地址
878 879
                       </Text>{" "}
879 880
                       {address}
880 881
                     </View>

+ 1
- 0
src/pages/card/poster.scss 查看文件

@@ -43,6 +43,7 @@
43 43
       border-radius: 10px;
44 44
       padding: 40px 0;
45 45
       text-align: center;
46
+      display: flex;
46 47
       .result-img {
47 48
         height: 60vh;
48 49
         display: block;

+ 1
- 1
src/pages/news/detail/index.js 查看文件

@@ -274,7 +274,7 @@ export default class NewsDetail extends Component {
274 274
         console.info('资讯详情')
275 275
       })
276 276
       if (res.buildingId) {
277
-        dispatchProjectDetail(res.buildingId, { showToast: false, })
277
+        dispatchProjectDetail(res.buildingId, undefined, { showToast: false, })
278 278
       }
279 279
 
280 280
       this.setState({

+ 1
- 1
src/pages/news/detail/poster.js 查看文件

@@ -265,7 +265,7 @@ export default class Index extends Component {
265 265
                   <Text>保存后分享图片</Text>
266 266
                   <Text className="iconfont icon-buoumaotubiao20" onClick={this.onCancel}></Text>
267 267
                 </View>
268
-                <View className="con-body">
268
+                <View className="con-body" style="display: flex;">
269 269
                   <Image className="result-img" mode="aspectFit" lazy-load src={this.state.shareImage} onClick={this.onPreview}></Image>
270 270
                 </View>
271 271
                 <Button className="save-btn" onClick={this.saveToAlbum}>保存海报</Button>

+ 1
- 1
src/pages/project/detail/poster.scss 查看文件

@@ -42,7 +42,7 @@
42 42
       // background: #EAEAEA;
43 43
       border-radius: 10px;
44 44
       padding: 40px 0;
45
-
45
+      display: flex;
46 46
       .result-img {
47 47
         height: 720.65px;
48 48
         // height: 60vh;