Merge branch 'master' of http://192.168.1.26:3000/dianliang/dl_uniapp
This commit is contained in:
commit
b04e9bce3c
@ -16,6 +16,13 @@ export function announcerDetail(userId) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//查询通告主详情
|
||||||
|
export function getMemberDetail() {
|
||||||
|
return request({
|
||||||
|
url: '/member/member/getMemberDetail',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
export function queryDetail(params) {
|
export function queryDetail(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/member/member/queryDetail',
|
url: '/member/member/queryDetail',
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
<view>每条轻松赚<text>{{point || ''}}</text>积分</view>
|
<view>每条轻松赚<text>{{point || ''}}</text>积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="dl-right">
|
<view class="dl-right">
|
||||||
<view class="dl-opt-dom">去转发</view>
|
<view class="dl-opt-dom" @click="toPublish()">去转发</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -177,7 +177,8 @@
|
|||||||
getNoticeList
|
getNoticeList
|
||||||
} from '@/api/business/notice.js'
|
} from '@/api/business/notice.js'
|
||||||
import {
|
import {
|
||||||
dealMemberRights
|
dealMemberRights,
|
||||||
|
getMemberDetail
|
||||||
} from '@/api/business/member.js'
|
} from '@/api/business/member.js'
|
||||||
import {
|
import {
|
||||||
getJSONData
|
getJSONData
|
||||||
@ -187,7 +188,9 @@
|
|||||||
} from '@/utils/common.js'
|
} from '@/utils/common.js'
|
||||||
import constant from '@/utils/constant';
|
import constant from '@/utils/constant';
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import {
|
||||||
|
changeUserType
|
||||||
|
} from '@/utils/common.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
noticeItem
|
noticeItem
|
||||||
@ -247,6 +250,24 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 去发布
|
||||||
|
*/
|
||||||
|
toPublish() {
|
||||||
|
getMemberDetail().then(res => {
|
||||||
|
if (!res.data.identityType) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '暂未通告主认证,请先认证',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
changeUserType("01")
|
||||||
|
this.$tab.navigateTo(`/pages/notice/public-notice`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 查询发布通告送多少积分
|
* 查询发布通告送多少积分
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1082,3 +1082,4 @@
|
|||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user