Commit 033925a8 by 吕明尚

细节优化

parent 0d2ee333
......@@ -196,7 +196,7 @@
console.log(obj, 909090)
this.storeInfo = {
...obj,
distance:Number(obj.distance.substr(0,8)).toFixed(2),
distance:obj.distance? Number(obj.distance.substr(0,8)).toFixed(2):0,
roomVoList: obj.roomVoList.length ? obj.roomVoList.map(item => {
return {
...item,
......@@ -320,7 +320,7 @@
obj = res.data.data[0];
this.storeInfo = {
...obj,
distance:Number(obj.distance.substr(0,8)).toFixed(2),
distance:obj.distance? Number(obj.distance.substr(0,8)).toFixed(2):0,
roomVoList: obj.roomVoList.map(item => {
return {
...item,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment