1007395918@qq.com před 5 roky
rodič
revize
6475da046c

+ 1
- 1
src/pages/person/myShare/index.js Zobrazit soubor

@@ -118,7 +118,7 @@ export default class Person extends Taro.Component {
118 118
               <View className="share-item" key={item.targetId + 'share'} onClick={this.handleItemClick.bind(this, item)}>
119 119
                 <Image className="img" mode="aspectFill" src={transferImage(item.activityImg || emptyImg)}></Image>
120 120
                 <View className={item.eventType == 'project' ? 'building' : 'name'}>{item.activityName || ''}</View>
121
-                {item.eventType == 'project' && <View className="price"> {item.price ? '均价' + item.price + '元/m²' : '暂无均价'} </View>}
121
+                {item.eventType == 'project' && <View className="price"> {item.price ? <View>约{item.price}{item.priceType == 'total' ? '万元/套' : '元/m²'}</View> : '暂无均价'} </View>}
122 122
 
123 123
                 {item.eventType == 'h5' && <View className="num"> {item.drainageShareNum || '0'}人查看了分享 </View>}
124 124
                 {item.eventType == 'project' && <View className="num"> {item.buildingNum || '0'}人查看了分享 </View>}

+ 1
- 1
src/pages/project/item/index.js Zobrazit soubor

@@ -32,7 +32,7 @@ export default class Index extends Component {
32 32
             <View className='item__right__title'>{data.name}</View>
33 33
             <View className='item__right__price row'>
34 34
               {
35
-                data.price ? <Text className='price__txt'>均价{data.price}{data.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='price__txt'>待定</Text>
35
+                data.price ? <Text className='price__txt'>{data.price}{data.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='price__txt'>待定</Text>
36 36
               }
37 37
             </View>
38 38
           </View>

+ 2
- 2
src/utils/login.js Zobrazit soubor

@@ -36,11 +36,11 @@ export default function (payload, callback) {
36 36
 
37 37
         console.log(curCity, "curCity")
38 38
 
39
-        // if (!curCity) {
39
+        if (!curCity || Object.keys(curCity).length == 0) {
40 40
           if (city) {
41 41
             dispatchCitySelected(city)(dispatch)
42 42
           }
43
-        // }
43
+        }
44 44
 
45 45
         // // 用户信息已授权获取成功
46 46
         // if (miniAuthorized || avatarAuth) {