|
@@ -1,29 +1,36 @@
|
|
<template>
|
|
<template>
|
|
<view class="template-edit tn-safe-area-inset-bottom">
|
|
<view class="template-edit tn-safe-area-inset-bottom">
|
|
<!-- 顶部自定义导航 -->
|
|
<!-- 顶部自定义导航 -->
|
|
- <tn-nav-bar fixed alpha customBack>
|
|
|
|
|
|
+ <tn-nav-bar fixed customBack>
|
|
<view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
|
|
<view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
|
|
<text class='icon tn-icon-left'></text>
|
|
<text class='icon tn-icon-left'></text>
|
|
</view>
|
|
</view>
|
|
- <view slot="default" v-if="(selectValue=='个人'&&stepIndex==2)||(selectValue=='公司'&&stepIndex==3)" style="display: flex;">
|
|
|
|
|
|
+ <view slot="default" style="display: flex;">
|
|
<view style="flex:1;margin-left:25px">
|
|
<view style="flex:1;margin-left:25px">
|
|
- <text></text>
|
|
|
|
|
|
+ <text>发布供应</text>
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
- <text style="margin-right: 4px;padding: 6px 15px;background-color:#00000026;border-radius: 30px;color: #3D7EFF;" @click="saveForm(1)">暂存</text>
|
|
|
|
|
|
+ <view v-if="(selectValue=='个人'&&stepIndex==3)||(selectValue=='公司'&&stepIndex==3)">
|
|
|
|
+ <button plain="true" style="margin-right: 4px;border-radius: 24px;height:32px;line-height: 32px;font-size:15px;margin-top:4px;color:#1d60b1;border-color:#1d60b1;" @click="saveForm(1)">暂存</button>
|
|
|
|
+ <!-- <text style="margin-right: 4px;padding: 6px 15px;background-color:#00000026;border-radius: 30px;color: #3D7EFF;" @click="saveForm(1)">暂存</text> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</tn-nav-bar>
|
|
</tn-nav-bar>
|
|
|
|
|
|
<view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
|
<view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
|
|
|
|
|
- <tn-steps style="pointer-events:none" :list="selectValue=='个人'?stepList:stepList2" :current="stepIndex" mode="dotIcon"></tn-steps>
|
|
|
|
|
|
+ <tn-steps style="pointer-events:none;" :list="selectValue=='个人'?stepList:stepList2" :current="stepIndex" mode="dotIcon"></tn-steps>
|
|
<view v-if="stepIndex==1">
|
|
<view v-if="stepIndex==1">
|
|
|
|
|
|
<view style="padding: 16px">
|
|
<view style="padding: 16px">
|
|
- <uni-data-select v-model="selectValue" :localdata="selectList" @change="changeSelect"
|
|
|
|
- :clear="false"></uni-data-select>
|
|
|
|
|
|
+ <view style="line-height: 30px;">
|
|
|
|
+ 发布主体:
|
|
|
|
+ <uni-data-checkbox :multiple="false" v-model="selectValue" selectedColor="#01BEFF"
|
|
|
|
+ :localdata="[{text: '个人',value: '个人'},{text: '公司',value: '公司'}]" />
|
|
|
|
+ </view>
|
|
|
|
+ <!-- <uni-data-select v-model="selectValue" :localdata="selectList" @change="changeSelect"
|
|
|
|
+ :clear="false"></uni-data-select> -->
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view v-if="selectValue=='个人'" style="padding: 16px">
|
|
<view v-if="selectValue=='个人'" style="padding: 16px">
|
|
<uni-forms :modelValue="formData" label-width="0">
|
|
<uni-forms :modelValue="formData" label-width="0">
|
|
|
|
|
|
@@ -95,19 +102,26 @@
|
|
|
|
|
|
<!-- 悬浮按钮-->
|
|
<!-- 悬浮按钮-->
|
|
<view class="tn-flex tn-footerfixed">
|
|
<view class="tn-flex tn-footerfixed">
|
|
|
|
+ <!-- <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
|
|
+ <button type="default" plain="true" style="border-radius: 24px;"
|
|
|
|
+ @click="preStep()">
|
|
|
|
+ 上一步
|
|
|
|
+ </button>
|
|
|
|
+
|
|
|
|
+ </view> -->
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
|
|
|
|
|
|
+ <button type="default" plain="true" style="border-radius: 24px;"
|
|
@click="nextStep()">
|
|
@click="nextStep()">
|
|
- <!-- <text class="tn-icon-light tn-padding-right-xs tn-color-black"></text> -->
|
|
|
|
- <text class="tn-color-white">下一步</text>
|
|
|
|
- <!-- <text class="tn-icon-camera tn-padding-left-xs tn-color-black"></text> -->
|
|
|
|
- </tn-button>
|
|
|
|
|
|
+ 下一步
|
|
|
|
+ </button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="stepIndex!=1">
|
|
<view v-if="stepIndex!=1">
|
|
|
|
|
|
<view style="padding: 16px" v-if="(selectValue=='公司'&&stepIndex==2)||(selectValue=='个人'&&stepIndex==2)">
|
|
<view style="padding: 16px" v-if="(selectValue=='公司'&&stepIndex==2)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
+
|
|
|
|
+ <text>发布种类:</text>
|
|
<uni-data-select v-model="selectValue2" :localdata="selectList2" @change="changeSelect2"
|
|
<uni-data-select v-model="selectValue2" :localdata="selectList2" @change="changeSelect2"
|
|
:clear="false"></uni-data-select>
|
|
:clear="false"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
@@ -117,13 +131,15 @@
|
|
<text v-if="selectValue4">产品种类:</text>
|
|
<text v-if="selectValue4">产品种类:</text>
|
|
<uni-data-select v-model="selectValue4" :localdata="selectList4" @change="changeSelect4"
|
|
<uni-data-select v-model="selectValue4" :localdata="selectList4" @change="changeSelect4"
|
|
placeholder="产品种类" :clear="false" style="margin-bottom:16px"></uni-data-select>
|
|
placeholder="产品种类" :clear="false" style="margin-bottom:16px"></uni-data-select>
|
|
- <text v-if="brand">产品品牌:</text>
|
|
|
|
- <view>
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <view style="margin-top: 16px;">
|
|
|
|
+ <text>品牌:</text>
|
|
<uni-easyinput type="text" required v-model="brand" placeholder="请输入产品品牌" />
|
|
<uni-easyinput type="text" required v-model="brand" placeholder="请输入产品品牌" />
|
|
</view>
|
|
</view>
|
|
<view style="margin-top: 16px;line-height: 30px;margin-bottom: 16px;">
|
|
<view style="margin-top: 16px;line-height: 30px;margin-bottom: 16px;">
|
|
发布的产品是否属于医疗器械?
|
|
发布的产品是否属于医疗器械?
|
|
- <uni-data-checkbox :multiple="false" v-model="isMedical"
|
|
|
|
|
|
+ <uni-data-checkbox :multiple="false" v-model="isMedical" selectedColor="#01BEFF"
|
|
:localdata="[{text: '是',value: '1'},{text: '否',value: '0'}]" />
|
|
:localdata="[{text: '是',value: '1'},{text: '否',value: '0'}]" />
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -137,9 +153,11 @@
|
|
产品信息{{itemIndex+1}}
|
|
产品信息{{itemIndex+1}}
|
|
</template>
|
|
</template>
|
|
<template v-slot:footer>
|
|
<template v-slot:footer>
|
|
- <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#3668FC" v-if="extList.length==1" @click="newItem">+新增产品</tn-button>
|
|
|
|
|
|
+ <button type="default" style="color:#1d60b1;border-color:#1d60b1;" plain="true" size="mini" v-if="(extList.length>1&&extList.length<6&&itemIndex==extList.length-1)||extList.length==1" @click="newItem">+新增产品</button>
|
|
|
|
+ <button type="warn" plain="true" size="mini" v-if="extList.length>1&&itemIndex!==extList.length-1" @click="delItem(itemIndex)">-删除产品</button>
|
|
|
|
+ <!-- <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#3668FC" v-if="extList.length==1" @click="newItem">+新增产品</tn-button>
|
|
<tn-button fontColor="tn-color-white" shape="round" backgroundColor="#3668FC" v-if="extList.length>1&&extList.length<6&&itemIndex==extList.length-1" @click="newItem">+新增产品</tn-button>
|
|
<tn-button fontColor="tn-color-white" shape="round" backgroundColor="#3668FC" v-if="extList.length>1&&extList.length<6&&itemIndex==extList.length-1" @click="newItem">+新增产品</tn-button>
|
|
- <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#FF000C" v-if="extList.length>1&&itemIndex!==extList.length-1" @click="delItem(itemIndex)">-删除产品</tn-button>
|
|
|
|
|
|
+ <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#FF000C" v-if="extList.length>1&&itemIndex!==extList.length-1" @click="delItem(itemIndex)">-删除产品</tn-button> -->
|
|
</template>
|
|
</template>
|
|
</uni-list-item>
|
|
</uni-list-item>
|
|
</uni-list>
|
|
</uni-list>
|
|
@@ -148,11 +166,11 @@
|
|
<uni-forms :modelValue="formData" label-width="0">
|
|
<uni-forms :modelValue="formData" label-width="0">
|
|
|
|
|
|
<uni-forms-item label="" name="prodName" label-width="0">
|
|
<uni-forms-item label="" name="prodName" label-width="0">
|
|
- <uni-easyinput maxlength="50" type="text" v-model="item.prodName"
|
|
|
|
|
|
+ <uni-easyinput maxlength="50" type="text" :clearable="false" v-model="item.prodName"
|
|
placeholder="*请输入产品名称" />
|
|
placeholder="*请输入产品名称" />
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="" name="contactMethod">
|
|
<uni-forms-item label="" name="contactMethod">
|
|
- <uni-easyinput maxlength="100" type="text" v-model="item.prodSpec"
|
|
|
|
|
|
+ <uni-easyinput maxlength="100" type="text" :clearable="false" v-model="item.prodSpec"
|
|
placeholder="*请输入产品型号" />
|
|
placeholder="*请输入产品型号" />
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="" name="phone">
|
|
<uni-forms-item label="" name="phone">
|
|
@@ -200,33 +218,44 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <view v-if="selectValue2=='服务'">
|
|
|
|
|
|
+ <view v-if="selectValue2=='服务'&&stepIndex==2">
|
|
<view style="padding: 16px">
|
|
<view style="padding: 16px">
|
|
|
|
+ <text>服务类型:</text>
|
|
<uni-data-select v-model="selectValue3" :localdata="selectList3" @change="changeSelect3"
|
|
<uni-data-select v-model="selectValue3" :localdata="selectList3" @change="changeSelect3"
|
|
:clear="false"></uni-data-select>
|
|
:clear="false"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <view v-if="selectValue2=='服务'&&stepIndex==2">
|
|
|
|
+ <view style="padding: 16px">
|
|
|
|
+ <text>品牌:</text>
|
|
|
|
+ <uni-easyinput type="text" required v-model="brand" placeholder="请输入服务品牌" />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
<view>
|
|
<view>
|
|
|
|
|
|
|
|
|
|
<!-- <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;">
|
|
<!-- <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;">
|
|
<input placeholder="写下一句简短的标题" name="input" placeholder-style="color:#AAAAAA" ></input>
|
|
<input placeholder="写下一句简短的标题" name="input" placeholder-style="color:#AAAAAA" ></input>
|
|
</view> -->
|
|
</view> -->
|
|
- <view v-if="selectValue2=='服务'" class="tn-margin tn-bg-gray--light tn-padding"
|
|
|
|
|
|
+ <view v-if="selectValue2=='服务'&&stepIndex==2" style="padding: 16px;padding-bottom: 0;margin-bottom: -30rpx;">
|
|
|
|
+ <text>服务介绍:</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="selectValue2=='服务'&&stepIndex==2" class="tn-margin tn-bg-gray--light tn-padding"
|
|
style="border-radius: 10rpx;">
|
|
style="border-radius: 10rpx;">
|
|
|
|
+
|
|
<textarea maxlength="500" v-model="content" placeholder="请输入服务介绍"
|
|
<textarea maxlength="500" v-model="content" placeholder="请输入服务介绍"
|
|
placeholder-style="color:#AAAAAA"></textarea>
|
|
placeholder-style="color:#AAAAAA"></textarea>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" v-if="(selectValue=='公司'&&stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
|
|
+ <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" v-if="stepIndex==3">
|
|
<view class="tn-flex justify-content-item">
|
|
<view class="tn-flex justify-content-item">
|
|
<view class="tn-text-center"
|
|
<view class="tn-text-center"
|
|
style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
|
|
style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
|
|
<text class="tn-icon-image" style="font-size: 30rpx;"></text>
|
|
<text class="tn-icon-image" style="font-size: 30rpx;"></text>
|
|
</view>
|
|
</view>
|
|
- <view class="tn-text-lg tn-padding-right-xs tn-text-bold">上传其他图片(若有)</view>
|
|
|
|
|
|
+ <view class="tn-text-lg tn-padding-right-xs tn-text-bold">上传其他图片(选填)</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
|
|
<!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
|
|
<text class="tn-padding-xs">清空上传</text>
|
|
<text class="tn-padding-xs">清空上传</text>
|
|
@@ -239,12 +268,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="tn-margin-left tn-padding-top-xs" v-if="(selectValue=='公司'&&stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
|
|
+ <view class="tn-margin-left tn-padding-top-xs" v-if="stepIndex==3">
|
|
<uni-file-picker v-model="imgList" :limit="6" :auto-upload="false" @select="select"
|
|
<uni-file-picker v-model="imgList" :limit="6" :auto-upload="false" @select="select"
|
|
@success="success" @delete="deleteFile">
|
|
@success="success" @delete="deleteFile">
|
|
|
|
|
|
|
|
|
|
</uni-file-picker>
|
|
</uni-file-picker>
|
|
|
|
+ <view style="margin-top: 8px;">
|
|
|
|
+ <text style="color: #999;font-size: 12px;">一次只能上传六张图片</text>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
<!-- <tn-image-upload-drag ref="imageUpload" :action="action" :width="236" :height="236" :formData="formData"
|
|
<!-- <tn-image-upload-drag ref="imageUpload" :action="action" :width="236" :height="236" :formData="formData"
|
|
:fileList="fileList" :disabled="disabled" :autoUpload="autoUpload" :maxCount="maxCount"
|
|
:fileList="fileList" :disabled="disabled" :autoUpload="autoUpload" :maxCount="maxCount"
|
|
:showUploadList="showUploadList" :showProgress="showProgress" :deleteable="deleteable"
|
|
:showUploadList="showUploadList" :showProgress="showProgress" :deleteable="deleteable"
|
|
@@ -252,13 +285,13 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top-xl tn-margin" v-if="(selectValue=='公司'&&stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
|
|
+ <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin tn-padding-top-xs" v-if="stepIndex==3">
|
|
<view class="tn-flex justify-content-item">
|
|
<view class="tn-flex justify-content-item">
|
|
<view class="tn-text-center"
|
|
<view class="tn-text-center"
|
|
style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
|
|
style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
|
|
- <text class="tn-icon-image" style="font-size: 30rpx;"></text>
|
|
|
|
|
|
+ <text class="tn-icon-link" style="font-size: 30rpx;"></text>
|
|
</view>
|
|
</view>
|
|
- <view class="tn-text-lg tn-padding-right-xs tn-text-bold">上传相关文件(若有)</view>
|
|
|
|
|
|
+ <view class="tn-text-lg tn-padding-right-xs tn-text-bold">上传相关文件(选填)</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
|
|
<!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
|
|
<text class="tn-padding-xs">清空上传</text>
|
|
<text class="tn-padding-xs">清空上传</text>
|
|
@@ -266,17 +299,23 @@
|
|
</view> -->
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="tn-margin-left tn-padding-top-xs" v-if="(selectValue=='公司'&&stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
|
|
+ <view class="tn-margin-left tn-padding-top-xs" v-if="stepIndex==3">
|
|
<uni-file-picker v-model="fileList" :limit="3" mode="grid" file-mediatype="all"
|
|
<uni-file-picker v-model="fileList" :limit="3" mode="grid" file-mediatype="all"
|
|
- file-extname="pdf,docx,doc" :auto-upload="false" @select="select" @success="success" @delete="deleteFile">
|
|
|
|
- <tn-button shadow shape="round" fontColor="tn-color-white" size="lg"
|
|
|
|
- backgroundColor="tn-bg-blue" :fontSize="24" height="auto"
|
|
|
|
- padding="20rpx 36rpx">上传文件</tn-button>
|
|
|
|
- <view style="margin-top:20px"><text class="tn-color-grey">支持格式 pdf .doc,不超过5MB。</text>
|
|
|
|
- </view>
|
|
|
|
- <view style="margin-top:20px" v-if="selectValue2=='产品'"><text class="tn-color-grey">如若产品属于医疗器械,请上传相关资质证明。</text>
|
|
|
|
|
|
+ file-extname="pdf,docx,doc,xls,xlsx" :auto-upload="false" @select="select" @success="success" @delete="deleteFile">
|
|
|
|
+ <view style="text-align: left;">
|
|
|
|
+ <button size="mini" style="color:#1d60b1;border-color:#1d60b1;display: inline-block;" plain="true">上传文件</button>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+
|
|
</uni-file-picker>
|
|
</uni-file-picker>
|
|
|
|
+ <view style="margin-top: 8px;">
|
|
|
|
+ <text style="color: #999;font-size: 12px;">一次只能上传三个文件,支持格式 pdf .doc .xls,不超过5MB。</text>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <view style="margin-top:20px" v-if="selectValue2=='产品'">
|
|
|
|
+ <text style="color: #999;font-size: 12px;">如若产品属于医疗器械,请上传相关资质证明。</text>
|
|
|
|
+ </view>
|
|
<!-- <tn-image-upload-drag ref="imageUpload" :action="action" :width="236" :height="236" :formData="formData"
|
|
<!-- <tn-image-upload-drag ref="imageUpload" :action="action" :width="236" :height="236" :formData="formData"
|
|
:fileList="fileList2" :disabled="disabled" :autoUpload="autoUpload" :maxCount="maxCount"
|
|
:fileList="fileList2" :disabled="disabled" :autoUpload="autoUpload" :maxCount="maxCount"
|
|
:showUploadList="showUploadList" :showProgress="showProgress" :deleteable="deleteable"
|
|
:showUploadList="showUploadList" :showProgress="showProgress" :deleteable="deleteable"
|
|
@@ -285,31 +324,45 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view label="11" name="check" style="padding:16px" v-if="(selectValue=='公司'&&stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
- <uni-data-checkbox :multiple="true" v-model="formInfo.agree"
|
|
|
|
|
|
+ <view label="11" name="check" style="padding:16px" v-if="stepIndex==3">
|
|
|
|
+ <uni-data-checkbox :multiple="true" v-model="formInfo.agree" selectedColor="#01BEFF"
|
|
:localdata="[{text: '同意平台核查所填信息的真实性',value: '是'}]" />
|
|
:localdata="[{text: '同意平台核查所填信息的真实性',value: '是'}]" />
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 悬浮按钮-->
|
|
<!-- 悬浮按钮-->
|
|
- <view class="tn-flex tn-footerfixed" v-if="selectValue=='公司'">
|
|
|
|
|
|
+ <view class="tn-flex tn-footerfixed" >
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
|
|
|
|
|
|
+ <button type="default" plain="true" style="border-radius: 24px;"
|
|
|
|
+ @click="preStep()">
|
|
|
|
+ 上一步
|
|
|
|
+ </button>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
|
|
+ <button type="default" plain="true" style="border-radius: 24px;"
|
|
|
|
+ @click="nextStep()">
|
|
|
|
+ 下一步
|
|
|
|
+ </button>
|
|
|
|
+ <!-- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
|
|
@click="nextStep()">
|
|
@click="nextStep()">
|
|
- <!-- <text class="tn-icon-light tn-padding-right-xs tn-color-black"></text> -->
|
|
|
|
<text class="tn-color-white">下一步</text>
|
|
<text class="tn-color-white">下一步</text>
|
|
- <!-- <text class="tn-icon-camera tn-padding-left-xs tn-color-black"></text> -->
|
|
|
|
- </tn-button>
|
|
|
|
|
|
+ </tn-button> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="tn-flex tn-footerfixed" v-if="(stepIndex==3)||(selectValue=='个人'&&stepIndex==2)">
|
|
|
|
|
|
+ <view class="tn-flex tn-footerfixed" v-if="(stepIndex==3)">
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
|
|
|
|
|
|
+ <button type="default" plain="true" style="border-radius: 24px;"
|
|
|
|
+ @click="preStep()">
|
|
|
|
+ 上一步
|
|
|
|
+ </button>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
|
|
|
+ <button type="primary" style="background-color:#1d60b1;border-radius: 23px" @click="saveForm()">提交审核</button>
|
|
|
|
+ <!-- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
|
|
@click="saveForm()">
|
|
@click="saveForm()">
|
|
- <!-- <text class="tn-icon-light tn-padding-right-xs tn-color-black"></text> -->
|
|
|
|
<text class="tn-color-white">提交审核</text>
|
|
<text class="tn-color-white">提交审核</text>
|
|
- <!-- <text class="tn-icon-camera tn-padding-left-xs tn-color-black"></text> -->
|
|
|
|
- </tn-button>
|
|
|
|
|
|
+ </tn-button> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -331,7 +384,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
canSave:true,
|
|
canSave:true,
|
|
- isMedical: '0',
|
|
|
|
|
|
+ isMedical: '1',
|
|
content: '',
|
|
content: '',
|
|
selectValue: '个人',
|
|
selectValue: '个人',
|
|
selectList: [{
|
|
selectList: [{
|
|
@@ -426,6 +479,11 @@
|
|
name: '填写供应信息',
|
|
name: '填写供应信息',
|
|
icon: 'trusty',
|
|
icon: 'trusty',
|
|
selectIcon: 'trusty-fill'
|
|
selectIcon: 'trusty-fill'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '上传附件',
|
|
|
|
+ icon: 'folder',
|
|
|
|
+ selectIcon: 'folder-fill'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
stepList2 : [{
|
|
stepList2 : [{
|
|
@@ -440,8 +498,8 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '上传附件',
|
|
name: '上传附件',
|
|
- icon: 'vip',
|
|
|
|
- selectIcon: 'vip-fill'
|
|
|
|
|
|
+ icon: 'folder',
|
|
|
|
+ selectIcon: 'folder-fill'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
action: 'https://www.hualigs.cn/api/upload',
|
|
action: 'https://www.hualigs.cn/api/upload',
|
|
@@ -481,6 +539,9 @@
|
|
this.getCompany();
|
|
this.getCompany();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ preStep(){
|
|
|
|
+ this.stepIndex = this.stepIndex-1;
|
|
|
|
+ },
|
|
nextStep() {
|
|
nextStep() {
|
|
//todo 检查
|
|
//todo 检查
|
|
let that = this;
|
|
let that = this;
|
|
@@ -496,6 +557,18 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(this.stepIndex==2&&that.selectValue2=='服务'){
|
|
|
|
+
|
|
|
|
+ if(!this.content){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '服务介绍必填',
|
|
|
|
+ duration: 2000,
|
|
|
|
+ icon:'none'
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
this.stepIndex = this.stepIndex+1;
|
|
this.stepIndex = this.stepIndex+1;
|
|
|
|
|
|
@@ -598,17 +671,45 @@
|
|
type: that.selectValue2=='服务'?'2':'1',
|
|
type: that.selectValue2=='服务'?'2':'1',
|
|
secType: that.selectValue3,
|
|
secType: that.selectValue3,
|
|
company: that.selectValue=='公司'?this.org.name:'',
|
|
company: that.selectValue=='公司'?this.org.name:'',
|
|
|
|
+ subject: that.selectValue=='公司'?'1':'2',
|
|
jobTitle: this.formInfo.jobTitle,
|
|
jobTitle: this.formInfo.jobTitle,
|
|
contactPerson: this.formInfo.contactPerson,
|
|
contactPerson: this.formInfo.contactPerson,
|
|
contactMethod: this.formInfo.contactMethod,
|
|
contactMethod: this.formInfo.contactMethod,
|
|
contactNickName: this.formInfo.contactNickName,
|
|
contactNickName: this.formInfo.contactNickName,
|
|
content: that.content,
|
|
content: that.content,
|
|
userNo: uni.getStorageSync('userNo'),
|
|
userNo: uni.getStorageSync('userNo'),
|
|
- status: status==1?status:undefined
|
|
|
|
|
|
+ status: status==1?status:undefined,
|
|
|
|
+ brand: that.brand,
|
|
|
|
+ }
|
|
|
|
+ if(that.selectValue=='公司'){
|
|
|
|
+ postData.companyEntity = {};
|
|
|
|
+ postData.companyEntity.company = postData.company;
|
|
|
|
+ postData.companyEntity.jobTitle = postData.jobTitle;
|
|
|
|
+ postData.companyEntity.creditCode = this.org.creditCode;
|
|
|
|
+
|
|
|
|
+ postData.companyEntity.contactPerson = postData.contactPerson;
|
|
|
|
+ postData.companyEntity.contactMethod = postData.contactMethod;
|
|
|
|
+ postData.companyEntity.contactNickName = postData.contactNickName;
|
|
|
|
+
|
|
|
|
+ // postData.companyEntity.address = this.org.creditCode;
|
|
|
|
+ // postData.companyEntity.company = postData.company;
|
|
|
|
+
|
|
|
|
+ postData.slbUserExt = {};
|
|
|
|
+ postData.slbUserExt.userContactMethod = postData.contactMethod;
|
|
|
|
+ postData.slbUserExt.contactPerson = postData.contactPerson;
|
|
|
|
+ postData.slbUserExt.contactMethod = postData.contactMethod;
|
|
|
|
+ postData.slbUserExt.contactNickName = postData.contactNickName;
|
|
|
|
+ postData.slbUserExt.userRealName = this.formInfo.userRealName;
|
|
|
|
|
|
|
|
+ }else{
|
|
|
|
+ postData.slbUserExt = {};
|
|
|
|
+ postData.slbUserExt.userContactMethod = postData.contactMethod;
|
|
|
|
+ postData.slbUserExt.contactPerson = postData.contactPerson;
|
|
|
|
+ postData.slbUserExt.contactMethod = postData.contactMethod;
|
|
|
|
+ postData.slbUserExt.contactNickName = postData.contactNickName;
|
|
|
|
+ postData.slbUserExt.userRealName = this.formInfo.userRealName;
|
|
}
|
|
}
|
|
if(postData.type=='1'){
|
|
if(postData.type=='1'){
|
|
- postData.brand = that.brand;
|
|
|
|
postData.secType = that.selectValue4;
|
|
postData.secType = that.selectValue4;
|
|
postData.isMedical = that.isMedical;
|
|
postData.isMedical = that.isMedical;
|
|
postData.content = '';
|
|
postData.content = '';
|
|
@@ -628,12 +729,12 @@
|
|
that.canSave = true;
|
|
that.canSave = true;
|
|
if (res.success) {
|
|
if (res.success) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: status==1?'暂存成功':'发布已提交,可在我的需求里查看审核进度',
|
|
|
|
|
|
+ title: status==1?'暂存成功':'发布已提交,请在我的供应中查看进度',
|
|
icon: 'none',
|
|
icon: 'none',
|
|
success: () => {
|
|
success: () => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
- url: "/pages/mine/share"
|
|
|
|
|
|
+ url: "/pages/mine/share?tab="+(1)
|
|
});
|
|
});
|
|
}, 2500)
|
|
}, 2500)
|
|
}
|
|
}
|