xujing 5 年前
父节点
当前提交
a8e40483ef

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

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

二进制
src/onlineSelling/assets/download.png 查看文件


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

46
       queryHouseDetail(params).then(res => {
46
       queryHouseDetail(params).then(res => {
47
         this.setState({
47
         this.setState({
48
           houseDetail: !res ? {} : res,
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
             <View className="date">认筹提交时间  {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}</View>
251
             <View className="date">认筹提交时间  {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}</View>
252
             <View className="agreement" onClick={this.toAgreement}>在线选房协议<Text className="right-icon"></Text></View>
252
             <View className="agreement" onClick={this.toAgreement}>在线选房协议<Text className="right-icon"></Text></View>
253
           </View>
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
           <View>
262
           <View>
255
             <CellBlock dataset={raiseInfo} />
263
             <CellBlock dataset={raiseInfo} />
256
             {raiseDeatil.consultantInfo && <ConsultantItem
264
             {raiseDeatil.consultantInfo && <ConsultantItem
257
               data={raiseDeatil.consultantInfo}
265
               data={raiseDeatil.consultantInfo}
258
               type="raiseProfile"
266
               type="raiseProfile"
259
-              style="height:140rpx;margin-bottom:0rpx;width:690rpx"
267
+              style="height:140rpx;margin-bottom:0rpx;width:690rpx;padding:0"
260
               contactClick={() => this.handleChatClick(raiseDeatil.consultantInfo)}
268
               contactClick={() => this.handleChatClick(raiseDeatil.consultantInfo)}
261
             />}
269
             />}
262
             <View className="hr" />
270
             <View className="hr" />

+ 24
- 0
src/onlineSelling/pages/raiseProfile/index.scss 查看文件

138
   .date{
138
   .date{
139
     font-size: 28px;
139
     font-size: 28px;
140
     color: #666;
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
   .agreement{
149
   .agreement{
143
     color: #BB9C79;
150
     color: #BB9C79;
153
       display: inline-block;
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
   ]
97
   ]
98
 }
98
 }
99
 
99
 
100
-export function reqSuccess (res, opts) {
100
+export function reqSuccess(res, opts) {
101
   const [, settings] = opts || []
101
   const [, settings] = opts || []
102
   const { showMessage, autoLogin = true } = settings || {}
102
   const { showMessage, autoLogin = true } = settings || {}
103
 
103
 
110
     throw new Error('请检查网络')
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
   if (code === CODE_SUCCESS) {
114
   if (code === CODE_SUCCESS) {
115
     return data
115
     return data
116
   } else {
116
   } else {
143
   }
143
   }
144
 }
144
 }
145
 
145
 
146
-export function reqFail (err, opts) {
146
+export function reqFail(err, opts) {
147
   const [reqParams, settings] = opts || []
147
   const [reqParams, settings] = opts || []
148
   const { showMessage } = settings || {}
148
   const { showMessage } = settings || {}
149
 
149