This commit is contained in:
DL
2024-02-20 19:16:45 +08:00
parent 61857e1108
commit 1778b0289b
18 changed files with 1345 additions and 289 deletions

View File

@@ -93,6 +93,16 @@ export function plazaNoteAdd(data) {
data
})
}
/**
* 举报帖子
*/
export function reportAdd(data) {
return request({
url: '/api/front/user/report/add',
method: 'post',
data
})
}
/**
* 点赞帖子
*/

View File

@@ -235,3 +235,11 @@ export function getWalletInfo() {
'method': 'get',
})
}
//获取举报类型列表
export function categoryReportList() {
return request({
'url': '/api/front/community/report/category/list',
'method': 'get',
})
}

67
data/carShoptabs.js Normal file
View File

@@ -0,0 +1,67 @@
export const carRentelList = [{
name: '全部',
value: 1
}, {
name: '未提车',
value: 2
}, {
name: '租赁期',
value: 3
}, {
name: '已完成',
value: 4
}, {
name: '已到期',
value: 5
}]
export const carSellList = [{
name: '全部',
value: 1
}, {
name: '未提车',
value: 2
}, {
name: '已完成',
value: 4
}, {
name: '已取消',
value: 5
}]
export const reportTypeList = [{
name: '违法信息',
id: 1
}, {
name: '抄袭侵权',
id: 2
}, {
name: '违规营销',
id: 4
}, {
name: '不实信息',
id: 5
}, {
name: '人身攻击',
id: 6
}, {
name: '涉及未成年',
id: 7
}, {
name: '色情低俗',
id: 8
}, {
name: '引人不适',
id: 9
}, {
name: '有害信息',
id: 10
}, {
name: '谣言举报',
id: 11
}, {
name: '涉政谣言',
id: 12
}, {
name: '其他',
id: 13
}]

View File

