作者 韩昌

优化:详情评论

@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 <!-- 回复和时间 --> 66 <!-- 回复和时间 -->
67 <view class="timeBox flexA"> 67 <view class="timeBox flexA">
68 <view>{{ item.create_time.slice(5, 16) }}</view> 68 <view>{{ item.create_time.slice(5, 16) }}</view>
69 - <view class="flexC" @click="huiHandler(item.id, item.username)">回复</view> 69 + <view class="flexC" @click="huiHandler(item.id, item.username, index)">回复</view>
70 </view> 70 </view>
71 71
72 <!-- 回复评论 --> 72 <!-- 回复评论 -->
@@ -201,6 +201,8 @@ export default { @@ -201,6 +201,8 @@ export default {
201 curPage: 1, 201 curPage: 1,
202 // 回复人员id 202 // 回复人员id
203 pid: 0, 203 pid: 0,
  204 + // 回复评论索引
  205 + huiIdx: ''
204 } 206 }
205 }, 207 },
206 onLoad(options) { 208 onLoad(options) {
@@ -272,12 +274,13 @@ export default { @@ -272,12 +274,13 @@ export default {
272 id: this.itemId, // integer 是 论坛id 274 id: this.itemId, // integer 是 论坛id
273 order: this.order, // integer 是 排序 0:时间,1:热度 275 order: this.order, // integer 是 排序 0:时间,1:热度
274 page: this.curPage || 1, // integer 是 页码 276 page: this.curPage || 1, // integer 是 页码
275 - rows: 2, // integer 是 条数 277 + rows: 6, // integer 是 条数
276 }) 278 })
277 279
278 console.log(res, '1122') 280 console.log(res, '1122')
279 this.lastPage = res.data.last_page 281 this.lastPage = res.data.last_page
280 this.total = res.data.total 282 this.total = res.data.total
  283 + // this.pingList = []
