|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
|
|
<view class="form_item">
|
|
<view class="form_item">
|
|
|
<span class="icon">*</span>
|
|
<span class="icon">*</span>
|
|
|
- 项目金额
|
|
|
|
|
|
|
+ 项目金额(万元)
|
|
|
<uni-easyinput type="number" placeholder="请输入项目金额" v-model="projectAmount"></uni-easyinput>
|
|
<uni-easyinput type="number" placeholder="请输入项目金额" v-model="projectAmount"></uni-easyinput>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -222,7 +222,7 @@ const imageStyles = {
|
|
|
const filePicker = ref(null)
|
|
const filePicker = ref(null)
|
|
|
|
|
|
|
|
// 日期选择框绑定回调
|
|
// 日期选择框绑定回调
|
|
|
-const bindDateChange = e => {
|
|
|
|
|
|
|
+const bindDateChange = (e) => {
|
|
|
const val = e.detail.value
|
|
const val = e.detail.value
|
|
|
biddingTime.value = val
|
|
biddingTime.value = val
|
|
|
}
|
|
}
|
|
@@ -250,7 +250,7 @@ const handleSubmit = () => {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
content: '本次操作需要获取您的手机号码',
|
|
content: '本次操作需要获取您的手机号码',
|
|
|
- success: res => {
|
|
|
|
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: '/pages/authorization/authorization'
|
|
url: '/pages/authorization/authorization'
|
|
@@ -263,7 +263,7 @@ const handleSubmit = () => {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
content: '确认提交吗',
|
|
content: '确认提交吗',
|
|
|
- success: res => {
|
|
|
|
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
submit()
|
|
submit()
|
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
@@ -278,7 +278,7 @@ const handleSubmit = () => {
|
|
|
const handleValidate = () => {
|
|
const handleValidate = () => {
|
|
|
const reName = /^[\u4e00-\u9fa5]{2,4}$/
|
|
const reName = /^[\u4e00-\u9fa5]{2,4}$/
|
|
|
const rePhone = /^[1][3,4,5,7,8,9][0-9]{9}$/
|
|
const rePhone = /^[1][3,4,5,7,8,9][0-9]{9}$/
|
|
|
- const reProjectAmount = /^\+?[1-9][0-9]*$/
|
|
|
|
|
|
|
+ const reProjectAmount = /^[+]?([0-9]+(?:[.][0-9]*)?|\.[0-9]+)$/
|
|
|
|
|
|
|
|
if (name.value == '') {
|
|
if (name.value == '') {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -338,7 +338,7 @@ const handleValidate = () => {
|
|
|
}
|
|
}
|
|
|
if (!reProjectAmount.test(projectAmount.value)) {
|
|
if (!reProjectAmount.test(projectAmount.value)) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
- title: '项目金额请输入正整数',
|
|
|
|
|
|
|
+ title: '项目金额请输入正数',
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
})
|
|
})
|
|
|
return false
|
|
return false
|
|
@@ -370,7 +370,7 @@ const handleValidate = () => {
|
|
|
// 请求提交接口回调
|
|
// 请求提交接口回调
|
|
|
const submit = async () => {
|
|
const submit = async () => {
|
|
|
const bProduct = []
|
|
const bProduct = []
|
|
|
- productType.value.forEach(item => {
|
|
|
|
|
|
|
+ productType.value.forEach((item) => {
|
|
|
bProduct.push(hobby.value[item].text)
|
|
bProduct.push(hobby.value[item].text)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -431,9 +431,9 @@ const getCurrentDate = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 选择图片回调
|
|
// 选择图片回调
|
|
|
-const select = e => {
|
|
|
|
|
|
|
+const select = (e) => {
|
|
|
// console.log(e);
|
|
// console.log(e);
|
|
|
- e.tempFiles.forEach(item => {
|
|
|
|
|
|
|
+ e.tempFiles.forEach((item) => {
|
|
|
//这里的id和页面中写的html代码的canvas的id要一致
|
|
//这里的id和页面中写的html代码的canvas的id要一致
|
|
|
let canvasId = 'zipCanvas'
|
|
let canvasId = 'zipCanvas'
|
|
|
//原图的路径
|
|
//原图的路径
|
|
@@ -443,7 +443,7 @@ const select = e => {
|
|
|
//初始绘画区域是画布自身的宽度也就是屏幕宽度
|
|
//初始绘画区域是画布自身的宽度也就是屏幕宽度
|
|
|
let drawWidth = uni.getSystemInfoSync().windowWidth
|
|
let drawWidth = uni.getSystemInfoSync().windowWidth
|
|
|
|
|
|
|
|
- getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, resPath => {
|
|
|
|
|
|
|
+ getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, (resPath) => {
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '上传中'
|
|
title: '上传中'
|
|
|
})
|
|
})
|
|
@@ -451,7 +451,7 @@ const select = e => {
|
|
|
url: `https://jiangxih3cpartner.com/reporting/file/fileUpDown`,
|
|
url: `https://jiangxih3cpartner.com/reporting/file/fileUpDown`,
|
|
|
filePath: resPath,
|
|
filePath: resPath,
|
|
|
name: 'file',
|
|
name: 'file',
|
|
|
- success: uploadFileRes => {
|
|
|
|
|
|
|
+ success: (uploadFileRes) => {
|
|
|
subImgList.value.push(JSON.parse(uploadFileRes.data).data.join())
|
|
subImgList.value.push(JSON.parse(uploadFileRes.data).data.join())
|
|
|
projectImgList.value.push({
|
|
projectImgList.value.push({
|
|
|
url: item.path,
|
|
url: item.path,
|
|
@@ -471,9 +471,9 @@ const select = e => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 删除图片回调
|
|
// 删除图片回调
|
|
|
-const handleDelete = e => {
|
|
|
|
|
|
|
+const handleDelete = (e) => {
|
|
|
// console.log(e);
|
|
// console.log(e);
|
|
|
- const num = projectImgList.value.findIndex(v => v.url === e.tempFilePath)
|
|
|
|
|
|
|
+ const num = projectImgList.value.findIndex((v) => v.url === e.tempFilePath)
|
|
|
subImgList.value.splice(num, 1)
|
|
subImgList.value.splice(num, 1)
|
|
|
projectImgList.value.splice(num, 1)
|
|
projectImgList.value.splice(num, 1)
|
|
|
}
|
|
}
|