crm功能开发

This commit is contained in:
朱春云 2025-08-15 15:45:51 +08:00
parent 56d58b4c0b
commit 854bf2589e
8 changed files with 64 additions and 21 deletions

View File

@ -16,3 +16,12 @@ export function userSign(data) {
data: data data: data
}) })
} }
export function saveSignInfo(data) {
return request({
url: '/wxMsgApi/saveSignInfo',
method: 'get',
params: data
})
}

View File

@ -50,7 +50,7 @@
methods: { methods: {
back() { back() {
console.log('返回'); console.log('返回');
if (this.navigatePath != '000') { if (this.navigatePath && this.navigatePath != '000') {
this.$tab.navigateTo(this.navigatePath) this.$tab.navigateTo(this.navigatePath)
} else { } else {
uni.navigateBack() uni.navigateBack()

View File

@ -1,8 +1,8 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
//baseUrl: 'https://3w823u8516.vicp.fun/noticeApi', //baseUrl: 'https://3w823u8516.vicp.fun/noticeApi',
baseUrl: 'https://www.ddtg.site/noticeApi', //baseUrl: 'https://www.ddtg.site/noticeApi',
//baseUrl: 'http://192.168.1.6:8088', baseUrl: 'http://192.168.1.31:8088',
// 应用信息 // 应用信息
appInfo: { appInfo: {
// 应用名称 // 应用名称

View File

@ -76,7 +76,7 @@
商单自报价选填 商单自报价选填
</view> </view>
<view class="item-value"> <view class="item-value">
<input class="uni-input" v-model="dataObj.price" type="decimal" placeholder="请输入" /> <input class="uni-input" v-model="dataObj.price" placeholder="请输入" />
</view> </view>
</view> </view>
<view class="item-field"> <view class="item-field">
@ -89,7 +89,7 @@
</view> </view>
<view class="item-field"> <view class="item-field">
<view class="item-lable is-required"> <view class="item-lable is-required">
<image src="@/static/mine/required.png" mode="aspectFit"></image>证明材料 <image src="@/static/mine/required.png" mode="aspectFit"></image>首页截图
</view> </view>
<view class="item-value"> <view class="item-value">
<uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile" <uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile"
@ -286,7 +286,7 @@
return return
} }
if (!this.imageUrl || this.imageUrl.length == 0) { if (!this.imageUrl || this.imageUrl.length == 0) {
toast("证明材料不能为空") toast("首页截图不能为空")
return return
} }
this.dataObj.image = this.imageUrl.join(','); this.dataObj.image = this.imageUrl.join(',');

View File

@ -187,7 +187,8 @@
}, },
onLoad(options) { onLoad(options) {
let userTypeTemp = options.userType //let userTypeTemp = options.userType
let userTypeTemp = '02'
this.initData(userTypeTemp); this.initData(userTypeTemp);
//urlsearch //urlsearch
if (options.code) { if (options.code) {

View File

@ -7,10 +7,18 @@
<view class="left-dom"> <view class="left-dom">
<view class="left-dom-top"> <view class="left-dom-top">
<image src="@/static/mine/points.png" mode="aspectFit"> <image src="@/static/mine/points.png" mode="aspectFit">
</image>可用积分 </image>全部积分
</view> </view>
<view class="left-dom-bottom">{{pointsBalance}}</view> <view class="left-dom-bottom">{{pointsBalance}}</view>
</view> </view>
<view class="left-dom">
<view class="left-dom-top">
<image src="@/static/mine/points.png" mode="aspectFit">
</image>可提现积分
</view>
<view class="left-dom-bottom">{{canUseBalance||0}}</view>
</view>
<view> <view>
<view class="right-dom" @click="outData()">提现</view> <view class="right-dom" @click="outData()">提现</view>
<view class="tips"> <view class="tips">
@ -137,6 +145,7 @@
isTriggered: false, isTriggered: false,
userId: null, userId: null,
pointsBalance: 0, pointsBalance: 0,
canUseBalance: 0,
money: "", money: "",
interval: null interval: null
} }
@ -169,6 +178,7 @@
} }
queryDetail(param).then(res => { queryDetail(param).then(res => {
this.pointsBalance = res.data.pointsBalance.toString() this.pointsBalance = res.data.pointsBalance.toString()
this.canUseBalance = res.data.canUseBalance.toString()
this.$forceUpdate() this.$forceUpdate()
}) })
}, },

View File

@ -216,6 +216,7 @@
</view> --> </view> -->
</view> </view>
</view> </view>
<!-- 提示窗示例 --> <!-- 提示窗示例 -->
<uni-popup ref="alertDialog" type="dialog"> <uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog cancelText="取消" confirmText="创建" iconPath="/static/detail/card.png" <uni-popup-dialog cancelText="取消" confirmText="创建" iconPath="/static/detail/card.png"
@ -229,6 +230,7 @@
<shareImages ref="canvas" :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" :shareTitle="shareTitle" <shareImages ref="canvas" :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" :shareTitle="shareTitle"
:goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl" :goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl"
@success="shareSuccess()" /> @success="shareSuccess()" />
<!-- 报名弹窗 --> <!-- 报名弹窗 -->
<uni-popup ref="popupNew"> <uni-popup ref="popupNew">
<view class="popup-content"> <view class="popup-content">
@ -237,10 +239,12 @@
<image src="@/static/detail/mingpian.png" mode="aspectFit"></image> <image src="@/static/detail/mingpian.png" mode="aspectFit"></image>
</view> </view>
<view style="padding: 8rpx 0;">此通告需要收集博主信息</view> <view style="padding: 8rpx 0;">此通告需要收集博主信息</view>
<view style="padding: 8rpx 0;">请复制通告到微信对话框填写信息报名</view>
</view> </view>
<view style="text-align: center;width: 100%;"> <view style="text-align: center;width: 100%;">
<view class="dl-copy-button" @click="goLinkUrl(1)">点击复制</view> <button class="share-button" style="text-align: center;
margin: auto; border-radius: 0 0 20rpx 20rpx; margin-top: 10rpx; font-size: 36rpx; width: 100%;
background-color: #FC1F3E; color: white; padding: 20rpx 0;" open-type="contact">点击报名</button>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
@ -277,7 +281,8 @@
import config from '@/config' import config from '@/config'
import { import {
getSignCard, getSignCard,
userSign userSign,
saveSignInfo
} from '@/api/business/signCard.js' } from '@/api/business/signCard.js'
import { import {
getUrlLink getUrlLink
@ -292,7 +297,7 @@
signFormData: { signFormData: {
customForm: [] customForm: []
}, },
navigatePath: '000', navigatePath: null,
//- //-
viewMy: false, viewMy: false,
//ID //ID
@ -392,11 +397,21 @@
this.userInfo = getJSONData(constant.userInfo) this.userInfo = getJSONData(constant.userInfo)
this.getRole() this.getRole()
} }
this.getDetail() this.getDetail()
this.viewNotice() this.viewNotice()
}, },
methods: { methods: {
openCus() {
//
const button = this.$refs.contactButton;
button.click();
if (button && typeof button.click === 'function') {
button.click();
}
},
getRole() { getRole() {
getInfo().then(res => { getInfo().then(res => {
if (res.roles.indexOf('xsry') > -1) { if (res.roles.indexOf('xsry') > -1) {
@ -505,11 +520,13 @@
this.$tab.navigateTo(`/pages/index`) 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)
}, },
goMemberIndex() { goMemberIndex() {
this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId + '&noticeId=' + this.$tab.navigateTo('/pages/mine/member/member-index?userId=' + this.userDetail.userId +
'&noticeId=' +
this this
.noticeId) .noticeId)
}, },
@ -649,11 +666,17 @@
this.signFormData.cardList = [res.data.list[0]] this.signFormData.cardList = [res.data.list[0]]
this.signFormData.isSuper = 0 this.signFormData.isSuper = 0
userSign(this.signFormData).then(res => { userSign(this.signFormData).then(res => {
this.$refs.popupNew.open('center') //
saveSignInfo({
signId: this.noticeDetail.id
}).then(res => {
this.$refs.popupNew.open('center')
})
that.getDetail() that.getDetail()
}) })
} else { } else {
this.$tab.navigateTo('/pages/notice/report?noticeId=' + this.noticeId) this.$tab.navigateTo('/pages/notice/report?noticeId=' + this
.noticeId)
} }
} else { } else {

View File

@ -210,15 +210,15 @@
placeholder="请输入通告明细" /> --> placeholder="请输入通告明细" /> -->
</view> </view>
</view> </view>
<!-- <view class="item-field" v-if="userInfo.identityType=='05'"> <view class="item-field" v-if="userInfo.identityType=='05'">
<view class="item-lable is-required"> <view class="item-lable is-required">
三方报名链接 三方报名链接
</view> </view>
<view class="item-value"> <view class="item-value">
<input class="uni-input" v-model="dataObj.thirdUrl" type="text" placeholder="请输入" /> <input class="uni-input" v-model="dataObj.thirdUrl" type="text" placeholder="请输入" />
</view> </view>
</view> --> </view>
<view class="item-field"> <view class="item-field" v-else>
<view class="item-lable"> <view class="item-lable">
三方报名链接 三方报名链接
</view> </view>
@ -589,7 +589,7 @@
// icon: 'none', // icon: 'none',
// duration: 1000 // duration: 1000
// }) // })
// return // return true;
// } // }
}, },
// //