|
@@ -41,7 +41,7 @@
|
|
<image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
|
|
<image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
|
|
<view class="floor-item-content">
|
|
<view class="floor-item-content">
|
|
<view class="title tui-skeleton-rect">
|
|
<view class="title tui-skeleton-rect">
|
|
- <text class="mclap">{{item.name}}</text>
|
|
|
|
|
|
+ <text class="mclap">{{isInterceptHtmlFn(item.name)}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="" v-if="hasLogin">
|
|
<view class="" v-if="hasLogin">
|
|
<template v-if="userIdentity == 4">
|
|
<template v-if="userIdentity == 4">
|
|
@@ -142,7 +142,7 @@
|
|
<image class="item-img tui-skeleton-fillet" :src="item.p_image" mode="aspectFill"></image>
|
|
<image class="item-img tui-skeleton-fillet" :src="item.p_image" mode="aspectFill"></image>
|
|
<view class="floor-item-content">
|
|
<view class="floor-item-content">
|
|
<view class="title tui-skeleton-rect">
|
|
<view class="title tui-skeleton-rect">
|
|
- <text class="mclap">{{item.p_name}}</text>
|
|
|
|
|
|
+ <text class="mclap">{{isInterceptHtmlFn(item.p_name)}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="" v-if="hasLogin">
|
|
<view class="" v-if="hasLogin">
|
|
<template v-if="userIdentity == 4">
|
|
<template v-if="userIdentity == 4">
|
|
@@ -277,7 +277,6 @@
|
|
this.shopId = resolve.shopID ? resolve.shopID : 0
|
|
this.shopId = resolve.shopID ? resolve.shopID : 0
|
|
this.userID = resolve.userID ? resolve.userID : 0
|
|
this.userID = resolve.userID ? resolve.userID : 0
|
|
this.userIdentity = resolve.userIdentity
|
|
this.userIdentity = resolve.userIdentity
|
|
- console.log(this.userIdentity)
|
|
|
|
this.InitShopDataInfo()
|
|
this.InitShopDataInfo()
|
|
}).catch( error =>{
|
|
}).catch( error =>{
|
|
this.InitShopDataInfo()
|
|
this.InitShopDataInfo()
|
|
@@ -334,7 +333,6 @@
|
|
this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
|
|
this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
|
|
let data = JSON.parse(response.data)
|
|
let data = JSON.parse(response.data)
|
|
let dataList = data.items
|
|
let dataList = data.items
|
|
- console.log(data)
|
|
|
|
this.total = data.total
|
|
this.total = data.total
|
|
if(this.total>0){
|
|
if(this.total>0){
|
|
this.isEmpty = false
|
|
this.isEmpty = false
|
|
@@ -351,7 +349,6 @@
|
|
this.listQuery.pageNum +=1
|
|
this.listQuery.pageNum +=1
|
|
this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
|
|
this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
|
|
let data = JSON.parse(response.data)
|
|
let data = JSON.parse(response.data)
|
|
- console.log(data)
|
|
|
|
this.total = data.total
|
|
this.total = data.total
|
|
this.productList = this.productList.concat(data.items)
|
|
this.productList = this.productList.concat(data.items)
|
|
this.QueryProductPrice1(this.productList)
|
|
this.QueryProductPrice1(this.productList)
|
|
@@ -368,7 +365,6 @@
|
|
productIds = productIdArr.join(",");
|
|
productIds = productIdArr.join(",");
|
|
this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
|
|
this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
|
|
this.recommendList = this.ReturnNewProducts(data,response.data);
|
|
this.recommendList = this.ReturnNewProducts(data,response.data);
|
|
- console.log(this.recommendList)
|
|
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
})
|
|
})
|
|
@@ -382,7 +378,6 @@
|
|
productIds = productIdArr.join(",");
|
|
productIds = productIdArr.join(",");
|
|
this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
|
|
this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
|
|
this.productList = this.ReturnNewProducts1(data,response.data);
|
|
this.productList = this.ReturnNewProducts1(data,response.data);
|
|
- console.log(this.productList)
|
|
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
})
|
|
})
|
|
@@ -410,10 +405,6 @@
|
|
return NewArray
|
|
return NewArray
|
|
},
|
|
},
|
|
SubMitSearch() {//搜索
|
|
SubMitSearch() {//搜索
|
|
- if (this.listQuery.keyword == '') {
|
|
|
|
- this.$util.msg('请输入商品关键词',2000);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
this.GetSupplierHomeProductList()
|
|
this.GetSupplierHomeProductList()
|
|
},
|
|
},
|
|
@@ -449,6 +440,10 @@
|
|
this.isFocus = true
|
|
this.isFocus = true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ isInterceptHtmlFn(text){
|
|
|
|
+ let name = this.$reg.interceptHtmlFn(text)
|
|
|
|
+ return name
|
|
|
|
+ },
|
|
goSupplier(){//跳供应商资料页
|
|
goSupplier(){//跳供应商资料页
|
|
this.$api.navigateTo('/supplier/pages/user/supplier?shopId='+this.supplierId)
|
|
this.$api.navigateTo('/supplier/pages/user/supplier?shopId='+this.supplierId)
|
|
},
|
|
},
|