@@ -347,6 +347,30 @@
"enablePullDownRefresh": false
}
},
{
"path" : "pages/repair/user/feedback/feedback",
"style" :
{
"navigationBarTitleText" : "意见反馈",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/repair/user/changeCall/changeCall",
"style" :
{
"navigationBarTitleText" : "账户设置",
"enablePullDownRefresh" : false,
"navigationStyle": "custom"
}
},
{
"path": "pages/mine/set/clear",
"style": {
"navigationBarTitleText": "清除缓存",
"enablePullDownRefresh": false
}
},
{
"path": "pages/mine/about_us/about_us",
"style": {
@@ -546,7 +570,8 @@
"style" :
{
"navigationBarTitleText" : "举报",
"enablePullDownRefresh" : false
"enablePullDownRefresh" : false,
"navigationStyle": "custom"
}
}, {
"path" : "pages/index/report_result",

View File

@@ -85,7 +85,7 @@
<view class="foot_l"> IP {{ detailObj.city || "未知" }} </view>
<view class="foot_r">
<u-icon name="eye" size="19" color="#999999"></u-icon>
<view class="r_num"> {{ detailObj.countView || '5888' }} 浏览量 </view>
<view class="r_num"> {{ detailObj.views || '5888' }} 浏览量 </view>
</view>
</view>
</view>
@@ -135,7 +135,8 @@
</view>
</view>
<view class="con_list" v-if="item.replyList">
<view class="item_view" v-for="el in miniReplyList" :key="el.id">
<view class="item_view" v-for="(el,elIndex) in item.replyList" :key="el.id">
<view v-if="elIndex<2">
<view class="view_up">
<view class="up_name"> {{ el.nickname }} </view>
<view v-if='el.uid===detailObj.authorId'>
@@ -169,6 +170,7 @@
<view class="down_num"> {{el.countStart}} </view>
</view>
</view>
</view>
</view>
<view class="list_foot" @click="openShowComment(item)" v-if="item.replyList.length>2">
<view class="foot_num"> {{item.replyList.length || '--'}} 条回复 </view>
@@ -234,7 +236,7 @@
<!-- #endif -->
<view class="txt"> {{detailObj.likeNum||0}} </view>
</view>
<view class="r_img_txt">
<view class="r_img_txt" @click="shareFn('WXSceneSession')">
<!-- #ifdef MP-WEIXIN -->
<image :src="`${config.aliyunOssUrl}/static/images/app/icon/share.png`" class="imgSize4"></image>
<!-- #endif -->
@@ -245,17 +247,12 @@
</view>
</view>
</view>
<!-- <view class="bottom">
<chatInputBar @sendSMS="sendSMS" @keyboardheightchange="keyboardheightchange" @gridItemTap="gridItemTap"
ref="chatInputBar" />
</view> -->
<!-- drop的弹层 -->
<u-popup :show="show" :round="10" mode="bottom" @close="show=false">
<view class="popup_view">
<view class="pop_up">
<view class="up_view">
<view class="up_view" @click="shareFn('WXSceneSession')">
<!-- #ifdef MP-WEIXIN -->
<image :src="`${config.aliyunOssUrl}/static/images/app/icon/in_weixin.png`" class="imgRadius"></image>
<!-- #endif -->
@@ -264,7 +261,7 @@
<!-- #endif -->
<view class="up_txt"> 微信好友 </view>
</view>
<view class="up_view">
<view class="up_view" @click="shareFn('WXSceneTimeline')">
<!-- #ifdef MP-WEIXIN -->
<image :src="`${config.aliyunOssUrl}/static/images/app/icon/in_pengyouquan.png`" class="imgRadius"></image>
<!-- #endif -->
@@ -365,7 +362,7 @@
<view class="pop_comment">
<view class="title_view">
<u-icon name="arrow-left" size="19" color="#999999" @click="showComment=false"></u-icon>
<view class="title"> {{replyAllTotal}} 条评论 </view>
<view class="title"> {{ replyListLength }} 条评论 </view>
<!-- #ifdef MP-WEIXIN -->
<image @click="showComment=false" class="r_img" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/report_close.png" mode=""></image>
<!-- #endif -->
@@ -489,6 +486,7 @@
</template>
<script>
import { shareApi } from "@/utils/index.js"
import chatInputBar from "./components/chat-input-bar/chat-input-bar.vue";
import config from '@/config'
import { getDetailAPI , concernedAuthor , getReplyListAPI , replyLikeAPI , like , collectAPI , replyAddAPI } from '@/api/discover/discover'
@@ -560,14 +558,27 @@
onLoad(query) {
// console.log(query,'来自首页');
this.noteId=query.noteId
this.getDetail(query.noteId)
this.noteId=query.id
this.getDetail(query.id)
this.authorId=query.authorId
},
onShow() {
this.getUserInfo1()
},
methods: {
//分享
shareFn(type) {
console.log(this.detailObj.image);
let shareData = {
href: 'http',
type: this.detailObj.image.length ? 0 : 1,
imageUrl: this.detaImage.length ? this.detaImage[0] : '',
summary: this.detailObj.content ? this.detailObj.content : '分享图片'
}
shareApi(type, shareData).then(res => {
console.log(res);
})
},
//查看
examineFn(urlList,index){
console.log(urlList,index);
@@ -623,7 +634,7 @@
type:this.typeNum,
sortType:this.sortType
}).then(res=>{
console.log(res,'888评论列表888 ');
// console.log(res,'888评论列表888 ');
res.data.list.forEach(item => {
const date1 = new Date();
const date2 = new Date(item.createTime);
@@ -633,10 +644,10 @@
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
item.diffDays = diffDays
if(item.replyList){
this.miniReplyList=item.replyList.slice(0,2)
this.replyListLength=item.replyList.length
}
// if(item.replyList){
// this.miniReplyList=item.replyList.slice(0,2)
// this.replyListLength=item.replyList.length
// }
// console.log(this.replyListLength,'长度长度');
// console.log(this.miniReplyList,'99999999999999999999999');
})
@@ -649,7 +660,7 @@
},
// 点击关注
addLike(authorId) {
concernedAuthor(this.authorId).then(res => {
concernedAuthor(this.detailObj.authorId).then(res => {
this.detailObj.isConcerned = !this.detailObj.isConcerned
if(this.detailObj.isConcerned) this.detailObj.concernedNum += 1
else this.detailObj.concernedNum -= 1
@@ -658,7 +669,7 @@
// 社区用户笔记详情
getDetail(noteId){
getDetailAPI(noteId).then(res=>{
console.log(res,'111详情数据111');
// console.log(res,'111详情数据111');
this.detailObj=res.data
// this.detailObj.image = res.data.image.split(",")
if(res.data.image){
@@ -681,11 +692,12 @@
openShowComment(item) {
this.showComment = true
this.itemObj=item
this.replyListLength=item.replyList.length
},
// 去举报页
toReportPages() {
uni.navigateTo({
url: '/pages/index/report'
url: '/pages/index/report?id=' + this.detailObj.id
})
},
// 更多
@@ -706,16 +718,28 @@
// 链接 或 不喜欢
whoBtn(num) {
console.log(num,'链接或不喜欢');
// if (num == 1) {
// this.imgShow1 = true
// this.timer1 = setTimeout(() => {
// this.imgShow1 = false
// }, 2000)
// } else {
// this.imgShow2 = true
// this.timer2 = setTimeout(() => {
// this.imgShow2 = false
// }, 2000)
// }
if (num == 1) {
this.imgShow1 = true
this.timer1 = setTimeout(() => {
this.imgShow1 = false
}, 2000)
uni.showToast({
title:'已复制链接',
icon:'none'
})
} else {
this.imgShow2 = true
this.timer2 = setTimeout(() => {
this.imgShow2 = false
}, 2000)
uni.showToast({
title:'已设置不喜欢',
icon:'none'
})
}
},
// 全部/楼主/最新/最热
@@ -813,7 +837,7 @@
// 回复评论
replyToComments(ele,num){
console.log(ele,'数据数据',num,'数字1或2');
// console.log(ele,'数据数据',num,'数字1或2');
this.showReply=true
this.replyAddData.replyId=ele.id
this.replyAddData.userId=this.myInfo.id
@@ -1079,6 +1103,7 @@
}
.up_view {
// border: 1px solid red;
margin-right: 60rpx;
display: flex;
flex-direction: column;
@@ -1513,7 +1538,7 @@
.img_view_weixin {
position: absolute;
top: 48%;
top: 42%;
left: 50%;
transform: translate(-50%, -50%);
}

View File

@@ -101,7 +101,7 @@
<!-- #endif -->
</view>
</view>
<view class="content-title line-two" @click="toDetailPages(item.id)">
<view class="content-title line-two" @click.stop="toDetailPages(item)">
{{item.content?item.content:'分享图片'}}
</view>
<view class="image-list-box ">
@@ -145,7 +145,7 @@
{{item.shareNum}}
</view>
<!-- <u-button openType="share" icon="share-square" :text="item.shareNum" :customStyle="{border: 'none'}"></u-button> -->
<view class="faceback-box-item flex align-center" @click="toDetailPages">
<view class="faceback-box-item flex align-center" @click.stop="toDetailPages(item)">
<!-- #ifdef APP -->
<image src="@/static/images/app/mine/information.png"></image>
<!-- #endif -->
@@ -313,9 +313,10 @@
})
console.log('确定删除');
},
toDetailPages(id){
toDetailPages(item){
// console.log(item,'111111111111111111');
uni.navigateTo({
url:`/pages/index/detail?id=${id}`
url:`/pages/index/detail?id=${item.id}&authorId=${item.authorId}`
})
},
//查看

View File

@@ -0,0 +1,301 @@
<template>
<view class="report">
<view class="title"> 请选择你要举报的理由 </view>
<view class="select_view" @click="openPopup">
<view class="txt"> {{item.con?item.con:'违法信息'}} </view>
<u-icon name="arrow-right" size="12" color="#999999"></u-icon>
</view>
<view class="textarea">
<u--textarea v-model="value" placeholder="为了帮助更好的解决问题,请把举报的内容简单描述一下~" count maxlength='100' height='200' border='none'></u--textarea>
</view>
<view class="up_down">
<!-- #ifdef MP-WEIXIN -->
<view class="content flex-wrap align-center">
<view class="image-box" v-for="(item,index) in imageList" :key="index">
<image class="itemimg" :src="item" mode=""></image>
<image @click="DelPic(index)" class="reduce" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/order_close.png" mode=""></image>
</view>
<view>
<image class="upload-bg" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/order_upLoadbg.png" mode="" @click="getImage"></image>
</view>
</view>
<!-- #endif -->
<!-- #ifdef APP -->
<view class="content flex-wrap align-center">
<view class="image-box" v-for="(item,index) in imageList" :key="index">
<image class="itemimg" :src="item" mode=""></image>
<image @click="DelPic(index)" class="reduce" src="@/static/images/app/icon/order_close.png" mode=""></image>
</view>
<view>
<image class="upload-bg" src="@/static/images/app/icon/order_upLoadbg.png" mode="" @click="getImage"></image>
</view>
</view>
<!-- #endif -->
</view>
<view class="submit_view" @click="submitBtn"> 提交 </view>
<u-popup :show="show" :round="10" mode="bottom" @close="show=false">
<view class="popup_view">
<view class="title_view">
<view></view>
<view class="title"> 标题 </view>
<!-- #ifdef MP-WEIXIN -->
<image @click="show=false" class="r_img" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/report_close.png" mode=""></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image @click="show=false" class="r_img" src="@/static/images/app/icon/report_close.png" mode=""></image>
<!-- #endif -->
</view >
<view class="all_item">
<view class="item_view" v-for="item in popupList" :key="item.id">
<view class="con_view" @click="selectBtn(item)">
<view class="con_con"> {{ item.con }} </view>
<!-- #ifdef MP-WEIXIN -->
<image v-if="item.isShow" class="con_img" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/serve/com_select.png" mode=""></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image v-if="item.isShow" class="con_img" src="@/static/images/app/serve/com_select.png" mode=""></image>
<!-- #endif -->
</view>
<view class="xian"></view>
</view>
</view>
<view class="sure_view">
<view class="sure" @click="sureBtn"> 确认 </view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import config from '@/config'
export default{
data(){
return{
config,
value:'',
imageList: [],
show:false,
// 注 全部选项有: 违法信息、抄袭侵权、违规营销、不实信息 人身攻击、涉及未成年、色情低俗、引人不适 有害信息、谣言举报、涉政谣言、其他
popupList:[
{id:1,con:'违法信息',isShow:true},
{id:2,con:'抄袭侵权',isShow:false},
{id:3,con:'违规营销',isShow:false},
{id:4,con:'不实信息',isShow:false},
{id:5,con:'人身攻击',isShow:false},
{id:6,con:'涉及未成年',isShow:false},
{id:7,con:'色情低俗',isShow:false},
{id:8,con:'引人不适',isShow:false},
{id:9,con:'有害信息',isShow:false},
{id:10,con:'谣言举报',isShow:false},
{id:11,con:'涉政谣言',isShow:false},
{id:12,con:'其他',isShow:false},
],
item:{}
}
},
methods:{
// 提交
submitBtn(){
uni.navigateTo({
url:'/pages/index/report_result'
})
},
// 确认
sureBtn(){
this.show=false
},
// 选择
selectBtn(item){
console.log(item,'1111111111');
for (let i = 0; i < this.popupList.length; i++) {
if (this.popupList[i].id === item.id) {
this.popupList[i].isShow = true;
this.item=item
} else {
this.popupList[i].isShow = false;
}
}
},
// 打开
openPopup(){
this.show=true
if(this.item.id){
for (let i = 0; i < this.popupList.length; i++) {
if (this.popupList[i].id === this.item.id) {
this.popupList[i].isShow = true;
} else {
this.popupList[i].isShow = false;
}
}
}
},
//传图片
getImage() {
this.$util.uploadImageOne({
count: 9,
sizeType: ['original'],
sourceType: ['album', 'camera'],
dir: 'crmebimage/public/product/'
}, null, res => {
this.imageList.push(res.data)
this.videoOrImage = false
uni.hideLoading();
});
},
/**删除图片*/
DelPic(key) {
this.imageList.splice(key, 1)
},
confirm() {
this.$emit('confirm', this.imageList.join(','))
}
},
}
</script>
<style lang="scss">
.popup_view {
// padding: 0 32rpx;
.title_view {
background: #F5F5F5;
padding: 43rpx 24rpx;
border-radius: 24rpx 24rpx 0rpx 0rpx;
display: flex;
align-items: center;
justify-content: space-between;
.title {
font-size: 30rpx;
font-weight: 500;
color: #222222;
}
.r_img {
width: 26rpx;
height: 26rpx;
}
}
.all_item {
height: 750rpx;
overflow:auto;
}
.item_view {
padding: 0 32rpx;
}
.con_view {
display: flex;
align-items: center;
justify-content: space-between;
.con_con {
padding: 32rpx 0;
font-size: 34rpx;
font-weight: 400;
color: rgba(17,17,17,0.9);
}
.con_img {
width: 28rpx;
height: 23rpx;
}
}
.xian {
border-bottom: 1rpx solid #F1F1F1 ;
}
.sure_view {
padding: 0 32rpx;
}
.sure {
font-size: 28rpx;
font-weight: 400;
text-align: center;
color: #FFFFFF;
padding: 26rpx 0;
background: #13AFA8;
border-radius: 40rpx 40rpx 40rpx 40rpx;
opacity: 1;
margin-top: 18rpx;
}
}
.submit_view {
width: 94%;
margin-top: 70rpx;
// margin: 70rpx 24rpx 0 24rpx;
padding: 24rpx 0;
text-align: center;
font-size: 34rpx;
font-weight: 400;
color: #FFFFFF;
border-radius: 60rpx;
background-color: #13AFA8;
position: fixed;
bottom: 50rpx;
left:24rpx
}
.up_down {
margin-top: 48rpx;
.image-box {
// border: 1px solid red;
margin-right: 32rpx;
margin-bottom: 32rpx;
position: relative;
.reduce {
position: absolute;
top: -15rpx;
right: -15rpx;
width: 32rpx;
height: 32rpx;
}
}
.itemimg {
width: 170rpx;
height: 170rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.upload-bg {
// border: 1px solid green;
width: 170rpx;
height: 170rpx;
}
}
.report {
height: 100vh;
background: #fff;
padding: 32rpx 24rpx;
.title {
font-size: 38rpx;
font-weight: 400;
color: #000000;
}
.select_view {
margin-top: 32rpx;
padding: 32rpx 24rpx;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: space-between;
.txt {
font-size: 28rpx;
font-weight: 400;
color: #111111;
}
}
.textarea {
margin-top: 48rpx;
padding-bottom: 46rpx;
border-bottom: 1rpx solid #ededed ;
}
}
page {
padding: 24rpx;
background: #f5f5f5;
// background:blue;
}
</style>

View File

@@ -1,67 +1,67 @@
<template>
<view class="report">
<view class="title"> 请选择你要举报的理由 </view>
<view class="select_view" @click="openPopup">
<view class="txt"> {{item.con?item.con:'违法信息'}} </view>
<u-icon name="arrow-right" size="12" color="#999999"></u-icon>
</view>
<view class="textarea">
<u--textarea v-model="value" placeholder="为了帮助更好的解决问题,请把举报的内容简单描述一下~" count maxlength='100' height='200' border='none'></u--textarea>
</view>
<view class="up_down">
<view style="padding: 24rpx;">
<view class="navbar-box fixed-top">
<!-- #ifdef MP-WEIXIN -->
<view class="content flex-wrap align-center">
<view class="image-box" v-for="(item,index) in imageList" :key="index">
<image class="itemimg" :src="item" mode=""></image>
<image @click="DelPic(index)" class="reduce" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/order_close.png" mode=""></image>
</view>
<view>
<image class="upload-bg" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/order_upLoadbg.png" mode="" @click="getImage"></image>
</view>
</view>
<view :style="{height: `${$u.sys().statusBarHeight}px;`}" />
<!-- #endif -->
<!-- #ifdef APP -->
<view class="content flex-wrap align-center">
<view class="image-box" v-for="(item,index) in imageList" :key="index">
<image class="itemimg" :src="item" mode=""></image>
<image @click="DelPic(index)" class="reduce" src="@/static/images/app/icon/order_close.png" mode=""></image>
<view :style="`height: ${$u.sys().statusBarHeight}px;`" />
<!-- #endif -->
<view class="navbar-title text-center rel">
<view class="back nav-item abs" @click="navBackFn">
<u-icon name="arrow-left" size="22" />
</view>
<view>
<image class="upload-bg" src="@/static/images/app/icon/order_upLoadbg.png" mode="" @click="getImage"></image>
<text class="text">举报</text>
<view class="btn abs nav-item">
<u-button @click="issueFn" :customStyle="{width: '144rpx', height: '56rpx', fontSize: '24rpx'}"
color="#13AFA8">提交</u-button>
</view>
</view>
<!-- #endif -->
</view>
<view class="submit_view" @click="submitBtn"> 提交 </view>
<u-popup :show="show" :round="10" mode="bottom" @close="show=false">
<view class="popup_view">
<view class="title_view">
<view></view>
<view class="title"> 标题 </view>
<!-- #ifdef MP-WEIXIN -->
<image @click="show=false" class="r_img" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/icon/report_close.png" mode=""></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image @click="show=false" class="r_img" src="@/static/images/app/icon/report_close.png" mode=""></image>
<!-- #endif -->
</view >
<view class="all_item">
<view class="item_view" v-for="item in popupList" :key="item.id">
<view class="con_view" @click="selectBtn(item)">
<view class="con_con"> {{ item.con }} </view>
<!-- #ifdef MP-WEIXIN -->
<image v-if="item.isShow" class="con_img" src="https://qicheoss.oss-cn-shanghai.aliyuncs.com/static/images/app/serve/com_select.png" mode=""></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image v-if="item.isShow" class="con_img" src="@/static/images/app/serve/com_select.png" mode=""></image>
<!-- #endif -->
</view>
<view class="xian"></view>
</view>
<!-- 防塌陷 -->
<view class="">
<!-- #ifdef MP-WEIXIN -->
<view :style="{height: `${$u.sys().statusBarHeight}px;`}" />
<!-- #endif -->
<!-- #ifdef APP -->
<view :style="`height: ${$u.sys().statusBarHeight}px;`" />
<!-- #endif -->
<view class="" style="height: 88rpx;" />
</view>
<view class="report-box">
<view class="f-38 c000 report-box-tit">请选择你要举报的理由</view>
<view class="flex justify-between report-box-type align-center" @click="reportShow=true">
<view>{{reportCategoryData.name}}</view>
<image src="@/static/images/app/icon/arrow-right.png" mode=""></image>
</view>
<view class="textarea-box">
<u-textarea border="none" v-model="content" placeholder="请输入你的内容"></u-textarea>
</view>
<view class="upload-image-box flex-wrap align-center">
<view class="upload-image-item rel" :style="{marginRight: index%3==2 ? '0' : '12rpx'}"
v-for="(item,index) in picList" :key="index">
<image class="upload-image" :src="item" mode=""></image>
<image class="clear abs" src="@/static/images/app/serve/realname_clea.png"
@click="DelPic('faultImage')" mode=""></image>
</view>
<view class="sure_view">
<view class="sure" @click="sureBtn"> 确认 </view>
<view class="upload-image-item" @click="getImage">
<image class="upload-image" src="@/static/images/app/serve/realname_upload.png" mode=""></image>
</view>
</view>
</view>
<u-popup :show="reportShow" @close="reportClose" @open="reportOpen" closeable>
<view class="report-popup">
<view class="f-30 c222 report-popup-title">标题</view>
<scroll-view scroll-y class="report-popup-list">
<view class="flex justify-between align-center" v-for="(item,index) in reportTypeList" :key="index"
@click="actCategoryTypeFn(index)">
<view>{{item.name}}</view>
<image v-if="actType==index" src="@/static/images/app/serve/com_select.png" mode=""></image>
</view>
</scroll-view>
<view class="report-popup-butt">
<u-button shape="circle" @click="reportShow=false"
:customStyle="{height: '80rpx', fontSize: '24rpx'}" color="#13AFA8">确定</u-button>
</view>
</view>
</u-popup>
@@ -69,69 +69,63 @@
</template>
<script>
import config from '@/config'
export default{
data(){
return{
config,
value:'',
imageList: [],
show:false,
// 注 全部选项有: 违法信息、抄袭侵权、违规营销、不实信息 人身攻击、涉及未成年、色情低俗、引人不适 有害信息、谣言举报、涉政谣言、其他
popupList:[
{id:1,con:'违法信息',isShow:true},
{id:2,con:'抄袭侵权',isShow:false},
{id:3,con:'违规营销',isShow:false},
{id:4,con:'不实信息',isShow:false},
{id:5,con:'人身攻击',isShow:false},
{id:6,con:'涉及未成年',isShow:false},
{id:7,con:'色情低俗',isShow:false},
{id:8,con:'引人不适',isShow:false},
{id:9,con:'有害信息',isShow:false},
{id:10,con:'谣言举报',isShow:false},
{id:11,con:'涉政谣言',isShow:false},
{id:12,con:'其他',isShow:false},
],
item:{}
}
import {
reportAdd
} from "@/api/discover/discover.js"
import {
reportTypeList
} from "@/data/carShoptabs.js"
import {
categoryReportList
} from "@/api/system/config.js"
export default {
data() {
return {
reportTypeList,
actType: 0,
picList: [],
content: '',
//举报帖子id
toUid: 1,
//举报弹出
reportShow: false,
reportCategoryData: {
name: '违法信息'
}
};
},
methods:{
// 提交
submitBtn(){
uni.navigateTo({
url:'/pages/index/report_result'
methods: {
//选择举报类
actCategoryTypeFn(index) {
this.actType = index
this.reportCategoryData = this.reportTypeList[index]
this.reportShow = false
},
//弹出层
reportClose() {
this.reportShow = false
},
reportOpen(e) {
},
//发布
issueFn() {
uni.showLoading({
title: '举报中...'
});
let obj={
reason: this.content,
toUid: this.toUid,
reportCategoryId: this.reportCategoryData.id,
reportImg:this.picList.join(','),
}
console.log(obj);
reportAdd(obj).then(res => {
uni.hideLoading();
uni.redirectTo({
url:'/pages/index/report_result'
})
})
},
// 确认
sureBtn(){
this.show=false
},
// 选择
selectBtn(item){
console.log(item,'1111111111');
for (let i = 0; i < this.popupList.length; i++) {
if (this.popupList[i].id === item.id) {
this.popupList[i].isShow = true;
this.item=item
} else {
this.popupList[i].isShow = false;
}
}
},
// 打开
openPopup(){
this.show=true
if(this.item.id){
for (let i = 0; i < this.popupList.length; i++) {
if (this.popupList[i].id === this.item.id) {
this.popupList[i].isShow = true;
} else {
this.popupList[i].isShow = false;
}
}
}
},
//传图片
getImage() {
this.$util.uploadImageOne({
@@ -140,162 +134,158 @@
sourceType: ['album', 'camera'],
dir: 'crmebimage/public/product/'
}, null, res => {
this.imageList.push(res.data)
this.videoOrImage = false
this.picList.push(res.data)
uni.hideLoading();
});
},
/**删除图片*/
DelPic(key) {
this.imageList.splice(key, 1)
DelPic(index) {
this.picList.splice(index, 1)
},
confirm() {
this.$emit('confirm', this.imageList.join(','))
//返回
navBackFn() {
uni.navigateBack()
}
},
onLoad(options) {
console.log(options);
this.toUid = options.id
// 获取举报类型列表
categoryReportList().then(res => {
console.log(res, '举报列表 ');
if (res.data.length) {
this.reportTypeList = res.data
this.reportCategoryData = res.data[0]
} else {
this.reportCategoryData = this.reportTypeList[0]
}
})
}
}
</script>
<style lang="scss">
.popup_view {
// padding: 0 32rpx;
.title_view {
background: #F5F5F5;
padding: 43rpx 24rpx;
border-radius: 24rpx 24rpx 0rpx 0rpx;
display: flex;
align-items: center;
justify-content: space-between;
.title {
font-size: 30rpx;
font-weight: 500;
color: #222222;
}
.r_img {
width: 26rpx;
height: 26rpx;
}
}
.all_item {
height: 750rpx;
overflow:auto;
}
.item_view {
padding: 0 32rpx;
}
.con_view {
display: flex;
align-items: center;
justify-content: space-between;
.con_con {
padding: 32rpx 0;
font-size: 34rpx;
font-weight: 400;
color: rgba(17,17,17,0.9);
}
.con_img {
width: 28rpx;
height: 23rpx;
}
}
.xian {
border-bottom: 1rpx solid #F1F1F1 ;
}
.sure_view {
padding: 0 32rpx;
}
.sure {
font-size: 28rpx;
font-weight: 400;
text-align: center;
color: #FFFFFF;
padding: 26rpx 0;
background: #13AFA8;
border-radius: 40rpx 40rpx 40rpx 40rpx;
opacity: 1;
margin-top: 18rpx;
}
page {
background: #f5f5f5;
width: 750rpx;
}
.submit_view {
width: 94%;
margin-top: 70rpx;
// margin: 70rpx 24rpx 0 24rpx;
padding: 24rpx 0;
.report-popup {
text-align: center;
font-size: 34rpx;
font-weight: 400;
color: #FFFFFF;
border-radius: 60rpx;
background-color: #13AFA8;
position: fixed;
bottom: 50rpx;
left:24rpx
}
.up_down {
margin-top: 48rpx;
.image-box {
// border: 1px solid red;
margin-right: 32rpx;
margin-bottom: 32rpx;
position: relative;
.reduce {
position: absolute;
top: -15rpx;
right: -15rpx;
width: 32rpx;
height: 32rpx;
// background: ;
.report-popup-title {
width: 750rpx;
background: #F5F5F5;
padding: 44rpx 24rpx 42rpx 24rpx;
}
.report-popup-butt {
padding: 18rpx 36rpx;
}
.report-popup-list {
width: 750rpx;
height: 784rpx;
padding: 0 36rpx;
view {
height: 110rpx;
border-bottom: 1rpx solid #eee;
padding: 32rpx 0;
image {
width: 28rpx;
height: 22rpx;
}
}
}
.itemimg {
width: 170rpx;
height: 170rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.upload-bg {
// border: 1px solid green;
width: 170rpx;
height: 170rpx;
}
}
.report {
height: 100vh;
.report-box {
// min-height: 100vh;
background: #fff;
padding: 32rpx 24rpx;
.title {
font-size: 38rpx;
font-weight: 400;
color: #000000;
.report-box-tit {
margin-bottom: 32rpx;
}
.select_view {
margin-top: 32rpx;
padding: 32rpx 24rpx;
.report-box-type {
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: space-between;
.txt {
font-size: 28rpx;
font-weight: 400;
color: #111111;
padding: 32rpx 24rpx;
image {
width: 12rpx;
height: 24rpx;
}
}
.textarea {
margin-top: 48rpx;
padding-bottom: 46rpx;
border-bottom: 1rpx solid #ededed ;
}
.navbar-box {
border-bottom: 1rpx solid #eee;
background: #fff;
.navbar-title {
width: 750rpx;
line-height: 88rpx;
.back {
left: 24rpx;
}
.text {
// #ifdef MP-WEIXIN
padding-right: 220rpx;
// #endif
}
.btn {
// #ifdef APP
right: 34rpx;
// #endif
// #ifdef MP-WEIXIN
right: 200rpx;
// #endif
top: 50%;
transform: translateY(-50%);
}
.nav-item {
top: 50%;
transform: translateY(-50%);
}
}
}
page {
padding: 24rpx;
background: #f5f5f5;
// background:blue;
.textarea-box {
// padding: 48rpx;
// width: 750rpx;
height: 434rpx;
}
.upload-image-box {
// padding: 0 0rpx;
// width: 750rpx;
.upload-image-item {
margin-bottom: 24rpx;
margin-left: 12rpx;
width: 200rpx;
height: 200rpx;
}
.upload-image {
width: 200rpx;
height: 200rpx;
border-radius: 8rpx;
}
.clear {
top: -16rpx;
right: -16rpx;
width: 32rpx;
height: 32rpx;
}
}
</style>

159
pages/mine/set/clear.vue Normal file
View File

@@ -0,0 +1,159 @@
<!-- 清除缓存 -->
<template>
<view class="page">
<view class="cache">
<image src="" />
<view class="cache-card d-flex flex-column a-center">
<view class="cache-card-title mr-auto">
已使用缓存
</view>
<view class="cache-card-num">
{{fileSizeString}}
</view>
<view class="cache-card-desc ml-auto">
包括图片音频视频数据等
</view>
</view>
<!-- 占位 -->
<view style="height: 100rpx;"></view>
<view class="cache-btn d-flex a-center j-center" @click="clearCache">
清除缓存
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
fileSizeString: ''
}
},
onLoad() {
this.init()
},
methods: {
//初始化
init() {
this.formatSize()
},
//计算缓存大小
formatSize() {
plus.cache.calculate(size => {
let sizeCache = parseInt(size);
if (sizeCache == 0) {
this.fileSizeString = "0B";
} else if (sizeCache < 1024) {
this.fileSizeString = sizeCache + "B";
} else if (sizeCache < 1048576) {
this.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
} else if (sizeCache < 1073741824) {
this.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
} else {
this.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
}
});
},
//清除缓存
clearCache() {
let os = plus.os.name;
if (os == 'Android') {
let main = plus.android.runtimeMainActivity();
let sdRoot = main.getCacheDir();
let files = plus.android.invoke(sdRoot, "listFiles");
let len = files.length;
for (let i = 0; i < len; i++) {
let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
plus.io.resolveLocalFileSystemURL(filePath, (entry) => {
if (entry.isDirectory) {
entry.removeRecursively((entry) => { //递归删除其下的所有文件及子目录
this.$refs.uToast.show({
title: '清除缓存成功~',
type: 'success'
})
this.formatSize(); // 重新计算缓存
}, (e) => {
// console.log(e.message)
});
} else {
entry.remove();
}
}, (e) => {
// console.log('文件路径读取失败')
});
}
} else { // ios
plus.cache.clear(() => {
this.$refs.uToast.show({
title: '清除缓存成功~',
type: 'success'
})
this.formatSize();
});
}
}
}
}
</script>
<style lang="scss" scoped>
.page {
.cache {
width: 100vw;
height: 299rpx;
position: relative;
image {
width: 100vw;
height: 500rpx;
background: #13AFA8;
border-radius: 0 0 15rpx 15rpx;
}
.cache-card {
width: 690rpx;
padding: 35rpx;
background: #FFFFFF;
box-shadow: 0px 17rpx 43rpx 8rpx rgba(0, 0, 0, 0.02);
border-radius: 24rpx;
position: absolute;
bottom: -100rpx;
left: 30rpx;
.cache-card-title {
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.cache-card-num {
font-size: 36rpx;
font-weight: bold;
color: #FF8C21;
margin-top: 20rpx;
}
.cache-card-desc {
font-size: 22rpx;
color: #999999;
margin-top: 20rpx;
}
}
.cache-btn {
margin: 0 auto;
width: 690rpx;
height: 80rpx;
background: #13AFA8;
border-radius: 42rpx;
font-size: 30rpx;
font-weight: bold;
color: #FFFFFF;
margin-top: 160rpx;
text-align: center;
line-height: 80rpx;
}
}
}
</style>

View File

@@ -30,7 +30,15 @@
text: '意见反馈',
path: '/pages/repair/user/feedback/feedback'
}, {
text: '清除缓存'
text: '清除缓存',
path:'/pages/mine/set/clear'
},
{
text: '常见问题',
path: '/pages/mine/common_problem/common_problem'
}, {
text: '关于我们',
path: '/pages/mine/about_us/about_us'
}
]
};
@@ -42,8 +50,43 @@
url: item.path
})
} else {
uni.clearStorageSync()
uni.$u.toast('已清除缓存')
let os = plus.os.name;
if (os == 'Android') {
let main = plus.android.runtimeMainActivity();
let sdRoot = main.getCacheDir();
let files = plus.android.invoke(sdRoot, "listFiles");
let len = files.length;
for (let i = 0; i < len; i++) {
let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
plus.io.resolveLocalFileSystemURL(filePath, (entry) => {
if (entry.isDirectory) {
entry.removeRecursively((entry) => { //递归删除其下的所有文件及子目录
this.$refs.uToast.show({
title: '清除缓存成功~',
type: 'success'
})
this.formatSize(); // 重新计算缓存
}, (e) => {
// console.log(e.message)
});
} else {
entry.remove();
}
}, (e) => {
// console.log('文件路径读取失败')
});
}
} else { // ios
plus.cache.clear(() => {
console.log(999);
this.$refs.uToast.show({
title: '清除缓存成功~',
type: 'success'
})
this.formatSize();
});
}
// uni.$u.toast('已清除缓存')
}
},
//退出登录

View File

@@ -0,0 +1,199 @@
<template>
<view>
<u-navbar :title="title" :autoBack="true" safeAreaInsetTop placeholder>
</u-navbar>
<view class="bound" v-if="pageType==1">
<!-- #ifdef MP-WEIXIN -->
<image :src="`${config.aliyunOssUrl}/static/images/repair/user/shield.png`"></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image src="@/static/images/repair/user/shield.png" />
<!-- #endif -->
<view class="bound-call">已绑定手机号{{userInfo.phone}}</view>
<view>如果你的手机号已不用请及时更换</view>
<u-button type="primary" shape="circle" text="更换手机号" color="#13AFA8"
:customStyle='{width:"298rpx",height: "80rpx",marginTop: "24rpx",fontSize: "28rpx",fontWeight: 500,}'
@click="unpPhoneFn"></u-button>
</view>
<view class="verification" v-if="pageType==2">
<view class="verification-title">{{codeStatus?verificationTitle:'验证当前登录账号的手机号'}}</view>
<view>需要验证你的手机号进行下一步操作</view>
<view class="verification-call">{{form.phone}}</view>
<u-form class="form-box" :model="form" ref="uForm">
<u-form-item border-bottom class="mt-44">
<u-input type="number" maxlength="6" placeholder="请输入验证码" placeholder-class="placeholder-class"
@change="captchaChange" border="none" v-model="form.captcha">
<text class="f-30 c111" v-show="!codeStatus" slot="suffix">{{resendCodeTime}}秒重新获取</text>
<text class="f-30 c111" v-show="codeStatus" slot="suffix" @click="getCode">获取验证码</text>
</u-input>
</u-form-item>
</u-form>
<u-button type="primary" shape="circle" text="下一步" color="#13AFA8" :disabled="buttonFlag"
:stomStyle='{width:"698rpx",height: "80rpx",fontSize: "28rpx",fontWeight: 500}'
@click="nextStepFn"></u-button>
</view>
<view class="new-call verification" v-if="pageType==3">
<view class="verification-title">请输入新的手机号</view>
<view>更换手机后下次登录可使用新手机号登录</view>
<u-form class="form-box" :model="form" ref="uForm">
<u-form-item class="mt-44" border-bottom prop="phone">
<u-input type="number" maxlength="11" placeholder="请输入手机号码" placeholder-class="placeholder-class"
border="none" v-model="form.phone"></u-input>
</u-form-item>
<u-form-item border-bottom class="mt-44">
<u-input type="number" maxlength="6" placeholder="请输入验证码" placeholder-class="placeholder-class"
@change="captchaChange" border="none" v-model="form.captcha">
<text class="f-30 c111" v-show="!codeStatus" slot="suffix">{{resendCodeTime}}秒重新获取</text>
<text class="f-30 c111" v-show="codeStatus" slot="suffix" @click="getCode">获取验证码</text>
</u-input>
</u-form-item>
</u-form>
<u-button type="primary" shape="circle" text="提交" color="#13AFA8" :disabled="buttonFlag"
:stomStyle='{width:"698rpx",height: "80rpx",fontSize: "28rpx",fontWeight: 500}'
@click="submitFn"></u-button>
</view>
<!-- 更换手机号弹出层 -->
<u-modal :show="changeShow" :title="changeTitle" :content='changeContent' confirmText="我在想想" cancelText="去更改"
confirmColor="#000000" closeOnClickOverlay showCancelButton @confirm="changeShow=false"
@cancel="changeCancel" @close="changeShow=false"></u-modal>
</view>
</template>
<script>
import config from '@/config'
import {
getSendCode
} from '@/api/login';
export default {
data() {
return {
config,
//用户信息
userInfo:{},
title: '账户设置',
changeShow: false,
changeTitle: '是否更换手机号?',
changeContent: '',
//1:账户设置 2:验证 3:新手机号
pageType: 1,
verificationTitle: '请验证手机信息',
codeStatus: true,
resendCodeTime: 60,
form: {
phone: '18739735805',
captcha: ''
},
//按钮开关
buttonFlag: true
};
},
onLoad() {
this.userInfo = uni.getStorageSync('userInfo')
console.log(this.userInfo);
},
methods: {
//更换手机号
unpPhoneFn(){
this.changeShow=true
this.changeContent=`更换后现手机号${this.userInfo.phone}将不能用于登录`
},
//提交更换手机号
submitFn() {
console.log(this.form);
},
//监听输入框
captchaChange(e) {
console.log(e);
if (e) {
this.buttonFlag = false
} else {
this.buttonFlag = true
}
},
nextStepFn() {
this.pageType = 3
this.title = '新的手机号'
this.form = {
}
},
changeCancel() {
this.changeShow = false
console.log('去更改');
this.title = '验证'
this.pageType = 2
},
// 获取验证码
getCode() {
if (this.form.phone) {
if (this.codeStatus) {
this.codeStatus = false
this.timer = setInterval(() => {
this.resendCodeTime--
if (this.resendCodeTime == 0) {
this.codeStatus = true
clearInterval(this.timer)
}
}, 1000)
getSendCode(this.form).then(res => {
console.log(res);
}).catch(err => {
uni.$u.toast('您的短信发送过于频繁,请稍后再试')
console.log('请求失败', err);
})
}
} else {
uni.$u.toast('请先输入手机号')
}
},
}
}
</script>
<style lang="scss">
.new-call {}
.verification {
width: calc(100% - 80rpx);
margin-top: 46rpx;
margin-left: 40rpx;
font-size: 28rpx;
font-weight: 400;
color: #333333;
.form-box {
margin-top: 26rpx;
margin-bottom: 64rpx;
}
.verification-call {
margin-top: 80rpx;
}
.verification-title {
font-size: 36rpx;
font-weight: 600;
color: #333333;
}
}
.bound {
text-align: center;
margin: 128rpx auto;
.bound-call {
margin: 48rpx 0 112rpx 0;
font-size: 36rpx;
font-weight: 400;
color: #000000;
}
image {
width: 144rpx;
height: 144rpx;
}
}
</style>

View File

@@ -0,0 +1,198 @@
<template>
<view>
<view v-if="shopType==2" class="submit-ok">
<!-- <image class="submit-image" src="@/static/images/app/icon/submit.png" mode=""></image> -->
<!-- #ifdef MP-WEIXIN -->
<image class="submit-image" :src="`${config.aliyunOssUrl}/static/images/app/icon/submit.png`"></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image class="submit-image" src="@/static/images/app/icon/submit.png" />
<!-- #endif -->
<view>
<view style="margin-top: 24rpx;">非常感谢您对我们的宝贵意见</view>
<view class="submit-ok-butt">
<u-button type="primary" shape="circle" color="#13AFA8"
:customStyle='{fontSize: "28rpx",fontWeight: 500,}' @click="submitFn(2)">返回首页</u-button>
</view>
</view>
</view>
<view v-else class="feedback">
<u--textarea v-model="content" placeholder="请描述具体的问题,包括: 时间、网络情况、链接等等,以便我们提供更好的帮助!" height="450rpx"
:placeholderStyle="{}" count maxlength="100" border="none"></u--textarea>
<u-line color="#AAAAAA" margin="56rpx 0 0 0"></u-line>
<view class="feedback-image">
<view class="f-a-e">
<view>本次上传截图</view>
<view class="feedback-image-numbe">选填 最多6张</view>
</view>
<view class="">
<u-grid :border="false" col="3" @click="clickImage">
<u-grid-item v-for="(listItem,listIndex) in imageUrlList" :key="listIndex">
<view class="upload-bg ">
<!-- #ifdef MP-WEIXIN -->
<image class="" :src="listItem" mode=""></image>
<image class="reduce" :src="`${config.aliyunOssUrl}/static/images/app/icon/x.png`" mode="" @click="DelPic(listIndex)"></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image class="" :src="listItem" mode=""></image>
<image class="reduce" src="@/static/images/app/icon/x.png" mode="" @click="DelPic(listIndex)"></image>
<!-- #endif -->
</view>
</u-grid-item>
<u-grid-item v-show="imageUrlList.length < 6">
<!-- #ifdef MP-WEIXIN -->
<image class="upload-bg" :src="`${config.aliyunOssUrl}/static/images/app/icon/order_upLoadbg.png`" mode="" @click="upload()"></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image class="upload-bg" src="@/static/images/app/icon/order_upLoadbg.png" mode="" @click="upload()"></image>
<!-- #endif -->
</u-grid-item>
</u-grid>
<u-toast ref="uToast" />
</view>
</view>
<view class="butt-bott">
<u-button type="primary" shape="circle" text="提交" color="#13AFA8"
:customStyle='{height: "88rpx",marginRight: "16rpx",fontSize: "28rpx",fontWeight: 500,}'
@click="submitFn(1)"></u-button>
</view>
</view>
</view>
</template>
<script>
import config from '@/config'
import {
feedbackAdd
} from "@/api/user/index.js"
export default {
data() {
return {
config,
content: '',
imageUrlList: [],
shopType: 1
};
},
methods: {
//提交
submitFn(type) {
console.log(this.content, '内容');
console.log(this.imageUrlList, '图片');
if (type == 2) {
uni.navigateBack()
} else {
if (this.content || this.imageUrlList.length > 0) {
let obj = {
content: this.content,
images: this.imageUrlList.join()
}
feedbackAdd(obj).then(res => {
console.log(res, '反馈成功');
this.shopType = 2
})
} else {
uni.showToast({
title: '请填写反馈内容或上传反馈图片!',
icon: 'none'
})
}
}
},
// 上传
upload() {
this.getImage();
},
//传图片
getImage() {
this.$util.uploadImageOne({
count: 6,
sizeType: ['original'],
sourceType: ['album', 'camera'],
dir: 'crmebimage/public/product/'
}, null, res => {
console.log(res);
this.imageUrlList.push(res.data)
uni.hideLoading();
});
},
// 查看图片
clickImage(e) {
console.log(this.imageUrlList[e]);
},
/**删除图片*/
DelPic(listIndex) {
this.imageUrlList.splice(listIndex, 1)
}
}
}
</script>
<style lang="scss">
page {
background-color: #f5f5f5;
}
.submit-ok {
margin: 136rpx auto;
text-align: center;
.submit-ok-butt {
width: 264rpx;
height: 80rpx;
margin: 96rpx auto;
}
}
.submit-image {
width: 148rpx;
height: 148rpx;
}
.feedback {
width: calc(100% - 48rpx);
margin: 24rpx;
background-color: #fff;
min-height: 100vh;
}
.feedback-image {
font-size: 32rpx;
font-weight: 400;
color: #000000;
padding: 40rpx 24rpx;
.feedback-image-numbe {
font-size: 24rpx;
font-weight: 400;
color: #999999;
}
}
.upload-bg {
margin-top: 24rpx;
width: 170rpx;
height: 170rpx;
border-radius: 8rpx;
position: relative;
}
.reduce {
position: absolute;
top: -20rpx;
right: -20rpx;
width: 40rpx;
height: 40rpx;
}
.butt-bott {
width: 100%;
position: fixed;
left: 0;
bottom: 0;
padding: 10rpx 24rpx 40rpx 24rpx;
background: #fff;
}
</style>

View File

@@ -72,7 +72,7 @@
<!-- #endif -->
<view class="one_txt"> 卡券 </view>
</view>
<view class="th_one">
<view class="th_one" @click="studyBtn">
<!-- #ifdef MP-WEIXIN -->
<image class="one_img" :src="`${config.aliyunOssUrl}/static/images/app/serve/serve_study.png`" mode=""></image>
<!-- #endif -->
@@ -264,6 +264,9 @@
uni.navigateTo({
url:`/pages/message/message`
})
},
studyBtn(){
this.$toast('开发中~~')
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

View File

@@ -106,3 +106,30 @@ export function convertNumberToChinese(number) {
return result;
}
//分享维修/朋友圈
export function shareApi(type, data) {
// type:分享类型 聊天:WXSceneSession 朋友圈:WXSceneTimeline
return new Promise((resolve, reject) => {
uni.showLoading({
title:'分享中',
})
uni.share({
provider: "weixin",
scene: type,
type: data.type,
summary: data.summary,
href:data.href,
imageUrl:data.imageUrl,
success: (res) => {
uni.hideLoading();
console.log('转发成功', res);
resolve(res)
},
fail: (err) => {
uni.hideLoading();
console.log('转发失败', err);
reject(err)
}
});
})
}