切换导航条
此项目
正在载入...
登录
韩昌
/
kaoshi3-fangweishangcheng
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
韩昌
2022-12-05 15:20:00 +0800
提交
cc04c133bae6b20f5c750959064353b9d49f8b32
1 个父辈
1e0aba15
12.5测试完成
显示空白字符变更
内嵌
并排对比
正在显示
11 个修改的文件
包含
75 行增加
和
40 行删除
pages.json
pages/index/detail.vue
pages/index/list.vue
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.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/app.json
unpackage/dist/dev/mp-weixin/common/runtime.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/list.js
pages.json
查看文件 @
cc04c13
...
...
@@ -4,20 +4,21 @@
},
"pages"
:
[
{
"path"
:
"pages/index/
index"
,
//
首页
"path"
:
"pages/index/
list"
,
//
商品列表
"style"
:
{
"navigationBarTitleText"
:
"任务审批小程序"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#2466e4"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/index/
list"
,
//
商品列表
"path"
:
"pages/index/
index"
,
//
首页
"style"
:
{
"navigationBarTitleText"
:
"任务审批小程序"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#2466e4"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/index/detail"
,
//
首页
"style"
:
{
...
...
pages/index/detail.vue
查看文件 @
cc04c13
...
...
@@ -36,7 +36,7 @@
<view class="mainBox2">
<u-divider></u-divider>
<view class="flexJ topBox" style="margin-top: 32rpx">
<view class="pingNumText">共{{
itemlist.favorite.comment_num
|| '0' }}条评论</view>
<view class="pingNumText">共{{
total
|| '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>
...
...
@@ -137,7 +137,7 @@
count
></u--textarea>
</view>
<view style="height: 1
4
0rpx"></view>
<view style="height: 1
2
0rpx"></view>
</view>
</template>
<script>
...
...
@@ -166,6 +166,12 @@ export default {
cangNum: 0,
// 评论数据
pingList: [],
// 一共多少条评论
total: 0,
// 最后一页
lastPage: 0,
// 当前页
curPage: 1
}
},
onLoad(options) {
...
...
@@ -175,6 +181,11 @@ export default {
this.getCommentList()
// this.userInfo = JSON.parse(options.userInfo)
},
onReachBottom() {
if(this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })
this.curPage +=1
this.getCommentList()
},
methods: {
// 切换轮播图
changeSwiperHandler(e) {
...
...
@@ -195,6 +206,8 @@ export default {
this.userFavorite_cang = res.data.userFavorite_cang
this.zanNum = res.data.favorite.like_num
this.cangNum = res.data.favorite.collection_num
},
// 筛选排序
...
...
@@ -209,12 +222,14 @@ export default {
const res = await getCommentList({
id: this.itemId, // integer 是 论坛id
order: this.order, // integer 是 排序 0:时间,1:热度
page: 1, // integer 是 页码
rows: 10, // integer 是 条数
page: this.curPage || 1, // integer 是 页码
rows: 2, // integer 是 条数
})
console.log(res)
this.pingList = res.data.data
console.log(res, '1122')
this.lastPage = res.data.last_page
this.total = res.data.total
this.pingList = this.pingList.concat(res.data.data)
},
// 详情点赞收藏
...
...
pages/index/list.vue
查看文件 @
cc04c13
...
...
@@ -126,7 +126,7 @@ export default {
console.log('到底了')
if (this.curPage === this.last_page) {
uni.showToast({
title: '没有更多数据了',
title: '没有更多数据了
~
',
icon: 'none',
mask: true,
})
...
...
@@ -143,7 +143,7 @@ export default {
keywords: val || '', // string 否 关键词
order: this.order, // string 是 排序,1:评论,0:时间
page: this.curPage, // integer 是 页码
rows:
13
, // integer 是 条数
rows:
6
, // integer 是 条数
})
console.log(data)
if (data.data.length == 0) {
...
...
@@ -151,11 +151,12 @@ export default {
} else {
this.searchState = 1
this.last_page = data.last_page
// this.list = this.list.concat(data.data)
this.list2 = data.data
this.list2.forEach((item, index) => {
item.image = JSON.parse(data.data[index].file).imgList[0]
})
data.data.forEach(it=> it.image = JSON.parse(it.file).cover )
this.list2 = this.list2.concat(data.data)
// this.list2 = data.data
// this.list2.forEach((item, index) => {
// item.image = JSON.parse(data.data[index].file).imgList[0]
// })
}
},
...
...
@@ -171,6 +172,7 @@ export default {
// 切换tabs
toggleTabsHandler(e) {
this.list2 = []
this.curPage = 1
this.goodlistId = e.id
this.getList()
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
查看文件 @
cc04c13
{
"version"
:
3
,
"sources"
:[
null
],
"names"
:[],
"mappings"
:
";QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;;;QAGA;QACA,oBAAoB;QACpB;QACA;QACA;QACA,uBAAuB,4oEAA4oE;QACnqE;QACA;QACA,mBAAmB,6BAA6B;QAChD;QACA;QACA;QACA;QACA;QACA,mBAAmB,8BAA8B;QACjD;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA,KAAK;QACL;QACA,KAAK;QACL;;QAEA;;QAEA;QACA,iCAAiC;;QAEjC;QACA;QACA;QACA,KAAK;QACL;QACA;QACA;QACA,MAAM;QACN;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,wBAAwB,kCAAkC;QAC1D,MAAM;QACN;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA,0CAA0C,oBAAoB,WAAW;;QAEzE;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA"
,
"file"
:
"common/runtime.js"
,
"sourcesContent"
:[
" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"common/runtime\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"common/runtime\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + chunkId + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"node-modules/uview-ui/components/u-empty/u-empty\":1,\"node-modules/uview-ui/components/u-icon/u-icon\":1,\"node-modules/uview-ui/components/u-modal/u-modal\":1,\"node-modules/uview-ui/components/u-navbar/u-navbar\":1,\"node-modules/uview-ui/components/u-rate/u-rate\":1,\"node-modules/uview-ui/components/u-search/u-search\":1,\"node-modules/uview-ui/components/u-sticky/u-sticky\":1,\"node-modules/uview-ui/components/u-tabs/u-tabs\":1,\"components/custom-waterfalls-flow/custom-waterfalls-flow\":1,\"node-modules/uview-ui/components/u-divider/u-divider\":1,\"node-modules/uview-ui/components/u-line/u-line\":1,\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\":1,\"node-modules/uview-ui/components/u-popup/u-popup\":1,\"node-modules/uview-ui/components/u-status-bar/u-status-bar\":1,\"node-modules/uview-ui/components/u-badge/u-badge\":1,\"node-modules/uview-ui/components/u-textarea/u-textarea\":1,\"node-modules/uview-ui/components/u-overlay/u-overlay\":1,\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\":1,\"node-modules/uview-ui/components/u-transition/u-transition\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"\" + ({\"node-modules/uview-ui/components/u-empty/u-empty\":\"node-modules/uview-ui/components/u-empty/u-empty\",\"node-modules/uview-ui/components/u-icon/u-icon\":\"node-modules/uview-ui/components/u-icon/u-icon\",\"node-modules/uview-ui/components/u-modal/u-modal\":\"node-modules/uview-ui/components/u-modal/u-modal\",\"node-modules/uview-ui/components/u-navbar/u-navbar\":\"node-modules/uview-ui/components/u-navbar/u-navbar\",\"node-modules/uview-ui/components/u-rate/u-rate\":\"node-modules/uview-ui/components/u-rate/u-rate\",\"node-modules/uview-ui/components/u-search/u-search\":\"node-modules/uview-ui/components/u-search/u-search\",\"node-modules/uview-ui/components/u-sticky/u-sticky\":\"node-modules/uview-ui/components/u-sticky/u-sticky\",\"node-modules/uview-ui/components/u-tabs/u-tabs\":\"node-modules/uview-ui/components/u-tabs/u-tabs\",\"components/custom-waterfalls-flow/custom-waterfalls-flow\":\"components/custom-waterfalls-flow/custom-waterfalls-flow\",\"node-modules/uview-ui/components/u--textarea/u--textarea\":\"node-modules/uview-ui/components/u--textarea/u--textarea\",\"node-modules/uview-ui/components/u-divider/u-divider\":\"node-modules/uview-ui/components/u-divider/u-divider\",\"node-modules/uview-ui/components/u-line/u-line\":\"node-modules/uview-ui/components/u-line/u-line\",\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\":\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\",\"node-modules/uview-ui/components/u-popup/u-popup\":\"node-modules/uview-ui/components/u-popup/u-popup\",\"node-modules/uview-ui/components/u-status-bar/u-status-bar\":\"node-modules/uview-ui/components/u-status-bar/u-status-bar\",\"node-modules/uview-ui/components/u-badge/u-badge\":\"node-modules/uview-ui/components/u-badge/u-badge\",\"node-modules/uview-ui/components/u-textarea/u-textarea\":\"node-modules/uview-ui/components/u-textarea/u-textarea\",\"node-modules/uview-ui/components/u-overlay/u-overlay\":\"node-modules/uview-ui/components/u-overlay/u-overlay\",\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\":\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\",\"node-modules/uview-ui/components/u-transition/u-transition\":\"node-modules/uview-ui/components/u-transition/u-transition\"}[chunkId]||chunkId) + \".wxss\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = global[\"webpackJsonp\"] = global[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"
],
"sourceRoot"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:[
null
],
"names"
:[],
"mappings"
:
";QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;;;QAGA;QACA,oBAAoB;QACpB;QACA;QACA;QACA,uBAAuB,4oEAA4oE;QACnqE;QACA;QACA,mBAAmB,6BAA6B;QAChD;QACA;QACA;QACA;QACA;QACA,mBAAmB,8BAA8B;QACjD;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA,KAAK;QACL;QACA,KAAK;QACL;;QAEA;;QAEA;QACA,iCAAiC;;QAEjC;QACA;QACA;QACA,KAAK;QACL;QACA;QACA;QACA,MAAM;QACN;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,wBAAwB,kCAAkC;QAC1D,MAAM;QACN;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA,0CAA0C,oBAAoB,WAAW;;QAEzE;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA"
,
"file"
:
"common/runtime.js"
,
"sourcesContent"
:[
" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"common/runtime\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"common/runtime\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + chunkId + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"node-modules/uview-ui/components/u-empty/u-empty\":1,\"node-modules/uview-ui/components/u-navbar/u-navbar\":1,\"node-modules/uview-ui/components/u-rate/u-rate\":1,\"node-modules/uview-ui/components/u-search/u-search\":1,\"node-modules/uview-ui/components/u-sticky/u-sticky\":1,\"node-modules/uview-ui/components/u-tabs/u-tabs\":1,\"components/custom-waterfalls-flow/custom-waterfalls-flow\":1,\"node-modules/uview-ui/components/u-icon/u-icon\":1,\"node-modules/uview-ui/components/u-modal/u-modal\":1,\"node-modules/uview-ui/components/u-divider/u-divider\":1,\"node-modules/uview-ui/components/u-status-bar/u-status-bar\":1,\"node-modules/uview-ui/components/u-badge/u-badge\":1,\"node-modules/uview-ui/components/u-line/u-line\":1,\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\":1,\"node-modules/uview-ui/components/u-popup/u-popup\":1,\"node-modules/uview-ui/components/u-textarea/u-textarea\":1,\"node-modules/uview-ui/components/u-overlay/u-overlay\":1,\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\":1,\"node-modules/uview-ui/components/u-transition/u-transition\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"\" + ({\"node-modules/uview-ui/components/u-empty/u-empty\":\"node-modules/uview-ui/components/u-empty/u-empty\",\"node-modules/uview-ui/components/u-navbar/u-navbar\":\"node-modules/uview-ui/components/u-navbar/u-navbar\",\"node-modules/uview-ui/components/u-rate/u-rate\":\"node-modules/uview-ui/components/u-rate/u-rate\",\"node-modules/uview-ui/components/u-search/u-search\":\"node-modules/uview-ui/components/u-search/u-search\",\"node-modules/uview-ui/components/u-sticky/u-sticky\":\"node-modules/uview-ui/components/u-sticky/u-sticky\",\"node-modules/uview-ui/components/u-tabs/u-tabs\":\"node-modules/uview-ui/components/u-tabs/u-tabs\",\"components/custom-waterfalls-flow/custom-waterfalls-flow\":\"components/custom-waterfalls-flow/custom-waterfalls-flow\",\"node-modules/uview-ui/components/u-icon/u-icon\":\"node-modules/uview-ui/components/u-icon/u-icon\",\"node-modules/uview-ui/components/u-modal/u-modal\":\"node-modules/uview-ui/components/u-modal/u-modal\",\"node-modules/uview-ui/components/u--textarea/u--textarea\":\"node-modules/uview-ui/components/u--textarea/u--textarea\",\"node-modules/uview-ui/components/u-divider/u-divider\":\"node-modules/uview-ui/components/u-divider/u-divider\",\"node-modules/uview-ui/components/u-status-bar/u-status-bar\":\"node-modules/uview-ui/components/u-status-bar/u-status-bar\",\"node-modules/uview-ui/components/u-badge/u-badge\":\"node-modules/uview-ui/components/u-badge/u-badge\",\"node-modules/uview-ui/components/u-line/u-line\":\"node-modules/uview-ui/components/u-line/u-line\",\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\":\"node-modules/uview-ui/components/u-loading-icon/u-loading-icon\",\"node-modules/uview-ui/components/u-popup/u-popup\":\"node-modules/uview-ui/components/u-popup/u-popup\",\"node-modules/uview-ui/components/u-textarea/u-textarea\":\"node-modules/uview-ui/components/u-textarea/u-textarea\",\"node-modules/uview-ui/components/u-overlay/u-overlay\":\"node-modules/uview-ui/components/u-overlay/u-overlay\",\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\":\"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom\",\"node-modules/uview-ui/components/u-transition/u-transition\":\"node-modules/uview-ui/components/u-transition/u-transition\"}[chunkId]||chunkId) + \".wxss\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = global[\"webpackJsonp\"] = global[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"
],
"sourceRoot"
:
""
}
\ No newline at end of file
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/detail.js.map
查看文件 @
cc04c13
{
"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
{
"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\">共{{ total || '0' }}条评论</view>\r\n <image style=\"width: 32rpx; height: 32rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" @click=\"rightCate = true\" />\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n </view>\r\n\r\n <!-- 评论数据 -->\r\n <view class=\"pingBox\" v-for=\"(item, index) in pingList\" :key=\"item.id\">\r\n <!-- 头像和点赞 -->\r\n <view class=\"pTopBox flexJ\">\r\n <view class=\"avatarBox flexA\">\r\n <image :src=\"item.user_avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.username }}</view>\r\n </view>\r\n <view class=\"zanBox flexA\">\r\n <image\r\n @click=\"getCommentFavorite(item.is_favorite, index, item.id)\"\r\n :src=\"item.is_favorite == 0 ? '/static/zan1.png' : '/static/zan11.png'\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view>{{ item.favorite_num }}</view>\r\n </view>\r\n </view>\r\n <!-- 内容 -->\r\n <view class=\"contentBox\">{{ item.comment }}</view>\r\n <!-- 回复和时间 -->\r\n <view class=\"timeBox flexA\">\r\n <view>{{ item.create_time.slice(5, 16) }}</view>\r\n <view class=\"flexC\">回复</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: 120rpx\"></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 total: 0,\r\n // 最后一页\r\n lastPage: 0,\r\n // 当前页\r\n curPage: 1\r\n }\r\n },\r\n onLoad(options) {\r\n // console.log(options.itemId)\r\n this.itemId = options.itemId\r\n this.getDetail()\r\n this.getCommentList()\r\n // this.userInfo = JSON.parse(options.userInfo)\r\n },\r\n onReachBottom() {\r\n if(this.curPage == this.lastPage) return uni.showToast({ title: '没有更多回复了~', icon: 'none' })\r\n this.curPage +=1\r\n this.getCommentList()\r\n },\r\n methods: {\r\n // 切换轮播图\r\n changeSwiperHandler(e) {\r\n // console.log(e)\r\n this.current = e.detail.current\r\n },\r\n\r\n // 获取详情数据\r\n async getDetail() {\r\n const res = await getDetail({ id: this.itemId })\r\n this.itemlist = res.data\r\n const list = JSON.parse(this.itemlist.file)\r\n 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\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: this.curPage || 1, //\tinteger\t是\t页码\r\n rows: 2, //\tinteger\t是\t条数\r\n })\r\n\r\n console.log(res, '1122')\r\n this.lastPage = res.data.last_page\r\n this.total = res.data.total\r\n this.pingList = this.pingList.concat(res.data.data)\r\n },\r\n\r\n // 详情点赞收藏\r\n async getFavorite(type, set) {\r\n const res = await getFavorite({\r\n id: this.itemId, //\tinteger\t是\t论坛ID\r\n type: type, //\tinteger\t是\t1:点赞,3:收藏\r\n set: set, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n },\r\n\r\n // 点赞收藏操作\r\n favoriteHandler(type) {\r\n // 点赞\r\n if (type == 1) {\r\n // 确认点赞\r\n if (this.userFavorite_zan == 1) {\r\n this.userFavorite_zan = 0\r\n this.getFavorite(1, 0)\r\n this.zanNum = this.zanNum - 1\r\n } else {\r\n // 取消点赞\r\n this.userFavorite_zan = 1\r\n this.getFavorite(1, 1)\r\n this.zanNum = this.zanNum + 1\r\n }\r\n }\r\n // 收藏\r\n if (type == 3) {\r\n if (this.userFavorite_cang == 1) {\r\n this.userFavorite_cang = 0\r\n this.getFavorite(3, 0)\r\n this.cangNum = this.cangNum - 1\r\n } else {\r\n this.userFavorite_cang = 1\r\n this.getFavorite(3, 1)\r\n this.cangNum = this.cangNum + 1\r\n }\r\n }\r\n this.getDetail()\r\n },\r\n\r\n // 评论点赞操作\r\n async getCommentFavorite(isF, index, id) {\r\n console.log(isF, index)\r\n try {\r\n const res = await getCommentFavorite({\r\n id: id, //\tinteger\t是\t评论主键ID\r\n set: isF == 1 ? 0 : 1, //\tinteger\t是\t0:取消,1:确认\r\n })\r\n if (isF == 1) {\r\n this.pingList[index].favorite_num -= 1\r\n } else {\r\n this.pingList[index].favorite_num += 1\r\n }\r\n this.pingList[index].is_favorite = this.pingList[index].is_favorite == 1 ? 0 : 1\r\n console.log(res)\r\n } catch (error) {\r\n console.log(error)\r\n }\r\n },\r\n },\r\n}\r\n</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 // 1670224730725\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
查看文件 @
cc04c13
{
"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
{
"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: 6, //\tinteger\t是\t条数\r\n })\r\n console.log(data)\r\n if (data.data.length == 0) {\r\n this.searchState = 0\r\n } else {\r\n this.searchState = 1\r\n this.last_page = data.last_page\r\n data.data.forEach(it=> it.image = JSON.parse(it.file).cover )\r\n this.list2 = this.list2.concat(data.data)\r\n // this.list2 = data.data\r\n // this.list2.forEach((item, index) => {\r\n // item.image = JSON.parse(data.data[index].file).imgList[0]\r\n // })\r\n \r\n }\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.list2 = []\r\n this.rightCate = !this.rightCate\r\n this.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\r\n this.curPage = 1\r\n this.goodlistId = e.id\r\n this.getList()\r\n },\r\n\r\n // 跳转详情\r\n toDetailHandler(e){\r\n // console.log(JSON.stringify(e.user))\r\n uni.navigateTo({ url: `/pages/index/detail?itemId=${e.id}&userInfo=${JSON.stringify(e.user)}` })\r\n },\r\n },\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 // 1670224770966\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/app.json
查看文件 @
cc04c13
{
"pages"
:
[
"pages/index/index"
,
"pages/index/list"
,
"pages/index/index"
,
"pages/index/detail"
,
"pages/index/allComments"
],
...
...
@@ -13,6 +13,5 @@
"backgroundColor"
:
"#F8F8F8"
},
"permission"
:
{},
"usingComponents"
:
{},
"sitemapLocation"
:
"sitemap.json"
"usingComponents"
:
{}
}
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/common/runtime.js
查看文件 @
cc04c13
...
...
@@ -105,11 +105,11 @@
/******/
/******/
/******/
// mini-css-extract-plugin CSS loading
/******/
var
cssChunks
=
{
"node-modules/uview-ui/components/u-empty/u-empty"
:
1
,
"node-modules/uview-ui/components/u-
icon/u-icon"
:
1
,
"node-modules/uview-ui/components/u-modal/u-modal"
:
1
,
"node-modules/uview-ui/components/u-navbar/u-navbar"
:
1
,
"node-modules/uview-ui/components/u-rate/u-rate"
:
1
,
"node-modules/uview-ui/components/u-search/u-search"
:
1
,
"node-modules/uview-ui/components/u-sticky/u-sticky"
:
1
,
"node-modules/uview-ui/components/u-tabs/u-tabs"
:
1
,
"components/custom-waterfalls-flow/custom-waterfalls-flow"
:
1
,
"node-modules/uview-ui/components/u-divider/u-divider"
:
1
,
"node-modules/uview-ui/components/u-line/u-line"
:
1
,
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
:
1
,
"node-modules/uview-ui/components/u-popup/u-popup"
:
1
,
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
:
1
,
"node-modules/uview-ui/components/u-badge/u-badge
"
:
1
,
"node-modules/uview-ui/components/u-textarea/u-textarea"
:
1
,
"node-modules/uview-ui/components/u-overlay/u-overlay"
:
1
,
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
:
1
,
"node-modules/uview-ui/components/u-transition/u-transition"
:
1
};
/******/
var
cssChunks
=
{
"node-modules/uview-ui/components/u-empty/u-empty"
:
1
,
"node-modules/uview-ui/components/u-
navbar/u-navbar"
:
1
,
"node-modules/uview-ui/components/u-rate/u-rate"
:
1
,
"node-modules/uview-ui/components/u-search/u-search"
:
1
,
"node-modules/uview-ui/components/u-sticky/u-sticky"
:
1
,
"node-modules/uview-ui/components/u-tabs/u-tabs"
:
1
,
"components/custom-waterfalls-flow/custom-waterfalls-flow"
:
1
,
"node-modules/uview-ui/components/u-icon/u-icon"
:
1
,
"node-modules/uview-ui/components/u-modal/u-modal"
:
1
,
"node-modules/uview-ui/components/u-divider/u-divider"
:
1
,
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
:
1
,
"node-modules/uview-ui/components/u-badge/u-badge"
:
1
,
"node-modules/uview-ui/components/u-line/u-line"
:
1
,
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
:
1
,
"node-modules/uview-ui/components/u-popup/u-popup
"
:
1
,
"node-modules/uview-ui/components/u-textarea/u-textarea"
:
1
,
"node-modules/uview-ui/components/u-overlay/u-overlay"
:
1
,
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
:
1
,
"node-modules/uview-ui/components/u-transition/u-transition"
:
1
};
/******/
if
(
installedCssChunks
[
chunkId
])
promises
.
push
(
installedCssChunks
[
chunkId
]);
/******/
else
if
(
installedCssChunks
[
chunkId
]
!==
0
&&
cssChunks
[
chunkId
])
{
/******/
promises
.
push
(
installedCssChunks
[
chunkId
]
=
new
Promise
(
function
(
resolve
,
reject
)
{
/******/
var
href
=
""
+
({
"node-modules/uview-ui/components/u-empty/u-empty"
:
"node-modules/uview-ui/components/u-empty/u-empty"
,
"node-modules/uview-ui/components/u-
icon/u-icon"
:
"node-modules/uview-ui/components/u-icon/u-icon"
,
"node-modules/uview-ui/components/u-modal/u-modal"
:
"node-modules/uview-ui/components/u-modal/u-modal"
,
"node-modules/uview-ui/components/u-navbar/u-navbar"
:
"node-modules/uview-ui/components/u-navbar/u-navbar"
,
"node-modules/uview-ui/components/u-rate/u-rate"
:
"node-modules/uview-ui/components/u-rate/u-rate"
,
"node-modules/uview-ui/components/u-search/u-search"
:
"node-modules/uview-ui/components/u-search/u-search"
,
"node-modules/uview-ui/components/u-sticky/u-sticky"
:
"node-modules/uview-ui/components/u-sticky/u-sticky"
,
"node-modules/uview-ui/components/u-tabs/u-tabs"
:
"node-modules/uview-ui/components/u-tabs/u-tabs"
,
"components/custom-waterfalls-flow/custom-waterfalls-flow"
:
"components/custom-waterfalls-flow/custom-waterfalls-flow"
,
"node-modules/uview-ui/components/u--textarea/u--textarea"
:
"node-modules/uview-ui/components/u--textarea/u--textarea"
,
"node-modules/uview-ui/components/u-divider/u-divider"
:
"node-modules/uview-ui/components/u-divider/u-divider"
,
"node-modules/uview-ui/components/u-line/u-line"
:
"node-modules/uview-ui/components/u-line/u-line"
,
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
:
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
,
"node-modules/uview-ui/components/u-popup/u-popup"
:
"node-modules/uview-ui/components/u-popup/u-popup"
,
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
:
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
,
"node-modules/uview-ui/components/u-badge/u-badge"
:
"node-modules/uview-ui/components/u-badge/u-badge
"
,
"node-modules/uview-ui/components/u-textarea/u-textarea"
:
"node-modules/uview-ui/components/u-textarea/u-textarea"
,
"node-modules/uview-ui/components/u-overlay/u-overlay"
:
"node-modules/uview-ui/components/u-overlay/u-overlay"
,
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
:
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
,
"node-modules/uview-ui/components/u-transition/u-transition"
:
"node-modules/uview-ui/components/u-transition/u-transition"
}[
chunkId
]
||
chunkId
)
+
".wxss"
;
/******/
var
href
=
""
+
({
"node-modules/uview-ui/components/u-empty/u-empty"
:
"node-modules/uview-ui/components/u-empty/u-empty"
,
"node-modules/uview-ui/components/u-
navbar/u-navbar"
:
"node-modules/uview-ui/components/u-navbar/u-navbar"
,
"node-modules/uview-ui/components/u-rate/u-rate"
:
"node-modules/uview-ui/components/u-rate/u-rate"
,
"node-modules/uview-ui/components/u-search/u-search"
:
"node-modules/uview-ui/components/u-search/u-search"
,
"node-modules/uview-ui/components/u-sticky/u-sticky"
:
"node-modules/uview-ui/components/u-sticky/u-sticky"
,
"node-modules/uview-ui/components/u-tabs/u-tabs"
:
"node-modules/uview-ui/components/u-tabs/u-tabs"
,
"components/custom-waterfalls-flow/custom-waterfalls-flow"
:
"components/custom-waterfalls-flow/custom-waterfalls-flow"
,
"node-modules/uview-ui/components/u-icon/u-icon"
:
"node-modules/uview-ui/components/u-icon/u-icon"
,
"node-modules/uview-ui/components/u-modal/u-modal"
:
"node-modules/uview-ui/components/u-modal/u-modal"
,
"node-modules/uview-ui/components/u--textarea/u--textarea"
:
"node-modules/uview-ui/components/u--textarea/u--textarea"
,
"node-modules/uview-ui/components/u-divider/u-divider"
:
"node-modules/uview-ui/components/u-divider/u-divider"
,
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
:
"node-modules/uview-ui/components/u-status-bar/u-status-bar"
,
"node-modules/uview-ui/components/u-badge/u-badge"
:
"node-modules/uview-ui/components/u-badge/u-badge"
,
"node-modules/uview-ui/components/u-line/u-line"
:
"node-modules/uview-ui/components/u-line/u-line"
,
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
:
"node-modules/uview-ui/components/u-loading-icon/u-loading-icon"
,
"node-modules/uview-ui/components/u-popup/u-popup"
:
"node-modules/uview-ui/components/u-popup/u-popup
"
,
"node-modules/uview-ui/components/u-textarea/u-textarea"
:
"node-modules/uview-ui/components/u-textarea/u-textarea"
,
"node-modules/uview-ui/components/u-overlay/u-overlay"
:
"node-modules/uview-ui/components/u-overlay/u-overlay"
,
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
:
"node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
,
"node-modules/uview-ui/components/u-transition/u-transition"
:
"node-modules/uview-ui/components/u-transition/u-transition"
}[
chunkId
]
||
chunkId
)
+
".wxss"
;
/******/
var
fullhref
=
__webpack_require__
.
p
+
href
;
/******/
var
existingLinkTags
=
document
.
getElementsByTagName
(
"link"
);
/******/
for
(
var
i
=
0
;
i
<
existingLinkTags
.
length
;
i
++
)
{
...
...
unpackage/dist/dev/mp-weixin/pages/index/detail.js
查看文件 @
cc04c13
...
...
@@ -183,7 +183,7 @@ __webpack_require__.r(__webpack_exports__);
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
void
0
;
var
_regenerator
=
_interopRequireDefault
(
__webpack_require__
(
/*! ./node_modules/@babel/runtime/regenerator */
34
));
/* WEBPACK VAR INJECTION */
(
function
(
uni
)
{
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
void
0
;
var
_regenerator
=
_interopRequireDefault
(
__webpack_require__
(
/*! ./node_modules/@babel/runtime/regenerator */
34
));
...
...
@@ -350,7 +350,13 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
// 收藏数量
cangNum
:
0
,
// 评论数据
pingList
:
[]
};
pingList
:
[],
// 一共多少条评论
total
:
0
,
// 最后一页
lastPage
:
0
,
// 当前页
curPage
:
1
};
},
onLoad
:
function
onLoad
(
options
)
{
...
...
@@ -360,6 +366,11 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
this
.
getCommentList
();
// this.userInfo = JSON.parse(options.userInfo)
},
onReachBottom
:
function
onReachBottom
()
{
if
(
this
.
curPage
==
this
.
lastPage
)
return
uni
.
showToast
({
title
:
'没有更多回复了~'
,
icon
:
'none'
});
this
.
curPage
+=
1
;
this
.
getCommentList
();
},
methods
:
{
// 切换轮播图
changeSwiperHandler
:
function
changeSwiperHandler
(
e
)
{
...
...
@@ -380,6 +391,8 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
_this
.
userFavorite_cang
=
res
.
data
.
userFavorite_cang
;
_this
.
zanNum
=
res
.
data
.
favorite
.
like_num
;
_this
.
cangNum
=
res
.
data
.
favorite
.
collection_num
;
case
11
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();
},
// 筛选排序
...
...
@@ -394,12 +407,14 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
(
0
,
_api
.
getCommentList
)({
id
:
_this2
.
itemId
,
// integer 是 论坛id
order
:
_this2
.
order
,
// integer 是 排序 0:时间,1:热度
page
:
1
,
// integer 是 页码
rows
:
10
// integer 是 条数
page
:
_this2
.
curPage
||
1
,
// integer 是 页码
rows
:
2
// integer 是 条数
}));
case
2
:
res
=
_context2
.
sent
;
console
.
log
(
res
);
_this2
.
pingList
=
res
.
data
.
data
;
case
5
:
case
"end"
:
return
_context2
.
stop
();}}},
_callee2
);}))();
console
.
log
(
res
,
'1122'
);
_this2
.
lastPage
=
res
.
data
.
last_page
;
_this2
.
total
=
res
.
data
.
total
;
_this2
.
pingList
=
_this2
.
pingList
.
concat
(
res
.
data
.
data
);
case
7
:
case
"end"
:
return
_context2
.
stop
();}}},
_callee2
);}))();
},
// 详情点赞收藏
...
...
@@ -461,6 +476,7 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
console
.
log
(
_context4
.
t0
);
case
13
:
case
"end"
:
return
_context4
.
stop
();}}},
_callee4
,
null
,
[[
1
,
10
]]);}))();
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
/***/
}),
...
...
unpackage/dist/dev/mp-weixin/pages/index/detail.wxml
查看文件 @
cc04c13
<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
<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">{{"共"+(total||'0')+"条评论"}}</view><image style="width:32rpx;height:32rpx;" src="/static/toggle.png" mode="scaleToFill" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block></view><block wx:for="{{$root.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:120rpx;"></view></view>
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/pages/index/list.js
查看文件 @
cc04c13
...
...
@@ -304,7 +304,7 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
console
.
log
(
'到底了'
);
if
(
this
.
curPage
===
this
.
last_page
)
{
uni
.
showToast
({
title
:
'没有更多数据了'
,
title
:
'没有更多数据了
~
'
,
icon
:
'none'
,
mask
:
true
});
...
...
@@ -321,7 +321,7 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
keywords
:
val
||
''
,
// string 否 关键词
order
:
_this2
.
order
,
// string 是 排序,1:评论,0:时间
page
:
_this2
.
curPage
,
// integer 是 页码
rows
:
13
// integer 是 条数
rows
:
6
// integer 是 条数
}));
case
2
:
_yield$_getList
=
_context2
.
sent
;
data
=
_yield$_getList
.
data
;
console
.
log
(
data
);
if
(
data
.
data
.
length
==
0
)
{
...
...
@@ -329,11 +329,12 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
}
else
{
_this2
.
searchState
=
1
;
_this2
.
last_page
=
data
.
last_page
;
// this.list = this.list.concat(data.data)
_this2
.
list2
=
data
.
data
;
_this2
.
list2
.
forEach
(
function
(
item
,
index
)
{
item
.
image
=
JSON
.
parse
(
data
.
data
[
index
].
file
).
imgList
[
0
];
});
data
.
data
.
forEach
(
function
(
it
)
{
return
it
.
image
=
JSON
.
parse
(
it
.
file
).
cover
;});
_this2
.
list2
=
_this2
.
list2
.
concat
(
data
.
data
);
// this.list2 = data.data
// this.list2.forEach((item, index) => {
// item.image = JSON.parse(data.data[index].file).imgList[0]
// })
}
case
6
:
case
"end"
:
return
_context2
.
stop
();}}},
_callee2
);}))();
},
...
...
@@ -349,6 +350,7 @@ var _api = __webpack_require__(/*! @/api */ 142);function _interopRequireDefault
// 切换tabs
toggleTabsHandler
:
function
toggleTabsHandler
(
e
)
{
this
.
list2
=
[];
this
.
curPage
=
1
;
this
.
goodlistId
=
e
.
id
;
this
.
getList
();
},
...
...
请
注册
或
登录
后发表评论