@@ -10,7 +10,7 @@
<image :src="item.titleImage || '../../../../static/temp/icon-new@2x.png'" class="axis-product" mode=""></image>
<view class="axis-product-info">
<view class="product-title">【{{item.pageType | pageTypeChange}}】</view>
- <view class="product-info">{{item.title}}</view>
+ <view class="product-info" v-if="title">{{item.title}}</view>
</view>
</template>
@@ -34,7 +34,8 @@ export default {
pageTypeChange(val) {
const obj = {
'6': '商品',
- '11': '文章'
+ '11': '文章',
+ '8': '搜索记录'
}
return obj[val]
@@ -22,23 +22,19 @@ export default {
return {
visitsList: [],
accDateTime: '',
- userInfo: {},
spId: ''
},
async onLoad(options) {
- this.accDateTime = options.accDateTime
this.spId = options.spId
const { data } = await this.SellerService.getVisitesClubList({
spId: options.spId,
accDateTime: options.accDateTime
})
this.visitsList = data
+ this.accDateTime = data[0].accessDate
console.log('options', options, 'visitsList', data)
- mounted() {
- this.userInfo = uni.getStorageSync('userInfo')
- },
onReachBottom() {
onPullDownRefresh() {
@@ -37,7 +37,8 @@ export default {
image: data[0].image,
linkMan: data[0].linkMan,
contractMobile: data[0].contractMobile,
- pageLabel: data[0].pageLabel
+ pageLabel: data[0].pageLabel,
+ name: data[0].name
console.log('options', options, 'visitsInfo', data, '详情', this.visitsInfo)