名称修改
需求发布,联系方式二选一
This commit is contained in:
24
package-lock.json
generated
24
package-lock.json
generated
@@ -1,11 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"name": "pupil",
|
||||||
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"lockfileVersion": 1,
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"dependencies": {
|
||||||
|
"uview-ui": "^2.0.35"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/uview-ui": {
|
||||||
|
"version": "2.0.36",
|
||||||
|
"resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.36.tgz",
|
||||||
|
"integrity": "sha512-ASSZT6M8w3GTO1eFPbsgEFV0U5UujK+8pTNr+MSUbRNcRMC1u63DDTLJVeArV91kWM0bfAexK3SK9pnTqF9TtA==",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"uview-ui": {
|
"uview-ui": {
|
||||||
"version": "2.0.35",
|
"version": "2.0.36",
|
||||||
"resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.35.tgz",
|
"resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.36.tgz",
|
||||||
"integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g=="
|
"integrity": "sha512-ASSZT6M8w3GTO1eFPbsgEFV0U5UujK+8pTNr+MSUbRNcRMC1u63DDTLJVeArV91kWM0bfAexK3SK9pnTqF9TtA=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,9 +184,9 @@
|
|||||||
},
|
},
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
tabsList: [{
|
tabsList: [{
|
||||||
name: '上架时间'
|
name: '新品发布' // 上架时间(改)
|
||||||
}, {
|
}, {
|
||||||
name: '点赞量'
|
name: '新创意' // 点赞量(改)
|
||||||
}],
|
}],
|
||||||
tagsList: [],
|
tagsList: [],
|
||||||
scrollTop: 0, //tab标题的滚动条位置
|
scrollTop: 0, //tab标题的滚动条位置
|
||||||
|
|||||||
10
pages.json
10
pages.json
@@ -22,7 +22,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/report/report",
|
"path": "pages/report/report",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "行业报告",
|
"navigationBarTitleText": "行业&需求",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"navigationBarBackgroundColor": "#12CA64",
|
"navigationBarBackgroundColor": "#12CA64",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/ideasAndNeeds/ideasAndNeeds",
|
"path": "pages/ideasAndNeeds/ideasAndNeeds",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "创意&需求",
|
"navigationBarTitleText": "创需发布",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"navigationBarBackgroundColor": "#12CA64",
|
"navigationBarBackgroundColor": "#12CA64",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "newProductRelease/newProductRelease",
|
"path": "newProductRelease/newProductRelease",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新品发布",
|
"navigationBarTitleText": "企业需求",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "white",
|
||||||
"navigationBarBackgroundColor": "#12CA64",
|
"navigationBarBackgroundColor": "#12CA64",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
@@ -213,13 +213,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/report/report",
|
"pagePath": "pages/report/report",
|
||||||
"text": "行业报告",
|
"text": "行业&需求",
|
||||||
"iconPath": "static/tabBar/sy_icon_hyh.png",
|
"iconPath": "static/tabBar/sy_icon_hyh.png",
|
||||||
"selectedIconPath": "static/tabBar/sy_icon_sy.png"
|
"selectedIconPath": "static/tabBar/sy_icon_sy.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/ideasAndNeeds/ideasAndNeeds",
|
"pagePath": "pages/ideasAndNeeds/ideasAndNeeds",
|
||||||
"text": "创意&需求",
|
"text": "创需发布",
|
||||||
"iconPath": "static/tabBar/sy_icon_cyh.png",
|
"iconPath": "static/tabBar/sy_icon_cyh.png",
|
||||||
"selectedIconPath": "static/tabBar/sy_icon_cy.png"
|
"selectedIconPath": "static/tabBar/sy_icon_cy.png"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -72,10 +72,37 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="background-color: #fff;">
|
<view style="background-color: #fff;">
|
||||||
<u-form-item label="手机" borderBottom>
|
<u-form-item label="联系方式" borderBottom>
|
||||||
|
<u-radio-group
|
||||||
|
v-model="needsPublishForm.contactWay"
|
||||||
|
placement="row"
|
||||||
|
>
|
||||||
|
<u-radio
|
||||||
|
:customStyle="{marginRight: '16px'}"
|
||||||
|
label="手机"
|
||||||
|
name="mobile"
|
||||||
|
>
|
||||||
|
</u-radio>
|
||||||
|
<u-radio
|
||||||
|
label="邮箱"
|
||||||
|
name="email"
|
||||||
|
>
|
||||||
|
</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"
|
<u--input placeholder="请输入手机号" :border="false" v-model="needsPublishForm.mobile"
|
||||||
placeholder-style="color:#CCCCCC"></u--input>
|
placeholder-style="color:#CCCCCC"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<u-form-item v-if="needsPublishForm.contactWay === 'email'" label="邮箱" borderBottom>
|
||||||
|
<u--input placeholder="请输入邮箱地址" :border="false" v-model="needsPublishForm.email"
|
||||||
|
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>
|
||||||
|
</view>
|
||||||
<!-- <u-form-item label="验证" borderBottom>
|
<!-- <u-form-item label="验证" borderBottom>
|
||||||
<view style="display: flex;padding-right: 20rpx;align-items: center;">
|
<view style="display: flex;padding-right: 20rpx;align-items: center;">
|
||||||
<u--input placeholder="请输入验证码" :border="false" v-model="needsPublishForm.invalidCode"
|
<u--input placeholder="请输入验证码" :border="false" v-model="needsPublishForm.invalidCode"
|
||||||
@@ -89,9 +116,10 @@
|
|||||||
<view style="padding: 30rpx;background-color: #fff;">
|
<view style="padding: 30rpx;background-color: #fff;">
|
||||||
<u-button color="#0EBB5B" text="确定发布" @tap.stop="submitForm"></u-button>
|
<u-button color="#0EBB5B" text="确定发布" @tap.stop="submitForm"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 20rpx;text-align: center;background-color: #fff;">
|
<view style="padding: 10rpx 20rpx;text-align: center;background-color: #fff;">
|
||||||
<text
|
<text style="font-size: 24rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #C8C8C8;line-height: 28rpx;">
|
||||||
style="font-size: 24rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #C8C8C8;line-height: 28rpx;">承诺声明预留文字位置承诺声明预留文字位置</text>
|
您在确认发布后,会由平台管理方经行审核。审核通过后,予以发布。对于用户在本站发表的信息,由用户个人承担对应责任,本平台不承担任何法律责任。
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u--form>
|
</u--form>
|
||||||
@@ -156,14 +184,14 @@
|
|||||||
},
|
},
|
||||||
onTabItemTap() {
|
onTabItemTap() {
|
||||||
console.log('----onShow')
|
console.log('----onShow')
|
||||||
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
// if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
||||||
console.log(uni.getStorageSync('loginToken'))
|
// console.log(uni.getStorageSync('loginToken'))
|
||||||
this.isLoad = false
|
// this.isLoad = false
|
||||||
// uni.navigateTo({
|
// // uni.navigateTo({
|
||||||
// url: '../../pages/my/login/login'
|
// // url: '../../pages/my/login/login'
|
||||||
// })
|
// // })
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
this.imgUrl = uni.getStorageSync('img_url')
|
this.imgUrl = uni.getStorageSync('img_url')
|
||||||
console.log(this.imgUrl)
|
console.log(this.imgUrl)
|
||||||
this.isLoad = true
|
this.isLoad = true
|
||||||
@@ -369,9 +397,12 @@
|
|||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.fileList1)
|
console.log(this.fileList1)
|
||||||
if (!/^1[3456789]\d{9}$/.test(this.needsPublishForm.mobile)) {
|
if (this.needsPublishForm.contactWay === 'mobile' && !/^1[3456789]\d{9}$/.test(this.needsPublishForm.mobile)) {
|
||||||
this.$toast.warn('请输入正确的手机号')
|
this.$toast.warn('请输入正确的手机号')
|
||||||
return false
|
return false
|
||||||
|
} 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.type = Number(this.tabCurrent + 1)
|
||||||
this.needsPublishForm.pub_time = this.needsPublishForm.pub_time ? this.needsPublishForm.pub_time :
|
this.needsPublishForm.pub_time = this.needsPublishForm.pub_time ? this.needsPublishForm.pub_time :
|
||||||
|
|||||||
@@ -54,10 +54,10 @@
|
|||||||
classifyList: [],
|
classifyList: [],
|
||||||
tabCurrent: 0,
|
tabCurrent: 0,
|
||||||
tabList: [{
|
tabList: [{
|
||||||
name: '上架时间'
|
name: '新品发布' // 上架时间(改)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '点赞量'
|
name: '新创意' // 点赞量(改)
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
imgUrl: '',
|
imgUrl: '',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<view class="subtitle">
|
<view class="subtitle">
|
||||||
<u--image src="/static/report/hy_icon_fux.png" width="24rpx" height="24rpx" :lazy-load="true">
|
<u--image src="/static/report/hy_icon_fux.png" width="24rpx" height="24rpx" :lazy-load="true">
|
||||||
</u--image>
|
</u--image>
|
||||||
<text class="xpfb_text text">新品发布</text>
|
<text class="xpfb_text text">企业需求</text>
|
||||||
</view>
|
</view>
|
||||||
<productsByTime></productsByTime>
|
<productsByTime></productsByTime>
|
||||||
</view>
|
</view>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '/static/report/hy_icon_fu.png',
|
src: '/static/report/hy_icon_fu.png',
|
||||||
title: '新品发布'
|
title: '企业需求'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '/static/report/hy_icon_cj.png',
|
src: '/static/report/hy_icon_cj.png',
|
||||||
|
|||||||
Reference in New Issue
Block a user