bug修复

This commit is contained in:
13405411873 2025-05-06 13:24:53 +08:00
parent 3ac953d185
commit a12cbe207d
11 changed files with 185 additions and 109 deletions

20
App.vue
View File

@ -8,8 +8,28 @@
export default { export default {
onLaunch: function() { onLaunch: function() {
this.initApp() this.initApp()
//
this.overShare()
}, },
methods: { methods: {
/**
* 开启朋友圈分享功能
* 监听路由切换/自动执行
*/
overShare() {
wx.onAppRoute((res) => {
// console.log('route', res)
let pages = getCurrentPages()
let view = pages[pages.length - 1]
if (view) {
wx.showShareMenu({
menus: ['shareAppMessage', 'shareTimeline'],
success(res) {},
fail(e) {}
})
}
})
},
// //
initApp() { initApp() {
// //

View File

@ -33,3 +33,11 @@ export function entPay(orderNo) {
'method': 'get' 'method': 'get'
}) })
} }
// 获取urlLink
export function getUrlLink(path, query) {
return request({
'url': '/wxApi/getUrlLink?path=' + path + '&query=' + query,
'method': 'post'
})
}

View File

@ -39,7 +39,13 @@
}, },
methods: { methods: {
back() { back() {
uni.navigateBack() console.log('返回');
if (this.title == '通告详情') {
this.$emit('goIndex')
} else {
uni.navigateBack()
}
}, },
clearNoReadFun() { clearNoReadFun() {
this.$emit('clearNoRead') this.$emit('clearNoRead')

View File

@ -1,69 +1,69 @@
{ {
"name": "多点通告", "name" : "多点通告",
"appid": "__UNI__5491739", "appid" : "__UNI__5491739",
"description": "", "description" : "",
"versionName": "1.1.0", "versionName" : "1.1.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
"app-plus": { "app-plus" : {
"usingComponents": true, "usingComponents" : true,
"nvueCompiler": "uni-app", "nvueCompiler" : "uni-app",
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
"modules": {}, "modules" : {},
"distribute": { "distribute" : {
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
"ios": {}, "ios" : {},
"sdkConfigs": {} "sdkConfigs" : {}
} }
}, },
"quickapp": {}, "quickapp" : {},
"mp-weixin": { "mp-weixin" : {
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"appid": "wxd96fda6510adb6d3", "appid" : "wxd96fda6510adb6d3",
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"es6": false, "es6" : false,
"minified": true, "minified" : true,
"postcss": true "postcss" : true
}, },
"usingComponents": true "usingComponents" : true
}, },
"vueVersion": "2", "vueVersion" : "2",
"h5": { "h5" : {
"template": "static/index.html", "template" : "static/index.html",
"devServer": { "devServer" : {
"port": 9090, "port" : 9090,
"https": false "https" : false
}, },
"title": "RuoYi-App", "title" : "RuoYi-App",
"router": { "router" : {
"mode": "history", "mode" : "history",
"base": "" "base" : ""
} }
} }
} }

View File

@ -17,6 +17,11 @@
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "登录"
} }
}, {
"path": "pages/register",
"style": {
"navigationBarTitleText": "注册"
}
}], }],
"subPackages": [{ "subPackages": [{
"root": "pages/common", "root": "pages/common",
@ -234,10 +239,9 @@
} }
}, },
{ {
"path" : "points/points", "path": "points/points",
"style" : "style": {
{ "navigationBarTitleText": ""
"navigationBarTitleText" : ""
} }
} }
] ]

View File