281 this.pingList = this.pingList.concat(res.data.data) 284 this.pingList = this.pingList.concat(res.data.data)
282 }, 285 },
283 286
@@ -343,9 +346,14 @@ export default { @@ -343,9 +346,14 @@ export default {
343 346
344 // 回复 347 // 回复
345 huifuHandler() { 348 huifuHandler() {
346 - this.getComment(this.huiValue, this.pid)  
347 this.huiState = false 349 this.huiState = false
348 uni.showToast({ title: '回复成功~' }) 350 uni.showToast({ title: '回复成功~' })
  351 + this.huiValue = ''
  352 + this.curPage = 1
  353 + // this.pingList = []
  354 + // this.getCommentList()
  355 + this.pingList[this.huiIdx].child_num += 1
  356 + this.getComment(this.huiValue, this.pid)
349 }, 357 },
350 358
351 pingZHandler() { 359 pingZHandler() {
@@ -353,11 +361,16 @@ export default { @@ -353,11 +361,16 @@ export default {
353 this.getComment(this.value2, 0) 361 this.getComment(this.value2, 0)
354 this.inputState = false 362 this.inputState = false
355 uni.showToast({ title: '评论成功~' }) 363 uni.showToast({ title: '评论成功~' })
  364 + this.curPage = 1
  365 + // this.pingList = []
  366 + // this.getCommentList()
356 }, 367 },
357 // 防止穿透点击事件 368 // 防止穿透点击事件
358 abb() {}, 369 abb() {},
359 370
360 - huiHandler(pid, name) { 371 + huiHandler(pid, name,index) {
  372 + this.huiIdx = index
  373 + // console.log(index)
361 this.pid = pid 374 this.pid = pid
362 this.huiName = name 375 this.huiName = name
363 this.huiState = true 376 this.huiState = true
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <u-icon v-if="item.is_favorite == 1" color="#fc453c" name="heart-fill"></u-icon> 50 <u-icon v-if="item.is_favorite == 1" color="#fc453c" name="heart-fill"></u-icon>
51 <u-icon v-else name="heart"></u-icon> 51 <u-icon v-else name="heart"></u-icon>
52 <!-- <u-rate activeIcon="heart-fill" inactiveIcon="heart" :count="count" v-model="value"></u-rate> --> 52 <!-- <u-rate activeIcon="heart-fill" inactiveIcon="heart" :count="count" v-model="value"></u-rate> -->
53 - <view class="numText">{{ item.id }}</view> 53 + <view class="numText">{{ item.favorite.like_num }}</view>
54 </view> 54 </view>
55 </view> 55 </view>
56 </view> 56 </view>
@@ -160,6 +160,7 @@ export default { @@ -160,6 +160,7 @@ export default {
160 console.log(res) 160 console.log(res)
161 this.lastPage = res.data.last_page 161 this.lastPage = res.data.last_page
162 this.total = res.data.total 162 this.total = res.data.total
  163 + this.pingList = []
163 this.pingList = this.pingList.concat(res.data.data) 164 this.pingList = this.pingList.concat(res.data.data)
164 }, 165 },
165 // 防止穿透点击事件 166 // 防止穿透点击事件
@@ -169,6 +170,8 @@ export default { @@ -169,6 +170,8 @@ export default {
169 this.pingList = [] 170 this.pingList = []
170 this.getComment(this.huiValue, this.pid) 171 this.getComment(this.huiValue, this.pid)
171 this.huiState = false 172 this.huiState = false
  173 + this.curPage = 1
  174 + this.getCommentList()
172 uni.showToast({ title: '回复成功~' }) 175 uni.showToast({ title: '回复成功~' })
173 }, 176 },
174 huiHandler(pid, name) { 177 huiHandler(pid, name) {
1 -{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?5149","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?8471","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?b779","uni-app:///pages/index/detail.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?b87b","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?cb05"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/detail.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/detail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./detail.vue?vue&type=template&id=5166ee27&\"\nvar renderjs\nimport script from \"./detail.vue?vue&type=script&lang=js&\"\nexport * from \"./detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./detail.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/detail.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=template&id=5166ee27&\"","var components\ntry {\n components = {\n uDivider: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-divider/u-divider\" */ \"uview-ui/components/u-divider/u-divider.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uPopup: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-popup/u-popup\" */ \"uview-ui/components/u-popup/u-popup.vue\"\n )\n },\n \"u-Textarea\": function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u--textarea/u--textarea\" */ \"uview-ui/components/u--textarea/u--textarea.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l1 = _vm.__map(_vm.pingList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var g0 = item.create_time.slice(5, 16)\n var l0 = item.child.length ? item.child.slice(0, 2) : null\n return {\n $orig: $orig,\n g0: g0,\n l0: l0\n }\n })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = true\n }\n\n _vm.e1 = function($event) {\n _vm.inputState = true\n }\n\n _vm.e2 = function($event) {\n _vm.inputState = true\n }\n\n _vm.e3 = function($event) {\n _vm.huiState = false\n }\n\n _vm.e4 = function($event) {\n _vm.inputState = false\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l1: l1\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <view class=\"topInfoBox flexA\">\r\n <view class=\"flexA\">\r\n <image :src=\"itemlist.user.avatar\" mode=\"scaleToFill\" />\r\n <view class=\"timeText\">\r\n <view>{{ itemlist.user.user_name }}</view>\r\n <view>{{ itemlist.update_time }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <swiper :autoplay=\"true\" :interval=\"3000\" style=\"height: 420rpx\" class=\"swiper\" @change=\"changeSwiperHandler\">\r\n <swiper-item v-for=\"item in bannerList\" :key=\"item\" class=\"flexC\" @click=\"prevViewImageHandler(item)\">\r\n <video v-if=\"item.type == 'video'\" style=\"width: 100%; height: 100%\" :src=\"item.url\" />\r\n <image v-if=\"item.type == 'img'\" :src=\"item.url\" mode=\"heightFix\" />\r\n </swiper-item>\r\n </swiper>\r\n\r\n <view slot=\"indicator\" class=\"indicator\">\r\n <view\r\n class=\"indicator__dot\"\r\n v-for=\"(item, index) in bannerList\"\r\n :key=\"index\"\r\n :class=\"[index === current && 'indicator__dot--active']\"\r\n ></view>\r\n </view>\r\n\r\n <!-- 内容 -->\r\n <view class=\"mainBox\">\r\n <view class=\"titleText\">{{ itemlist.title }}</view>\r\n <view class=\"centerText\">{{ itemlist.content }}</view>\r\n </view>\r\n\r\n <!-- 评论 -->\r\n <view class=\"mainBox2\">\r\n <u-divider></u-divider>\r\n <view class=\"flexJ topBox\" style=\"margin-top: 32rpx\">\r\n <view class=\"pingNumText\">共{{ total || '0' }}条评论</view>\r\n <image style=\"width: 32rpx; height: 32rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" @click=\"rightCate = true\" />\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 评论数据 -->\r\n <view class=\"pingBox\" v-for=\"(item, index) in pingList\" :key=\"item.id\">\r\n <!-- 头像和点赞 -->\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"item.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavorite(item.is_favorite, index, item.id)\"\r\n :src=\"item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ item.favorite_num }}</view>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"contentBox\">{{ item.comment }}</view>\r\n <!-- 回复和时间 -->\r\n <view class=\"timeBox flexA\">\r\n <view>{{ item.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" @click=\"huiHandler(item.id, item.username)\">回复</view>\r\n </view>\r\n\r\n <!-- 回复评论 -->\r\n <view class=\"hPBox\" v-if=\"item.child.length\">\r\n <view v-for=\"it in item.child.slice(0, 2)\" :key=\"item.id\">\r\n <view class=\"huifu chao\">\r\n <text class=\"nameText\">{{ it.username }}</text>\r\n <text class=\"huifuText\">回复</text>\r\n <text class=\"nameText\">{{ it.tousername }}:</text>\r\n <text>{{ it.comment }}</text>\r\n <!-- <text >哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</text> -->\r\n </view>\r\n <!-- <view class=\"huifuText\">展开</view> -->\r\n </view>\r\n <view v-if=\"item.child_num >= 2\" class=\"flexA huifuText1Box\" @click=\"toPingDetail(item.id)\">\r\n <view class=\"huifuText1\">查看全部{{ item.child_num }}条回复</view>\r\n <image style=\"width: 16rpx; height: 24rpx\" src=\"/static/blueRIght.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部点赞评论收藏 -->\r\n <view class=\"bottomBtnBox flexA\" v-if=\"!huiState\">\r\n <view class=\"favoriteBox flexA\" @click=\"inputState = true\">\r\n <image class=\"xImg\" src=\"/static/xie.png\" mode=\"scaleToFill\" />\r\n <view>我来说两句...</view>\r\n </view>\r\n\r\n <!-- 点赞 -->\r\n <view class=\"likeBox flexA\" style=\"margin-right: 40rpx\">\r\n <image\r\n :src=\"userFavorite_zan == '1' ? '/static/zan11.png' : '/static/zan1.png'\"\r\n mode=\"scaleToFill\"\r\n @click=\"favoriteHandler(1)\"\r\n />\r\n <view>{{ zanNum }}</view>\r\n </view>\r\n\r\n <!-- 评论 -->\r\n <view class=\"likeBox flexA\" style=\"margin-right: 40rpx\" @click=\"inputState = true\">\r\n <image src=\"/static/icon1.png\" mode=\"scaleToFill\" />\r\n <view>{{ total }}</view>\r\n </view>\r\n\r\n <!-- 收藏 -->\r\n <view class=\"likeBox flexA\">\r\n <image v-if=\"userFavorite_cang == '0'\" src=\"/static/icon2.png\" mode=\"scaleToFill\" @click=\"favoriteHandler(3)\" />\r\n <u-icon v-else name=\"star-fill\" color=\"#6e15ff\" size=\"22\" @click=\"favoriteHandler(3)\"></u-icon>\r\n <view>{{ cangNum }}</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 回复 -->\r\n <view class=\"maskBox flexC\" v-if=\"huiState\" @click=\"huiState = false\">\r\n <view class=\"huiBox1\">\r\n <view class=\"huiBox flexA\" @click.stop=\"abb\">\r\n <view class=\"zIndex\">回复{{ huiName }}:</view>\r\n <view style=\"margin-left: -84rpx\">\r\n <u-search\r\n searchIconColor=\"#F7F8FA\"\r\n placeholder=\" \"\r\n bgColor=\"#F7F8FA\"\r\n :clearabled=\"false\"\r\n @search=\"huifuHandler\"\r\n :showAction=\"false\"\r\n v-model=\"huiValue\"\r\n ></u-search>\r\n </view>\r\n <!-- <input type=\"text\" v-model=\"huiValue\" @input=\"huifuHandler\" /> -->\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部白盒子 -->\r\n <view class=\"fffBox\"></view>\r\n\r\n <u-popup :show=\"inputState\">\r\n <view class=\"inputBox\">\r\n <view class=\"flexJ selectBox\">\r\n <view @click=\"inputState = false\">取消</view>\r\n <view @click=\"pingZHandler\">发送</view>\r\n </view>\r\n <u--textarea\r\n v-model=\"value2\"\r\n maxlength=\"300\"\r\n :showConfirmBar=\"false\"\r\n focus\r\n adjustPosition\r\n placeholder=\"请输入内容\"\r\n count\r\n ></u--textarea>\r\n </view>\r\n </u-popup>\r\n <view style=\"height: 120rpx\"></view>\r\n </view>\r\n</template>\r\n<script>\r\nimport { getDetail, getCommentList, getFavorite, getCommentFavorite, getComment } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n value2: '',\r\n inputState: false,\r\n huiState: false,\r\n huiValue: '',\r\n huiName: '',\r\n itemId: '',\r\n itemlist: {},\r\n // 当前指示器\r\n current: 0,\r\n // 轮播图数据\r\n bannerList: [],\r\n // 右侧筛选状态\r\n rightCate: false,\r\n order: 1,\r\n // 用户是否点赞\r\n userFavorite_zan: 0,\r\n // 点赞数量\r\n zanNum: 0,\r\n // 用户是否收藏\r\n userFavorite_cang: 0,\r\n // 收藏数量\r\n cangNum: 0,\r\n // 评论数据\r\n pingList: [],\r\n // 一共多少条评论\r\n total: 0,\r\n // 最后一页\r\n lastPage: 0,\r\n // 当前页\r\n curPage: 1,\r\n // 回复人员id\r\n pid: 0,\r\n }\r\n },\r\n onLoad(options) {\r\n // console.log(options.itemId)\r\n this.itemId = options.itemId\r\n this.getDetail()\r\n this.getCommentList()\r\n // this.userInfo = JSON.parse(options.userInfo)\r\n },\r\n onReachBottom() {\r\n if (this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })\r\n this.curPage += 1\r\n this.getCommentList()\r\n },\r\n methods: {\r\n // 切换轮播图\r\n changeSwiperHandler(e) {\r\n // console.log(e)\r\n this.current = e.detail.current\r\n },\r\n\r\n // 获取详情数据\r\n async getDetail() {\r\n const res = await getDetail({ id: this.itemId })\r\n this.itemlist = res.data\r\n const list = JSON.parse(this.itemlist.file)\r\n if (list.video) {\r\n this.bannerList.push({ url: JSON.parse(this.itemlist.file).video, type: 'video' })\r\n }\r\n list.imgList.forEach(item => {\r\n this.bannerList.push({ url: item, type: 'img' })\r\n })\r\n this.userFavorite_zan = res.data.userFavorite_zan\r\n this.userFavorite_cang = res.data.userFavorite_cang\r\n this.zanNum = res.data.favorite.like_num\r\n this.cangNum = res.data.favorite.collection_num\r\n },\r\n\r\n // 预览轮播图\r\n prevViewImageHandler(item) {\r\n console.log(item)\r\n const list3 = this.bannerList.filter(item => item.type == 'img').map(item => item.url)\r\n uni.previewImage({\r\n urls: list3,\r\n longPressActions: {\r\n itemList: ['发送给朋友', '保存图片', '收藏'],\r\n success: function (data) {\r\n console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片')\r\n },\r\n fail: function (err) {\r\n console.log(err.errMsg)\r\n },\r\n },\r\n })\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.rightCate = !this.rightCate\r\n this.order = type\r\n this.curPage = 1\r\n this.pingList = []\r\n this.getCommentList()\r\n },\r\n\r\n // 获取评论列表\r\n async getCommentList() {\r\n const res = await getCommentList({\r\n id: this.itemId, //\tinteger\t是\t论坛id\r\n order: this.order, //\tinteger\t是\t排序 0:时间,1:热度\r\n page: this.curPage || 1, //\tinteger\t是\t页码\r\n rows: 2, //\tinteger\t是\t条数\r\n })\r\n\r\n console.log(res, '1122')\r\n this.lastPage = res.data.last_page\r\n this.total = res.data.total\r\n this.pingList = this.pingList.concat(res.data.data)\r\n },\r\n\r\n // 详情点赞收藏\r\n async getFavorite(type, set) {\r\n const res = await getFavorite({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n type: type, //\tinteger\t是\t1:点赞,3:收藏\r\n set: set, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n },\r\n\r\n // 点赞收藏操作\r\n favoriteHandler(type) {\r\n // 点赞\r\n if (type == 1) {\r\n // 确认点赞\r\n if (this.userFavorite_zan == 1) {\r\n this.userFavorite_zan = 0\r\n this.getFavorite(1, 0)\r\n this.zanNum = this.zanNum - 1\r\n } else {\r\n // 取消点赞\r\n this.userFavorite_zan = 1\r\n this.getFavorite(1, 1)\r\n this.zanNum = this.zanNum + 1\r\n }\r\n }\r\n // 收藏\r\n if (type == 3) {\r\n if (this.userFavorite_cang == 1) {\r\n this.userFavorite_cang = 0\r\n this.getFavorite(3, 0)\r\n this.cangNum = this.cangNum - 1\r\n } else {\r\n this.userFavorite_cang = 1\r\n this.getFavorite(3, 1)\r\n this.cangNum = this.cangNum + 1\r\n }\r\n }\r\n // this.getDetail()\r\n },\r\n\r\n // 评论点赞操作\r\n async getCommentFavorite(isF, index, id) {\r\n // console.log(isF, index)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[index].favorite_num -= 1\r\n } else {\r\n this.pingList[index].favorite_num += 1\r\n }\r\n this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n\r\n // 回复\r\n huifuHandler() {\r\n this.getComment(this.huiValue, this.pid)\r\n this.huiState = false\r\n uni.showToast({ title: '回复成功~' })\r\n },\r\n\r\n pingZHandler() {\r\n console.log(this.value2)\r\n this.getComment(this.value2, 0)\r\n this.inputState = false\r\n uni.showToast({ title: '评论成功~' })\r\n },\r\n // 防止穿透点击事件\r\n abb() {},\r\n\r\n huiHandler(pid, name) {\r\n this.pid = pid\r\n this.huiName = name\r\n this.huiState = true\r\n },\r\n\r\n // 评论\r\n async getComment(value, pid) {\r\n try {\r\n const res = await getComment({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n pid: pid, //\tinteger\t是\t回复id,首次评论传0\r\n comment: value, //\tstring\t是\t评论内容\r\n })\r\n\r\n this.getCommentList()\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n\r\n // 跳转评论\r\n toPingDetail(com_id) {\r\n uni.navigateTo({ url: `/pages/index/pingDetail?comId=${com_id}&itemId=${this.itemId}` })\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.indicator {\r\n /* @include flex(row); */\r\n display: flex;\r\n justify-content: center;\r\n margin-top: 40rpx;\r\n margin-bottom: 62rpx;\r\n\r\n &__dot {\r\n height: 6px;\r\n width: 6px;\r\n border-radius: 100px;\r\n background-color: rgba(0, 0, 0, 0.4);\r\n margin: 0 5px;\r\n transition: background-color 0.3s;\r\n\r\n &--active {\r\n background: rgba(0, 0, 0, 0.6);\r\n }\r\n }\r\n}\r\n.inputBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n padding: 24rpx 32rpx 32rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n border-radius: 24rpx 24rpx 0 0;\r\n > .selectBox {\r\n margin-bottom: 16rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 1);\r\n font-size: 32rpx;\r\n }\r\n view:nth-child(2) {\r\n color: rgba(33, 83, 212, 1);\r\n font-size: 32rpx;\r\n }\r\n }\r\n}\r\n.topInfoBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n image {\r\n width: 72rpx;\r\n height: 72rpx;\r\n border-radius: 50%;\r\n margin-right: 24rpx;\r\n }\r\n}\r\n.timeText {\r\n :nth-child(1) {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 26rpx;\r\n font-weight: 700;\r\n }\r\n :nth-child(2) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n }\r\n}\r\n.mainBox {\r\n padding: 0 24rpx;\r\n box-sizing: border-box;\r\n > .titleText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 36rpx;\r\n font-weight: 700;\r\n margin-bottom: 24rpx;\r\n }\r\n > .centerText {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 28rpx;\r\n }\r\n margin-bottom: 40rpx;\r\n}\r\n.mainBox2 {\r\n padding: 32rpx;\r\n box-sizing: border-box;\r\n}\r\n.pingNumText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n}\r\n.topBox {\r\n position: relative;\r\n margin-bottom: 40rpx;\r\n .xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: absolute;\r\n top: 70rpx;\r\n right: 0rpx;\r\n box-shadow: 0 4rpx 24rpx 0 rgba(0, 0, 0, 0.2);\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n }\r\n}\r\n.bottomBtnBox {\r\n background: #fff;\r\n image {\r\n width: 40rpx;\r\n height: 40rpx;\r\n }\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n > .favoriteBox {\r\n margin-right: 24rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n view {\r\n color: rgba(179, 179, 179, 1);\r\n font-size: 28rpx;\r\n margin-left: 24rpx;\r\n }\r\n }\r\n > .likeBox {\r\n view {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-left: 8rpx;\r\n min-width: 42rpx;\r\n }\r\n }\r\n}\r\n.fffBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 60rpx;\r\n background: #fff;\r\n}\r\n.xImg {\r\n width: 32rpx;\r\n height: 32rpx;\r\n}\r\n.huifuText1Box {\r\n margin-top: 16rpx;\r\n}\r\n.huifuText1 {\r\n color: rgba(33, 83, 212, 1);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n}\r\n.pingBox {\r\n padding-bottom: 32rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n margin-bottom: 32rpx;\r\n\r\n > .pTopBox {\r\n > .avatarBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n image {\r\n width: 64rpx;\r\n height: 64rpx;\r\n border-radius: 50%;\r\n margin-right: 16rpx;\r\n }\r\n }\r\n > .zanBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n image {\r\n width: 40rpx;\r\n margin-right: 8rpx;\r\n height: 40rpx;\r\n }\r\n }\r\n }\r\n > .contentBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-bottom: 16rpx;\r\n margin-left: 80rpx;\r\n }\r\n > .timeBox {\r\n margin-left: 80rpx;\r\n margin-bottom: 24rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-right: 48rpx;\r\n }\r\n view:nth-child(2) {\r\n width: 114rpx;\r\n height: 48rpx;\r\n border-radius: 56rpx;\r\n border: 1rpx solid #b88dff;\r\n color: rgba(110, 22, 255, 1);\r\n font-size: 24rpx;\r\n }\r\n }\r\n > .hPBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n background: #f7f8fa;\r\n margin-left: 80rpx;\r\n }\r\n}\r\n.huifu {\r\n > .nameText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n font-weight: 700;\r\n margin-right: 10rpx;\r\n }\r\n > .huifuText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n }\r\n text {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.chao {\r\n max-width: 600rpx;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n -webkit-box-orient: vertical;\r\n}\r\n.maskBox {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: transparent;\r\n}\r\n.huiBox {\r\n z-index: 999;\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n width: 686rpx;\r\n height: 72rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n /* margin: 0 auto; */\r\n margin-left: 32rpx;\r\n > .zIndex {\r\n z-index: 999;\r\n }\r\n view {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.huiBox1 {\r\n width: 100%;\r\n height: 80rpx;\r\n background: #fff;\r\n position: fixed;\r\n bottom: 50rpx;\r\n left: 0;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670311041406\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}  
  1 +{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?5149","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?8471","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?b779","uni-app:///pages/index/detail.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?b87b","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/detail.vue?cb05"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/detail.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/detail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./detail.vue?vue&type=template&id=5166ee27&\"\nvar renderjs\nimport script from \"./detail.vue?vue&type=script&lang=js&\"\nexport * from \"./detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./detail.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/detail.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=template&id=5166ee27&\"","var components\ntry {\n components = {\n uDivider: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-divider/u-divider\" */ \"uview-ui/components/u-divider/u-divider.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uPopup: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-popup/u-popup\" */ \"uview-ui/components/u-popup/u-popup.vue\"\n )\n },\n \"u-Textarea\": function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u--textarea/u--textarea\" */ \"uview-ui/components/u--textarea/u--textarea.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l1 = _vm.__map(_vm.pingList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var g0 = item.create_time.slice(5, 16)\n var l0 = item.child.length ? item.child.slice(0, 2) : null\n return {\n $orig: $orig,\n g0: g0,\n l0: l0\n }\n })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = true\n }\n\n _vm.e1 = function($event) {\n _vm.inputState = true\n }\n\n _vm.e2 = function($event) {\n _vm.inputState = true\n }\n\n _vm.e3 = function($event) {\n _vm.huiState = false\n }\n\n _vm.e4 = function($event) {\n _vm.inputState = false\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l1: l1\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <view class=\"topInfoBox flexA\">\r\n <view class=\"flexA\">\r\n <image :src=\"itemlist.user.avatar\" mode=\"scaleToFill\" />\r\n <view class=\"timeText\">\r\n <view>{{ itemlist.user.user_name }}</view>\r\n <view>{{ itemlist.update_time }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <swiper :autoplay=\"true\" :interval=\"3000\" style=\"height: 420rpx\" class=\"swiper\" @change=\"changeSwiperHandler\">\r\n <swiper-item v-for=\"item in bannerList\" :key=\"item\" class=\"flexC\" @click=\"prevViewImageHandler(item)\">\r\n <video v-if=\"item.type == 'video'\" style=\"width: 100%; height: 100%\" :src=\"item.url\" />\r\n <image v-if=\"item.type == 'img'\" :src=\"item.url\" mode=\"heightFix\" />\r\n </swiper-item>\r\n </swiper>\r\n\r\n <view slot=\"indicator\" class=\"indicator\">\r\n <view\r\n class=\"indicator__dot\"\r\n v-for=\"(item, index) in bannerList\"\r\n :key=\"index\"\r\n :class=\"[index === current && 'indicator__dot--active']\"\r\n ></view>\r\n </view>\r\n\r\n <!-- 内容 -->\r\n <view class=\"mainBox\">\r\n <view class=\"titleText\">{{ itemlist.title }}</view>\r\n <view class=\"centerText\">{{ itemlist.content }}</view>\r\n </view>\r\n\r\n <!-- 评论 -->\r\n <view class=\"mainBox2\">\r\n <u-divider></u-divider>\r\n <view class=\"flexJ topBox\" style=\"margin-top: 32rpx\">\r\n <view class=\"pingNumText\">共{{ total || '0' }}条评论</view>\r\n <image style=\"width: 32rpx; height: 32rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" @click=\"rightCate = true\" />\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 评论数据 -->\r\n <view class=\"pingBox\" v-for=\"(item, index) in pingList\" :key=\"item.id\">\r\n <!-- 头像和点赞 -->\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"item.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavorite(item.is_favorite, index, item.id)\"\r\n :src=\"item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ item.favorite_num }}</view>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"contentBox\">{{ item.comment }}</view>\r\n <!-- 回复和时间 -->\r\n <view class=\"timeBox flexA\">\r\n <view>{{ item.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" @click=\"huiHandler(item.id, item.username, index)\">回复</view>\r\n </view>\r\n\r\n <!-- 回复评论 -->\r\n <view class=\"hPBox\" v-if=\"item.child.length\">\r\n <view v-for=\"it in item.child.slice(0, 2)\" :key=\"item.id\">\r\n <view class=\"huifu chao\">\r\n <text class=\"nameText\">{{ it.username }}</text>\r\n <text class=\"huifuText\">回复</text>\r\n <text class=\"nameText\">{{ it.tousername }}:</text>\r\n <text>{{ it.comment }}</text>\r\n <!-- <text >哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</text> -->\r\n </view>\r\n <!-- <view class=\"huifuText\">展开</view> -->\r\n </view>\r\n <view v-if=\"item.child_num >= 2\" class=\"flexA huifuText1Box\" @click=\"toPingDetail(item.id)\">\r\n <view class=\"huifuText1\">查看全部{{ item.child_num }}条回复</view>\r\n <image style=\"width: 16rpx; height: 24rpx\" src=\"/static/blueRIght.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部点赞评论收藏 -->\r\n <view class=\"bottomBtnBox flexA\" v-if=\"!huiState\">\r\n <view class=\"favoriteBox flexA\" @click=\"inputState = true\">\r\n <image class=\"xImg\" src=\"/static/xie.png\" mode=\"scaleToFill\" />\r\n <view>我来说两句...</view>\r\n </view>\r\n\r\n <!-- 点赞 -->\r\n <view class=\"likeBox flexA\" style=\"margin-right: 40rpx\">\r\n <image\r\n :src=\"userFavorite_zan == '1' ? '/static/zan11.png' : '/static/zan1.png'\"\r\n mode=\"scaleToFill\"\r\n @click=\"favoriteHandler(1)\"\r\n />\r\n <view>{{ zanNum }}</view>\r\n </view>\r\n\r\n <!-- 评论 -->\r\n <view class=\"likeBox flexA\" style=\"margin-right: 40rpx\" @click=\"inputState = true\">\r\n <image src=\"/static/icon1.png\" mode=\"scaleToFill\" />\r\n <view>{{ total }}</view>\r\n </view>\r\n\r\n <!-- 收藏 -->\r\n <view class=\"likeBox flexA\">\r\n <image v-if=\"userFavorite_cang == '0'\" src=\"/static/icon2.png\" mode=\"scaleToFill\" @click=\"favoriteHandler(3)\" />\r\n <u-icon v-else name=\"star-fill\" color=\"#6e15ff\" size=\"22\" @click=\"favoriteHandler(3)\"></u-icon>\r\n <view>{{ cangNum }}</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 回复 -->\r\n <view class=\"maskBox flexC\" v-if=\"huiState\" @click=\"huiState = false\">\r\n <view class=\"huiBox1\">\r\n <view class=\"huiBox flexA\" @click.stop=\"abb\">\r\n <view class=\"zIndex\">回复{{ huiName }}:</view>\r\n <view style=\"margin-left: -84rpx\">\r\n <u-search\r\n searchIconColor=\"#F7F8FA\"\r\n placeholder=\" \"\r\n bgColor=\"#F7F8FA\"\r\n :clearabled=\"false\"\r\n @search=\"huifuHandler\"\r\n :showAction=\"false\"\r\n v-model=\"huiValue\"\r\n ></u-search>\r\n </view>\r\n <!-- <input type=\"text\" v-model=\"huiValue\" @input=\"huifuHandler\" /> -->\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部白盒子 -->\r\n <view class=\"fffBox\"></view>\r\n\r\n <u-popup :show=\"inputState\">\r\n <view class=\"inputBox\">\r\n <view class=\"flexJ selectBox\">\r\n <view @click=\"inputState = false\">取消</view>\r\n <view @click=\"pingZHandler\">发送</view>\r\n </view>\r\n <u--textarea\r\n v-model=\"value2\"\r\n maxlength=\"300\"\r\n :showConfirmBar=\"false\"\r\n focus\r\n adjustPosition\r\n placeholder=\"请输入内容\"\r\n count\r\n ></u--textarea>\r\n </view>\r\n </u-popup>\r\n <view style=\"height: 120rpx\"></view>\r\n </view>\r\n</template>\r\n<script>\r\nimport { getDetail, getCommentList, getFavorite, getCommentFavorite, getComment } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n value2: '',\r\n inputState: false,\r\n huiState: false,\r\n huiValue: '',\r\n huiName: '',\r\n itemId: '',\r\n itemlist: {},\r\n // 当前指示器\r\n current: 0,\r\n // 轮播图数据\r\n bannerList: [],\r\n // 右侧筛选状态\r\n rightCate: false,\r\n order: 1,\r\n // 用户是否点赞\r\n userFavorite_zan: 0,\r\n // 点赞数量\r\n zanNum: 0,\r\n // 用户是否收藏\r\n userFavorite_cang: 0,\r\n // 收藏数量\r\n cangNum: 0,\r\n // 评论数据\r\n pingList: [],\r\n // 一共多少条评论\r\n total: 0,\r\n // 最后一页\r\n lastPage: 0,\r\n // 当前页\r\n curPage: 1,\r\n // 回复人员id\r\n pid: 0,\r\n // 回复评论索引\r\n huiIdx: ''\r\n }\r\n },\r\n onLoad(options) {\r\n // console.log(options.itemId)\r\n this.itemId = options.itemId\r\n this.getDetail()\r\n this.getCommentList()\r\n // this.userInfo = JSON.parse(options.userInfo)\r\n },\r\n onReachBottom() {\r\n if (this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })\r\n this.curPage += 1\r\n this.getCommentList()\r\n },\r\n methods: {\r\n // 切换轮播图\r\n changeSwiperHandler(e) {\r\n // console.log(e)\r\n this.current = e.detail.current\r\n },\r\n\r\n // 获取详情数据\r\n async getDetail() {\r\n const res = await getDetail({ id: this.itemId })\r\n this.itemlist = res.data\r\n const list = JSON.parse(this.itemlist.file)\r\n if (list.video) {\r\n this.bannerList.push({ url: JSON.parse(this.itemlist.file).video, type: 'video' })\r\n }\r\n list.imgList.forEach(item => {\r\n this.bannerList.push({ url: item, type: 'img' })\r\n })\r\n this.userFavorite_zan = res.data.userFavorite_zan\r\n this.userFavorite_cang = res.data.userFavorite_cang\r\n this.zanNum = res.data.favorite.like_num\r\n this.cangNum = res.data.favorite.collection_num\r\n },\r\n\r\n // 预览轮播图\r\n prevViewImageHandler(item) {\r\n console.log(item)\r\n const list3 = this.bannerList.filter(item => item.type == 'img').map(item => item.url)\r\n uni.previewImage({\r\n urls: list3,\r\n longPressActions: {\r\n itemList: ['发送给朋友', '保存图片', '收藏'],\r\n success: function (data) {\r\n console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片')\r\n },\r\n fail: function (err) {\r\n console.log(err.errMsg)\r\n },\r\n },\r\n })\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.rightCate = !this.rightCate\r\n this.order = type\r\n this.curPage = 1\r\n this.pingList = []\r\n this.getCommentList()\r\n },\r\n\r\n // 获取评论列表\r\n async getCommentList() {\r\n const res = await getCommentList({\r\n id: this.itemId, //\tinteger\t是\t论坛id\r\n order: this.order, //\tinteger\t是\t排序 0:时间,1:热度\r\n page: this.curPage || 1, //\tinteger\t是\t页码\r\n rows: 6, //\tinteger\t是\t条数\r\n })\r\n\r\n console.log(res, '1122')\r\n this.lastPage = res.data.last_page\r\n this.total = res.data.total\r\n // this.pingList = []\r\n this.pingList = this.pingList.concat(res.data.data)\r\n },\r\n\r\n // 详情点赞收藏\r\n async getFavorite(type, set) {\r\n const res = await getFavorite({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n type: type, //\tinteger\t是\t1:点赞,3:收藏\r\n set: set, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n },\r\n\r\n // 点赞收藏操作\r\n favoriteHandler(type) {\r\n // 点赞\r\n if (type == 1) {\r\n // 确认点赞\r\n if (this.userFavorite_zan == 1) {\r\n this.userFavorite_zan = 0\r\n this.getFavorite(1, 0)\r\n this.zanNum = this.zanNum - 1\r\n } else {\r\n // 取消点赞\r\n this.userFavorite_zan = 1\r\n this.getFavorite(1, 1)\r\n this.zanNum = this.zanNum + 1\r\n }\r\n }\r\n // 收藏\r\n if (type == 3) {\r\n if (this.userFavorite_cang == 1) {\r\n this.userFavorite_cang = 0\r\n this.getFavorite(3, 0)\r\n this.cangNum = this.cangNum - 1\r\n } else {\r\n this.userFavorite_cang = 1\r\n this.getFavorite(3, 1)\r\n this.cangNum = this.cangNum + 1\r\n }\r\n }\r\n // this.getDetail()\r\n },\r\n\r\n // 评论点赞操作\r\n async getCommentFavorite(isF, index, id) {\r\n // console.log(isF, index)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[index].favorite_num -= 1\r\n } else {\r\n this.pingList[index].favorite_num += 1\r\n }\r\n this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n\r\n // 回复\r\n huifuHandler() {\r\n this.huiState = false\r\n uni.showToast({ title: '回复成功~' })\r\n this.huiValue = ''\r\n this.curPage = 1\r\n // this.pingList = []\r\n // this.getCommentList()\r\n this.pingList[this.huiIdx].child_num += 1\r\n this.getComment(this.huiValue, this.pid)\r\n },\r\n\r\n pingZHandler() {\r\n console.log(this.value2)\r\n this.getComment(this.value2, 0)\r\n this.inputState = false\r\n uni.showToast({ title: '评论成功~' })\r\n this.curPage = 1\r\n // this.pingList = []\r\n // this.getCommentList()\r\n },\r\n // 防止穿透点击事件\r\n abb() {},\r\n\r\n huiHandler(pid, name,index) {\r\n this.huiIdx = index\r\n // console.log(index)\r\n this.pid = pid\r\n this.huiName = name\r\n this.huiState = true\r\n },\r\n\r\n // 评论\r\n async getComment(value, pid) {\r\n try {\r\n const res = await getComment({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n pid: pid, //\tinteger\t是\t回复id,首次评论传0\r\n comment: value, //\tstring\t是\t评论内容\r\n })\r\n\r\n this.getCommentList()\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n\r\n // 跳转评论\r\n toPingDetail(com_id) {\r\n uni.navigateTo({ url: `/pages/index/pingDetail?comId=${com_id}&itemId=${this.itemId}` })\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.indicator {\r\n /* @include flex(row); */\r\n display: flex;\r\n justify-content: center;\r\n margin-top: 40rpx;\r\n margin-bottom: 62rpx;\r\n\r\n &__dot {\r\n height: 6px;\r\n width: 6px;\r\n border-radius: 100px;\r\n background-color: rgba(0, 0, 0, 0.4);\r\n margin: 0 5px;\r\n transition: background-color 0.3s;\r\n\r\n &--active {\r\n background: rgba(0, 0, 0, 0.6);\r\n }\r\n }\r\n}\r\n.inputBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n padding: 24rpx 32rpx 32rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n border-radius: 24rpx 24rpx 0 0;\r\n > .selectBox {\r\n margin-bottom: 16rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 1);\r\n font-size: 32rpx;\r\n }\r\n view:nth-child(2) {\r\n color: rgba(33, 83, 212, 1);\r\n font-size: 32rpx;\r\n }\r\n }\r\n}\r\n.topInfoBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n image {\r\n width: 72rpx;\r\n height: 72rpx;\r\n border-radius: 50%;\r\n margin-right: 24rpx;\r\n }\r\n}\r\n.timeText {\r\n :nth-child(1) {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 26rpx;\r\n font-weight: 700;\r\n }\r\n :nth-child(2) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n }\r\n}\r\n.mainBox {\r\n padding: 0 24rpx;\r\n box-sizing: border-box;\r\n > .titleText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 36rpx;\r\n font-weight: 700;\r\n margin-bottom: 24rpx;\r\n }\r\n > .centerText {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 28rpx;\r\n }\r\n margin-bottom: 40rpx;\r\n}\r\n.mainBox2 {\r\n padding: 32rpx;\r\n box-sizing: border-box;\r\n}\r\n.pingNumText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n}\r\n.topBox {\r\n position: relative;\r\n margin-bottom: 40rpx;\r\n .xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: absolute;\r\n top: 70rpx;\r\n right: 0rpx;\r\n box-shadow: 0 4rpx 24rpx 0 rgba(0, 0, 0, 0.2);\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n }\r\n}\r\n.bottomBtnBox {\r\n background: #fff;\r\n image {\r\n width: 40rpx;\r\n height: 40rpx;\r\n }\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n > .favoriteBox {\r\n margin-right: 24rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n view {\r\n color: rgba(179, 179, 179, 1);\r\n font-size: 28rpx;\r\n margin-left: 24rpx;\r\n }\r\n }\r\n > .likeBox {\r\n view {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-left: 8rpx;\r\n min-width: 42rpx;\r\n }\r\n }\r\n}\r\n.fffBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 60rpx;\r\n background: #fff;\r\n}\r\n.xImg {\r\n width: 32rpx;\r\n height: 32rpx;\r\n}\r\n.huifuText1Box {\r\n margin-top: 16rpx;\r\n}\r\n.huifuText1 {\r\n color: rgba(33, 83, 212, 1);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n}\r\n.pingBox {\r\n padding-bottom: 32rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n margin-bottom: 32rpx;\r\n\r\n > .pTopBox {\r\n > .avatarBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n image {\r\n width: 64rpx;\r\n height: 64rpx;\r\n border-radius: 50%;\r\n margin-right: 16rpx;\r\n }\r\n }\r\n > .zanBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n image {\r\n width: 40rpx;\r\n margin-right: 8rpx;\r\n height: 40rpx;\r\n }\r\n }\r\n }\r\n > .contentBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-bottom: 16rpx;\r\n margin-left: 80rpx;\r\n }\r\n > .timeBox {\r\n margin-left: 80rpx;\r\n margin-bottom: 24rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-right: 48rpx;\r\n }\r\n view:nth-child(2) {\r\n width: 114rpx;\r\n height: 48rpx;\r\n border-radius: 56rpx;\r\n border: 1rpx solid #b88dff;\r\n color: rgba(110, 22, 255, 1);\r\n font-size: 24rpx;\r\n }\r\n }\r\n > .hPBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n background: #f7f8fa;\r\n margin-left: 80rpx;\r\n }\r\n}\r\n.huifu {\r\n > .nameText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n font-weight: 700;\r\n margin-right: 10rpx;\r\n }\r\n > .huifuText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n }\r\n text {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.chao {\r\n max-width: 600rpx;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n -webkit-box-orient: vertical;\r\n}\r\n.maskBox {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: transparent;\r\n}\r\n.huiBox {\r\n z-index: 999;\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n width: 686rpx;\r\n height: 72rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n /* margin: 0 auto; */\r\n margin-left: 32rpx;\r\n > .zIndex {\r\n z-index: 999;\r\n }\r\n view {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.huiBox1 {\r\n width: 100%;\r\n height: 80rpx;\r\n background: #fff;\r\n position: fixed;\r\n bottom: 50rpx;\r\n left: 0;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670312678521\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
1 -{"version":3,"sources":["uni-app:///main.js","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?5f44","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?6ba4","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?dff9","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?0156","uni-app:///pages/index/list.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?f217","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?9754"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/list.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/list.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./list.vue?vue&type=template&id=fc532118&\"\nvar renderjs\nimport script from \"./list.vue?vue&type=script&lang=js&\"\nexport * from \"./list.vue?vue&type=script&lang=js&\"\nimport style0 from \"./list.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/list.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=template&id=fc532118&\"","var components\ntry {\n components = {\n uSticky: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-sticky/u-sticky\" */ \"uview-ui/components/u-sticky/u-sticky.vue\"\n )\n },\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uTabs: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-tabs/u-tabs\" */ \"uview-ui/components/u-tabs/u-tabs.vue\"\n )\n },\n customWaterfallsFlow: function() {\n return import(\n /* webpackChunkName: \"components/custom-waterfalls-flow/custom-waterfalls-flow\" */ \"@/components/custom-waterfalls-flow/custom-waterfalls-flow.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uEmpty: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-empty/u-empty\" */ \"uview-ui/components/u-empty/u-empty.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <!-- 顶部navbar -->\r\n <u-sticky bgColor=\"#fff\">\r\n <!-- @rightClick=\"rightClick\" :autoBack=\"true\" -->\r\n <u-navbar placeholder>\r\n <template #center>\r\n <view class=\"topSearchBox\">\r\n <u-search placeholder=\"请输入商家名称\" :clearabled=\"true\" :showAction=\"false\" v-model=\"searchValue\"></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n <!-- @search=\"getList\" -->\r\n\r\n <!-- 粘性tabs -->\r\n <u-tabs\r\n :list=\"list1\"\r\n keyName=\"type_name\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n @click=\"toggleTabsHandler\"\r\n >\r\n <view slot=\"right\" style=\"padding-left: 4px\" @tap=\"rightCate = true\">\r\n <view class=\"rightBox\">\r\n <!-- <u-icon name=\"list\" size=\"21\" bold></u-icon> -->\r\n <image style=\"width: 32rpx; height: 32rpx; margin-right: 18rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </u-tabs>\r\n </u-sticky>\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"list2.length\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list2\" :seat=\"2\" @imageClick=\"toDetailHandler\">\r\n <view class=\"item\" v-for=\"(item, index) in list2\" :key=\"item.id\" slot=\"slot{{index}}\">\r\n <view class=\"title flexC\">{{ item.title }}</view>\r\n <view class=\"flexJ\">\r\n <view class=\"flexA headerBox\">\r\n <image :src=\"item.user.avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.user.user_name }}</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-icon v-if=\"item.is_favorite == 1\" color=\"#fc453c\" name=\"heart-fill\"></u-icon>\r\n <u-icon v-else name=\"heart\"></u-icon>\r\n <!-- <u-rate activeIcon=\"heart-fill\" inactiveIcon=\"heart\" :count=\"count\" v-model=\"value\"></u-rate> -->\r\n <view class=\"numText\">{{ item.id }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </custom-waterfalls-flow>\r\n </view>\r\n </template>\r\n\r\n <template v-if=\"searchState == 0\">\r\n <view style=\"margin-top: 300rpx\">\r\n <u-empty />\r\n </view>\r\n </template>\r\n \r\n <!-- 添加按钮 -->\r\n <view class=\"incrBox flexC\" @click=\"toIncrItemHandler\">\r\n <image\r\n src=\"/static/add.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList, getTabsCate } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n rightCate: false,\r\n list1: [],\r\n list2: [],\r\n // 未选择样式\r\n inactiveStyle: {\r\n color: 'rgba(0,0,0,0.4)',\r\n fontSize: '27rpx',\r\n },\r\n // 选择样式\r\n activeStyle: {\r\n color: 'rgba(50, 50, 51, 1)',\r\n fontSize: '27rpx',\r\n fontWeight: '700',\r\n },\r\n count: 1,\r\n value: 1,\r\n searchState: 1,\r\n //\r\n searchValue: '',\r\n searchList1: [],\r\n curPage: 1,\r\n last_page: 1,\r\n // 排序类型\r\n order: 1,\r\n // 商品列表 id\r\n goodlistId: 1,\r\n }\r\n },\r\n async created() {\r\n const { data } = await getTabsCate({\r\n page: 1,\r\n rows: 20,\r\n })\r\n this.list1 = data.data\r\n // this.list1.forEach((item,index) => item.name = data.data[index].type_name)\r\n \r\n console.log(\r\n JSON.parse(\r\n '{\"video\":\"\",\"imgList\":[\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"],\"cover\":\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"}'\r\n )\r\n )\r\n },\r\n onLoad(){\r\n this.getList()\r\n },\r\n onReachBottom() {\r\n console.log('到底了')\r\n if (this.curPage === this.last_page) {\r\n uni.showToast({\r\n title: '没有更多数据了~',\r\n icon: 'none',\r\n mask: true,\r\n })\r\n } else {\r\n this.curPage = this.curPage + 1\r\n this.getList()\r\n }\r\n },\r\n methods: {\r\n async getList(val) {\r\n \r\n const { data } = await getList({\r\n type_id: this.goodlistId, //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: this.order, //\tstring\t是\t排序,1:评论,0:时间\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 6, //\tinteger\t是\t条数\r\n })\r\n console.log(data)\r\n if (data.data.length == 0) {\r\n this.searchState = 0\r\n } else {\r\n this.searchState = 1\r\n this.last_page = data.last_page\r\n data.data.forEach(it=> it.image = JSON.parse(it.file).cover )\r\n this.list2 = this.list2.concat(data.data)\r\n // this.list2 = data.data\r\n // this.list2.forEach((item, index) => {\r\n // item.image = JSON.parse(data.data[index].file).imgList[0]\r\n // })\r\n \r\n }\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.list2 = []\r\n this.rightCate = !this.rightCate\r\n this.curPage = 1\r\n this.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\r\n this.curPage = 1\r\n this.goodlistId = e.id\r\n this.getList()\r\n },\r\n\r\n // 跳转详情\r\n toDetailHandler(e){\r\n // console.log(JSON.stringify(e.user))\r\n uni.navigateTo({ url: `/pages/index/detail?itemId=${e.id}&userInfo=${JSON.stringify(e.user)}` })\r\n },\r\n toIncrItemHandler(){\r\n uni.navigateTo({ url: '/pages/index/addItem' })\r\n }\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.topSearchBox {\r\n margin-right: 218rpx;\r\n z-index: 999;\r\n}\r\npage {\r\n background: #f7f8fa;\r\n}\r\n.u-search__content {\r\n min-width: 426rpx !important;\r\n}\r\n.title {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin: 16rpx 0;\r\n}\r\n.headerBox {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 24rpx;\r\n image {\r\n width: 48rpx;\r\n height: 48rpx;\r\n border-radius: 50%;\r\n margin-right: 8rpx;\r\n }\r\n}\r\n.item {\r\n padding: 0 16rpx 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.numText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-left: 8rpx;\r\n}\r\n.mainBox {\r\n width: 100%;\r\n height: 100%;\r\n padding: 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.rightBox {\r\n position: relative;\r\n}\r\n.xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: fixed;\r\n top: 17vh;\r\n right: 14rpx;\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n}\r\n.incrBox{\r\n position: fixed;\r\n bottom: 120rpx;\r\n right: 24rpx;\r\n width: 120rpx;\r\nheight: 120rpx;\r\nborder-radius: 50%;\r\nopacity: 1;\r\nbackground: linear-gradient(90deg, rgba(140,72,255,1) 0%, rgba(123,43,255,1) 100%);\r\nbox-shadow: 0 4rpx 24rpx 0 rgba(107,36,224,0.4);\r\nimage{\r\n width: 64rpx;\r\nheight: 64rpx;\r\n}\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670310491925\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}  
  1 +{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?6ba4","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?dff9","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?0156","uni-app:///pages/index/list.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?f217","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/list.vue?9754"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/list.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/list.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./list.vue?vue&type=template&id=fc532118&\"\nvar renderjs\nimport script from \"./list.vue?vue&type=script&lang=js&\"\nexport * from \"./list.vue?vue&type=script&lang=js&\"\nimport style0 from \"./list.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/list.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=template&id=fc532118&\"","var components\ntry {\n components = {\n uSticky: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-sticky/u-sticky\" */ \"uview-ui/components/u-sticky/u-sticky.vue\"\n )\n },\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uTabs: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-tabs/u-tabs\" */ \"uview-ui/components/u-tabs/u-tabs.vue\"\n )\n },\n customWaterfallsFlow: function() {\n return import(\n /* webpackChunkName: \"components/custom-waterfalls-flow/custom-waterfalls-flow\" */ \"@/components/custom-waterfalls-flow/custom-waterfalls-flow.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uEmpty: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-empty/u-empty\" */ \"uview-ui/components/u-empty/u-empty.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <!-- 顶部navbar -->\r\n <u-sticky bgColor=\"#fff\">\r\n <!-- @rightClick=\"rightClick\" :autoBack=\"true\" -->\r\n <u-navbar placeholder>\r\n <template #center>\r\n <view class=\"topSearchBox\">\r\n <u-search placeholder=\"请输入商家名称\" :clearabled=\"true\" :showAction=\"false\" v-model=\"searchValue\"></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n <!-- @search=\"getList\" -->\r\n\r\n <!-- 粘性tabs -->\r\n <u-tabs\r\n :list=\"list1\"\r\n keyName=\"type_name\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n @click=\"toggleTabsHandler\"\r\n >\r\n <view slot=\"right\" style=\"padding-left: 4px\" @tap=\"rightCate = true\">\r\n <view class=\"rightBox\">\r\n <!-- <u-icon name=\"list\" size=\"21\" bold></u-icon> -->\r\n <image style=\"width: 32rpx; height: 32rpx; margin-right: 18rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </u-tabs>\r\n </u-sticky>\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"list2.length\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list2\" :seat=\"2\" @imageClick=\"toDetailHandler\">\r\n <view class=\"item\" v-for=\"(item, index) in list2\" :key=\"item.id\" slot=\"slot{{index}}\">\r\n <view class=\"title flexC\">{{ item.title }}</view>\r\n <view class=\"flexJ\">\r\n <view class=\"flexA headerBox\">\r\n <image :src=\"item.user.avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.user.user_name }}</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-icon v-if=\"item.is_favorite == 1\" color=\"#fc453c\" name=\"heart-fill\"></u-icon>\r\n <u-icon v-else name=\"heart\"></u-icon>\r\n <!-- <u-rate activeIcon=\"heart-fill\" inactiveIcon=\"heart\" :count=\"count\" v-model=\"value\"></u-rate> -->\r\n <view class=\"numText\">{{ item.favorite.like_num }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </custom-waterfalls-flow>\r\n </view>\r\n </template>\r\n\r\n <template v-if=\"searchState == 0\">\r\n <view style=\"margin-top: 300rpx\">\r\n <u-empty />\r\n </view>\r\n </template>\r\n \r\n <!-- 添加按钮 -->\r\n <view class=\"incrBox flexC\" @click=\"toIncrItemHandler\">\r\n <image\r\n src=\"/static/add.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList, getTabsCate } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n rightCate: false,\r\n list1: [],\r\n list2: [],\r\n // 未选择样式\r\n inactiveStyle: {\r\n color: 'rgba(0,0,0,0.4)',\r\n fontSize: '27rpx',\r\n },\r\n // 选择样式\r\n activeStyle: {\r\n color: 'rgba(50, 50, 51, 1)',\r\n fontSize: '27rpx',\r\n fontWeight: '700',\r\n },\r\n count: 1,\r\n value: 1,\r\n searchState: 1,\r\n //\r\n searchValue: '',\r\n searchList1: [],\r\n curPage: 1,\r\n last_page: 1,\r\n // 排序类型\r\n order: 1,\r\n // 商品列表 id\r\n goodlistId: 1,\r\n }\r\n },\r\n async created() {\r\n const { data } = await getTabsCate({\r\n page: 1,\r\n rows: 20,\r\n })\r\n this.list1 = data.data\r\n // this.list1.forEach((item,index) => item.name = data.data[index].type_name)\r\n \r\n console.log(\r\n JSON.parse(\r\n '{\"video\":\"\",\"imgList\":[\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"],\"cover\":\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"}'\r\n )\r\n )\r\n },\r\n onLoad(){\r\n this.getList()\r\n },\r\n onReachBottom() {\r\n console.log('到底了')\r\n if (this.curPage === this.last_page) {\r\n uni.showToast({\r\n title: '没有更多数据了~',\r\n icon: 'none',\r\n mask: true,\r\n })\r\n } else {\r\n this.curPage = this.curPage + 1\r\n this.getList()\r\n }\r\n },\r\n methods: {\r\n async getList(val) {\r\n \r\n const { data } = await getList({\r\n type_id: this.goodlistId, //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: this.order, //\tstring\t是\t排序,1:评论,0:时间\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 6, //\tinteger\t是\t条数\r\n })\r\n console.log(data)\r\n if (data.data.length == 0) {\r\n this.searchState = 0\r\n } else {\r\n this.searchState = 1\r\n this.last_page = data.last_page\r\n data.data.forEach(it=> it.image = JSON.parse(it.file).cover )\r\n this.list2 = this.list2.concat(data.data)\r\n // this.list2 = data.data\r\n // this.list2.forEach((item, index) => {\r\n // item.image = JSON.parse(data.data[index].file).imgList[0]\r\n // })\r\n \r\n }\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.list2 = []\r\n this.rightCate = !this.rightCate\r\n this.curPage = 1\r\n this.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\r\n this.curPage = 1\r\n this.goodlistId = e.id\r\n this.getList()\r\n },\r\n\r\n // 跳转详情\r\n toDetailHandler(e){\r\n // console.log(JSON.stringify(e.user))\r\n uni.navigateTo({ url: `/pages/index/detail?itemId=${e.id}&userInfo=${JSON.stringify(e.user)}` })\r\n },\r\n toIncrItemHandler(){\r\n uni.navigateTo({ url: '/pages/index/addItem' })\r\n }\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.topSearchBox {\r\n margin-right: 218rpx;\r\n z-index: 999;\r\n}\r\npage {\r\n background: #f7f8fa;\r\n}\r\n.u-search__content {\r\n min-width: 426rpx !important;\r\n}\r\n.title {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin: 16rpx 0;\r\n}\r\n.headerBox {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 24rpx;\r\n image {\r\n width: 48rpx;\r\n height: 48rpx;\r\n border-radius: 50%;\r\n margin-right: 8rpx;\r\n }\r\n}\r\n.item {\r\n padding: 0 16rpx 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.numText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-left: 8rpx;\r\n}\r\n.mainBox {\r\n width: 100%;\r\n height: 100%;\r\n padding: 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.rightBox {\r\n position: relative;\r\n}\r\n.xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: fixed;\r\n top: 17vh;\r\n right: 14rpx;\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n}\r\n.incrBox{\r\n position: fixed;\r\n bottom: 120rpx;\r\n right: 24rpx;\r\n width: 120rpx;\r\nheight: 120rpx;\r\nborder-radius: 50%;\r\nopacity: 1;\r\nbackground: linear-gradient(90deg, rgba(140,72,255,1) 0%, rgba(123,43,255,1) 100%);\r\nbox-shadow: 0 4rpx 24rpx 0 rgba(107,36,224,0.4);\r\nimage{\r\n width: 64rpx;\r\nheight: 64rpx;\r\n}\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./list.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670311234182\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
1 -{"version":3,"sources":["uni-app:///main.js","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?5329","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?3f35","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?8fc2","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?d115","uni-app:///pages/index/pingDetail.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?5fb0","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?a019"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/pingDetail.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/pingDetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./pingDetail.vue?vue&type=template&id=eb88d38e&\"\nvar renderjs\nimport script from \"./pingDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./pingDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./pingDetail.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/pingDetail.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=template&id=eb88d38e&\"","var components\ntry {\n components = {\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uDivider: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-divider/u-divider\" */ \"uview-ui/components/u-divider/u-divider.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l1 = _vm.__map(_vm.pingList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var g0 = item.create_time.slice(5, 16)\n var l0 = item.child.length\n ? _vm.__map(item.child, function(it, idx) {\n var $orig = _vm.__get_orig(it)\n\n var g1 = it.create_time.slice(5, 16)\n return {\n $orig: $orig,\n g1: g1\n }\n })\n : null\n return {\n $orig: $orig,\n g0: g0,\n l0: l0\n }\n })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.huiState = false\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l1: l1\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <u-navbar title=\"评论详情\" :autoBack=\"true\" placeholder></u-navbar>\r\n <u-divider></u-divider>\r\n\r\n <!-- 评论数据 -->\r\n <view class=\"pingBox\" v-for=\"(item, index) in pingList\" :key=\"item.id\">\r\n <!-- 头像和点赞 -->\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"item.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavorite(item.is_favorite, index, item.id)\"\r\n :src=\"item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ item.favorite_num }}</view>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"contentBox\">{{ item.comment }}</view>\r\n <!-- 回复和时间 -->\r\n <view class=\"timeBox flexA\">\r\n <view>{{ item.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" style=\"margin-left: 34rpx\" @click=\"huiHandler(item.id, item.username)\">回复</view>\r\n </view>\r\n <u-divider text=\"全部回复\"></u-divider>\r\n\r\n <!-- 回复评论 -->\r\n <view class=\"hPBox\" v-if=\"item.child.length\">\r\n <view v-for=\"(it,idx) in item.child\" :key=\"it.id\">\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"it.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ it.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavoriteZZ(it.is_favorite, idx, it.id, item)\"\r\n :src=\"it.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ it.favorite_num }}</view>\r\n </view>\r\n </view>\r\n\r\n <view class=\"huifu chao\">\r\n <text style=\"margin-right: 8rpx\">{{ it.comment }}</text>\r\n <text class=\"huifuText\">回复</text>\r\n <text class=\"nameText\">{{ it.tousername }}:</text>\r\n <text>{{ it.comment }}</text>\r\n </view>\r\n <view class=\"timeBox flexA\" style=\"margin-top: 24rpx\">\r\n <view>{{ it.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" style=\"margin-left: 16rpx\" @click=\"huiHandler(it.id, it.username)\">回复</view>\r\n </view>\r\n <u-divider></u-divider>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <view class=\"maskBox flexC\" v-if=\"huiState\" @click=\"huiState = false\">\r\n <view class=\"huiBox flexA\" @click.stop=\"abb\">\r\n <view class=\"zIndex\">回复{{ huiName }}:</view>\r\n <view style=\"margin-left: -84rpx\">\r\n <u-search\r\n searchIconColor=\"#F7F8FA\"\r\n placeholder=\" \"\r\n bgColor=\"#F7F8FA\"\r\n :clearabled=\"false\"\r\n @search=\"huifuHandler\"\r\n :showAction=\"false\"\r\n v-model=\"huiValue\"\r\n ></u-search>\r\n </view>\r\n <!-- <input type=\"text\" v-model=\"huiValue\" @input=\"huifuHandler\" /> -->\r\n </view>\r\n </view>\r\n <!-- 底部白盒子 -->\r\n <view class=\"fffBox\"></view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getCommentList, getCommentFavorite, getComment } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n comId: '',\r\n itemId: '',\r\n curPage: 1,\r\n lastPage: 0,\r\n total: '',\r\n pingList: [],\r\n pid: '',\r\n huiName: '',\r\n huiState: false,\r\n huiValue: ''\r\n }\r\n },\r\n onLoad(e) {\r\n this.comId = e.comId\r\n this.itemId = e.itemId\r\n this.getCommentList()\r\n },\r\n onReachBottom() {\r\n if (this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })\r\n this.curPage += 1\r\n this.getCommentList()\r\n },\r\n methods: {\r\n // 评论点赞操作\r\n async getCommentFavorite(isF, index, id) {\r\n // console.log(isF, index)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[index].favorite_num -= 1\r\n } else {\r\n this.pingList[index].favorite_num += 1\r\n }\r\n this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n async getCommentFavoriteZZ(isF, index, id, item) {\r\n console.log(isF,index,id)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[0].child[index].favorite_num -= 1\r\n } else {\r\n this.pingList[0].child[index].favorite_num += 1\r\n }\r\n this.pingList[0].child[index].is_favorite = this.pingList[0].child[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n async getCommentList() {\r\n const res = await getCommentList({\r\n id: this.itemId, //\tinteger\t是\t论坛id\r\n comment_id: this.comId, //\tinteger\t否\t评论ID\r\n order: 1, //\tinteger\t是\t排序 0:时间,1:热度\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 4, //\tinteger\t是\t条数\r\n })\r\n console.log(res)\r\n this.lastPage = res.data.last_page\r\n this.total = res.data.total\r\n this.pingList = this.pingList.concat(res.data.data)\r\n },\r\n // 防止穿透点击事件\r\n abb() {},\r\n // 回复\r\n huifuHandler(){\r\n this.pingList = []\r\n this.getComment(this.huiValue, this.pid)\r\n this.huiState = false\r\n uni.showToast({ title: '回复成功~' })\r\n },\r\n huiHandler(pid, name) {\r\n this.pid = pid\r\n this.huiName = name\r\n this.huiState = true\r\n },\r\n // 评论\r\n async getComment(value, pid) {\r\n try {\r\n const res = await getComment({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n pid: pid, //\tinteger\t是\t回复id,首次评论传0\r\n comment: value, //\tstring\t是\t评论内容\r\n })\r\n \r\n this.getCommentList()\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.pingBox {\r\n /* padding-bottom: 32rpx; */\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n margin-bottom: 32rpx;\r\n\r\n > .hPBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n /* margin-left: 80rpx; */\r\n }\r\n}\r\n.timeBox {\r\n margin-left: 80rpx;\r\n margin-bottom: 24rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-right: 48rpx;\r\n }\r\n view:nth-child(2) {\r\n width: 114rpx;\r\n height: 48rpx;\r\n border-radius: 56rpx;\r\n border: 1rpx solid #b88dff;\r\n color: rgba(110, 22, 255, 1);\r\n font-size: 24rpx;\r\n }\r\n}\r\n.contentBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-bottom: 16rpx;\r\n margin-left: 80rpx;\r\n}\r\n.pTopBox {\r\n > .avatarBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n image {\r\n width: 64rpx;\r\n height: 64rpx;\r\n border-radius: 50%;\r\n margin-right: 16rpx;\r\n }\r\n }\r\n > .zanBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n image {\r\n width: 40rpx;\r\n margin-right: 8rpx;\r\n height: 40rpx;\r\n }\r\n }\r\n}\r\n.huifu {\r\n margin-left: 80rpx;\r\n > .nameText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n font-weight: 700;\r\n margin-right: 10rpx;\r\n }\r\n > .huifuText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n }\r\n text {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.maskBox {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: transparent;\r\n}\r\n.huiBox {\r\n z-index: 999;\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n width: 686rpx;\r\n height: 72rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n /* background: #fff !important; */\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n /* margin: 0 auto; */\r\n margin-top: 16rpx;\r\n margin-left: 32rpx;\r\n > .zIndex {\r\n z-index: 999;\r\n }\r\n view {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.fffBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 60rpx;\r\n background: #fff;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670310491939\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}  
  1 +{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?3f35","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?8fc2","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?d115","uni-app:///pages/index/pingDetail.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?5fb0","webpack:///D:/vue/kaoshi3-fangweishangcheng/pages/index/pingDetail.vue?a019"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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","file":"pages/index/pingDetail.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/pingDetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./pingDetail.vue?vue&type=template&id=eb88d38e&\"\nvar renderjs\nimport script from \"./pingDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./pingDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./pingDetail.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/pingDetail.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=template&id=eb88d38e&\"","var components\ntry {\n components = {\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uDivider: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-divider/u-divider\" */ \"uview-ui/components/u-divider/u-divider.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l1 = _vm.__map(_vm.pingList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var g0 = item.create_time.slice(5, 16)\n var l0 = item.child.length\n ? _vm.__map(item.child, function(it, idx) {\n var $orig = _vm.__get_orig(it)\n\n var g1 = it.create_time.slice(5, 16)\n return {\n $orig: $orig,\n g1: g1\n }\n })\n : null\n return {\n $orig: $orig,\n g0: g0,\n l0: l0\n }\n })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.huiState = false\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l1: l1\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <u-navbar title=\"评论详情\" :autoBack=\"true\" placeholder></u-navbar>\r\n <u-divider></u-divider>\r\n\r\n <!-- 评论数据 -->\r\n <view class=\"pingBox\" v-for=\"(item, index) in pingList\" :key=\"item.id\">\r\n <!-- 头像和点赞 -->\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"item.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavorite(item.is_favorite, index, item.id)\"\r\n :src=\"item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ item.favorite_num }}</view>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"contentBox\">{{ item.comment }}</view>\r\n <!-- 回复和时间 -->\r\n <view class=\"timeBox flexA\">\r\n <view>{{ item.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" style=\"margin-left: 34rpx\" @click=\"huiHandler(item.id, item.username)\">回复</view>\r\n </view>\r\n <u-divider text=\"全部回复\"></u-divider>\r\n\r\n <!-- 回复评论 -->\r\n <view class=\"hPBox\" v-if=\"item.child.length\">\r\n <view v-for=\"(it,idx) in item.child\" :key=\"it.id\">\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"it.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ it.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavoriteZZ(it.is_favorite, idx, it.id, item)\"\r\n :src=\"it.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ it.favorite_num }}</view>\r\n </view>\r\n </view>\r\n\r\n <view class=\"huifu chao\">\r\n <text style=\"margin-right: 8rpx\">{{ it.comment }}</text>\r\n <text class=\"huifuText\">回复</text>\r\n <text class=\"nameText\">{{ it.tousername }}:</text>\r\n <text>{{ it.comment }}</text>\r\n </view>\r\n <view class=\"timeBox flexA\" style=\"margin-top: 24rpx\">\r\n <view>{{ it.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\" style=\"margin-left: 16rpx\" @click=\"huiHandler(it.id, it.username)\">回复</view>\r\n </view>\r\n <u-divider></u-divider>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <view class=\"maskBox flexC\" v-if=\"huiState\" @click=\"huiState = false\">\r\n <view class=\"huiBox flexA\" @click.stop=\"abb\">\r\n <view class=\"zIndex\">回复{{ huiName }}:</view>\r\n <view style=\"margin-left: -84rpx\">\r\n <u-search\r\n searchIconColor=\"#F7F8FA\"\r\n placeholder=\" \"\r\n bgColor=\"#F7F8FA\"\r\n :clearabled=\"false\"\r\n @search=\"huifuHandler\"\r\n :showAction=\"false\"\r\n v-model=\"huiValue\"\r\n ></u-search>\r\n </view>\r\n <!-- <input type=\"text\" v-model=\"huiValue\" @input=\"huifuHandler\" /> -->\r\n </view>\r\n </view>\r\n <!-- 底部白盒子 -->\r\n <view class=\"fffBox\"></view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getCommentList, getCommentFavorite, getComment } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n comId: '',\r\n itemId: '',\r\n curPage: 1,\r\n lastPage: 0,\r\n total: '',\r\n pingList: [],\r\n pid: '',\r\n huiName: '',\r\n huiState: false,\r\n huiValue: ''\r\n }\r\n },\r\n onLoad(e) {\r\n this.comId = e.comId\r\n this.itemId = e.itemId\r\n this.getCommentList()\r\n },\r\n onReachBottom() {\r\n if (this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })\r\n this.curPage += 1\r\n this.getCommentList()\r\n },\r\n methods: {\r\n // 评论点赞操作\r\n async getCommentFavorite(isF, index, id) {\r\n // console.log(isF, index)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[index].favorite_num -= 1\r\n } else {\r\n this.pingList[index].favorite_num += 1\r\n }\r\n this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n async getCommentFavoriteZZ(isF, index, id, item) {\r\n console.log(isF,index,id)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[0].child[index].favorite_num -= 1\r\n } else {\r\n this.pingList[0].child[index].favorite_num += 1\r\n }\r\n this.pingList[0].child[index].is_favorite = this.pingList[0].child[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n async getCommentList() {\r\n const res = await getCommentList({\r\n id: this.itemId, //\tinteger\t是\t论坛id\r\n comment_id: this.comId, //\tinteger\t否\t评论ID\r\n order: 1, //\tinteger\t是\t排序 0:时间,1:热度\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 4, //\tinteger\t是\t条数\r\n })\r\n console.log(res)\r\n this.lastPage = res.data.last_page\r\n this.total = res.data.total\r\n this.pingList = []\r\n this.pingList = this.pingList.concat(res.data.data)\r\n },\r\n // 防止穿透点击事件\r\n abb() {},\r\n // 回复\r\n huifuHandler(){\r\n this.pingList = []\r\n this.getComment(this.huiValue, this.pid)\r\n this.huiState = false\r\n this.curPage = 1\r\n this.getCommentList()\r\n uni.showToast({ title: '回复成功~' })\r\n },\r\n huiHandler(pid, name) {\r\n this.pid = pid\r\n this.huiName = name\r\n this.huiState = true\r\n },\r\n // 评论\r\n async getComment(value, pid) {\r\n try {\r\n const res = await getComment({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n pid: pid, //\tinteger\t是\t回复id,首次评论传0\r\n comment: value, //\tstring\t是\t评论内容\r\n })\r\n \r\n this.getCommentList()\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.pingBox {\r\n /* padding-bottom: 32rpx; */\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n margin-bottom: 32rpx;\r\n\r\n > .hPBox {\r\n padding: 24rpx;\r\n box-sizing: border-box;\r\n background: #fff;\r\n /* margin-left: 80rpx; */\r\n }\r\n}\r\n.timeBox {\r\n margin-left: 80rpx;\r\n margin-bottom: 24rpx;\r\n view:nth-child(1) {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-right: 48rpx;\r\n }\r\n view:nth-child(2) {\r\n width: 114rpx;\r\n height: 48rpx;\r\n border-radius: 56rpx;\r\n border: 1rpx solid #b88dff;\r\n color: rgba(110, 22, 255, 1);\r\n font-size: 24rpx;\r\n }\r\n}\r\n.contentBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin-bottom: 16rpx;\r\n margin-left: 80rpx;\r\n}\r\n.pTopBox {\r\n > .avatarBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 32rpx;\r\n font-weight: 700;\r\n image {\r\n width: 64rpx;\r\n height: 64rpx;\r\n border-radius: 50%;\r\n margin-right: 16rpx;\r\n }\r\n }\r\n > .zanBox {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n image {\r\n width: 40rpx;\r\n margin-right: 8rpx;\r\n height: 40rpx;\r\n }\r\n }\r\n}\r\n.huifu {\r\n margin-left: 80rpx;\r\n > .nameText {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n font-weight: 700;\r\n margin-right: 10rpx;\r\n }\r\n > .huifuText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n margin-right: 10rpx;\r\n }\r\n text {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.maskBox {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background: transparent;\r\n}\r\n.huiBox {\r\n z-index: 999;\r\n position: fixed;\r\n bottom: 60rpx;\r\n left: 0;\r\n width: 686rpx;\r\n height: 72rpx;\r\n padding: 16rpx 32rpx;\r\n box-sizing: border-box;\r\n /* background: #fff !important; */\r\n border-radius: 38rpx;\r\n background: rgba(247, 248, 250, 1);\r\n /* margin: 0 auto; */\r\n margin-top: 16rpx;\r\n margin-left: 32rpx;\r\n > .zIndex {\r\n z-index: 999;\r\n }\r\n view {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 28rpx;\r\n }\r\n}\r\n.fffBox {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 60rpx;\r\n background: #fff;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pingDetail.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1670312079782\n var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
@@ -409,7 +409,9 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -409,7 +409,9 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
409 // 当前页 409 // 当前页
410 curPage: 1, 410 curPage: 1,
411 // 回复人员id 411 // 回复人员id
412 - pid: 0 }; 412 + pid: 0,
  413 + // 回复评论索引
  414 + huiIdx: '' };
413 415
414 }, 416 },
415 onLoad: function onLoad(options) { 417 onLoad: function onLoad(options) {
@@ -481,12 +483,13 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -481,12 +483,13 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
481 id: _this2.itemId, // integer 是 论坛id 483 id: _this2.itemId, // integer 是 论坛id
482 order: _this2.order, // integer 是 排序 0:时间,1:热度 484 order: _this2.order, // integer 是 排序 0:时间,1:热度
483 page: _this2.curPage || 1, // integer 是 页码 485 page: _this2.curPage || 1, // integer 是 页码
484 - rows: 2 // integer 是 条数 486 + rows: 6 // integer 是 条数
485 }));case 2:res = _context2.sent; 487 }));case 2:res = _context2.sent;
486 488
487 console.log(res, '1122'); 489 console.log(res, '1122');
488 _this2.lastPage = res.data.last_page; 490 _this2.lastPage = res.data.last_page;
489 _this2.total = res.data.total; 491 _this2.total = res.data.total;
  492 + // this.pingList = []
490 _this2.pingList = _this2.pingList.concat(res.data.data);case 7:case "end":return _context2.stop();}}}, _callee2);}))(); 493 _this2.pingList = _this2.pingList.concat(res.data.data);case 7:case "end":return _context2.stop();}}}, _callee2);}))();
491 }, 494 },
492 495
@@ -552,9 +555,14 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -552,9 +555,14 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
552 555
553 // 回复 556 // 回复
554 huifuHandler: function huifuHandler() { 557 huifuHandler: function huifuHandler() {
555 - this.getComment(this.huiValue, this.pid);  
556 this.huiState = false; 558 this.huiState = false;
557 uni.showToast({ title: '回复成功~' }); 559 uni.showToast({ title: '回复成功~' });
  560 + this.huiValue = '';
  561 + this.curPage = 1;
  562 + // this.pingList = []
  563 + // this.getCommentList()
  564 + this.pingList[this.huiIdx].child_num += 1;
  565 + this.getComment(this.huiValue, this.pid);
558 }, 566 },
559 567
560 pingZHandler: function pingZHandler() { 568 pingZHandler: function pingZHandler() {
@@ -562,11 +570,16 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -562,11 +570,16 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
562 this.getComment(this.value2, 0); 570 this.getComment(this.value2, 0);
563 this.inputState = false; 571 this.inputState = false;
564 uni.showToast({ title: '评论成功~' }); 572 uni.showToast({ title: '评论成功~' });
  573 + this.curPage = 1;
  574 + // this.pingList = []
  575 + // this.getCommentList()
565 }, 576 },
566 // 防止穿透点击事件 577 // 防止穿透点击事件
567 abb: function abb() {}, 578 abb: function abb() {},
568 579
569 - huiHandler: function huiHandler(pid, name) { 580 + huiHandler: function huiHandler(pid, name, index) {
  581 + this.huiIdx = index;
  582 + // console.log(index)
570 this.pid = pid; 583 this.pid = pid;
571 this.huiName = name; 584 this.huiName = name;
572 this.huiState = true; 585 this.huiState = true;
1 -<view><view class="topInfoBox flexA"><view class="flexA"><image src="{{itemlist.user.avatar}}" mode="scaleToFill"></image><view class="timeText"><view>{{itemlist.user.user_name}}</view><view>{{itemlist.update_time}}</view></view></view></view><swiper class="swiper" style="height:420rpx;" autoplay="{{true}}" interval="{{3000}}" data-event-opts="{{[['change',[['changeSwiperHandler',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><swiper-item data-event-opts="{{[['tap',[['prevViewImageHandler',['$0'],[[['bannerList','',__i0__]]]]]]]}}" class="flexC" bindtap="__e"><block wx:if="{{item.type=='video'}}"><video style="width:100%;height:100%;" src="{{item.url}}"></video></block><block wx:if="{{item.type=='img'}}"><image src="{{item.url}}" mode="heightFix"></image></block></swiper-item></block></swiper><view class="indicator" slot="indicator"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['indicator__dot',index===current&&'indicator__dot--active']}}"></view></block></view><view class="mainBox"><view class="titleText">{{itemlist.title}}</view><view class="centerText">{{itemlist.content}}</view></view><view class="mainBox2"><u-divider vue-id="49115082-1" bind:__l="__l"></u-divider><view class="flexJ topBox" style="margin-top:32rpx;"><view class="pingNumText">{{"共"+(total||'0')+"条评论"}}</view><image style="width:32rpx;height:32rpx;" src="/static/toggle.png" mode="scaleToFill" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block></view><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="pingBox"><view class="pTopBox flexJ"><view class="avatarBox flexA"><image src="{{item.$orig.user_avatar}}" mode="scaleToFill"></image><view>{{item.$orig.username}}</view></view><view class="zanBox flexA"><image src="{{item.$orig.is_favorite==0?'/static/zan1.png':'/static/zan11.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['getCommentFavorite',['$0',index,'$1'],[[['pingList','id',item.$orig.id,'is_favorite']],[['pingList','id',item.$orig.id,'id']]]]]]]}}" bindtap="__e"></image><view>{{item.$orig.favorite_num}}</view></view></view><view class="contentBox">{{item.$orig.comment}}</view><view class="timeBox flexA"><view>{{item.g0}}</view><view data-event-opts="{{[['tap',[['huiHandler',['$0','$1'],[[['pingList','id',item.$orig.id,'id']],[['pingList','id',item.$orig.id,'username']]]]]]]}}" class="flexC" bindtap="__e">回复</view></view><block wx:if="{{item.$orig.child.length}}"><view class="hPBox"><block wx:for="{{item.l0}}" wx:for-item="it" wx:for-index="__i1__" wx:key="id"><view><view class="huifu chao"><text class="nameText">{{it.username}}</text><text class="huifuText">回复</text><text class="nameText">{{it.tousername+":"}}</text><text>{{it.comment}}</text></view></view></block><block wx:if="{{item.$orig.child_num>=2}}"><view data-event-opts="{{[['tap',[['toPingDetail',['$0'],[[['pingList','id',item.$orig.id,'id']]]]]]]}}" class="flexA huifuText1Box" bindtap="__e"><view class="huifuText1">{{"查看全部"+item.$orig.child_num+"条回复"}}</view><image style="width:16rpx;height:24rpx;" src="/static/blueRIght.png" mode="scaleToFill"></image></view></block></view></block></view></block></view><block wx:if="{{!huiState}}"><view class="bottomBtnBox flexA"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="favoriteBox flexA" bindtap="__e"><image class="xImg" src="/static/xie.png" mode="scaleToFill"></image><view>我来说两句...</view></view><view class="likeBox flexA" style="margin-right:40rpx;"><image src="{{userFavorite_zan=='1'?'/static/zan11.png':'/static/zan1.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[1]]]]]}}" bindtap="__e"></image><view>{{zanNum}}</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="likeBox flexA" style="margin-right:40rpx;" bindtap="__e"><image src="/static/icon1.png" mode="scaleToFill"></image><view>{{total}}</view></view><view class="likeBox flexA"><block wx:if="{{userFavorite_cang=='0'}}"><image src="/static/icon2.png" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[3]]]]]}}" bindtap="__e"></image></block><block wx:else><u-icon vue-id="49115082-2" name="star-fill" color="#6e15ff" size="22" data-event-opts="{{[['^click',[['favoriteHandler',[3]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block><view>{{cangNum}}</view></view></view></block><block wx:if="{{huiState}}"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="maskBox flexC" bindtap="__e"><view class="huiBox1"><view data-event-opts="{{[['tap',[['abb',['$event']]]]]}}" class="huiBox flexA" catchtap="__e"><view class="zIndex">{{"回复"+huiName+":"}}</view><view style="margin-left:-84rpx;"><u-search vue-id="49115082-3" searchIconColor="#F7F8FA" placeholder=" " bgColor="#F7F8FA" clearabled="{{false}}" showAction="{{false}}" value="{{huiValue}}" data-event-opts="{{[['^search',[['huifuHandler']]],['^input',[['__set_model',['','huiValue','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></view></view></view></block><view class="fffBox"></view><u-popup vue-id="49115082-4" show="{{inputState}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="inputBox"><view class="flexJ selectBox"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['pingZHandler',['$event']]]]]}}" bindtap="__e">发送</view></view><u--textarea bind:input="__e" vue-id="{{('49115082-5')+','+('49115082-4')}}" maxlength="300" showConfirmBar="{{false}}" focus="{{true}}" adjustPosition="{{true}}" placeholder="请输入内容" count="{{true}}" value="{{value2}}" data-event-opts="{{[['^input',[['__set_model',['','value2','$event',[]]]]]]}}" bind:__l="__l"></u--textarea></view></u-popup><view style="height:120rpx;"></view></view>  
  1 +<view><view class="topInfoBox flexA"><view class="flexA"><image src="{{itemlist.user.avatar}}" mode="scaleToFill"></image><view class="timeText"><view>{{itemlist.user.user_name}}</view><view>{{itemlist.update_time}}</view></view></view></view><swiper class="swiper" style="height:420rpx;" autoplay="{{true}}" interval="{{3000}}" data-event-opts="{{[['change',[['changeSwiperHandler',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><swiper-item data-event-opts="{{[['tap',[['prevViewImageHandler',['$0'],[[['bannerList','',__i0__]]]]]]]}}" class="flexC" bindtap="__e"><block wx:if="{{item.type=='video'}}"><video style="width:100%;height:100%;" src="{{item.url}}"></video></block><block wx:if="{{item.type=='img'}}"><image src="{{item.url}}" mode="heightFix"></image></block></swiper-item></block></swiper><view class="indicator" slot="indicator"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['indicator__dot',index===current&&'indicator__dot--active']}}"></view></block></view><view class="mainBox"><view class="titleText">{{itemlist.title}}</view><view class="centerText">{{itemlist.content}}</view></view><view class="mainBox2"><u-divider vue-id="49115082-1" bind:__l="__l"></u-divider><view class="flexJ topBox" style="margin-top:32rpx;"><view class="pingNumText">{{"共"+(total||'0')+"条评论"}}</view><image style="width:32rpx;height:32rpx;" src="/static/toggle.png" mode="scaleToFill" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block></view><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="pingBox"><view class="pTopBox flexJ"><view class="avatarBox flexA"><image src="{{item.$orig.user_avatar}}" mode="scaleToFill"></image><view>{{item.$orig.username}}</view></view><view class="zanBox flexA"><image src="{{item.$orig.is_favorite==0?'/static/zan1.png':'/static/zan11.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['getCommentFavorite',['$0',index,'$1'],[[['pingList','id',item.$orig.id,'is_favorite']],[['pingList','id',item.$orig.id,'id']]]]]]]}}" bindtap="__e"></image><view>{{item.$orig.favorite_num}}</view></view></view><view class="contentBox">{{item.$orig.comment}}</view><view class="timeBox flexA"><view>{{item.g0}}</view><view data-event-opts="{{[['tap',[['huiHandler',['$0','$1',index],[[['pingList','id',item.$orig.id,'id']],[['pingList','id',item.$orig.id,'username']]]]]]]}}" class="flexC" bindtap="__e">回复</view></view><block wx:if="{{item.$orig.child.length}}"><view class="hPBox"><block wx:for="{{item.l0}}" wx:for-item="it" wx:for-index="__i1__" wx:key="id"><view><view class="huifu chao"><text class="nameText">{{it.username}}</text><text class="huifuText">回复</text><text class="nameText">{{it.tousername+":"}}</text><text>{{it.comment}}</text></view></view></block><block wx:if="{{item.$orig.child_num>=2}}"><view data-event-opts="{{[['tap',[['toPingDetail',['$0'],[[['pingList','id',item.$orig.id,'id']]]]]]]}}" class="flexA huifuText1Box" bindtap="__e"><view class="huifuText1">{{"查看全部"+item.$orig.child_num+"条回复"}}</view><image style="width:16rpx;height:24rpx;" src="/static/blueRIght.png" mode="scaleToFill"></image></view></block></view></block></view></block></view><block wx:if="{{!huiState}}"><view class="bottomBtnBox flexA"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="favoriteBox flexA" bindtap="__e"><image class="xImg" src="/static/xie.png" mode="scaleToFill"></image><view>我来说两句...</view></view><view class="likeBox flexA" style="margin-right:40rpx;"><image src="{{userFavorite_zan=='1'?'/static/zan11.png':'/static/zan1.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[1]]]]]}}" bindtap="__e"></image><view>{{zanNum}}</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="likeBox flexA" style="margin-right:40rpx;" bindtap="__e"><image src="/static/icon1.png" mode="scaleToFill"></image><view>{{total}}</view></view><view class="likeBox flexA"><block wx:if="{{userFavorite_cang=='0'}}"><image src="/static/icon2.png" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[3]]]]]}}" bindtap="__e"></image></block><block wx:else><u-icon vue-id="49115082-2" name="star-fill" color="#6e15ff" size="22" data-event-opts="{{[['^click',[['favoriteHandler',[3]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block><view>{{cangNum}}</view></view></view></block><block wx:if="{{huiState}}"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="maskBox flexC" bindtap="__e"><view class="huiBox1"><view data-event-opts="{{[['tap',[['abb',['$event']]]]]}}" class="huiBox flexA" catchtap="__e"><view class="zIndex">{{"回复"+huiName+":"}}</view><view style="margin-left:-84rpx;"><u-search vue-id="49115082-3" searchIconColor="#F7F8FA" placeholder=" " bgColor="#F7F8FA" clearabled="{{false}}" showAction="{{false}}" value="{{huiValue}}" data-event-opts="{{[['^search',[['huifuHandler']]],['^input',[['__set_model',['','huiValue','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></view></view></view></block><view class="fffBox"></view><u-popup vue-id="49115082-4" show="{{inputState}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="inputBox"><view class="flexJ selectBox"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['pingZHandler',['$event']]]]]}}" bindtap="__e">发送</view></view><u--textarea bind:input="__e" vue-id="{{('49115082-5')+','+('49115082-4')}}" maxlength="300" showConfirmBar="{{false}}" focus="{{true}}" adjustPosition="{{true}}" placeholder="请输入内容" count="{{true}}" value="{{value2}}" data-event-opts="{{[['^input',[['__set_model',['','value2','$event',[]]]]]]}}" bind:__l="__l"></u--textarea></view></u-popup><view style="height:120rpx;"></view></view>
