邓洁 : 修改小程序bug
This commit is contained in:
@@ -80,35 +80,24 @@
|
||||
|
||||
<view style="background-color: #fff;">
|
||||
<u-form-item label="联系方式" borderBottom>
|
||||
<u-radio-group
|
||||
v-model="needsPublishForm.contactWay"
|
||||
placement="row"
|
||||
>
|
||||
<u-radio
|
||||
:customStyle="{marginRight: '16px'}"
|
||||
label="手机"
|
||||
name="mobile"
|
||||
:disabled="btnDisabled"
|
||||
>
|
||||
</u-radio>
|
||||
<u-radio
|
||||
label="邮箱"
|
||||
name="email"
|
||||
:disabled="btnDisabled"
|
||||
>
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
<u-radio-group v-model="needsPublishForm.contactWay" placement="row">
|
||||
<u-radio :customStyle="{marginRight: '16px'}" label="手机" name="mobile" :disabled="btnDisabled">
|
||||
</u-radio>
|
||||
<u-radio label="邮箱" name="email" :disabled="btnDisabled">
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
</u-form-item>
|
||||
<u-form-item v-if="needsPublishForm.contactWay === 'mobile'" label="手机" borderBottom>
|
||||
<u--input placeholder="请输入手机号" :border="false" v-model="needsPublishForm.mobile"
|
||||
placeholder-style="color:#CCCCCC" :disabled="btnDisabled" disabledColor="#ffffff"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item v-if="needsPublishForm.contactWay === 'email'" label="邮箱" borderBottom>
|
||||
<u--input placeholder="请输入邮箱地址" :border="false" v-model="needsPublishForm.email" :disabled="btnDisabled"
|
||||
placeholder-style="color:#CCCCCC"></u--input>
|
||||
<u--input placeholder="请输入邮箱地址" :border="false" v-model="needsPublishForm.email"
|
||||
:disabled="btnDisabled" placeholder-style="color:#CCCCCC"></u--input>
|
||||
</u-form-item>
|
||||
<view style="padding: 6rpx 20rpx 0;text-align: left;background-color: #fff;">
|
||||
<text style="font-size: 24rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #C8C8C8;line-height: 28rpx;">
|
||||
<text
|
||||
style="font-size: 24rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #C8C8C8;line-height: 28rpx;">
|
||||
联系方式将不对外发布。如有相关意向,平台会以您留下的联系方式通知您。
|
||||
</text>
|
||||
</view>
|
||||
@@ -216,6 +205,7 @@
|
||||
}
|
||||
})
|
||||
this.needsPublishForm = publishFormList
|
||||
console.log('this.needsPublishForm', this.needsPublishForm);
|
||||
} catch (error) {
|
||||
this.$toast.warn(error)
|
||||
}
|
||||
@@ -253,8 +243,7 @@
|
||||
// return item
|
||||
// })
|
||||
// this.productPickerColumn[0] = [...temp]
|
||||
}).finally(_ => {
|
||||
})
|
||||
}).finally(_ => {})
|
||||
},
|
||||
// getProductPickerList() {
|
||||
// const data = {}
|
||||
@@ -384,16 +373,18 @@
|
||||
})
|
||||
},
|
||||
submitForm() {
|
||||
if (this.needsPublishForm.contactWay === 'mobile' && !/^1[3456789]\d{9}$/.test(this.needsPublishForm.mobile)) {
|
||||
if (this.needsPublishForm.contactWay === 'mobile' && !/^1[3456789]\d{9}$/.test(this.needsPublishForm
|
||||
.mobile)) {
|
||||
this.$toast.warn('请输入正确的手机号')
|
||||
return false
|
||||
} else if (this.needsPublishForm.contactWay === 'email' && !/^([0-9a-zA-Z_\.\-\])+\@([0-9a-zA-Z_\.\-\])+\.([a-zA-Z]+)$/.test(this.needsPublishForm.email)) {
|
||||
} else if (this.needsPublishForm.contactWay === 'email' && !
|
||||
/^([0-9a-zA-Z_\.\-\])+\@([0-9a-zA-Z_\.\-\])+\.([a-zA-Z]+)$/.test(this.needsPublishForm.email)) {
|
||||
this.$toast.warn('请输入正确的邮箱地址')
|
||||
return false
|
||||
}
|
||||
this.needsPublishForm.type = Number(this.tabCurrent + 1)
|
||||
this.needsPublishForm.pub_time = this.needsPublishForm.pub_time ? this.needsPublishForm.pub_time :
|
||||
Math.round(new Date().getTime() / 1000)
|
||||
Math.round(new Date().getTime() / 1000)
|
||||
const temp = []
|
||||
if (this.fileList1.length > 0) {
|
||||
this.fileList1.map(item => {
|
||||
@@ -410,6 +401,7 @@
|
||||
area_name: null,
|
||||
images: null,
|
||||
mobile: null,
|
||||
email: null,
|
||||
class: null,
|
||||
product: null,
|
||||
loc: null,
|
||||
@@ -419,11 +411,11 @@
|
||||
}
|
||||
apiService.submitIdeasAndNeeds(data).then(res => {
|
||||
this.$toast.success('提交成功')
|
||||
if (this.needsPublishForm.id) {
|
||||
uni.navigateTo({
|
||||
url: '../../packageMy/myRelease/myRelease?index=' + (this.tabCurrent + 1)
|
||||
})
|
||||
}
|
||||
// if (this.needsPublishForm.id) {
|
||||
uni.navigateTo({
|
||||
url: '../../packageMy/myRelease/myRelease?index=' + (this.tabCurrent + 1)
|
||||
})
|
||||
// }
|
||||
this.tabCurrent = 0
|
||||
this.fileList1 = []
|
||||
this.needsPublishForm = {}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
name: '新品发布' // 上架时间(改)
|
||||
},
|
||||
{
|
||||
name: '新创意' // 点赞量(改)
|
||||
name: '企业需求' // 点赞量(改)
|
||||
},
|
||||
],
|
||||
imgUrl: '',
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</u--image>
|
||||
<text class="xpfb_text text">企业需求</text>
|
||||
</view>
|
||||
<productsByTime></productsByTime>
|
||||
<productsByThumb></productsByThumb>
|
||||
</view>
|
||||
|
||||
<!-- 认证厂家 -->
|
||||
|
||||
Reference in New Issue
Block a user