切换导航条
此项目
正在载入...
登录
韩昌
/
kaoshi3-fangweishangcheng
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
韩昌
2022-12-05 14:58:33 +0800
提交
1e0aba1526a8a927c7121f1d24212898d2b4ad2e
1 个父辈
3dd5da95
12.5完成未测试1
隐藏空白字符变更
内嵌
并排对比
正在显示
13 个修改的文件
包含
426 行增加
和
32 行删除
api/index.js
pages/index/detail.vue
pages/index/list.vue
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/detail.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
unpackage/dist/dev/mp-weixin/common/vendor.js
unpackage/dist/dev/mp-weixin/pages/index/detail.js
unpackage/dist/dev/mp-weixin/pages/index/detail.wxml
unpackage/dist/dev/mp-weixin/pages/index/detail.wxss
unpackage/dist/dev/mp-weixin/pages/index/list.js
unpackage/dist/dev/mp-weixin/pages/index/list.wxml
unpackage/dist/dev/mp-weixin/pages/index/list.wxss
api/index.js
查看文件 @
1e0aba1
...
...
@@ -17,3 +17,6 @@ export const getCommentList = (data) => request({ url: '/api/forum/comment/list'
// 点赞评论收藏 /api/forum/forum/favorite
export
const
getFavorite
=
(
data
)
=>
request
({
url
:
'/api/forum/forum/favorite'
,
method
:
'post'
,
data
})
// 评论点赞 /api/forum/Comment/comment_favorite
export
const
getCommentFavorite
=
(
data
)
=>
request
({
url
:
'/api/forum/Comment/comment_favorite'
,
method
:
'post'
,
data
})
...
...
pages/index/detail.vue
查看文件 @
1e0aba1
...
...
@@ -36,13 +36,56 @@
<view class="mainBox2">
<u-divider></u-divider>
<view class="flexJ topBox" style="margin-top: 32rpx">
<view class="pingNumText">共{{ itemlist.favorite.comment_num }}条评论</view>
<view class="pingNumText">共{{ itemlist.favorite.comment_num
|| '0'
}}条评论</view>
<image style="width: 32rpx; height: 32rpx" src="/static/toggle.png" mode="scaleToFill" @click="rightCate = true" />
<view class="xia" v-if="rightCate">
<view class="flexC" @click="sortHandler(0)">时间排序</view>
<view class="flexC" @click="sortHandler(1)">热度排序</view>
</view>
</view>
<!-- 评论数据 -->
<view class="pingBox" v-for="(item, index) in pingList" :key="item.id">
<!-- 头像和点赞 -->
<view class="pTopBox flexJ">
<view class="avatarBox flexA">
<image :src="item.user_avatar" mode="scaleToFill" />
<view>{{ item.username }}</view>
</view>
<view class="zanBox flexA">
<image
@click="getCommentFavorite(item.is_favorite, index, item.id)"
:src="item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'"
mode="scaleToFill"
/>
<view>{{ item.favorite_num }}</view>
</view>
</view>
<!-- 内容 -->
<view class="contentBox">{{ item.comment }}</view>
<!-- 回复和时间 -->
<view class="timeBox flexA">
<view>{{ item.create_time.slice(5, 16) }}</view>
<view class="flexC">回复</view>
</view>
<!-- 回复评论 -->
<view class="hPBox" v-if="item.child.length">
<view v-for="it in item.child" :key="item.id">
<view class="huifu">
<text class="nameText">{{ it.username }}</text>
<text class="huifuText">回复</text>
<text class="nameText">{{ it.tousername }}:</text>
<text>{{ it.comment }}</text>
<!-- 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 -->
</view>
</view>
<view v-if="item.child_num >= 2" class="flexA huifuText1Box">
<view class="huifuText1">查看全部{{ item.child_num }}条回复</view>
<image style="width: 16rpx; height: 24rpx" src="/static/blueRIght.png" mode="scaleToFill" />
</view>
</view>
</view>
</view>
<!-- 底部点赞评论收藏 -->
...
...
@@ -54,8 +97,12 @@
<!-- 点赞 -->
<view class="likeBox flexA" style="margin-right: 40rpx">
<image :src="userFavorite_zan == '1' ? '/static/zan11.png' : '/static/zan1.png' " mode="scaleToFill" @click="favoriteHandler(1)" />
<view>{{ itemlist.favorite.like_num }}</view>
<image
:src="userFavorite_zan == '1' ? '/static/zan11.png' : '/static/zan1.png'"
mode="scaleToFill"
@click="favoriteHandler(1)"
/>
<view>{{ zanNum }}</view>
</view>
<!-- 评论 -->
...
...
@@ -66,9 +113,9 @@
<!-- 收藏 -->
<view class="likeBox flexA">
<image v-if="userFavorite_cang == '0'
" src="/static/icon2.png" mode="scaleToFill" @click="favoriteHandler(3)" />
<image v-if="userFavorite_cang == '0'" src="/static/icon2.png" mode="scaleToFill" @click="favoriteHandler(3)" />
<u-icon v-else name="star-fill" color="#6e15ff" size="22" @click="favoriteHandler(3)"></u-icon>
<view>{{
itemlist.favorite.collection_n
um }}</view>
<view>{{
cangN
um }}</view>
</view>
</view>
...
...
@@ -90,10 +137,11 @@
count
></u--textarea>
</view>
<view style="height: 140rpx"></view>
</view>
</template>
<script>
import { getDetail, getCommentList, getFavorite } from '@/api'
import { getDetail, getCommentList, getFavorite
, getCommentFavorite
} from '@/api'
export default {
data() {
return {
...
...
@@ -110,8 +158,14 @@ export default {
order: 1,
// 用户是否点赞
userFavorite_zan: 0,
// 点赞数量
zanNum: 0,
// 用户是否收藏
userFavorite_cang: 0
userFavorite_cang: 0,
// 收藏数量
cangNum: 0,
// 评论数据
pingList: [],
}
},
onLoad(options) {
...
...
@@ -139,8 +193,8 @@ export default {
})
this.userFavorite_zan = res.data.userFavorite_zan
this.userFavorite_cang = res.data.userFavorite_cang
// this.list4.push({url: this.bannerList.video, poster: this.bannerList.cover})
// this.bannerList.imgList.forEach(item => this.list4.push({ url: item }))
this.zanNum = res.data.favorite.like_num
this.cangNum = res.data.favorite.collection_num
},
// 筛选排序
...
...
@@ -154,27 +208,74 @@ export default {
async getCommentList() {
const res = await getCommentList({
id: this.itemId, // integer 是 论坛id
comment_id: '', // integer 否 评论ID
order: this.order, // integer 是 排序 0:时间,1:热度
page: 1, // integer 是 页码
rows: 10, // integer 是 条数
})
console.log(res)
this.pingList = res.data.data
},
// 详情点赞收藏
async getFavorite(type) {
async getFavorite(type
, set
) {
const res = await getFavorite({
id: this.itemId, // integer 是 论坛ID
type: type, // integer 是 1:点赞,3:收藏
set:
''
, // integer 是 0:取消,1:确认
set:
set
, // integer 是 0:取消,1:确认
})
},
// 点赞收藏操作
favoriteHandler(type){
}
favoriteHandler(type) {
// 点赞
if (type == 1) {
// 确认点赞
if (this.userFavorite_zan == 1) {
this.userFavorite_zan = 0
this.getFavorite(1, 0)
this.zanNum = this.zanNum - 1
} else {
// 取消点赞
this.userFavorite_zan = 1
this.getFavorite(1, 1)
this.zanNum = this.zanNum + 1
}
}
// 收藏
if (type == 3) {
if (this.userFavorite_cang == 1) {
this.userFavorite_cang = 0
this.getFavorite(3, 0)
this.cangNum = this.cangNum - 1
} else {
this.userFavorite_cang = 1
this.getFavorite(3, 1)
this.cangNum = this.cangNum + 1
}
}
this.getDetail()
},
// 评论点赞操作
async getCommentFavorite(isF, index, id) {
console.log(isF, index)
try {
const res = await getCommentFavorite({
id: id, // integer 是 评论主键ID
set: isF == 1 ? 0 : 1, // integer 是 0:取消,1:确认
})
if (isF == 1) {
this.pingList[index].favorite_num -= 1
} else {
this.pingList[index].favorite_num += 1
}
this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1
console.log(res)
} catch (error) {
console.log(error)
}
},
},
}
</script>
...
...
@@ -268,6 +369,7 @@ export default {
}
.topBox {
position: relative;
margin-bottom: 40rpx;
.xia {
width: 256rpx;
height: 188rpx;
...
...
@@ -294,6 +396,7 @@ export default {
}
}
.bottomBtnBox {
background: #fff;
image {
width: 40rpx;
height: 40rpx;
...
...
@@ -336,4 +439,86 @@ export default {
width: 32rpx;
height: 32rpx;
}
.huifuText1Box {
margin-top: 16rpx;
}
.huifuText1 {
color: rgba(33, 83, 212, 1);
font-size: 28rpx;
margin-right: 10rpx;
}
.pingBox {
padding-bottom: 32rpx;
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
margin-bottom: 32rpx;
> .pTopBox {
> .avatarBox {
color: rgba(0, 0, 0, 0.9);
font-size: 32rpx;
font-weight: 700;
image {
width: 64rpx;
height: 64rpx;
border-radius: 50%;
margin-right: 16rpx;
}
}
> .zanBox {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
image {
width: 40rpx;
margin-right: 8rpx;
height: 40rpx;
}
}
}
> .contentBox {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
margin-bottom: 16rpx;
margin-left: 80rpx;
}
> .timeBox {
margin-left: 80rpx;
margin-bottom: 24rpx;
view:nth-child(1) {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-right: 48rpx;
}
view:nth-child(2) {
width: 114rpx;
height: 48rpx;
border-radius: 56rpx;
border: 1rpx solid #b88dff;
color: rgba(110, 22, 255, 1);
font-size: 24rpx;
}
}
> .hPBox {
padding: 24rpx;
box-sizing: border-box;
background: #f7f8fa;
margin-left: 80rpx;
}
}
.huifu {
> .nameText {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
font-weight: 700;
margin-right: 10rpx;
}
> .huifuText {
color: rgba(0, 0, 0, 0.4);
font-size: 28rpx;
margin-right: 10rpx;
}
text {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
}
}
</style>
...
...
pages/index/list.vue
查看文件 @
1e0aba1
...
...
@@ -2,7 +2,8 @@
<view>
<!-- 顶部navbar -->
<u-sticky bgColor="#fff">
<u-navbar @rightClick="rightClick" placeholder :autoBack="true">
<!-- @rightClick="rightClick" :autoBack="true" -->
<u-navbar placeholder>
<template #center>
<view class="topSearchBox">
<u-search placeholder="请输入商家名称" :clearabled="true" :showAction="false" v-model="searchValue"></u-search>
...
...
@@ -185,7 +186,8 @@ export default {
<style lang="scss">
.topSearchBox {
margin-right: 118rpx;
margin-right: 218rpx;
z-index: 999;
}
page {
background: #f7f8fa;
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
查看文件 @
1e0aba1
此 diff 太大无法显示。
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/detail.js.map
查看文件 @
1e0aba1
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?9b38"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?6775"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?0103"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?61fe"
,
"uni-app:///pages/index/detail.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?9715"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?6336"
],
"names"
:[
"wx"
,
"__webpack_require_UNI_MP_PLUGIN__"
,
"__webpack_require__"
,
"createPage"
,
"Page"
],
"mappings"
:
";;;;;;;;;;kDAAA;AACA;AACA,+F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AAC0K;AAC1K,gBAAgB,6KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,mTAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAAsoB,CAAgB,gnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+F1pB,iD;AACA;AACA,MADA,kBACA;AACA;AACA,gBADA;AAEA,uBAFA;AAGA,gBAHA;AAIA,kBAJA;AAKA;AACA,gBANA;AAOA;AACA,oBARA;AASA;AACA,sBAVA;AAWA,cAXA;AAYA;AACA,yBAbA;AAcA;AACA,0BAfA;;AAiBA,GAnBA;AAoBA,QApBA,kBAoBA,OApBA,EAoBA;AACA;AACA;AACA;AACA;AACA;AACA,GA1BA;AA2BA;AACA;AACA,uBAFA,+BAEA,CAFA,EAEA;AACA;AACA;AACA,KALA;;AAOA;AACA,aARA,uBAQA;AACA,2DADA,SACA,GADA;AAEA;AACA,oBAHA,GAGA,+BAHA;AAIA;AACA;AACA;AACA,iBAFA;AAGA;AACA;AACA;AACA;AAXA,2EAYA,CApBA;;AAsBA;AACA,eAvBA,uBAuBA,IAvBA,EAuBA;AACA;AACA;AACA;AACA,KA3BA;;AA6BA;AACA,kBA9BA,4BA8BA;AACA;AACA,qCADA,EACA;AACA,kCAFA,EAEA;AACA,uCAHA,EAGA;AACA,2BAJA,EAIA;AACA,4BALA,CAKA;AALA,oBADA,SACA,GADA;AAQA,iCARA;AASA,KAvCA;;AAyCA;AACA,eA1CA,uBA0CA,IA1CA,EA0CA;AACA;AACA,qCADA,EACA;AACA,8BAFA,EAEA;AACA,2BAHA,CAGA;AAHA,oBADA,SACA,GADA;AAMA,KAhDA;;AAkDA;AACA,mBAnDA,2BAmDA,IAnDA,EAmDA;;AAEA,KArDA,EA3BA,E;;;;;;;;;;;;AChGA;AAAA;AAAA;AAAA;AAA6sC,CAAgB,+lCAAG,EAAC,C;;;;;;;;;;;ACAjuC;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"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 \"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 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!./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\">\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\" style=\"width: 100%; height: 100%\" mode=\"scaleToFill\" />\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\">共{{ itemlist.favorite.comment_num }}条评论</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 </view>\r\n\r\n <!-- 底部点赞评论收藏 -->\r\n <view class=\"bottomBtnBox flexA\">\r\n <view class=\"favoriteBox flexA\">\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 :src=\"userFavorite_zan == '1' ? '/static/zan11.png' : '/static/zan1.png' \" mode=\"scaleToFill\" @click=\"favoriteHandler(1)\" />\r\n <view>{{ itemlist.favorite.like_num }}</view>\r\n </view>\r\n\r\n <!-- 评论 -->\r\n <view class=\"likeBox flexA\" style=\"margin-right: 40rpx\">\r\n <image src=\"/static/icon1.png\" mode=\"scaleToFill\" />\r\n <view>{{ itemlist.favorite.comment_num }}</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>{{ itemlist.favorite.collection_num }}</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 底部白盒子 -->\r\n <view class=\"fffBox\"></view>\r\n\r\n <view v-if=\"inputState\" class=\"inputBox\">\r\n <view class=\"flexJ selectBox\">\r\n <view>取消</view>\r\n <view>发送</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 </view>\r\n</template>\r\n<script>\r\nimport { getDetail, getCommentList, getFavorite } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n value2: '',\r\n inputState: false,\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 userFavorite_cang: 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 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 this.bannerList.push({ url: JSON.parse(this.itemlist.file).video, type: 'video' })\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.list4.push({url: this.bannerList.video, poster: this.bannerList.cover})\r\n // this.bannerList.imgList.forEach(item => this.list4.push({ url: item }))\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.rightCate = !this.rightCate\r\n this.order = type\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 comment_id: '', //\tinteger\t否\t评论ID\r\n order: this.order, //\tinteger\t是\t排序 0:时间,1:热度\r\n page: 1, //\tinteger\t是\t页码\r\n rows: 10, //\tinteger\t是\t条数\r\n })\r\n console.log(res)\r\n },\r\n\r\n // 详情点赞收藏\r\n async getFavorite(type) {\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: '', //\tinteger\t是\t0:取消,1:确认\r\n })\r\n },\r\n\r\n // 点赞收藏操作\r\n favoriteHandler(type){\r\n \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: 500;\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: 500;\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 .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 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</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 // 1670217885050\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"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
null
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?6775"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?0103"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?61fe"
,
"uni-app:///pages/index/detail.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?9715"
,
"webpack:///D:/vue/kaoshi3/pages/index/detail.vue?6336"
],
"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 \"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 l0 = _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 return {\n $orig: $orig,\n g0: g0\n }\n })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = true\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\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\">\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\" style=\"width: 100%; height: 100%\" mode=\"scaleToFill\" />\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\">共{{ itemlist.favorite.comment_num || '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\">回复</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\" :key=\"item.id\">\r\n <view class=\"huifu\">\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 <!-- 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 -->\r\n </view>\r\n </view>\r\n <view v-if=\"item.child_num >= 2\" class=\"flexA huifuText1Box\">\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\">\r\n <view class=\"favoriteBox flexA\">\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\">\r\n <image src=\"/static/icon1.png\" mode=\"scaleToFill\" />\r\n <view>{{ itemlist.favorite.comment_num }}</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=\"fffBox\"></view>\r\n\r\n <view v-if=\"inputState\" class=\"inputBox\">\r\n <view class=\"flexJ selectBox\">\r\n <view>取消</view>\r\n <view>发送</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 <view style=\"height: 140rpx\"></view>\r\n </view>\r\n</template>\r\n<script>\r\nimport { getDetail, getCommentList, getFavorite, getCommentFavorite } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n value2: '',\r\n inputState: false,\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 },\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 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 this.bannerList.push({ url: JSON.parse(this.itemlist.file).video, type: 'video' })\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 sortHandler(type) {\r\n this.rightCate = !this.rightCate\r\n this.order = type\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: 1, //\tinteger\t是\t页码\r\n rows: 10, //\tinteger\t是\t条数\r\n })\r\n\r\n console.log(res)\r\n this.pingList = 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</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: 500;\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: 500;\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</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 // 1670223449380\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"
:
""
}
\ No newline at end of file
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
查看文件 @
1e0aba1
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?6161"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?569a"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?1ec6"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?3444"
,
"uni-app:///pages/index/list.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?4f14"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?a8a3"
],
"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 uRate: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-rate/u-rate\" */ \"uview-ui/components/u-rate/u-rate.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 <u-navbar @rightClick=\"rightClick\" placeholder :autoBack=\"true\">\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: 4rpx\" 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-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\">\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: 13, //\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 // this.list = this.list.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.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\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 },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.topSearchBox {\r\n margin-right: 118rpx;\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 // 1670217885039\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"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
null
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?569a"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?1ec6"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?3444"
,
"uni-app:///pages/index/list.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?4f14"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?a8a3"
],
"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 uRate: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-rate/u-rate\" */ \"uview-ui/components/u-rate/u-rate.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: 4rpx\" 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-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\">\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: 13, //\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 // this.list = this.list.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.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\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 },\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 // 1670223381626\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"
:
""
}
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/common/vendor.js
查看文件 @
1e0aba1
...
...
@@ -17910,7 +17910,7 @@ platform;exports.default = _default;
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
getFavorite
=
exports
.
getCommentList
=
exports
.
getTabsCate
=
exports
.
getDetail
=
exports
.
getList
=
void
0
;
var
_http
=
__webpack_require__
(
/*! @/utils/http */
143
);
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
get
CommentFavorite
=
exports
.
get
Favorite
=
exports
.
getCommentList
=
exports
.
getTabsCate
=
exports
.
getDetail
=
exports
.
getList
=
void
0
;
var
_http
=
__webpack_require__
(
/*! @/utils/http */
143
);
...
...
@@ -17928,7 +17928,10 @@ exports.getDetail = getDetail;var getTabsCate = function getTabsCate(data) {retu
exports
.
getTabsCate
=
getTabsCate
;
var
getCommentList
=
function
getCommentList
(
data
)
{
return
(
0
,
_http
.
request
)({
url
:
'/api/forum/comment/list'
,
method
:
'post'
,
data
:
data
});};
// 点赞评论收藏 /api/forum/forum/favorite
exports
.
getCommentList
=
getCommentList
;
var
getFavorite
=
function
getFavorite
(
data
)
{
return
(
0
,
_http
.
request
)({
url
:
'/api/forum/forum/favorite'
,
method
:
'post'
,
data
:
data
});};
exports
.
getFavorite
=
getFavorite
;
exports
.
getCommentList
=
getCommentList
;
var
getFavorite
=
function
getFavorite
(
data
)
{
return
(
0
,
_http
.
request
)({
url
:
'/api/forum/forum/favorite'
,
method
:
'post'
,
data
:
data
});};
// 评论点赞 /api/forum/Comment/comment_favorite
exports
.
getFavorite
=
getFavorite
;
var
getCommentFavorite
=
function
getCommentFavorite
(
data
)
{
return
(
0
,
_http
.
request
)({
url
:
'/api/forum/Comment/comment_favorite'
,
method
:
'post'
,
data
:
data
});};
exports
.
getCommentFavorite
=
getCommentFavorite
;
/***/
}),
/* 143 */
...
...
unpackage/dist/dev/mp-weixin/pages/index/detail.js
查看文件 @
1e0aba1
...
...
@@ -126,11 +126,30 @@ var render = function() {
var
_vm
=
this
var
_h
=
_vm
.
$createElement
var
_c
=
_vm
.
_self
.
_c
||
_h
var
l0
=
_vm
.
__map
(
_vm
.
pingList
,
function
(
item
,
index
)
{
var
$orig
=
_vm
.
__get_orig
(
item
)
var
g0
=
item
.
create_time
.
slice
(
5
,
16
)
return
{
$orig
:
$orig
,
g0
:
g0
}
})
if
(
!
_vm
.
_isMounted
)
{
_vm
.
e0
=
function
(
$event
)
{
_vm
.
rightCate
=
true
}
}
_vm
.
$mp
.
data
=
Object
.
assign
(
{},
{
$root
:
{
l0
:
l0
}
}
)
}
var
recyclableRender
=
false
var
staticRenderFns
=
[]
...
...
@@ -259,6 +278,54 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
var
_api
=
__webpack_require__
(
/*! @/api */
142
);
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};}
function
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
key
,
arg
)
{
try
{
var
info
=
gen
[
key
](
arg
);
var
value
=
info
.
value
;}
catch
(
error
)
{
reject
(
error
);
return
;}
if
(
info
.
done
)
{
resolve
(
value
);}
else
{
Promise
.
resolve
(
value
).
then
(
_next
,
_throw
);}}
function
_asyncToGenerator
(
fn
)
{
return
function
()
{
var
self
=
this
,
args
=
arguments
;
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
gen
=
fn
.
apply
(
self
,
args
);
function
_next
(
value
)
{
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
"next"
,
value
);}
function
_throw
(
err
)
{
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
"throw"
,
err
);}
_next
(
undefined
);});};}
var
_default
=
{
data
:
function
data
()
{
...
...
@@ -276,8 +343,14 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
order
:
1
,
// 用户是否点赞
userFavorite_zan
:
0
,
// 点赞数量
zanNum
:
0
,
// 用户是否收藏
userFavorite_cang
:
0
};
userFavorite_cang
:
0
,
// 收藏数量
cangNum
:
0
,
// 评论数据
pingList
:
[]
};
},
onLoad
:
function
onLoad
(
options
)
{
...
...
@@ -305,9 +378,9 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
});
_this
.
userFavorite_zan
=
res
.
data
.
userFavorite_zan
;
_this
.
userFavorite_cang
=
res
.
data
.
userFavorite_cang
;
// this.list4.push({url: this.bannerList.video, poster: this.bannerList.cover})
// this.bannerList.imgList.forEach(item => this.list4.push({ url: item }))
case
9
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();},
_this
.
zanNum
=
res
.
data
.
favorite
.
like_num
;
_this
.
cangNum
=
res
.
data
.
favorite
.
collection_num
;
case
11
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();
},
// 筛选排序
sortHandler
:
function
sortHandler
(
type
)
{
...
...
@@ -320,25 +393,72 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
getCommentList
:
function
getCommentList
()
{
var
_this2
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee2
()
{
var
res
;
return
_regenerator
.
default
.
wrap
(
function
_callee2$
(
_context2
)
{
while
(
1
)
{
switch
(
_context2
.
prev
=
_context2
.
next
)
{
case
0
:
_context2
.
next
=
2
;
return
(
(
0
,
_api
.
getCommentList
)({
id
:
_this2
.
itemId
,
// integer 是 论坛id
comment_id
:
''
,
// integer 否 评论ID
order
:
_this2
.
order
,
// integer 是 排序 0:时间,1:热度
page
:
1
,
// integer 是 页码
rows
:
10
// integer 是 条数
}));
case
2
:
res
=
_context2
.
sent
;
console
.
log
(
res
);
case
4
:
case
"end"
:
return
_context2
.
stop
();}}},
_callee2
);}))();
console
.
log
(
res
);
_this2
.
pingList
=
res
.
data
.
data
;
case
5
:
case
"end"
:
return
_context2
.
stop
();}}},
_callee2
);}))();
},
// 详情点赞收藏
getFavorite
:
function
getFavorite
(
type
)
{
var
_this3
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee3
()
{
var
res
;
return
_regenerator
.
default
.
wrap
(
function
_callee3$
(
_context3
)
{
while
(
1
)
{
switch
(
_context3
.
prev
=
_context3
.
next
)
{
case
0
:
_context3
.
next
=
2
;
return
(
getFavorite
:
function
getFavorite
(
type
,
set
)
{
var
_this3
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee3
()
{
var
res
;
return
_regenerator
.
default
.
wrap
(
function
_callee3$
(
_context3
)
{
while
(
1
)
{
switch
(
_context3
.
prev
=
_context3
.
next
)
{
case
0
:
_context3
.
next
=
2
;
return
(
(
0
,
_api
.
getFavorite
)({
id
:
_this3
.
itemId
,
// integer 是 论坛ID
type
:
type
,
// integer 是 1:点赞,3:收藏
set
:
''
// integer 是 0:取消,1:确认
set
:
set
// integer 是 0:取消,1:确认
}));
case
2
:
res
=
_context3
.
sent
;
case
3
:
case
"end"
:
return
_context3
.
stop
();}}},
_callee3
);}))();
},
// 点赞收藏操作
favoriteHandler
:
function
favoriteHandler
(
type
)
{
// 点赞
if
(
type
==
1
)
{
// 确认点赞
if
(
this
.
userFavorite_zan
==
1
)
{
this
.
userFavorite_zan
=
0
;
this
.
getFavorite
(
1
,
0
);
this
.
zanNum
=
this
.
zanNum
-
1
;
}
else
{
// 取消点赞
this
.
userFavorite_zan
=
1
;
this
.
getFavorite
(
1
,
1
);
this
.
zanNum
=
this
.
zanNum
+
1
;
}
}
// 收藏
if
(
type
==
3
)
{
if
(
this
.
userFavorite_cang
==
1
)
{
this
.
userFavorite_cang
=
0
;
this
.
getFavorite
(
3
,
0
);
this
.
cangNum
=
this
.
cangNum
-
1
;
}
else
{
this
.
userFavorite_cang
=
1
;
this
.
getFavorite
(
3
,
1
);
this
.
cangNum
=
this
.
cangNum
+
1
;
}
}
this
.
getDetail
();
},
// 评论点赞操作
getCommentFavorite
:
function
getCommentFavorite
(
isF
,
index
,
id
)
{
var
_this4
=
this
;
return
_asyncToGenerator
(
/*#__PURE__*/
_regenerator
.
default
.
mark
(
function
_callee4
()
{
var
res
;
return
_regenerator
.
default
.
wrap
(
function
_callee4$
(
_context4
)
{
while
(
1
)
{
switch
(
_context4
.
prev
=
_context4
.
next
)
{
case
0
:
console
.
log
(
isF
,
index
);
_context4
.
prev
=
1
;
_context4
.
next
=
4
;
return
(
(
0
,
_api
.
getCommentFavorite
)({
id
:
id
,
// integer 是 评论主键ID
set
:
isF
==
1
?
0
:
1
// integer 是 0:取消,1:确认
}));
case
4
:
res
=
_context4
.
sent
;
if
(
isF
==
1
)
{
_this4
.
pingList
[
index
].
favorite_num
-=
1
;
}
else
{
_this4
.
pingList
[
index
].
favorite_num
+=
1
;
}
_this4
.
pingList
[
index
].
is_favorite
=
_this4
.
pingList
[
index
].
is_favorite
==
1
?
0
:
1
;
console
.
log
(
res
);
_context4
.
next
=
13
;
break
;
case
10
:
_context4
.
prev
=
10
;
_context4
.
t0
=
_context4
[
"catch"
](
1
);
console
.
log
(
_context4
.
t0
);
case
13
:
case
"end"
:
return
_context4
.
stop
();}}},
_callee4
,
null
,
[[
1
,
10
]]);}))();
}
}
};
exports
.
default
=
_default
;
...
...
unpackage/dist/dev/mp-weixin/pages/index/detail.wxml
查看文件 @
1e0aba1
<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><block wx:if="{{item.type=='video'}}"><video style="width:100%;height:100%;" src="{{item.url}}"></video></block><block wx:if="{{item.type=='img'}}"><image style="width:100%;height:100%;" src="{{item.url}}" mode="scaleToFill"></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">{{"共"+itemlist.favorite.comment_num+"条评论"}}</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></view><view class="bottomBtnBox flexA"><view class="favoriteBox flexA"><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>{{itemlist.favorite.like_num}}</view></view><view class="likeBox flexA" style="margin-right:40rpx;"><image src="/static/icon1.png" mode="scaleToFill"></image><view>{{itemlist.favorite.comment_num}}</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>{{itemlist.favorite.collection_num}}</view></view></view><view class="fffBox"></view><block wx:if="{{inputState}}"><view class="inputBox"><view class="flexJ selectBox"><view>取消</view><view>发送</view></view><u--textarea bind:input="__e" vue-id="49115082-3" 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></block></view>
\ No newline at end of file
<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><block wx:if="{{item.type=='video'}}"><video style="width:100%;height:100%;" src="{{item.url}}"></video></block><block wx:if="{{item.type=='img'}}"><image style="width:100%;height:100%;" src="{{item.url}}" mode="scaleToFill"></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">{{"共"+(itemlist.favorite.comment_num||'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.l0}}" 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 class="flexC">回复</view></view><block wx:if="{{item.$orig.child.length}}"><view class="hPBox"><block wx:for="{{item.$orig.child}}" wx:for-item="it" wx:for-index="__i1__" wx:key="id"><view><view class="huifu"><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 class="flexA huifuText1Box"><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><view class="bottomBtnBox flexA"><view class="favoriteBox flexA"><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 class="likeBox flexA" style="margin-right:40rpx;"><image src="/static/icon1.png" mode="scaleToFill"></image><view>{{itemlist.favorite.comment_num}}</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><view class="fffBox"></view><block wx:if="{{inputState}}"><view class="inputBox"><view class="flexJ selectBox"><view>取消</view><view>发送</view></view><u--textarea bind:input="__e" vue-id="49115082-3" 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></block><view style="height:140rpx;"></view></view>
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/pages/index/detail.wxss
查看文件 @
1e0aba1
...
...
@@ -108,6 +108,7 @@
}
.topBox {
position: relative;
margin-bottom: 40rpx;
}
.topBox .xia {
width: 256rpx;
...
...
@@ -134,6 +135,7 @@
padding-top: 22rpx;
}
.bottomBtnBox {
background: #fff;
position: fixed;
bottom: 60rpx;
left: 0;
...
...
@@ -174,4 +176,81 @@
width: 32rpx;
height: 32rpx;
}
.huifuText1Box {
margin-top: 16rpx;
}
.huifuText1 {
color: #2153d4;
font-size: 28rpx;
margin-right: 10rpx;
}
.pingBox {
padding-bottom: 32rpx;
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
margin-bottom: 32rpx;
}
.pingBox > .pTopBox > .avatarBox {
color: rgba(0, 0, 0, 0.9);
font-size: 32rpx;
font-weight: 700;
}
.pingBox > .pTopBox > .avatarBox image {
width: 64rpx;
height: 64rpx;
border-radius: 50%;
margin-right: 16rpx;
}
.pingBox > .pTopBox > .zanBox {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
}
.pingBox > .pTopBox > .zanBox image {
width: 40rpx;
margin-right: 8rpx;
height: 40rpx;
}
.pingBox > .contentBox {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
margin-bottom: 16rpx;
margin-left: 80rpx;
}
.pingBox > .timeBox {
margin-left: 80rpx;
margin-bottom: 24rpx;
}
.pingBox > .timeBox view:nth-child(1) {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-right: 48rpx;
}
.pingBox > .timeBox view:nth-child(2) {
width: 114rpx;
height: 48rpx;
border-radius: 56rpx;
border: 1rpx solid #b88dff;
color: #6e16ff;
font-size: 24rpx;
}
.pingBox > .hPBox {
padding: 24rpx;
box-sizing: border-box;
background: #f7f8fa;
margin-left: 80rpx;
}
.huifu > .nameText {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
font-weight: 700;
margin-right: 10rpx;
}
.huifu > .huifuText {
color: rgba(0, 0, 0, 0.4);
font-size: 28rpx;
margin-right: 10rpx;
}
.huifu text {
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
}
...
...
unpackage/dist/dev/mp-weixin/pages/index/list.js
查看文件 @
1e0aba1
...
...
@@ -250,6 +250,7 @@ __webpack_require__.r(__webpack_exports__);
var
_api
=
__webpack_require__
(
/*! @/api */
142
);
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};}
function
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
key
,
arg
)
{
try
{
var
info
=
gen
[
key
](
arg
);
var
value
=
info
.
value
;}
catch
(
error
)
{
reject
(
error
);
return
;}
if
(
info
.
done
)
{
resolve
(
value
);}
else
{
Promise
.
resolve
(
value
).
then
(
_next
,
_throw
);}}
function
_asyncToGenerator
(
fn
)
{
return
function
()
{
var
self
=
this
,
args
=
arguments
;
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
gen
=
fn
.
apply
(
self
,
args
);
function
_next
(
value
)
{
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
"next"
,
value
);}
function
_throw
(
err
)
{
asyncGeneratorStep
(
gen
,
resolve
,
reject
,
_next
,
_throw
,
"throw"
,
err
);}
_next
(
undefined
);});};}
var
_default
=
{
data
:
function
data
()
{
...
...
unpackage/dist/dev/mp-weixin/pages/index/list.wxml
查看文件 @
1e0aba1
<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}}" autoBack="{{true}}" data-event-opts="{{[['^rightClick',[['rightClick']]]]}}" bind:rightClick="__e" 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:4rpx;" 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"><u-rate bind:input="__e" vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" activeIcon="heart-fill" inactiveIcon="heart" count="{{count}}" value="{{value}}" data-event-opts="{{[['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:__l="__l"></u-rate><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-7" bind:__l="__l"></u-empty></view></block><view class="incrBox flexC"><image src="/static/add.png" mode="scaleToFill"></image></view></view>
\ No newline at end of file
<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:4rpx;" 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"><u-rate bind:input="__e" vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" activeIcon="heart-fill" inactiveIcon="heart" count="{{count}}" value="{{value}}" data-event-opts="{{[['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:__l="__l"></u-rate><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-7" bind:__l="__l"></u-empty></view></block><view class="incrBox flexC"><image src="/static/add.png" mode="scaleToFill"></image></view></view>
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/pages/index/list.wxss
查看文件 @
1e0aba1
...
...
@@ -25,7 +25,8 @@
/* 透明度 */
/* 文章场景相关 */
.topSearchBox {
margin-right: 118rpx;
margin-right: 218rpx;
z-index: 999;
}
page {
background: #f7f8fa;
...
...
请
注册
或
登录
后发表评论