1 -<view><u-sticky vue-id="8e0fffdc-1" bgColor="#fff" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('8e0fffdc-2')+','+('8e0fffdc-1')}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search bind:input="__e" vue-id="{{('8e0fffdc-3')+','+('8e0fffdc-2')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:__l="__l"></u-search></view></u-navbar><u-tabs vue-id="{{('8e0fffdc-4')+','+('8e0fffdc-1')}}" list="{{list1}}" keyName="type_name" lineWidth="{{40}}" lineColor="#6E16FF" inactiveStyle="{{inactiveStyle}}" activeStyle="{{activeStyle}}" data-event-opts="{{[['^click',[['toggleTabsHandler']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['right']}}"><view style="padding-left:4px;" slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="rightBox"><image style="width:32rpx;height:32rpx;margin-right:18rpx;" src="/static/toggle.png" mode="scaleToFill"></image></view></view></u-tabs></u-sticky><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block><block wx:if="{{list2.length}}"><view class="mainBox"><custom-waterfalls-flow vue-id="8e0fffdc-5" value="{{list2}}" seat="{{2}}" data-event-opts="{{[['^imageClick',[['toDetailHandler']]]]}}" bind:imageClick="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list2}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="item" slot="slot{{index}}"><view class="title flexC">{{item.title}}</view><view class="flexJ"><view class="flexA headerBox"><image src="{{item.user.avatar}}" mode="scaleToFill"></image><view>{{item.user.user_name}}</view></view><view class="flexA"><block wx:if="{{item.is_favorite==1}}"><u-icon vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" color="#fc453c" name="heart-fill" bind:__l="__l"></u-icon></block><block wx:else><u-icon vue-id="{{('8e0fffdc-7-'+index)+','+('8e0fffdc-5')}}" name="heart" bind:__l="__l"></u-icon></block><view class="numText">{{item.id}}</view></view></view></view></block></custom-waterfalls-flow></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8e0fffdc-8" bind:__l="__l"></u-empty></view></block><view data-event-opts="{{[['tap',[['toIncrItemHandler',['$event']]]]]}}" class="incrBox flexC" bindtap="__e"><image src="/static/add.png" mode="scaleToFill"></image></view></view>  
  1 +<view><u-sticky vue-id="8e0fffdc-1" bgColor="#fff" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('8e0fffdc-2')+','+('8e0fffdc-1')}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search bind:input="__e" vue-id="{{('8e0fffdc-3')+','+('8e0fffdc-2')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:__l="__l"></u-search></view></u-navbar><u-tabs vue-id="{{('8e0fffdc-4')+','+('8e0fffdc-1')}}" list="{{list1}}" keyName="type_name" lineWidth="{{40}}" lineColor="#6E16FF" inactiveStyle="{{inactiveStyle}}" activeStyle="{{activeStyle}}" data-event-opts="{{[['^click',[['toggleTabsHandler']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['right']}}"><view style="padding-left:4px;" slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="rightBox"><image style="width:32rpx;height:32rpx;margin-right:18rpx;" src="/static/toggle.png" mode="scaleToFill"></image></view></view></u-tabs></u-sticky><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block><block wx:if="{{list2.length}}"><view class="mainBox"><custom-waterfalls-flow vue-id="8e0fffdc-5" value="{{list2}}" seat="{{2}}" data-event-opts="{{[['^imageClick',[['toDetailHandler']]]]}}" bind:imageClick="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list2}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="item" slot="slot{{index}}"><view class="title flexC">{{item.title}}</view><view class="flexJ"><view class="flexA headerBox"><image src="{{item.user.avatar}}" mode="scaleToFill"></image><view>{{item.user.user_name}}</view></view><view class="flexA"><block wx:if="{{item.is_favorite==1}}"><u-icon vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" color="#fc453c" name="heart-fill" bind:__l="__l"></u-icon></block><block wx:else><u-icon vue-id="{{('8e0fffdc-7-'+index)+','+('8e0fffdc-5')}}" name="heart" bind:__l="__l"></u-icon></block><view class="numText">{{item.favorite.like_num}}</view></view></view></view></block></custom-waterfalls-flow></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8e0fffdc-8" bind:__l="__l"></u-empty></view></block><view data-event-opts="{{[['tap',[['toIncrItemHandler',['$event']]]]]}}" class="incrBox flexC" bindtap="__e"><image src="/static/add.png" mode="scaleToFill"></image></view></view>
