Compare commits

..

2 Commits

Author SHA1 Message Date
Vinjor
5e88ae4144 Merge branch 'master' of http://192.168.1.26:3000/dianliang/dl_uniapp 2025-05-06 14:49:54 +08:00
Vinjor
39f9169759 1 2025-05-06 14:49:49 +08:00
4 changed files with 94 additions and 12 deletions

View File

@ -224,4 +224,12 @@ export function payout(data) {
method: 'post',
data: data
})
}
//判断是否领取过新人好礼 0否 1是
export function isGetGift() {
return request({
url: '/member/member/isGetGift',
method: 'post'
})
}

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
<!-- 主体区域 -->
<view class="content-body">
<!-- 通告列表页 -->
<notice-index v-if="'home'==menuCode" @openVip="openVip"></notice-index>
<notice-index ref="noticeIndex" v-if="'home'==menuCode" @openVip="openVip"></notice-index>
<mine-index ref="minePage" :key="nowUserType" :nowUserType="nowUserType" v-if="'my'==menuCode"
@refreshUserType="refreshUserType()"></mine-index>
<subscribe v-if="'dingyue'==menuCode"></subscribe>
@ -38,7 +38,8 @@
} from '@/api/system/config.js'
import constant from '@/utils/constant'
import {
setStrData
setStrData,
getToken
} from '@/utils/auth.js'
import {
toast,
@ -46,7 +47,8 @@
} from '@/utils/common.js'
import rightsCode from '@/utils/rightsCode'
import {
getMemberDetail
getMemberDetail,
isGetGift
} from '@/api/business/member.js'
export default {
components: {
@ -95,8 +97,29 @@
this.menuCode = param.menuCode
}
this.selectSiteConfig("platform_tel")
this.checkUserIfLogin()
},
methods: {
/**
* 判断用户是否登录
*/
checkUserIfLogin() {
debugger
if (getToken() && "" != getToken() && null != getToken()) {
//
isGetGift().then(res => {
if (res.code == 200 && "1" == res.data) {
//
} else {
//
this.$refs.noticeIndex.toggle()
}
})
} else {
//
this.$refs.noticeIndex.toggle()
}
},
/**
* 打开VIP弹窗
*/

View File

@ -559,6 +559,8 @@
if (this.validForm(this.dataObj)) {
return
}
let str = this.dataObj.detail.replace(/\n|\r\n/g, "<br>")
this.dataObj.detail = str
//
this.dataObj.approvalStatus = '0'
if (this.fileList && this.fileList.length > 0) {