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
})
}
export function saveSignInfo(data) {
return request({
url: '/wxMsgApi/saveSignInfo',
method: 'get',
params: data
})
}

View File

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

View File

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

View File

@ -76,7 +76,7 @@
商单自报价选填
</view>
<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 class="item-field">
@ -89,7 +89,7 @@
</view>
<view class="item-field">
<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 class="item-value">
<uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile"
@ -286,7 +286,7 @@
return
}
if (!this.imageUrl || this.imageUrl.length == 0) {
toast("证明材料不能为空")
toast("首页截图不能为空")
return
}
this.dataObj.image = this.imageUrl.join(',');

View File

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

View File

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

View File

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

View File

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