3.27(优化
This commit is contained in:
4
main.js
4
main.js
@@ -5,12 +5,12 @@ import plugins from './plugins' // plugins
|
||||
import util from 'utils/util'
|
||||
import './permission' // permission
|
||||
import uView from '@/uni_modules/uview-ui'
|
||||
// import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
|
||||
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
|
||||
import {toast, showConfirm} from '@/utils/common.js'
|
||||
|
||||
import _ from 'lodash';
|
||||
Vue.prototype.$ld = _ ;
|
||||
// Vue.mixin(ZPMixin)
|
||||
Vue.mixin(ZPMixin)
|
||||
Vue.use(uView)
|
||||
|
||||
Vue.use(plugins)
|
||||
|
||||
288
manifest.json
288
manifest.json
@@ -1,145 +1,145 @@
|
||||
{
|
||||
"name": "滴友之家",
|
||||
"appid": "__UNI__F2BE74F",
|
||||
"description": "",
|
||||
"versionName": "1.1.2",
|
||||
"versionCode": 112,
|
||||
"transformPx": false,
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueCompiler": "uni-app",
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
"modules": {
|
||||
"Camera": {},
|
||||
"Payment": {},
|
||||
"Contacts": {},
|
||||
"Barcode": {},
|
||||
"Geolocation": {},
|
||||
"VideoPlayer": {},
|
||||
"Share": {}
|
||||
},
|
||||
"distribute": {
|
||||
"android": {
|
||||
"permissions": [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>"
|
||||
],
|
||||
"abiFilters": ["arm64-v8a", "x86"]
|
||||
},
|
||||
"ios": {
|
||||
"dSYMs": false,
|
||||
"privacyDescription": {
|
||||
"NSPhotoLibraryUsageDescription": "上传照片,头像等",
|
||||
"NSPhotoLibraryAddUsageDescription": "保存邀请码",
|
||||
"NSCameraUsageDescription": "拍照,录视频等",
|
||||
"NSLocationWhenInUseUsageDescription": "获取离自己最近的店铺",
|
||||
"NSLocationAlwaysAndWhenInUseUsageDescription": "获取离自己最近的店铺",
|
||||
"NSContactsUsageDescription": "拨打电话给商家"
|
||||
}
|
||||
},
|
||||
"sdkConfigs": {
|
||||
"ad": {},
|
||||
"payment": {
|
||||
"alipay": {
|
||||
"__platform__": ["ios", "android"]
|
||||
}
|
||||
},
|
||||
"share": {
|
||||
"weixin": {
|
||||
"appid": "wx4aebc21c2e0b4858",
|
||||
"UniversalLinks": "https://wxapp.diyouzhijia.com/universal/apple-app-site-association.txt/"
|
||||
}
|
||||
},
|
||||
"geolocation": {
|
||||
"system": {
|
||||
"__platform__": ["ios", "android"]
|
||||
}
|
||||
},
|
||||
"push": {},
|
||||
"maps": {}
|
||||
},
|
||||
"splashscreen": {
|
||||
"androidStyle": "common"
|
||||
},
|
||||
"icons": {
|
||||
"android": {
|
||||
"hdpi": "unpackage/res/icons/72x72.png",
|
||||
"xhdpi": "unpackage/res/icons/96x96.png",
|
||||
"xxhdpi": "unpackage/res/icons/144x144.png",
|
||||
"xxxhdpi": "unpackage/res/icons/192x192.png"
|
||||
},
|
||||
"ios": {
|
||||
"appstore": "unpackage/res/icons/1024x1024.png",
|
||||
"ipad": {
|
||||
"app": "unpackage/res/icons/76x76.png",
|
||||
"app@2x": "unpackage/res/icons/152x152.png",
|
||||
"notification": "unpackage/res/icons/20x20.png",
|
||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
||||
"proapp@2x": "unpackage/res/icons/167x167.png",
|
||||
"settings": "unpackage/res/icons/29x29.png",
|
||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
||||
"spotlight": "unpackage/res/icons/40x40.png",
|
||||
"spotlight@2x": "unpackage/res/icons/80x80.png"
|
||||
},
|
||||
"iphone": {
|
||||
"app@2x": "unpackage/res/icons/120x120.png",
|
||||
"app@3x": "unpackage/res/icons/180x180.png",
|
||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
||||
"notification@3x": "unpackage/res/icons/60x60.png",
|
||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
||||
"settings@3x": "unpackage/res/icons/87x87.png",
|
||||
"spotlight@2x": "unpackage/res/icons/80x80.png",
|
||||
"spotlight@3x": "unpackage/res/icons/120x120.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"quickapp": {},
|
||||
"mp-weixin": {
|
||||
"appid": "wx67c3ee9398603438",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": false,
|
||||
"minified": true,
|
||||
"postcss": true
|
||||
},
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
},
|
||||
"usingComponents": true
|
||||
},
|
||||
"vueVersion": "2",
|
||||
"h5": {
|
||||
"template": "static/index.html",
|
||||
"devServer": {
|
||||
"port": 9090,
|
||||
"https": false
|
||||
},
|
||||
"title": "RuoYi-App",
|
||||
"router": {
|
||||
"mode": "hash",
|
||||
"base": "./"
|
||||
}
|
||||
}
|
||||
}
|
||||
"name" : "滴友之家",
|
||||
"appid" : "__UNI__F2BE74F",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.3",
|
||||
"versionCode" : 113,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueCompiler" : "uni-app",
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
"modules" : {
|
||||
"Camera" : {},
|
||||
"Payment" : {},
|
||||
"Contacts" : {},
|
||||
"Barcode" : {},
|
||||
"Geolocation" : {},
|
||||
"VideoPlayer" : {},
|
||||
"Share" : {}
|
||||
},
|
||||
"distribute" : {
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>"
|
||||
],
|
||||
"abiFilters" : [ "arm64-v8a", "x86" ]
|
||||
},
|
||||
"ios" : {
|
||||
"dSYMs" : false,
|
||||
"privacyDescription" : {
|
||||
"NSPhotoLibraryUsageDescription" : "上传照片,头像等",
|
||||
"NSPhotoLibraryAddUsageDescription" : "保存邀请码",
|
||||
"NSCameraUsageDescription" : "拍照,录视频等",
|
||||
"NSLocationWhenInUseUsageDescription" : "获取离自己最近的店铺",
|
||||
"NSLocationAlwaysAndWhenInUseUsageDescription" : "获取离自己最近的店铺",
|
||||
"NSContactsUsageDescription" : "拨打电话给商家"
|
||||
}
|
||||
},
|
||||
"sdkConfigs" : {
|
||||
"ad" : {},
|
||||
"payment" : {
|
||||
"alipay" : {
|
||||
"__platform__" : [ "ios", "android" ]
|
||||
}
|
||||
},
|
||||
"share" : {
|
||||
"weixin" : {
|
||||
"appid" : "wx4aebc21c2e0b4858",
|
||||
"UniversalLinks" : "https://wxapp.diyouzhijia.com/universal/apple-app-site-association.txt/"
|
||||
}
|
||||
},
|
||||
"geolocation" : {
|
||||
"system" : {
|
||||
"__platform__" : [ "ios", "android" ]
|
||||
}
|
||||
},
|
||||
"push" : {},
|
||||
"maps" : {}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"androidStyle" : "common"
|
||||
},
|
||||
"icons" : {
|
||||
"android" : {
|
||||
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||
},
|
||||
"ios" : {
|
||||
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||
"ipad" : {
|
||||
"app" : "unpackage/res/icons/76x76.png",
|
||||
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||
"notification" : "unpackage/res/icons/20x20.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||
"settings" : "unpackage/res/icons/29x29.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||
},
|
||||
"iphone" : {
|
||||
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"quickapp" : {},
|
||||
"mp-weixin" : {
|
||||
"appid" : "wx67c3ee9398603438",
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"es6" : false,
|
||||
"minified" : true,
|
||||
"postcss" : true
|
||||
},
|
||||
"optimization" : {
|
||||
"subPackages" : true
|
||||
},
|
||||
"usingComponents" : true
|
||||
},
|
||||
"vueVersion" : "2",
|
||||
"h5" : {
|
||||
"template" : "static/index.html",
|
||||
"devServer" : {
|
||||
"port" : 9090,
|
||||
"https" : false
|
||||
},
|
||||
"title" : "RuoYi-App",
|
||||
"router" : {
|
||||
"mode" : "hash",
|
||||
"base" : "./"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1047,10 +1047,7 @@
|
||||
{
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"bounce": "none"
|
||||
}
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path" : "pages/driver/index/consult_detail",
|
||||
|
||||
@@ -872,7 +872,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style scoped>
|
||||
.send-image {
|
||||
position: relative;
|
||||
width: 150rpx;
|
||||
|
||||
@@ -1,227 +1,213 @@
|
||||
<template>
|
||||
<view class="detail">
|
||||
<z-paging use-page-scroll :refresher-enabled="false" :fixed="false" ref="paging" v-model="replyListAll"
|
||||
@query="queryList" :hide-empty-view="true" :auto-scroll-to-top-when-reload="false">
|
||||
<!-- class="nav" -->
|
||||
<view slot="top">
|
||||
<u-navbar safeAreaInsetTop placeholder>
|
||||
<view class="u-nav-slot" slot="left">
|
||||
<view class="posi_l" @click="goBack">
|
||||
<u-icon name="arrow-left" size="24" color="#000000"></u-icon>
|
||||
<!-- 判断 -->
|
||||
<view class="img_name" v-if='detailObj.isConcerned'>
|
||||
<image :src="detailObj.authorAvatar"
|
||||
style="width: 48rpx;height: 48rpx; border-radius: 40rpx 40rpx 40rpx 40rpx"></image>
|
||||
<text class="nav_name"> {{ detailObj.authorName }} </text>
|
||||
</view>
|
||||
<z-paging :hide-empty-view="true" :auto-scroll-to-top-when-reload="false" ref="paging" v-model="replyListAll" :safe-area-inset-bottom="true"
|
||||
@query="queryList">
|
||||
<!-- <view class="detail"> -->
|
||||
<view slot="top">
|
||||
<u-navbar safeAreaInsetTop placeholder>
|
||||
<view class="u-nav-slot" slot="left">
|
||||
<view class="posi_l" @click="goBack">
|
||||
<u-icon name="arrow-left" size="24" color="#000000"></u-icon>
|
||||
<!-- 判断 -->
|
||||
<view class="img_name" v-if='detailObj.isConcerned'>
|
||||
<image :src="detailObj.authorAvatar"
|
||||
style="width: 48rpx;height: 48rpx; border-radius: 40rpx 40rpx 40rpx 40rpx"></image>
|
||||
<text class="nav_name"> {{ detailObj.authorName }} </text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" slot="right">
|
||||
<view class="posi_r">
|
||||
<view class="r_txt_s" @click="addLike" v-if='detailObj.isConcerned'>
|
||||
<text class="r_txt_s-t">已关注</text>
|
||||
</view>
|
||||
<image class="r_img" @click="dropBtn" src="@/static/images/app/icon/drop.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
</u-navbar>
|
||||
</view>
|
||||
<!-- 帖子内容 -->
|
||||
<view class="content">
|
||||
<view class="con_up">
|
||||
<view class="up_l">
|
||||
<image class="l_img" :src="detailObj.authorAvatar" mode=""></image>
|
||||
<view class="l_nickname">
|
||||
<text class="nickname"> {{ detailObj.authorName }} </text>
|
||||
<text class="time"> {{ detailObj.createTime }} </text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="up_r" @click="addLike" v-if="!detailObj.isConcerned">
|
||||
<image class="r_img_1" src="@/static/images/app/icon/add.png" mode=""></image>
|
||||
<text class="r_txt"> 关注 </text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- con_txt_topic con_txt_topic_image questions-and-answers-text-color-->
|
||||
<view v-if="type==2">
|
||||
<view class="con_txt_topic">
|
||||
<image class="con_txt_topic_image" style="" src="@/static/images/app/mine/ask.png" mode="">
|
||||
<view class="" slot="right">
|
||||
<view class="posi_r">
|
||||
<view class="r_txt_s" @click="addLike" v-if='detailObj.isConcerned'>
|
||||
<text class="r_txt_s-t">已关注</text>
|
||||
</view>
|
||||
<image class="r_img" @click="dropBtn" src="@/static/images/app/icon/drop.png" mode="">
|
||||
</image>
|
||||
<text v-for="topic in detailObj.topicList" :key="topic.id"
|
||||
class="questions-and-answers-text-color">{{`#${topic.name}#`}} </text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="con_txt_cont">{{ detailObj.content }}</text>
|
||||
<video v-if="detailObj.video" :src="detailObj.video" initial-time="1s" :poster="detailObj.cover"
|
||||
class="video-box" :style="{width:detailObj.wide,height:detailObj.high}">
|
||||
<!-- </cover-view> -->
|
||||
</video>
|
||||
<view class="image-list-box " v-if="detaImage.length">
|
||||
<view v-if="detaImage.length==1">
|
||||
<view v-for="(itemImage,imageIndex) in detaImage" :key="imageIndex">
|
||||
<image class="image-one" :src="itemImage" mode="widthFix"
|
||||
@click="examineFn(detaImage,imageIndex)">
|
||||
</image>
|
||||
</view>
|
||||
</u-navbar>
|
||||
</view>
|
||||
<!-- 帖子内容 -->
|
||||
<cell class="content">
|
||||
<view class="con_up">
|
||||
<view class="up_l">
|
||||
<image class="l_img" :src="detailObj.authorAvatar" mode=""></image>
|
||||
<view class="l_nickname">
|
||||
<text class="nickname"> {{ detailObj.authorName }} </text>
|
||||
<text class="time"> {{ detailObj.createTime }} </text>
|
||||
</view>
|
||||
<!-- <view v-if="detaImage.length==2" style="width: 100%;" class="flex justify-between">
|
||||
</view>
|
||||
<view class="up_r" @click="addLike" v-if="!detailObj.isConcerned">
|
||||
<image class="r_img_1" src="@/static/images/app/icon/add.png" mode=""></image>
|
||||
<text class="r_txt"> 关注 </text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- con_txt_topic con_txt_topic_image questions-and-answers-text-color-->
|
||||
<view v-if="type==2">
|
||||
<view class="con_txt_topic">
|
||||
<image class="con_txt_topic_image" style="" src="@/static/images/app/mine/ask.png" mode="">
|
||||
</image>
|
||||
<text v-for="topic in detailObj.topicList" :key="topic.id"
|
||||
class="questions-and-answers-text-color">{{`#${topic.name}#`}} </text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="con_txt_cont">{{ detailObj.content }}</text>
|
||||
<video v-if="detailObj.video" :src="detailObj.video" initial-time="1s" :poster="detailObj.cover"
|
||||
class="video-box" :style="{width:detailObj.wide,height:detailObj.high}">
|
||||
<!-- </cover-view> -->
|
||||
</video>
|
||||
<view class="image-list-box " v-if="detaImage.length">
|
||||
<view v-if="detaImage.length==1">
|
||||
<view v-for="(itemImage,imageIndex) in detaImage" :key="imageIndex">
|
||||
<image class="image-one" :src="itemImage" mode="widthFix"
|
||||
@click="examineFn(detaImage,imageIndex)">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="detaImage.length==2" style="width: 100%;" class="flex justify-between">
|
||||
<view v-for="(itemImage,imageIndex) in detaImage" :key="imageIndex">
|
||||
<image class="image-two" :src="itemImage" mode="cover" @click="examineFn(detaImage,imageIndex)">
|
||||
</image>
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="detaImage.length>1"
|
||||
style="display: flex;flex-wrap: wrap;justify-content: space-between;width: 686rpx;flex-direction: row;"
|
||||
class="">
|
||||
<view class="image-three" v-for="(itemImage,imageIndex) in detaImage" :key="imageIndex">
|
||||
<image class="image-three-list" :src="itemImage" mode="aspectFill"
|
||||
@click="examineFn(detaImage,imageIndex)"></image>
|
||||
</view>
|
||||
<view v-for="(a,b) in (detaImage.length%3-1)<0?0:(detaImage.length%3-1)">
|
||||
<view class="image-three"></view>
|
||||
</view>
|
||||
<view v-if="detaImage.length>1"
|
||||
style="display: flex;flex-wrap: wrap;justify-content: space-between;width: 686rpx;flex-direction: row;"
|
||||
class="">
|
||||
<view class="image-three" v-for="(itemImage,imageIndex) in detaImage" :key="imageIndex">
|
||||
<image class="image-three-list" :src="itemImage" mode="aspectFill"
|
||||
@click="examineFn(detaImage,imageIndex)"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="con_foot">
|
||||
<text class="foot_l"> IP {{ detailObj.city || "未知" }} </text>
|
||||
<view class="foot_r">
|
||||
<u-icon name="eye" size="19" color="#999999"></u-icon>
|
||||
<text class="r_num"> {{ detailObj.views || '5888' }} 浏览量 </text>
|
||||
<view v-for="(a,b) in (detaImage.length%3-1)<0?0:(detaImage.length%3-1)">
|
||||
<view class="image-three"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 评论 -->
|
||||
<view class="all_comment">
|
||||
<view class="com_title">
|
||||
<view class="tit_l">
|
||||
<view class="" style="display: flex;flex-direction: row;">
|
||||
<text :class="[showAll?'l_click':'l_l']" @click="allLook(1)"> 全部 </text>
|
||||
<!-- <text :class="[showAll?'l_click':'l_l']"
|
||||
v-if="replyAllTotal&&showAll">({{ replyAllTotal }})</text> -->
|
||||
</view>
|
||||
<view style="display: flex;flex-direction: row;">
|
||||
<text :class="[showLook?'r_click':'l_r']" @click="allLook(2)"> 只看楼主 </text>
|
||||
<!-- <text :class="[showLook?'l_click':'l_r']"
|
||||
v-if="replyAllTotal&&showLook">({{ replyAllTotal }})</text> -->
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-tabs :list="list" :scrollable='false' lineWidth="0" lineColor="#fff"
|
||||
:activeStyle="{color: '#111111'}" :inactiveStyle="{color: '#999999'}"
|
||||
itemStyle="height: 34px; font-size: 28rpx;" @click="tabsBtn">
|
||||
</u-tabs>
|
||||
<view class="con_foot">
|
||||
<text class="foot_l"> IP {{ detailObj.city || "未知" }} </text>
|
||||
<view class="foot_r">
|
||||
<u-icon name="eye" size="19" color="#999999"></u-icon>
|
||||
<text class="r_num"> {{ detailObj.views || '5888' }} 浏览量 </text>
|
||||
</view>
|
||||
<view class="com_content" v-for="item in replyListAll" :key="item.id">
|
||||
<view class="con_title">
|
||||
<view class="title_l">
|
||||
<image :src="item.avatar" class="imgRadius"></image>
|
||||
<text class="tit_name_1" style="font-size: 28rpx;"> {{ item.nickname }} </text>
|
||||
</view>
|
||||
<image @click="moreBtn(item,0)" src="@/static/images/app/icon/more.png"
|
||||
style="width: 32rpx;height: 32rpx;"></image>
|
||||
</view>
|
||||
</cell>
|
||||
<!-- 评论 -->
|
||||
<cell class="all_comment">
|
||||
<cell class="com_title">
|
||||
<view class="tit_l">
|
||||
<view class="" style="display: flex;flex-direction: row;">
|
||||
<text :class="[showAll?'l_click':'l_l']" @click="allLook(1)"> 全部 </text>
|
||||
</view>
|
||||
<text class="con_txt" @click="replyToComments(item,1)"> {{ item.content }} </text>
|
||||
<image @click.stop="examineFn1(item.image)" v-if="item.image" :src="item.image"
|
||||
class="comment-image"></image>
|
||||
<view class="con_info">
|
||||
<text class="info_l"> {{ item.diffDays }} {{'未知'}} </text>
|
||||
<view class="info_r">
|
||||
<view @click.stop="likeNo(item)">
|
||||
<image v-if="!item.isLike" src="@/static/images/app/icon/like_no.png" class="imgSize">
|
||||
</image>
|
||||
<image v-if="item.isLike" src="@/static/images/app/icon/like.png" class="imgSize">
|
||||
</image>
|
||||
<view style="display: flex;flex-direction: row;">
|
||||
<text :class="[showLook?'r_click':'l_r']" @click="allLook(2)"> 只看楼主 </text>
|
||||
</view>
|
||||
</view>
|
||||
<u-tabs :list="list" :scrollable='false' lineWidth="0" lineColor="#fff"
|
||||
:activeStyle="{color: '#111111'}" :inactiveStyle="{color: '#999999'}"
|
||||
itemStyle="height: 34px; font-size: 28rpx;" @click="tabsBtn">
|
||||
</u-tabs>
|
||||
</cell>
|
||||
</cell>
|
||||
<cell class="com_content" v-for="item in replyListAll" :key="item.id">
|
||||
<view class="con_title">
|
||||
<view class="title_l">
|
||||
<image :src="item.avatar" class="imgRadius"></image>
|
||||
<text class="tit_name_1" style="font-size: 28rpx;"> {{ item.nickname }} </text>
|
||||
</view>
|
||||
<image @click="moreBtn(item,0)" src="@/static/images/app/icon/more.png"
|
||||
style="width: 32rpx;height: 32rpx;"></image>
|
||||
</view>
|
||||
<text class="con_txt" @click="replyToComments(item,1)"> {{ item.content }} </text>
|
||||
<image @click.stop="examineFn1(item.image)" v-if="item.image" :src="item.image" class="comment-image"
|
||||
mode="aspectFill"></image>
|
||||
<view class="con_info">
|
||||
<text class="info_l"> {{ item.diffDays }} {{'未知'}} </text>
|
||||
<view class="info_r">
|
||||
<view @click.stop="likeNo(item)">
|
||||
<image v-if="!item.isLike" src="@/static/images/app/icon/like_no.png" class="imgSize">
|
||||
</image>
|
||||
<image v-if="item.isLike" src="@/static/images/app/icon/like.png" class="imgSize">
|
||||
</image>
|
||||
</view>
|
||||
<text class="info_num"> {{ item.countStart }} </text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="con_list" v-if="item.replyList.length">
|
||||
<view v-for="(el,elIndex) in item.replyList" :key="el.id">
|
||||
<view v-if="elIndex<2" class="item_view">
|
||||
<view class="view_up">
|
||||
<text class="up_name"> {{ el.nickname }} </text>
|
||||
<view v-if='el.uid===detailObj.authorId'>
|
||||
<image src="@/static/images/app/icon/author.png" style="width: 76rpx;height: 38rpx;" />
|
||||
</view>
|
||||
<view v-if='el.uid==myInfo.id && el.uid!==detailObj.authorId'>
|
||||
<image src="@/static/images/app/icon/my.png" style="width: 54rpx;height: 38rpx;" />
|
||||
</view>
|
||||
<text class="info_num"> {{ item.countStart }} </text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="con_list" v-if="item.replyList.length">
|
||||
<view v-for="(el,elIndex) in item.replyList" :key="el.id">
|
||||
<view v-if="elIndex<2" class="item_view">
|
||||
<view class="view_up">
|
||||
<text class="up_name"> {{ el.nickname }} </text>
|
||||
<view v-if='el.uid===detailObj.authorId'>
|
||||
<image src="@/static/images/app/icon/author.png"
|
||||
style="width: 76rpx;height: 38rpx;" />
|
||||
</view>
|
||||
<view v-if='el.uid==myInfo.id && el.uid!==detailObj.authorId'>
|
||||
<image src="@/static/images/app/icon/my.png"
|
||||
style="width: 54rpx;height: 38rpx;" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="view_down">
|
||||
<text class="down_l"> {{ el.content }} </text>
|
||||
<image class="comment-image" @click.stop="examineFn1(el.image)" v-if="el.image"
|
||||
:src="el.image"></image>
|
||||
<view class="down_r" @click.stop="likeNo(el)">
|
||||
<image v-if="!el.isLike" src="@/static/images/app/icon/like_no.png"
|
||||
class="imgSize"></image>
|
||||
<image v-if="el.isLike" src="@/static/images/app/icon/like.png" class="imgSize">
|
||||
</image>
|
||||
<text class="down_num"> {{el.countStart}} </text>
|
||||
</view>
|
||||
<view class="view_down">
|
||||
<view style="width: 638rpx;">
|
||||
<text class="down_l" style="white-space: nowrap;"> 11{{ el.content }} </text>
|
||||
<image class="comment-image" @click.stop="examineFn1(el.image)" v-if="el.image"
|
||||
mode="aspectFill" :src="el.image"></image>
|
||||
</view>
|
||||
<view class="con_info">
|
||||
<text class="info_l"> {{ el.diffDays }} {{'未知'}} </text>
|
||||
<view class="down_r" @click.stop="likeNo(el)">
|
||||
<image v-if="!el.isLike" src="@/static/images/app/icon/like_no.png" class="imgSize">
|
||||
</image>
|
||||
<image v-if="el.isLike" src="@/static/images/app/icon/like.png" class="imgSize">
|
||||
</image>
|
||||
<text class="down_num"> {{el.countStart}} </text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list_foot" @click="openShowComment(item)" v-if="item.replyList.length>2">
|
||||
<text class="foot_num"> 共 {{item.replyList.length || '--'}} 条回复 </text>
|
||||
<u-icon name="arrow-right" size="12" color="#13AFA8 "></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="con_xian"></view>
|
||||
</view>
|
||||
|
||||
<!-- 空数据 -->
|
||||
<view class="replyList-none" v-if="!replyListAll.length">
|
||||
<view class="replyList-none-cont" style="width: 300rpx;">
|
||||
<image class="replyList-none-image" src="@/static/images/app/config/nobody.png" mode=""></image>
|
||||
<text class="replyList-none-text">暂无评论</text>
|
||||
|
||||
</view>
|
||||
<view class="list_foot" @click="openShowComment(item)" v-if="item.replyList.length>2">
|
||||
<text class="foot_num"> 共 {{item.replyList.length || '--'}} 条回复 </text>
|
||||
<u-icon name="arrow-right" size="12" color="#13AFA8 "></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 200rpx;"></view>
|
||||
<!-- 底部输入框 -->
|
||||
<view slot="bottom" class="bottom_up">
|
||||
<view class="bottom_l" @click="openReply">
|
||||
<text class="bottom_l_text">
|
||||
{{placeholder}}
|
||||
</text>
|
||||
<!-- <view @click.stop="openPinglun">
|
||||
<u--textarea autoHeight fixed :showConfirmBar="true" border="none" confirmHold
|
||||
:placeholder="placeholder" maxlength="100" :cursor-spacing="20"
|
||||
v-model="replyAddData.content" @linechange="linechange" disabled
|
||||
:customStyle="'background-color: #f2f0f4;'" @confirm='confirm'
|
||||
@blur="confirm"></u--textarea>
|
||||
</view> -->
|
||||
<view class="con_xian"></view>
|
||||
</cell>
|
||||
<!-- 空数据 -->
|
||||
<cell class="replyList-none" v-if="!replyListAll.length">
|
||||
<view class="replyList-none-cont" style="width: 300rpx;">
|
||||
<image class="replyList-none-image" src="@/static/images/app/config/nobody.png" mode=""></image>
|
||||
<text class="replyList-none-text">暂无评论</text>
|
||||
</view>
|
||||
</cell>
|
||||
<!-- 底部输入框 -->
|
||||
<view slot="bottom" class="bottom_up">
|
||||
<view class="bottom_l" @click="openReply">
|
||||
<text class="bottom_l_text">
|
||||
{{placeholder}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="bottom_r">
|
||||
<view class="r_img_txt">
|
||||
<image src="@/static/images/app/icon/information.png" class="imgSize4" />
|
||||
<text class="txt_1"> {{detailObj.replyNum||0}} </text>
|
||||
</view>
|
||||
<view class="bottom_r">
|
||||
<view class="r_img_txt">
|
||||
<image src="@/static/images/app/icon/information.png" class="imgSize4" />
|
||||
<text class="txt_1"> {{detailObj.replyNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="collectBtn">
|
||||
<image v-if="!detailObj.userIsCollect" src="@/static/images/app/icon/xingxing.png"
|
||||
class="imgSize4">
|
||||
</image>
|
||||
<image v-if="detailObj.userIsCollect" src="@/static/images/app/icon/xingxing_end.png"
|
||||
class="imgSize4"></image>
|
||||
<text class="txt_1"> {{detailObj.collectNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="likeDetailBtn">
|
||||
<image v-if="!detailObj.userIsLike" src="@/static/images/app/icon/like_no.png" class="imgSize4">
|
||||
</image>
|
||||
<image v-if="detailObj.userIsLike" src="@/static/images/app/icon/like.png" class="imgSize4">
|
||||
</image>
|
||||
<text class="txt_1"> {{detailObj.likeNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="shareFn('WXSceneSession')">
|
||||
<image src="@/static/images/app/icon/share.png" class="imgSize4" />
|
||||
<text class="txt_1"> {{detailObj.shareNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="collectBtn">
|
||||
<image v-if="!detailObj.userIsCollect" src="@/static/images/app/icon/xingxing.png" class="imgSize4">
|
||||
</image>
|
||||
<image v-if="detailObj.userIsCollect" src="@/static/images/app/icon/xingxing_end.png"
|
||||
class="imgSize4"></image>
|
||||
<text class="txt_1"> {{detailObj.collectNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="likeDetailBtn">
|
||||
<image v-if="!detailObj.userIsLike" src="@/static/images/app/icon/like_no.png" class="imgSize4">
|
||||
</image>
|
||||
<image v-if="detailObj.userIsLike" src="@/static/images/app/icon/like.png" class="imgSize4">
|
||||
</image>
|
||||
<text class="txt_1"> {{detailObj.likeNum||0}} </text>
|
||||
</view>
|
||||
<view class="r_img_txt" @click="shareFn('WXSceneSession')">
|
||||
<image src="@/static/images/app/icon/share.png" class="imgSize4" />
|
||||
<text class="txt_1"> {{detailObj.shareNum||0}} </text>
|
||||
</view>
|
||||
</view>
|
||||
</z-paging>
|
||||
</view>
|
||||
<!-- </z-paging> -->
|
||||
<!-- drop的弹层 -->
|
||||
<u-popup :show="show" :round="10" mode="bottom" @close="show=false">
|
||||
<view class="popup_view">
|
||||
@@ -294,9 +280,12 @@
|
||||
<image @click="moreBtn(itemObj,1)" src="@/static/images/app/icon/more.png"
|
||||
style="width: 32rpx;height: 32rpx;"></image>
|
||||
</view>
|
||||
<text class="con_txt" @click="replyToComments(itemObj,1)"> {{ itemObj.content }} </text>
|
||||
<image @click.stop="examineFn1(itemObj.image)" v-if="itemObj.image" :src="itemObj.image"
|
||||
class="comment-image"></image>
|
||||
<view>
|
||||
<text class="con_txt" @click="replyToComments(itemObj,1)"> {{ itemObj.content }}
|
||||
</text>
|
||||
<image @click.stop="examineFn1(itemObj.image)" v-if="itemObj.image" :src="itemObj.image"
|
||||
mode="aspectFill" class="comment-image"></image>
|
||||
</view>
|
||||
<view class="con_info">
|
||||
<text class="info_l"> {{ itemObj.diffDays }} {{itemObj.ipLocation}} </text>
|
||||
<view class="info_r">
|
||||
@@ -323,12 +312,17 @@
|
||||
</view>
|
||||
<!-- 点击回复 ??? -->
|
||||
<view class="con_txt1" @click="replyToComments(ele,2)">
|
||||
<text class="txt_a">回复</text>
|
||||
<text class="txt_b">
|
||||
{{ele.reviewUid !==0 ? ele.reviewUserNickname : itemObj.nickname}} </text>
|
||||
<text class="txt_d"> : {{ ele.content }} </text>
|
||||
<image @click.stop="examineFn1(ele.image)" :src="ele.image"
|
||||
class="comment-image"></image>
|
||||
<view style="display: flex;flex-direction: row;">
|
||||
<text class="txt_a">回复</text>
|
||||
<text class="txt_b">
|
||||
{{ele.reviewUid !==0 ? ele.reviewUserNickname : itemObj.nickname}} :
|
||||
</text>
|
||||
</view>
|
||||
<view style="width: 500rpx;">
|
||||
<text class="txt_d">{{ ele.content }} </text>
|
||||
<image v-if="ele.image" @click.stop="examineFn1(ele.image)" :src="ele.image"
|
||||
mode="aspectFill" class="comment-image"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="con_info">
|
||||
<text class="info_l">{{ele.diffDays}} {{ele.ipLocation}} </text>
|
||||
@@ -367,7 +361,8 @@
|
||||
style="width: 48rpx;height: 48rpx;"></image>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP -->
|
||||
<image src="@/static/images/app/icon/pic.png" style="width: 48rpx;height: 48rpx;"></image>
|
||||
<image src="@/static/images/app/icon/pic.png" style="width: 48rpx;height: 48rpx;">
|
||||
</image>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view style="margin-left: 48rpx;" @click.stop="emojiShow = !emojiShow,more=false">
|
||||
@@ -376,7 +371,8 @@
|
||||
style="width: 48rpx;height: 48rpx;"></image>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP -->
|
||||
<image src="@/static/images/app/icon/smile.png" style="width: 48rpx;height: 48rpx;"></image>
|
||||
<image src="@/static/images/app/icon/smile.png" style="width: 48rpx;height: 48rpx;">
|
||||
</image>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -416,7 +412,8 @@
|
||||
</template>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
<!-- </view> -->
|
||||
</z-paging>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -615,6 +612,7 @@
|
||||
type: this.typeNum,
|
||||
sortType: this.sortType
|
||||
}).then(res => {
|
||||
console.log(res.data.list);
|
||||
res.data.list.forEach(item => {
|
||||
item.diffDays = this.formatTime(item.createTime)
|
||||
if (!item.replyList) {
|
||||
@@ -917,7 +915,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style scoped>
|
||||
.send-image {
|
||||
position: relative;
|
||||
width: 150rpx;
|
||||
@@ -944,8 +942,10 @@
|
||||
}
|
||||
|
||||
.comment-image {
|
||||
display: block;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
.imgSize {
|
||||
@@ -1122,8 +1122,6 @@
|
||||
}
|
||||
|
||||
.con_txt1 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 24rpx;
|
||||
width: 500rpx;
|
||||
}
|
||||
@@ -1179,6 +1177,7 @@
|
||||
|
||||
.con_xian {
|
||||
margin-top: 32rpx;
|
||||
margin-bottom: 32rpx;
|
||||
height: 0;
|
||||
border-bottom: 1rpx solid #666666;
|
||||
opacity: 0.1;
|
||||
@@ -1253,7 +1252,7 @@
|
||||
}
|
||||
|
||||
.all_comment {
|
||||
padding: 24rpx 32rpx;
|
||||
padding: 24rpx 32rpx 24rpx 24rpx;
|
||||
border-top: 1rpx solid #EDEDED;
|
||||
}
|
||||
|
||||
@@ -1320,7 +1319,9 @@
|
||||
}
|
||||
|
||||
.com_content {
|
||||
// border: 1px solid red;
|
||||
/* // border: 1px solid red; */
|
||||
/* width: 686rpx; */
|
||||
padding: 0 32rpx 0 32rpx;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
|
||||
@@ -1390,7 +1391,7 @@
|
||||
}
|
||||
|
||||
.con_list {
|
||||
// border: 1px solid blue;
|
||||
/* // border: 1px solid blue; */
|
||||
background: #F8F8F8;
|
||||
padding: 24rpx 24rpx 0 24rpx;
|
||||
margin-top: 24rpx;
|
||||
@@ -1404,8 +1405,6 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.up_name {
|
||||
@@ -1416,10 +1415,10 @@
|
||||
}
|
||||
|
||||
.view_down {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
/* display: flex; */
|
||||
/* flex-direction: row; */
|
||||
/* align-items: center; */
|
||||
/* justify-content: space-between; */
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
@@ -1607,8 +1606,6 @@
|
||||
.bottom_up {
|
||||
border-top: 1rpx solid #EDEDED;
|
||||
width: 750rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
padding: 30rpx 32rpx 15rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
<tabbar-driver current="/pages/driver/index/index"></tabbar-driver>
|
||||
</view>
|
||||
</z-paging>
|
||||
<view style="height: 200rpx;"></view>
|
||||
<!-- 视频播放控件 @play="handleVideoClick" @pause="currentVideoIndex = -1"-->
|
||||
<view class="video-flex">
|
||||
<video :src="currentVideo" :enable-progress-gesture="false" initial-time="1s" id="video1" ref="video1" :poster="currentCover"
|
||||
|
||||
Reference in New Issue
Block a user