通告功能
This commit is contained in:
parent
cf369722b6
commit
3fa6829536
@ -16,6 +16,13 @@ export function announcerDetail(userId) {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//查询通告主详情
|
||||
export function getMemberDetail() {
|
||||
return request({
|
||||
url: '/member/member/getMemberDetail',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function queryDetail(params) {
|
||||
return request({
|
||||
url: '/member/member/queryDetail',
|
||||
@ -200,4 +207,4 @@ export function getMemberCoupon() {
|
||||
url: '/member/coupon/getMemberCoupon',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
}
|
@ -77,7 +77,7 @@
|
||||
<view>每条轻松赚<text>{{point || ''}}</text>积分</view>
|
||||
</view>
|
||||
<view class="dl-right">
|
||||
<view class="dl-opt-dom">去转发</view>
|
||||
<view class="dl-opt-dom" @click="toPublish()">去转发</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -189,7 +189,8 @@
|
||||
getNoticeList
|
||||
} from '@/api/business/notice.js'
|
||||
import {
|
||||
dealMemberRights
|
||||
dealMemberRights,
|
||||
getMemberDetail
|
||||
} from '@/api/business/member.js'
|
||||
import {
|
||||
getJSONData
|
||||
@ -199,7 +200,9 @@
|
||||
} from '@/utils/common.js'
|
||||
import constant from '@/utils/constant';
|
||||
import store from '@/store'
|
||||
|
||||
import {
|
||||
changeUserType
|
||||
} from '@/utils/common.js'
|
||||
export default {
|
||||
components: {
|
||||
noticeItem
|
||||
@ -258,6 +261,24 @@
|
||||
|
||||
},
|
||||
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`)
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
/**
|
||||
* 查询发布通告送多少积分
|
||||
*/
|
||||
|
@ -204,7 +204,7 @@
|
||||
通告明细
|
||||
</view>
|
||||
<view class="item-value">
|
||||
<textarea v-model="dataObj.detail" style="height: 600rpx;" type="text"
|
||||
<textarea maxlength="3000" v-model="dataObj.detail" style="height: 600rpx;" type="text"
|
||||
placeholder="请输入通告明细" />
|
||||
</view>
|
||||
</view>
|
||||
@ -1074,4 +1074,4 @@
|
||||
.checklist-box {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user