Browse Source

修改竞品为获取第一个

master
feng 2 years ago
parent
commit
b469cf8b54
  1. 2
      src/Coldairarrow.Entity/HuiYan/teamitems.cs
  2. 103
      客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/items/Index.vue
  3. 2
      客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js
  4. 2
      客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js.map

2
src/Coldairarrow.Entity/HuiYan/teamitems.cs

@ -137,6 +137,6 @@ namespace Coldairarrow.Entity.HuiYan
/// <summary>
/// 竞品分析状态
/// </summary>
public int CompetingState { get; set; }
public int? CompetingState { get; set; }
}
}

103
客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/items/Index.vue

@ -325,50 +325,50 @@
class="borderLeft"
>
<div style="margin: 0px auto; width: 200px">
<div v-if="item.isEdit">
<!-- <div v-if="item.isEdit">
<div v-if="item.isRival">
<a-input
style="margin-top: 10px"
v-model="item.RivalTitle"
disabled="false"
placeholder="竞品标题"
>
</a-input>
<a-input
style="margin-top: 10px"
disabled="false"
v-model="item.RivalPrice"
placeholder="竞品价格"
>
</a-input>
<a-input
style="margin-top: 10px"
v-model="item.RivalTitle"
disabled="false"
placeholder="竞品标题"
>
</a-input>
<a-input
style="margin-top: 10px"
disabled="false"
v-model="item.RivalPLCount"
placeholder="竞品评论数"
>
</a-input>
<a-input
style="margin-top: 10px"
disabled="false"
v-model="item.RivalPrice"
placeholder="竞品价格"
>
</a-input>
<a-row
style="margin-top: 10px">
<a-col :span="18">
<a-input
v-model="item.RivalGoodsId"
placeholder="竞品链接"
>
</a-input>
</a-col>
<a-col :span="6">
<a-button style="margin-left: 2px;background:#8080FF;color: white;" @click="openItemInfoWeb(item)">查询</a-button>
<a-input
style="margin-top: 10px"
disabled="false"
v-model="item.RivalPLCount"
placeholder="竞品评论数"
>
</a-input>
<a-row
style="margin-top: 10px">
<a-col :span="18">
<a-input
v-model="item.RivalGoodsId"
placeholder="竞品链接"
>
</a-input>
</a-col>
</a-row>
</div>
<a-col :span="6">
<a-button style="margin-left: 2px;background:#8080FF;color: white;" @click="openItemInfoWeb(item)">查询</a-button>
</a-col>
</a-row>
</div>
<div v-else>
<div v-else>
<a-input
style="margin-top: 10px"
@ -388,11 +388,10 @@
<div style="color:#EC808D;margin-top: 10px;">PS:主观售价不合理货源团队有权申述</div>
</div>
</div>
<div v-else>
</div> -->
<div>
<div
style="
padding-top: 10px;
style=" padding-top: 10px;
padding-bottom: 10px;
width: 200px;
margin: 5px auto;
@ -567,12 +566,12 @@
</a-col>
<a-col :span="4">
<a v-if="item.RivalTitle&&!item.isEdit" class="borderNoTop itemtitle" :title="item.RivalTitle">{{
<a v-if="item.RivalTitle" class="borderNoTop itemtitle" :title="item.RivalTitle">{{
item.RivalTitle
}}</a>
<div v-else-if="item.isEdit">
<a-tag
<!-- <div v-else-if="item.isEdit">
<a-tag
:color="item.isRival==true ? '' : '#1E98D7'"
style="padding: 5px;"
@click="
@ -595,7 +594,9 @@
}
"
>自动获取对标信息</a-tag
></div>
>
</div>-->
</a-col>
</a-row>
</a-col>
@ -783,6 +784,16 @@ export default {
})
this.initProfits(item,ext)
});
if(item.CompetingItems&&item.CompetingItems.length>0)
{
var competing=item.CompetingItems[0]
item.RivalTitle=competing.Title
item.RivalPrice=competing.Price
item.RivalPLCount=competing.CommentCount
item.RivalImg=competing.ImgUrl
}
});
this.datas = res.Data;
});

2
客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js

File diff suppressed because one or more lines are too long

2
客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save