|
@@ -2,6 +2,8 @@ import personalDetail, {OpenType} from '$utils/control/personal-detail';
|
|
|
|
|
|
import roomList from '$utils/control/roomList';
|
|
|
|
|
|
+import url from '$utils/tool/url';
|
|
|
+
|
|
|
export default <LibMixins>{
|
|
|
|
|
|
methods:{
|
|
@@ -10,9 +12,18 @@ export default <LibMixins>{
|
|
|
|
|
|
roomList.getRequestList({
|
|
|
...this.options,
|
|
|
- tid:this.tid
|
|
|
+ tid:this.tid > 0 ? this.tid : 0
|
|
|
},obj.data).then((data)=>{
|
|
|
- return obj.success(data.data);
|
|
|
+ return obj.success((data.data || []).map((item)=>{
|
|
|
+
|
|
|
+ if (item.room_micro_userlist) {
|
|
|
+ item.room_micro_userlist = item.room_micro_userlist.map((item)=> url.addBaseURL(item));
|
|
|
+ } else {
|
|
|
+ item.room_micro_userlist = [];
|
|
|
+ }
|
|
|
+
|
|
|
+ return item;
|
|
|
+ }));
|
|
|
}).catch(obj.fail);
|
|
|
},
|
|
|
|
|
@@ -35,4 +46,4 @@ export default <LibMixins>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|