xujing 5 年 前
コミット
a8e40483ef

+ 1
- 1
project.config.json ファイルの表示

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "橙蕉宁房",
5
-	"appid": "wxd6f47a9bb3052175",
5
+	"appid": "wxbbb069a341055ef0",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

バイナリ
src/onlineSelling/assets/download.png ファイルの表示


+ 1
- 1
src/onlineSelling/pages/detail/index.js ファイルの表示

@@ -46,7 +46,7 @@ export default class Index extends Component {
46 46
       queryHouseDetail(params).then(res => {
47 47
         this.setState({
48 48
           houseDetail: !res ? {} : res,
49
-          buildingImgList: res.buildingImgList || []
49
+          buildingImgList: (res && res.buildingImgList) || []
50 50
         })
51 51
       })
52 52
 

+ 9
- 1
src/onlineSelling/pages/raiseProfile/index.js ファイルの表示

@@ -251,12 +251,20 @@ export default class Raise extends Component {
251 251
             <View className="date">认筹提交时间  {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}</View>
252 252
             <View className="agreement" onClick={this.toAgreement}>在线选房协议<Text className="right-icon"></Text></View>
253 253
           </View>
254
+          <View className="raise-flex">
255
+            <View className="date">合同签署时间  {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}
256
+            <Image className="download" src={require('../../assets/download.png')} /></View>
257
+            <View className="agreement" onClick={this.toAgreement}>查看合同<Text className="right-icon"></Text></View>
258
+          </View>
259
+          <View className="sign">
260
+            为保障您的权益,请签署认筹合同<Text className="right-icon" style="opacity:0.3"></Text><Text className="right-icon" style="opacity:0.6"></Text><Text className="right-icon"></Text>
261
+          </View>
254 262
           <View>
255 263
             <CellBlock dataset={raiseInfo} />
256 264
             {raiseDeatil.consultantInfo && <ConsultantItem
257 265
               data={raiseDeatil.consultantInfo}
258 266
               type="raiseProfile"
259
-              style="height:140rpx;margin-bottom:0rpx;width:690rpx"
267
+              style="height:140rpx;margin-bottom:0rpx;width:690rpx;padding:0"
260 268
               contactClick={() => this.handleChatClick(raiseDeatil.consultantInfo)}
261 269
             />}
262 270
             <View className="hr" />

+ 24
- 0
src/onlineSelling/pages/raiseProfile/index.scss ファイルの表示

@@ -138,6 +138,13 @@
138 138
   .date{
139 139
     font-size: 28px;
140 140
     color: #666;
141
+    display: flex;
142
+    align-items: center;
143
+  }
144
+  .download{
145
+    width:44px;
146
+    height:38px;
147
+    margin-left: 6px;
141 148
   }
142 149
   .agreement{
143 150
     color: #BB9C79;
@@ -153,4 +160,21 @@
153 160
       display: inline-block;
154 161
     }
155 162
   }
163
+}
164
+.sign{
165
+  display: flex;
166
+  align-items: center;
167
+  color: #E4A938;
168
+  text-align: right;
169
+  justify-content: flex-end;
170
+  margin: 40px 0 15px 0;
171
+  .right-icon{
172
+    width:18px;
173
+    height:18px;
174
+    border-top: 2px solid #E4A938;
175
+    border-right: 2px solid #E4A938;
176
+    transform:rotate(45deg);
177
+    display: inline-block;
178
+    margin-left: -3px;
179
+  }
156 180
 }

+ 3
- 3
src/utils/request.js ファイルの表示

@@ -97,7 +97,7 @@ export function optionBuilder(options) {
97 97
   ]
98 98
 }
99 99
 
100
-export function reqSuccess (res, opts) {
100
+export function reqSuccess(res, opts) {
101 101
   const [, settings] = opts || []
102 102
   const { showMessage, autoLogin = true } = settings || {}
103 103
 
@@ -110,7 +110,7 @@ export function reqSuccess (res, opts) {
110 110
     throw new Error('请检查网络')
111 111
   }
112 112
 
113
-  const { data, code, message } = res.data
113
+  const { data, code, message } = typeof res.data === 'string' ? JSON.parse(res.data) : res.data
114 114
   if (code === CODE_SUCCESS) {
115 115
     return data
116 116
   } else {
@@ -143,7 +143,7 @@ export function reqSuccess (res, opts) {
143 143
   }
144 144
 }
145 145
 
146
-export function reqFail (err, opts) {
146
+export function reqFail(err, opts) {
147 147
   const [reqParams, settings] = opts || []
148 148
   const { showMessage } = settings || {}
149 149