@@ -357,7 +357,8 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -357,7 +357,8 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
357 console.log(res); 357 console.log(res);
358 _this3.lastPage = res.data.last_page; 358 _this3.lastPage = res.data.last_page;
359 _this3.total = res.data.total; 359 _this3.total = res.data.total;
360 - _this3.pingList = _this3.pingList.concat(res.data.data);case 7:case "end":return _context3.stop();}}}, _callee3);}))(); 360 + _this3.pingList = [];
  361 + _this3.pingList = _this3.pingList.concat(res.data.data);case 8:case "end":return _context3.stop();}}}, _callee3);}))();
361 }, 362 },
362 // 防止穿透点击事件 363 // 防止穿透点击事件
363 abb: function abb() {}, 364 abb: function abb() {},
@@ -366,6 +367,8 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault @@ -366,6 +367,8 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
366 this.pingList = []; 367 this.pingList = [];
367 this.getComment(this.huiValue, this.pid); 368 this.getComment(this.huiValue, this.pid);
368 this.huiState = false; 369 this.huiState = false;
  370 + this.curPage = 1;
  371 + this.getCommentList();
369 uni.showToast({ title: '回复成功~' }); 372 uni.showToast({ title: '回复成功~' });
370 }, 373 },
371 huiHandler: function huiHandler(pid, name) { 374 huiHandler: function huiHandler(pid, name) {