|
@@ -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>
|