瀏覽代碼

no message

xiaoxin 2 年之前
父節點
當前提交
73a3be6d77

+ 13 - 13
pages/index/index.vue

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

File diff suppressed because it is too large
+ 99 - 95
unpackage/dist/dev/mp-weixin/common/vendor.js


+ 2 - 2
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -162,7 +162,7 @@ const _sfc_main = {
     const handleValidate = () => {
       const reName = /^[\u4e00-\u9fa5]{2,4}$/;
       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 == "") {
         common_vendor.index.showToast({
           title: "请输入姓名",
@@ -221,7 +221,7 @@ const _sfc_main = {
       }
       if (!reProjectAmount.test(projectAmount.value)) {
         common_vendor.index.showToast({
-          title: "项目金额请输入正数",
+          title: "项目金额请输入正数",
           icon: "none"
         });
         return false;

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml


+ 0 - 2
unpackage/dist/dev/mp-weixin/project.config.json

@@ -11,8 +11,6 @@
     "minified": false,
     "newFeature": true,
     "bigPackageSizeSupport": true,
-    "packNpmRelationList": [],
-    "condition": false,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],