浏览代码

修改协销消息访问时间

xiebaomin 1 年之前
父节点
当前提交
67d8004927

+ 3 - 2
pages/seller/notice/components/trajectory.vue

@@ -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>
                 </view>
             </template>
@@ -34,7 +34,8 @@ export default {
         pageTypeChange(val) {
             const obj = {
                 '6': '商品',
-                '11': '文章'
+                '11': '文章',
+                '8': '搜索记录'
             }
             return obj[val]
         }

+ 1 - 5
pages/seller/notice/service/Institutional_visits.vue

@@ -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() {

+ 2 - 1
pages/seller/notice/service/visits_details.vue

@@ -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)
     },