bug修复
This commit is contained in:
parent
3ac953d185
commit
a12cbe207d
22
App.vue
22
App.vue
@ -8,8 +8,28 @@
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
this.initApp()
|
||||
//开启分享功能
|
||||
this.overShare()
|
||||
},
|
||||
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() {
|
||||
// 初始化应用配置
|
||||
@ -30,4 +50,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import '@/static/scss/index.scss';
|
||||
</style>
|
||||
</style>
|
||||
|
10
api/wxApi.js
10
api/wxApi.js
@ -32,4 +32,12 @@ export function entPay(orderNo) {
|
||||
'url': '/payApi/entPay?orderNo=' + orderNo,
|
||||
'method': 'get'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 获取urlLink
|
||||
export function getUrlLink(path, query) {
|
||||
return request({
|
||||
'url': '/wxApi/getUrlLink?path=' + path + '&query=' + query,
|
||||
'method': 'post'
|
||||
})
|
||||
}
|
||||
|
@ -39,7 +39,13 @@
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack()
|
||||
console.log('返回');
|
||||
if (this.title == '通告详情') {
|
||||
this.$emit('goIndex')
|
||||
} else {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
},
|
||||
clearNoReadFun() {
|
||||
this.$emit('clearNoRead')
|
||||
|
136
manifest.json
136
manifest.json
@ -1,69 +1,69 @@
|
||||
{
|
||||
"name": "多点通告",
|
||||
"appid": "__UNI__5491739",
|
||||
"description": "",
|
||||
"versionName": "1.1.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueCompiler": "uni-app",
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
"modules": {},
|
||||
"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.GET_ACCOUNTS\"/>",
|
||||
"<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\"/>"
|
||||
]
|
||||
},
|
||||
"ios": {},
|
||||
"sdkConfigs": {}
|
||||
}
|
||||
},
|
||||
"quickapp": {},
|
||||
"mp-weixin": {
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
},
|
||||
"appid": "wxd96fda6510adb6d3",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": false,
|
||||
"minified": true,
|
||||
"postcss": true
|
||||
},
|
||||
"usingComponents": true
|
||||
},
|
||||
"vueVersion": "2",
|
||||
"h5": {
|
||||
"template": "static/index.html",
|
||||
"devServer": {
|
||||
"port": 9090,
|
||||
"https": false
|
||||
},
|
||||
"title": "RuoYi-App",
|
||||
"router": {
|
||||
"mode": "history",
|
||||
"base": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
"name" : "多点通告",
|
||||
"appid" : "__UNI__5491739",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueCompiler" : "uni-app",
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
"modules" : {},
|
||||
"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.GET_ACCOUNTS\"/>",
|
||||
"<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\"/>"
|
||||
]
|
||||
},
|
||||
"ios" : {},
|
||||
"sdkConfigs" : {}
|
||||
}
|
||||
},
|
||||
"quickapp" : {},
|
||||
"mp-weixin" : {
|
||||
"optimization" : {
|
||||
"subPackages" : true
|
||||
},
|
||||
"appid" : "wxd96fda6510adb6d3",
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"es6" : false,
|
||||
"minified" : true,
|
||||
"postcss" : true
|
||||
},
|
||||
"usingComponents" : true
|
||||
},
|
||||
"vueVersion" : "2",
|
||||
"h5" : {
|
||||
"template" : "static/index.html",
|
||||
"devServer" : {
|
||||
"port" : 9090,
|
||||
"https" : false
|
||||
},
|
||||
"title" : "RuoYi-App",
|
||||
"router" : {
|
||||
"mode" : "history",
|
||||
"base" : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
12
pages.json
12
pages.json
@ -17,6 +17,11 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/register",
|
||||
"style": {
|
||||
"navigationBarTitleText": "注册"
|
||||
}
|
||||
}],
|
||||
"subPackages": [{
|
||||
"root": "pages/common",
|
||||
@ -234,10 +239,9 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "points/points",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : ""
|
||||
"path": "points/points",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -56,13 +56,13 @@
|
||||
<!-- 主体内容区域 -->
|
||||
<view class="dl-body">
|
||||
<!-- 随手转发 -->
|
||||
<view class="dl-public-box">
|
||||
<view class="dl-public-box" v-if="point&&point>0">
|
||||
<view class="dl-left">
|
||||
<image class="dl-icon" src="@/static/index/gift.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="dl-center">
|
||||
<view>随手转发上传通告赚零花</view>
|
||||
<view>每条轻松赚<text>{{point || ''}}</text>积分</view>
|
||||
<view>每条轻松赚<text>{{point/10}}</text>元</view>
|
||||
</view>
|
||||
<view class="dl-right">
|
||||
<view class="dl-opt-dom" @click="toPublish()">去转发</view>
|
||||
@ -415,7 +415,7 @@
|
||||
},
|
||||
// 关闭窗口
|
||||
closeDrawer(e) {
|
||||
debugger
|
||||
|
||||
this.chooseCondition = 9
|
||||
this.$refs.showRight.close()
|
||||
this.$refs.showRight2.close()
|
||||
@ -447,10 +447,7 @@
|
||||
}
|
||||
this.queryParams.sortBy = "new"
|
||||
} else if ('急招' == item) {
|
||||
//高奖励
|
||||
if (!await this.checkIfHasRights(rightsCode.highNewNotice)) {
|
||||
return
|
||||
}
|
||||
|
||||
this.queryParams.isUrgent = "1"
|
||||
} else if ('平台结算' == item) {
|
||||
//高奖励
|
||||
|
@ -85,6 +85,7 @@
|
||||
this.refreshUserType()
|
||||
},
|
||||
onShow() {
|
||||
|
||||
console.log("1111")
|
||||
this.refreshUserType()
|
||||
this.$refs.minePage.getDetail()
|
||||
|
@ -85,7 +85,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCode()
|
||||
|
||||
this.wxLogin()
|
||||
},
|
||||
methods: {
|
||||
|
@ -204,6 +204,7 @@
|
||||
this.toLogin(userTypeTemp)
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
openVip() {
|
||||
// 在你想触发跳转的地方
|
||||
@ -615,4 +616,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<view class="title-box">
|
||||
{{userInfo.nickName || ''}}
|
||||
<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 class="bottom-box">
|
||||
<view class="fans-box">
|
||||
@ -68,7 +68,7 @@
|
||||
</view>
|
||||
<view class="item-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>
|
||||
<image src="@/static/mine/jifen.png" mode="aspectFit"></image>
|
||||
@ -229,18 +229,18 @@
|
||||
memberEndDate: "",
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
this.getDetail()
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
@ -262,11 +262,11 @@
|
||||
}
|
||||
},
|
||||
getDetail() {
|
||||
let param = {
|
||||
userId: this.userInfo.userId,
|
||||
userType: this.localUserType
|
||||
}
|
||||
console.log(param,'param')
|
||||
let param = {
|
||||
userId: this.userInfo.userId,
|
||||
userType: this.localUserType
|
||||
}
|
||||
console.log(param, 'param')
|
||||
queryDetail({
|
||||
userId: this.userInfo.userId,
|
||||
userType: this.localUserType
|
||||
@ -285,8 +285,8 @@
|
||||
} else {
|
||||
this.ifHasCard = false
|
||||
}
|
||||
console.log(this.userInfo,'THIS.USERINFO')
|
||||
this.$forceUpdate()
|
||||
console.log(this.userInfo, 'THIS.USERINFO')
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
/**
|
||||
@ -667,7 +667,7 @@
|
||||
padding: 20rpx;
|
||||
|
||||
.item-text-box {
|
||||
font-size: 34rpx;
|
||||
font-size: 30rpx;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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>
|
||||
<view class="notice-detail-last-box">
|
||||
<!-- 报名列表 -->
|
||||
@ -182,7 +182,7 @@
|
||||
<view @click="shareFun()">
|
||||
<image src="@/static/detail/share.png" mode="aspectFit"></image>
|
||||
</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" class="join-report">已报名</view>
|
||||
<view v-else class="join-report" @click="changeUserType()">切换博主后报名</view>
|
||||
@ -244,6 +244,9 @@
|
||||
import {
|
||||
getSignCard
|
||||
} from '@/api/business/signCard.js'
|
||||
import {
|
||||
getUrlLink
|
||||
} from '@/api/wxApi.js'
|
||||
export default {
|
||||
components: {
|
||||
shareImages,
|
||||
@ -330,17 +333,26 @@
|
||||
if (params.type) {
|
||||
this.type = params.type
|
||||
}
|
||||
console.log(params, 336);
|
||||
this.noticeId = params.id
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
if (params.noticeId && !this.noticeId) {
|
||||
this.noticeId = params.noticeId
|
||||
}
|
||||
|
||||
},
|
||||
onShow() {
|
||||
if (null != getJSONData(constant.userInfo)) {
|
||||
this.userInfo = getJSONData(constant.userInfo)
|
||||
}
|
||||
this.getDetail()
|
||||
this.viewNotice()
|
||||
},
|
||||
methods: {
|
||||
goLogin() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login?canBack=true'
|
||||
})
|
||||
},
|
||||
preview(imageArray) {
|
||||
let previewImages = []
|
||||
imageArray.forEach(it => {
|
||||
@ -414,6 +426,9 @@
|
||||
});
|
||||
})
|
||||
},
|
||||
goIndex() {
|
||||
this.$tab.navigateTo(`/pages/index`)
|
||||
},
|
||||
goReportForm() {
|
||||
this.$tab.navigateTo('/pages/mine/set/report-form?userId=' + this.userDetail.userId + '¬iceId=' + this
|
||||
.noticeId)
|
||||
@ -497,6 +512,7 @@
|
||||
console.log(dataObj, 'dataObje')
|
||||
if ('lj' == dataObj.item.name) {
|
||||
//链接
|
||||
this.goLinkUrl()
|
||||
} else if ('wx' == dataObj.item.name) {
|
||||
|
||||
} else if ('jb' == dataObj.item.name) {
|
||||
@ -511,6 +527,29 @@
|
||||
dialogClose() {
|
||||
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
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 去首页
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user