@ -56,13 +56,13 @@
<!-- 主体内容区域 --> <!-- 主体内容区域 -->
<view class="dl-body"> <view class="dl-body">
<!-- 随手转发 --> <!-- 随手转发 -->
<view class="dl-public-box"> <view class="dl-public-box" v-if="point&&point>0">
<view class="dl-left"> <view class="dl-left">
<image class="dl-icon" src="@/static/index/gift.png" mode="aspectFit"></image> <image class="dl-icon" src="@/static/index/gift.png" mode="aspectFit"></image>
</view> </view>
<view class="dl-center"> <view class="dl-center">
<view>随手转发上传通告赚零花</view> <view>随手转发上传通告赚零花</view>
<view>每条轻松赚<text>{{point || ''}}</text>积分</view> <view>每条轻松赚<text>{{point/10}}</text></view>
</view> </view>
<view class="dl-right"> <view class="dl-right">
<view class="dl-opt-dom" @click="toPublish()">去转发</view> <view class="dl-opt-dom" @click="toPublish()">去转发</view>
@ -415,7 +415,7 @@
}, },
// //
closeDrawer(e) { closeDrawer(e) {
debugger
this.chooseCondition = 9 this.chooseCondition = 9
this.$refs.showRight.close() this.$refs.showRight.close()
this.$refs.showRight2.close() this.$refs.showRight2.close()
@ -447,10 +447,7 @@
} }
this.queryParams.sortBy = "new" this.queryParams.sortBy = "new"
} else if ('急招' == item) { } else if ('急招' == item) {
//
if (!await this.checkIfHasRights(rightsCode.highNewNotice)) {
return
}
this.queryParams.isUrgent = "1" this.queryParams.isUrgent = "1"
} else if ('平台结算' == item) { } else if ('平台结算' == item) {
// //

View File

@ -85,6 +85,7 @@
this.refreshUserType() this.refreshUserType()
}, },
onShow() { onShow() {
console.log("1111") console.log("1111")
this.refreshUserType() this.refreshUserType()
this.$refs.minePage.getDetail() this.$refs.minePage.getDetail()

View File

@ -85,7 +85,7 @@
} }
}, },
created() { created() {
this.getCode()
this.wxLogin() this.wxLogin()
}, },
methods: { methods: {

View File

@ -204,6 +204,7 @@
this.toLogin(userTypeTemp) this.toLogin(userTypeTemp)
} }
}, },
methods: { methods: {
openVip() { openVip() {
// //

View File

@ -21,7 +21,7 @@
<view class="title-box"> <view class="title-box">
{{userInfo.nickName || ''}} {{userInfo.nickName || ''}}
<image v-if="ifHasCard" src="@/static/mine/huang.png" mode="aspectFit"></image> <image v-if="ifHasCard" src="@/static/mine/huang.png" mode="aspectFit"></image>
<view style="font-size: 20rpx;">{{userInfo.cardName||''}}</view> <view style="font-size: 20rpx;">{{userInfo.cardName||''}}</view>
</view> </view>
<view class="bottom-box"> <view class="bottom-box">
<view class="fans-box"> <view class="fans-box">
@ -68,7 +68,7 @@
</view> </view>
<view class="item-box"> <view class="item-box">
<view class="item-text-box"> <view class="item-text-box">
<view>报名<text class="red-text">{{userInfo.report||'0'}}</text></view> <view>可用报名<text class="red-text">{{userInfo.report||'0'}}</text></view>
<view class="dl-little">去提额<uni-icons type="right" size="10">{{item.unicode}}</uni-icons></view> <view class="dl-little">去提额<uni-icons type="right" size="10">{{item.unicode}}</uni-icons></view>
</view> </view>
<image src="@/static/mine/jifen.png" mode="aspectFit"></image> <image src="@/static/mine/jifen.png" mode="aspectFit"></image>
@ -229,18 +229,18 @@
memberEndDate: "", memberEndDate: "",
} }
}, },
mounted() { mounted() {
if (null != getJSONData(constant.userInfo)) { if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo) this.userInfo = getJSONData(constant.userInfo)
this.getDetail() this.getDetail()
} }
}, },
onShow() { onShow() {
if (null != getJSONData(constant.userInfo)) { if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo) this.userInfo = getJSONData(constant.userInfo)
this.getDetail() this.getDetail()
} }
}, },
onLoad() { onLoad() {
}, },
@ -262,11 +262,11 @@
} }
}, },
getDetail() { getDetail() {
let param = { let param = {
userId: this.userInfo.userId, userId: this.userInfo.userId,
userType: this.localUserType userType: this.localUserType
} }
console.log(param,'param') console.log(param, 'param')
queryDetail({ queryDetail({
userId: this.userInfo.userId, userId: this.userInfo.userId,
userType: this.localUserType userType: this.localUserType
@ -285,8 +285,8 @@
} else { } else {
this.ifHasCard = false this.ifHasCard = false
} }
console.log(this.userInfo,'THIS.USERINFO') console.log(this.userInfo, 'THIS.USERINFO')
this.$forceUpdate() this.$forceUpdate()
}) })
}, },
/** /**
@ -667,7 +667,7 @@
padding: 20rpx; padding: 20rpx;
.item-text-box { .item-text-box {
font-size: 34rpx; font-size: 30rpx;
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="dl-detail-box"> <view class="dl-detail-box">
<navigation-bar-vue title="通告详情" style="width: 100%;" background-color="#ffffff" <navigation-bar-vue title="通告详情" @goIndex="goIndex" style="width: 100%;" background-color="#ffffff"
title-color="#000000"></navigation-bar-vue> title-color="#000000"></navigation-bar-vue>
<view class="notice-detail-last-box"> <view class="notice-detail-last-box">
<!-- 报名列表 --> <!-- 报名列表 -->
@ -182,7 +182,7 @@
<view @click="shareFun()"> <view @click="shareFun()">
<image src="@/static/detail/share.png" mode="aspectFit"></image> <image src="@/static/detail/share.png" mode="aspectFit"></image>
</view> </view>
<view v-if="null==userInfo" class="join-report">请登录后报名</view> <view v-if="null==userInfo" class="join-report" @click="goLogin()">请登录后报名</view>
<view v-else-if="!isSign && ifBz" @click="goReport()" class="join-report">报名参加</view> <view v-else-if="!isSign && ifBz" @click="goReport()" class="join-report">报名参加</view>
<view v-else-if="isSign && ifBz" class="join-report">已报名</view> <view v-else-if="isSign && ifBz" class="join-report">已报名</view>
<view v-else class="join-report" @click="changeUserType()">切换博主后报名</view> <view v-else class="join-report" @click="changeUserType()">切换博主后报名</view>
@ -244,6 +244,9 @@
import { import {
getSignCard getSignCard
} from '@/api/business/signCard.js' } from '@/api/business/signCard.js'
import {
getUrlLink
} from '@/api/wxApi.js'
export default { export default {
components: { components: {
shareImages, shareImages,
@ -330,17 +333,26 @@
if (params.type) { if (params.type) {
this.type = params.type this.type = params.type
} }
console.log(params, 336);
this.noticeId = params.id this.noticeId = params.id
if (null != getJSONData(constant.userInfo)) { if (params.noticeId && !this.noticeId) {
this.userInfo = getJSONData(constant.userInfo) this.noticeId = params.noticeId
} }
}, },
onShow() { onShow() {
if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo)
}
this.getDetail() this.getDetail()
this.viewNotice() this.viewNotice()
}, },
methods: { methods: {
goLogin() {
uni.navigateTo({
url: '/pages/login?canBack=true'
})
},
preview(imageArray) { preview(imageArray) {
let previewImages = [] let previewImages = []
imageArray.forEach(it => { imageArray.forEach(it => {
@ -414,6 +426,9 @@
}); });
}) })
}, },
goIndex() {
this.$tab.navigateTo(`/pages/index`)
},
goReportForm() { goReportForm() {
this.$tab.navigateTo('/pages/mine/set/report-form?userId=' + this.userDetail.userId + '&noticeId=' + this this.$tab.navigateTo('/pages/mine/set/report-form?userId=' + this.userDetail.userId + '&noticeId=' + this
.noticeId) .noticeId)
@ -497,6 +512,7 @@
console.log(dataObj, 'dataObje') console.log(dataObj, 'dataObje')
if ('lj' == dataObj.item.name) { if ('lj' == dataObj.item.name) {
// //
this.goLinkUrl()
} else if ('wx' == dataObj.item.name) { } else if ('wx' == dataObj.item.name) {
} else if ('jb' == dataObj.item.name) { } else if ('jb' == dataObj.item.name) {
@ -511,6 +527,29 @@
dialogClose() { dialogClose() {
console.log('点击关闭') console.log('点击关闭')
}, },
goLinkUrl() {
getUrlLink('pages/notice/detail', this.noticeId).then(res => {
res.data = res.data.replace(/<br>/g, '\n')
uni.setClipboardData({
data: res.data,
success: function() {
uni.showToast({
title: '名单复制成功,请到浏览器下载',
icon: 'none',
duration: 2000
});
},
fail: function() {
uni.showToast({
title: '复制失败',
icon: 'none',
duration: 2000
});
}
});
})
},
/** /**
* 去首页 * 去首页
*/ */