addShare.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112
  1. <template>
  2. <view class="template-edit tn-safe-area-inset-bottom" style="background: #f7f7f7;min-height: 100vh;">
  3. <!-- 顶部自定义导航 -->
  4. <tn-nav-bar fixed customBack>
  5. <view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
  6. <text class='icon tn-icon-left'></text>
  7. </view>
  8. <view slot="default" style="display: flex;">
  9. <view style="flex:1;margin-left:25px">
  10. <text :style="{fontSize:(wxFontSize)+'px'}">发布供应</text>
  11. </view>
  12. <view>
  13. <button v-if="canSave" plain="true" style="margin-right: 4px;border-radius: 8px;;height:32px;line-height: 32px;font-size:15px;margin-top:4px;color:#1d60b1;border-color:#1d60b1;" @click="saveForm(1)" :style="{fontSize:(wxFontSize-3)+'px'}">暂存</button>
  14. <button v-if="!canSave" :disabled="!canSave" plain="true" style="margin-right: 4px;border-radius: 8px;;height:32px;line-height: 32px;font-size:15px;margin-top:4px;color:#0003;border-color:#0003;" @click="saveForm(1)" :style="{fontSize:(wxFontSize-3)+'px'}">暂存</button>
  15. </view>
  16. </view>
  17. </tn-nav-bar>
  18. <view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  19. <view style="display: flex;padding: 16px 36px;">
  20. <view style="position: relative;">
  21. <image style="width: 48px;height: 48px;margin-right: 8px;" src="../static/tu/step1.png"></image>
  22. <view style="position: absolute;width: max-content;margin-left: -25%;" :style="{color:stepIndex==1?'#333':'#777'}">{{selectValue=='个人'?'填写个人信息':'填写公司信息'}}</view>
  23. </view>
  24. <view style="flex:1;height: 0px;border: 1px dashed #005DA6;align-self: center;" :style="{borderColor:stepIndex>1?'#005DA6':'#333'}"></view>
  25. <view style="position: relative;">
  26. <image v-if="stepIndex==1" style="width: 48px;height: 48px;margin-left: 8px;margin-right: 8px;" src="../static/tu/step2.png"></image>
  27. <image v-if="stepIndex!=1" style="width: 48px;height: 48px;margin-left: 8px;margin-right: 8px;" src="../static/tu/step22.png"></image>
  28. <view style="position: absolute;width: max-content;margin-left: -25%;" :style="{color:stepIndex==1?'#777':'#333'}">填写供应信息</view>
  29. </view>
  30. <view style="flex:1;height: 0px;border: 1px dashed #005DA6;align-self: center;" :style="{borderColor:stepIndex==3?'#005DA6':'#333'}"></view>
  31. <view style="position: relative;">
  32. <image v-if="stepIndex!=3" style="width: 48px;height: 48px;margin-left: 8px;" src="../static/tu/step3.png"></image>
  33. <image v-if="stepIndex==3" style="width: 48px;height: 48px;margin-left: 8px;" src="../static/tu/step32.png"></image>
  34. <view style="position: absolute;width: max-content;" :style="{color:stepIndex!=3?'#777':'#333'}">上传附件</view>
  35. </view>
  36. </view>
  37. <!-- <tn-steps style="pointer-events:none;" :list="selectValue=='个人'?stepList:stepList2" :current="stepIndex" mode="dotIcon" :fontSize="(wxFontSize-3)+'px'"></tn-steps> -->
  38. <view v-show="stepIndex==1">
  39. <view style="padding: 16px;padding-bottom: 0;font-weight: 600;">
  40. <view style="line-height: 30px;" :style="{fontSize:(wxFontSize-1)+'px'}">
  41. 发布主体:
  42. <uni-data-checkbox :multiple="false" v-model="selectValue" selectedColor="#01BEFF"
  43. :localdata="[{text: '个人',value: '个人'},{text: '公司',value: '公司'}]" :fontSize="(wxFontSize-3)+'px'"/>
  44. </view>
  45. <!-- <uni-data-select v-model="selectValue" :localdata="selectList" @change="changeSelect"
  46. :clear="false"></uni-data-select> -->
  47. </view>
  48. <view v-if="selectValue=='个人'" style="padding: 16px">
  49. <uni-forms :modelValue="formData" label-width="0">
  50. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">用户昵称:</text>
  51. <uni-forms-item label="用户昵称" name="realName" label-width="0">
  52. <uni-easyinput type="text" disabled :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.contactNickName" placeholder="请输入您的昵称" />
  53. </uni-forms-item>
  54. <text style="line-height: 30px;vertical-align: middle;" :style="{fontSize:(wxFontSize-3)+'px'}">真实姓名:</text>
  55. <uni-forms-item label="真实姓名" name="contactMethod">
  56. <uni-easyinput type="text" disabled="true" :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.userRealName" placeholder="请输入真实姓名" />
  57. </uni-forms-item>
  58. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">联系方式:</text>
  59. <uni-forms-item label="联系方式" name="phone">
  60. <uni-easyinput type="text" disabled :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.contactMethod" placeholder="请输入联系手机/微信/邮箱" />
  61. </uni-forms-item>
  62. </uni-forms>
  63. <text style="font-size: 13px;color:#999;" :style="{fontSize:(wxFontSize-4)+'px'}">如要更改个人信息,请在<text style="color: #E18730;">“我的”=>个人信息</text>页面更改</text>
  64. </view>
  65. <view v-if="selectValue=='公司'" style="padding: 16px">
  66. <uni-forms :modelValue="formData" label-width="0">
  67. <view style="margin-bottom:16px">
  68. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">公司名称:</text>
  69. <w-select style="width: 100%;" v-model='searchValue' :list='items' valueName='name'
  70. keyName="regNumber" @change='selectChange' :filterable="true" :fontSize="(wxFontSize-3)+'px'">
  71. </w-select>
  72. </view>
  73. <!-- <uni-forms-item label="公司名称" name="name">
  74. <uni-easyinput type="text" v-model="userInfo.company" placeholder="请输入所在公司名称" />
  75. </uni-forms-item> -->
  76. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">您的职务:</text>
  77. <uni-forms-item label="" name="realName" label-width="0">
  78. <uni-easyinput type="text" :clearable="false" :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.jobTitle" placeholder="请输入您的职务" />
  79. </uni-forms-item>
  80. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">联系人姓名:</text>
  81. <uni-forms-item label="联系人姓名" name="contactMethod">
  82. <uni-easyinput type="text" :clearable="false" :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.contactPerson" placeholder="请输入联系人姓名" />
  83. </uni-forms-item>
  84. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">联系方式:</text>
  85. <uni-forms-item label="联系方式" name="phone">
  86. <uni-easyinput type="text" :clearable="false" :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="formInfo.contactMethod" placeholder="请输入联系手机/微信/邮箱" />
  87. </uni-forms-item>
  88. </uni-forms>
  89. </view>
  90. <!-- 悬浮按钮-->
  91. <view class="tn-flex tn-footerfixed">
  92. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  93. <button type="default" plain="true" style="border-radius: 8px 8px 8px 8px;background: #005DA6;color: #f7f7f7;border: none;"
  94. @click="nextStep()" :style="{fontSize:(wxFontSize-2)+'px'}">
  95. 下一步
  96. </button>
  97. </view>
  98. </view>
  99. </view>
  100. <view v-show="stepIndex!=1">
  101. <view style="padding: 16px;padding-bottom: 0;" v-if="(selectValue=='公司'&&stepIndex==2)||(selectValue=='个人'&&stepIndex==2)">
  102. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">发布种类:</text>
  103. <uni-data-select v-model="selectValue2" :localdata="selectList2" @change="changeSelect2"
  104. :clear="false" :fontSize="(wxFontSize-3)+'px'"></uni-data-select>
  105. </view>
  106. <view v-if="selectValue2=='产品'" >
  107. <view style="padding: 16px" v-if="(selectValue=='公司'&&stepIndex==2)||(selectValue=='个人'&&stepIndex==2)">
  108. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">产品种类:</text>
  109. <uni-data-select v-model="selectValue4" :localdata="selectList4" @change="changeSelect4"
  110. placeholder="产品种类" :clear="false" style="margin-bottom:16px" :fontSize="(wxFontSize-3)+'px'"></uni-data-select>
  111. <view style="margin-top: 16px;">
  112. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">产品品牌:</text>
  113. <uni-easyinput type="text" :clearable="false" :inputSize="wxFontSize-3" :placeholder-style="styleString" required v-model="brand" placeholder="请输入产品品牌" />
  114. </view>
  115. <view style="margin-top: 16px;margin-bottom: 20px;">
  116. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">发布的产品是否属于医疗器械?</text>
  117. <uni-data-checkbox :multiple="false" v-model="isMedical" selectedColor="#01BEFF"
  118. :localdata="[{text: '是',value: '1'},{text: '否',value: '0'}]" :fontSize="(wxFontSize-3)+'px'"/>
  119. <text v-if="isMedical==1" style="font-size: 13px;color:#999;color: #E18730;" :style="{fontSize:(wxFontSize-5)+'px'}">如若产品是医疗器械,请在上传附件步骤上传产品注册证,企业经营许可证等相关信息。</text>
  120. </view>
  121. <view v-for="item,itemIndex in extList">
  122. <view style="margin-bottom: 12px;">
  123. <uni-card >
  124. <template v-slot:title>
  125. <uni-list>
  126. <uni-list-item style="align-items: center;">
  127. <template v-slot:header>
  128. <text :style="{fontSize:(wxFontSize-4)+'px'}">产品信息{{itemIndex+1}}</text>
  129. </template>
  130. <template v-slot:footer>
  131. <button type="default" style="color:#1d60b1;border-color:#1d60b1;" :style="{fontSize:(wxFontSize-5)+'px'}" plain="true" size="mini" v-if="(extList.length>1&&extList.length<6&&itemIndex==extList.length-1)||extList.length==1" @click="newItem">+新增产品</button>
  132. <button type="warn" plain="true" size="mini" :style="{fontSize:(wxFontSize-5)+'px'}" v-if="extList.length>1&&itemIndex!==extList.length-1" @click="delItem(itemIndex)">-删除产品</button>
  133. <!-- <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#3668FC" v-if="extList.length==1" @click="newItem">+新增产品</tn-button>
  134. <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>
  135. <tn-button fontColor="tn-color-white" shape="round" backgroundColor="#FF000C" v-if="extList.length>1&&itemIndex!==extList.length-1" @click="delItem(itemIndex)">-删除产品</tn-button> -->
  136. </template>
  137. </uni-list-item>
  138. </uni-list>
  139. </template>
  140. <uni-forms :modelValue="formData" label-width="0">
  141. <uni-forms-item label="" name="prodName" label-width="0">
  142. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-4)+'px'}">*</text><text :style="{fontSize:(wxFontSize-4)+'px'}">产品名称:</text>
  143. <uni-easyinput maxlength="50" type="text" :inputSize="wxFontSize-4" :placeholder-style="styleString" :clearable="false" v-model="item.prodName"
  144. placeholder="请输入产品名称" />
  145. </uni-forms-item>
  146. <uni-forms-item label="" name="prodSpec" label-width="0">
  147. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-4)+'px'}">*</text><text :style="{fontSize:(wxFontSize-4)+'px'}">产品型号:</text>
  148. <uni-easyinput maxlength="100" type="text" :inputSize="wxFontSize-4" :placeholder-style="styleString" :clearable="false" v-model="item.prodSpec"
  149. placeholder="请输入产品型号" />
  150. </uni-forms-item>
  151. <uni-forms-item label="" name="prodDesc">
  152. <text style="line-height: 30px;vertical-align: middle;" :style="{fontSize:(wxFontSize-4)+'px'}">产品介绍:</text>
  153. <uni-easyinput maxlength="500" :inputSize="wxFontSize-4" :placeholder-style="styleString" type="textarea" v-model="item.prodDesc" placeholder="请输入产品介绍" />
  154. </uni-forms-item>
  155. </uni-forms>
  156. <template v-slot:actions v-if="itemIndex==extList.length-1" >
  157. <view style="margin: 12px;margin-top: -12px;" :style="{fontSize:(wxFontSize-5)+'px'}">
  158. <text style="color:#999">为保证排版整洁,最多一次上传<text style="color: #E18730;display: inline;">六个</text>产品哦</text>
  159. </view>
  160. </template>
  161. </uni-card>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view v-if="selectValue2=='服务'&&stepIndex==2">
  167. <view style="padding: 16px">
  168. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;" :style="{fontSize:(wxFontSize-3)+'px'}">*</text><text :style="{fontSize:(wxFontSize-3)+'px'}">服务类型:</text>
  169. <uni-data-select v-model="selectValue3" :localdata="selectList3" @change="changeSelect3"
  170. :clear="false" :fontSize="(wxFontSize-3)+'px'"></uni-data-select>
  171. </view>
  172. </view>
  173. <view v-if="selectValue2=='服务'&&stepIndex==2">
  174. <view style="padding: 0 16px 16px 16px">
  175. <text style="line-height: 30px;vertical-align: middle;" :style="{fontSize:(wxFontSize-3)+'px'}">服务品牌:</text>
  176. <uni-easyinput type="text" :clearable="false" :inputSize="wxFontSize-3" :placeholder-style="styleString" v-model="brand" placeholder="请输入服务品牌" />
  177. </view>
  178. </view>
  179. <view>
  180. <view v-if="selectValue2=='服务'&&stepIndex==2" style="padding: 16px;padding-bottom: 0;margin-bottom: -16px;">
  181. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;">*</text><text>服务介绍:</text>
  182. </view>
  183. <view v-if="selectValue2=='服务'&&stepIndex==2" class="tn-margin tn-padding"
  184. style="border-radius: 10rpx;background: #fff;">
  185. <textarea maxlength="500" v-model="content" placeholder="请输入服务介绍"
  186. placeholder-style="color:#AAAAAA" :style="{fontSize:(wxFontSize-3)+'px',width:'100%'}" :placeholder-style="styleString"></textarea>
  187. </view>
  188. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" style="margin-bottom: 0;" v-if="stepIndex==3">
  189. <view style="padding: 16px 0;padding-bottom:8px; color:#333;font-weight: 600;" :style="{fontSize:(wxFontSize-1)+'px'}">
  190. 上传图片(选填)
  191. </view>
  192. </view>
  193. <view class="tn-margin-left" v-show="stepIndex==3">
  194. <uni-file-picker v-model="imgList" :limit="6" :auto-upload="false" @select="select"
  195. @success="success" @delete="deleteFile">
  196. </uni-file-picker>
  197. <view style="margin-top: 8px;">
  198. <text style="color: #999;font-size: 12px;" :style="{fontSize:(wxFontSize-5)+'px'}">一次只能上传<text style="color: #E18730;display: inline;">六张图片</text></text>
  199. </view>
  200. </view>
  201. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" style="margin-top:0;margin-bottom: 0;" v-if="stepIndex==3">
  202. <view style="padding: 16px 0;padding-top:24px;padding-bottom:8px;color:#333;font-weight: 600;" :style="{fontSize:(wxFontSize-1)+'px'}">
  203. 上传相关文件(选填)
  204. </view>
  205. </view>
  206. <view class="tn-margin-left" style="background: #fff;margin-left: 16px;margin-right: 16px;padding: 12px;border-radius: 6px;" v-show="stepIndex==3">
  207. <uni-file-picker v-model="fileList" :limit="3" mode="grid" file-mediatype="all"
  208. file-extname="pdf,docx,doc,xls,xlsx" :auto-upload="false" @select="select" @success="success" @delete="deleteFile">
  209. <view style="text-align: left;">
  210. <button size="mini" style="color:#fff;background-color:#005DA6;border: none;" plain="true" :style="{fontSize:(wxFontSize-5)+'px'}">
  211. <image src="../static/tu/up.png" style="width: 20px;height: 20px;vertical-align: middle;margin-right: 4px;"></image>
  212. 上传文件</button>
  213. </view>
  214. <!-- <tn-button shadow shape="round" fontColor="tn-color-white" size="lg" backgroundColor="tn-bg-blue" :fontSize="24" height="auto" padding="20rpx 36rpx">上传文件</tn-button>
  215. -->
  216. </uni-file-picker>
  217. <view style="margin-top: 4px;">
  218. <text style="color: #999;font-size: 12px;" :style="{fontSize:(wxFontSize-5)+'px'}">一次只能上传<text style="color: #E18730;">三个</text>文件,支持格式<text style="color: #E18730;"> pdf .doc .xls</text>,不超过<text style="color: #E18730;">5MB</text>。</text>
  219. </view>
  220. <!-- <view style="text-align: left;">
  221. <button size="mini" style="color:#1d60b1;border-color:#1d60b1;display: inline-block;" plain="true" :style="{fontSize:(wxFontSize-5)+'px'}">上传文件</button>
  222. </view>
  223. </uni-file-picker>
  224. <view style="margin-top: 4px;">
  225. <text style="color: #999;font-size: 12px;" :style="{fontSize:(wxFontSize-5)+'px'}">一次只能上传三个文件,支持格式 pdf .doc .xls,不超过5MB。</text>
  226. </view> -->
  227. <view style="margin-top:6px" v-if="selectValue2=='产品'">
  228. <text style="color: #999;font-size: 12px;color:#E18730;" :style="{fontSize:(wxFontSize-5)+'px'}">如若产品属于医疗器械,请上传相关资质证明。</text>
  229. </view>
  230. </view>
  231. </view>
  232. <view label="11" name="check" style="padding:16px;margin-top:20px" v-if="stepIndex==3">
  233. <tn-checkbox v-model="formInfo.agree" activeColor="#45c05d" :size="wxFontSize+17" name="选项1" >
  234. <text :style="{fontSize:(wxFontSize-4)+'px',color:formInfo.agree?'#45c05d':'#666666'}">同意平台核查所填信息的真实性</text>
  235. </tn-checkbox>
  236. <text :style="{fontSize:(wxFontSize-4)+'px',color:'#888',paddingTop:'8px',display:'block'}">系统将短信通知您审核结果。如需关闭通知功能,请前往“我的”页面自行关闭</text>
  237. <!-- <uni-data-checkbox :multiple="true" v-model="formInfo.agree" selectedColor="#45c05d"
  238. :localdata="[{text: '同意平台核查所填信息的真实性',value: '是'}]" /> -->
  239. </view>
  240. <!-- 悬浮按钮-->
  241. <view class="tn-flex tn-footerfixed" >
  242. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  243. <button type="default" plain="true" style="border-radius: 8px;;"
  244. @click="preStep()" :style="{fontSize:(wxFontSize-2)+'px'}">
  245. 上一步
  246. </button>
  247. </view>
  248. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  249. <button type="default" plain="true" style="border-radius: 8px;;"
  250. @click="nextStep()" :style="{fontSize:(wxFontSize-2)+'px'}">
  251. 下一步
  252. </button>
  253. <!-- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
  254. @click="nextStep()">
  255. <text class="tn-color-white">下一步</text>
  256. </tn-button> -->
  257. </view>
  258. </view>
  259. <view class="tn-flex tn-footerfixed" v-if="(stepIndex==3)">
  260. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  261. <button type="default" plain="true" style="border-radius: 8px;;"
  262. @click="preStep()" :style="{fontSize:(wxFontSize-2)+'px'}" :disabled="!canSave||!canNext">
  263. 上一步
  264. </button>
  265. </view>
  266. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center" v-if="canSave&&canNext">
  267. <button type="primary" style="background-color:#1d60b1;border-radius: 8px;" @click="saveForm()" :style="{fontSize:(wxFontSize-2)+'px'}">提交审核</button>
  268. <!-- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
  269. @click="saveForm()">
  270. <text class="tn-color-white">提交审核</text>
  271. </tn-button> -->
  272. </view>
  273. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center" v-if="!canSave||!canNext">
  274. <button type="primary" :disabled="!canSave||!canNext" style="background-color:#0003;border-radius: 8px;" @click="saveForm()" :style="{fontSize:(wxFontSize-2)+'px'}">提交审核</button>
  275. <!-- <tn-button backgroundColor="#3668FC" padding="40rpx 0" width="60%" shadow fontBold
  276. @click="saveForm()">
  277. <text class="tn-color-white">提交审核</text>
  278. </tn-button> -->
  279. </view>
  280. </view>
  281. </view>
  282. </view>
  283. <view class='tn-tabbar-height'></view>
  284. </view>
  285. </template>
  286. <script>
  287. import template_page_mixin from '@/libs/mixin/template_page_mixin.js';
  288. import request from '../utils/request';
  289. export default {
  290. name: 'TemplateEdit',
  291. mixins: [template_page_mixin],
  292. data() {
  293. return {
  294. wxFontSize: 17,
  295. styleString:'font-size:'+14+'px',
  296. showTips:false,
  297. canSave:true,
  298. isMedical: '1',
  299. content: '',
  300. selectValue: '个人',
  301. selectList: [{
  302. value: '个人',
  303. text: '个人'
  304. },
  305. {
  306. value: '公司',
  307. text: '公司'
  308. }
  309. ],
  310. selectValue2: '产品',
  311. selectList2: [{
  312. value: '产品',
  313. text: '产品'
  314. },
  315. {
  316. value: '服务',
  317. text: '服务'
  318. }
  319. ],
  320. selectValue3: '维修维保',
  321. brand: '',
  322. // 维修维保/改造升级/验证/搬迁/厂房建设/其他
  323. selectList3: [{
  324. value: '维修维保',
  325. text: '维修维保'
  326. },
  327. {
  328. value: '改造升级',
  329. text: '改造升级'
  330. },
  331. {
  332. value: '验证',
  333. text: '验证'
  334. },
  335. {
  336. value: '搬迁',
  337. text: '搬迁'
  338. },
  339. {
  340. value: '厂房建设',
  341. text: '厂房建设'
  342. },
  343. {
  344. value: '其他',
  345. text: '其他'
  346. }
  347. ],
  348. selectValue4: '机械五金',
  349. selectList4: [{
  350. value: '机械五金',
  351. text: '机械五金'
  352. },
  353. {
  354. value: '仪器仪表',
  355. text: '仪器仪表'
  356. },
  357. {
  358. value: '耗材',
  359. text: '耗材'
  360. },
  361. {
  362. value: '其他',
  363. text: '其他'
  364. }
  365. ],
  366. extList: [],
  367. // 机械五金/仪器仪表/耗材/其他
  368. formInfo: {
  369. jobTitle: '',
  370. userRealName:JSON.parse(uni.getStorageSync('userInfo')).userRealName,
  371. // contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName?JSON.parse(uni.getStorageSync('userInfo')).contactNickName:'用户'+JSON.parse(uni.getStorageInfoSync('userInfo')).userName.splice(-4),
  372. agree: false,
  373. contactNickName: JSON.parse(uni.getStorageSync('userInfo')).contactNickName||'用户'+JSON.parse(uni.getStorageSync('userInfo')).userName.slice(-4),
  374. contactMethod: JSON.parse(uni.getStorageSync('userInfo')).contactMethod || JSON.parse(uni
  375. .getStorageSync('userInfo')).userName
  376. },
  377. imgList: [],
  378. fileDetailList: [],
  379. stepIndex: 1,
  380. stepList: [{
  381. name: '填写个人信息',
  382. icon: 'circle',
  383. selectIcon: 'circle-fill'
  384. },
  385. {
  386. name: '填写供应信息',
  387. icon: 'trusty',
  388. selectIcon: 'trusty-fill'
  389. },
  390. {
  391. name: '上传附件',
  392. icon: 'folder',
  393. selectIcon: 'folder-fill'
  394. }
  395. ],
  396. stepList2 : [{
  397. name: '填写公司信息',
  398. icon: 'circle',
  399. selectIcon: 'circle-fill'
  400. },
  401. {
  402. name: '填写供应信息',
  403. icon: 'trusty',
  404. selectIcon: 'trusty-fill'
  405. },
  406. {
  407. name: '上传附件',
  408. icon: 'folder',
  409. selectIcon: 'folder-fill'
  410. }
  411. ],
  412. action: 'https://www.hualigs.cn/api/upload',
  413. // action: '',
  414. formData: {
  415. apiType: 'this,ali',
  416. token: 'dffc1e06e636cff0fdf7d877b6ae6a2e',
  417. image: null
  418. },
  419. fileList: [],
  420. showUploadList: true,
  421. customBtn: false,
  422. autoUpload: true,
  423. showProgress: false,
  424. deleteable: true,
  425. customStyle: false,
  426. maxCount: 9,
  427. disabled: false,
  428. searchValue: '',
  429. items: [],
  430. org: {},
  431. isEdit:false,
  432. editItem:{},
  433. canNext:true
  434. }
  435. },
  436. watch: {
  437. searchValue(val, oldval) {
  438. console.error(val, this.org.name);
  439. if (val !== this.org.name) {
  440. this.current = null;
  441. }
  442. if(this.selectValue!='个人'){
  443. this.search(val)
  444. }
  445. }
  446. },
  447. onLoad(props) {
  448. const appBaseInfo = wx.getAppBaseInfo();
  449. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  450. this.styleString='font-size:'+(this.wxFontSize-3)+'px';
  451. //从暂存里面编辑
  452. if(props.sid){
  453. this.isEdit = true;
  454. this.editItem = JSON.parse(uni.getStorageSync(props.sid)||'{}');
  455. this.content = this.editItem.content;
  456. this.selectValue2 = this.editItem.type==1?'产品':'服务';
  457. this.selectValue3 = this.editItem.secType;
  458. this.brand = this.editItem.brand;
  459. this.selectValue = this.editItem.subject=='1'?'公司':'个人';
  460. this.fileDetailList = this.editItem.fileDetailList;
  461. for(let i=0;i<this.fileDetailList.length;i++){
  462. this.fileDetailList[i].path = this.fileDetailList[i].ftpUrl
  463. if(this.isImage(this.fileDetailList[i].fileName)){
  464. this.imgList.push({
  465. name: this.fileDetailList[i].fileName,
  466. url: this.fileDetailList[i].ftpUrl,
  467. path: this.fileDetailList[i].path
  468. })
  469. }else{
  470. this.fileList.push({
  471. name: this.fileDetailList[i].fileName,
  472. url: this.fileDetailList[i].ftpUrl,
  473. path: this.fileDetailList[i].path
  474. })
  475. }
  476. }
  477. if(this.selectValue2=='产品'){
  478. this.selectValue4 = this.editItem.secType;
  479. this.isMedical = this.editItem.isMedical;
  480. this.extList = this.editItem.shareExt;
  481. }
  482. this.org.name = this.editItem.company;
  483. this.formInfo.jobTitle = this.editItem.jobTitle;
  484. this.formInfo.contactPerson = this.editItem.contactPerson;
  485. this.formInfo.contactMethod = this.editItem.contactMethod;
  486. this.formInfo.contactNickName = this.formInfo.contactNickName;
  487. }
  488. this.getCompany();
  489. },
  490. methods: {
  491. isImage(fileName) {
  492. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  493. const extension = fileName.split('.').pop().toLowerCase();
  494. return imageExtensions.includes(extension);
  495. },
  496. showSet(){
  497. uni.navigateTo({
  498. url: '/minePages/set',
  499. });
  500. },
  501. preStep(){
  502. this.stepIndex = this.stepIndex-1;
  503. },
  504. nextStep() {
  505. //todo 检查
  506. let that = this;
  507. if(this.stepIndex==1&&this.extList.length==0){
  508. this.extList.push({
  509. prodDesc: "",
  510. prodName: "",
  511. prodSpec: "",
  512. })
  513. }
  514. if(that.selectValue=='公司'){
  515. console.error(this.org);
  516. //判断必填项
  517. // 公司
  518. if(!this.org.name){
  519. uni.showToast({
  520. title: '请输入公司名称',
  521. duration: 2000,
  522. icon:'none'
  523. });
  524. return false;
  525. }
  526. if(!this.formInfo.jobTitle||this.formInfo.jobTitle.length<1){
  527. uni.showToast({
  528. title: '请输入您的职务',
  529. duration: 2000,
  530. icon:'none'
  531. });
  532. return false;
  533. }
  534. if(!this.formInfo.contactPerson||this.formInfo.contactPerson.length<1){
  535. uni.showToast({
  536. title: '请输入联系人姓名',
  537. duration: 2000,
  538. icon:'none'
  539. });
  540. return false;
  541. }
  542. if(!this.formInfo.contactMethod||this.formInfo.contactMethod.length<1){
  543. uni.showToast({
  544. title: '请输入联系手机/微信/邮箱',
  545. duration: 2000,
  546. icon:'none'
  547. });
  548. return false;
  549. }
  550. }
  551. if(this.stepIndex==2&&that.selectValue2=='产品'){
  552. if(this.brand.length<1){
  553. uni.showToast({
  554. title: '请输入产品品牌',
  555. duration: 2000,
  556. icon:'none'
  557. });
  558. return false;
  559. }
  560. for(let i=0;i<this.extList.length;i++){
  561. if(!this.extList[i].prodName||!this.extList[i].prodSpec){
  562. uni.showToast({
  563. title: !this.extList[i].prodName?'请输入产品'+(i+1)+'的产品名称':'请输入产品'+(i+1)+'的产品型号',
  564. duration: 2000,
  565. icon:'none'
  566. });
  567. return false;
  568. }
  569. }
  570. }
  571. if(this.stepIndex==2&&that.selectValue2=='服务'){
  572. if(!this.selectValue3){
  573. uni.showToast({
  574. title: '请选择服务类型',
  575. duration: 2000,
  576. icon:'none'
  577. });
  578. return false;
  579. }
  580. if(!this.content){
  581. uni.showToast({
  582. title: '请输入服务介绍',
  583. duration: 2000,
  584. icon:'none'
  585. });
  586. return false;
  587. }
  588. }
  589. this.stepIndex = this.stepIndex+1;
  590. },
  591. getCompany(){
  592. let that = this;
  593. request.post('/slbUserCompanyRel/show/my', {
  594. userNo: uni.getStorageSync('userNo')
  595. }).then(res => {
  596. if (res.success) {
  597. let list = res.list || [];
  598. for(let i=0;i<list.length;i++){
  599. list[i].name = list[i].company;
  600. list[i].regNumber= list[i].company;
  601. if(!that.isEdit&&list[i].isDefault=='1'){
  602. that.searchValue = list[i].name
  603. that.current = list[i].name;
  604. that.formInfo.jobTitle = list[i].jobTitle;
  605. that.formInfo.contactPerson = list[i].contactPerson;
  606. that.formInfo.contactMethod = list[i].contactMethod;
  607. that.org = list[i];
  608. that.getAddress(list[i].name);
  609. }
  610. if(that.isEdit&&list[i].name==that.editItem.company){
  611. that.searchValue = list[i].name
  612. that.current = list[i].name;
  613. that.formInfo.jobTitle = list[i].jobTitle;
  614. that.formInfo.contactPerson = list[i].contactPerson;
  615. that.formInfo.contactMethod = list[i].contactMethod;
  616. that.org = list[i];
  617. that.getAddress(list[i].name);
  618. }
  619. }
  620. that.items = list;
  621. console.warn(that.items);
  622. }else{
  623. if(res._redirect){
  624. uni.showToast({
  625. title: '操作过期,请重试',
  626. duration: 2000,
  627. icon:'none'
  628. });
  629. that.goBack();
  630. }
  631. }
  632. })
  633. },
  634. goBack() {
  635. const pages = getCurrentPages()
  636. // 有可返回的页面则直接返回,uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
  637. if (pages.length > 1) {
  638. uni.navigateBack()
  639. return;
  640. }else{
  641. uni.reLaunch({
  642. url: '/pages/index/index'
  643. })
  644. }
  645. },
  646. changeSelect(e) {
  647. this.selectValue = e;
  648. },
  649. changeSelect2(e) {
  650. this.selectValue2 = e;
  651. },
  652. changeSelect3(e) {
  653. this.selectValue3 = e;
  654. },
  655. changeSelect4(e) {
  656. this.selectValue4 = e;
  657. },
  658. newItem(){
  659. this.extList.push({
  660. prodDesc: "",
  661. prodName: "",
  662. prodSpec: "",
  663. })
  664. },
  665. delItem(index){
  666. this.extList.splice(index,1);
  667. },
  668. saveForm(status) {
  669. if(!this.canSave){
  670. return false;
  671. }
  672. let that = this;
  673. if(status!=1&&that.selectValue2=='服务'){
  674. if(!this.content){
  675. uni.showToast({
  676. title: '请输入服务介绍',
  677. duration: 2000,
  678. icon:'none'
  679. });
  680. return false;
  681. }
  682. }
  683. if(status!=1&&that.selectValue2=='产品'){
  684. for(let i=0;i<this.extList.length;i++){
  685. if(!this.extList[i].prodName||!this.extList[i].prodSpec){
  686. uni.showToast({
  687. title: !this.extList[i].prodName?'请输入产品'+(i+1)+'的产品名称':'请输入产品'+(i+1)+'的产品型号',
  688. duration: 2000,
  689. icon:'none'
  690. });
  691. return false;
  692. }
  693. }
  694. }
  695. if(status!=1&&!this.formInfo.agree){
  696. uni.showToast({
  697. title: '请勾选同意平台核查所填信息的真实性',
  698. duration: 2000,
  699. icon:'none'
  700. });
  701. return false;
  702. }
  703. if(!that.canNext){
  704. uni.showToast({
  705. title: '照片/文件正在上传中,请耐心等待',
  706. duration: 2000,
  707. icon:'none'
  708. });
  709. return false;
  710. }
  711. let params = {
  712. };
  713. let postData = {
  714. type: that.selectValue2=='服务'?'2':'1',
  715. secType: that.selectValue3,
  716. company: that.selectValue=='公司'?this.org.name:'',
  717. subject: that.selectValue=='公司'?'1':'2',
  718. jobTitle: this.formInfo.jobTitle,
  719. contactPerson: that.selectValue=='公司'?this.formInfo.contactPerson:(this.formInfo.userRealName||this.formInfo.contactNickName),
  720. contactMethod: this.formInfo.contactMethod,
  721. contactNickName: this.formInfo.contactNickName,
  722. content: that.content,
  723. userNo: uni.getStorageSync('userNo'),
  724. status: status==1?status:3,
  725. showFlag: '是',
  726. brand: that.brand,
  727. id: that.isEdit?that.editItem.id:undefined,
  728. bisNo: that.isEdit?that.editItem.bisNo:undefined,
  729. version: that.isEdit?that.editItem.version:undefined,
  730. createTime: that.isEdit?that.editItem.createTime:undefined
  731. }
  732. if(that.selectValue=='公司'){
  733. postData.companyEntity = {};
  734. postData.companyEntity.company = postData.company;
  735. postData.companyEntity.jobTitle = postData.jobTitle;
  736. postData.companyEntity.creditCode = this.org.creditCode;
  737. postData.companyEntity.address = this.org.base;
  738. postData.companyEntity.regStatus = this.org.regStatus;
  739. postData.companyEntity.contactPerson = postData.contactPerson;
  740. postData.companyEntity.contactMethod = postData.contactMethod;
  741. postData.companyEntity.contactNickName = postData.contactNickName;
  742. // postData.companyEntity.address = this.org.creditCode;
  743. // postData.companyEntity.company = postData.company;
  744. postData.slbUserExt = {};
  745. postData.slbUserExt.userContactMethod = postData.contactMethod;
  746. postData.slbUserExt.contactPerson = postData.contactPerson;
  747. postData.slbUserExt.contactMethod = postData.contactMethod;
  748. postData.slbUserExt.contactNickName = postData.contactNickName;
  749. postData.slbUserExt.userRealName = this.formInfo.userRealName;
  750. }else{
  751. postData.slbUserExt = {};
  752. postData.slbUserExt.userContactMethod = postData.contactMethod;
  753. postData.slbUserExt.contactPerson = postData.contactPerson;
  754. postData.slbUserExt.contactMethod = postData.contactMethod;
  755. postData.slbUserExt.contactNickName = postData.contactNickName;
  756. postData.slbUserExt.userRealName = this.formInfo.userRealName;
  757. }
  758. if(postData.type=='1'){
  759. postData.secType = that.selectValue4;
  760. postData.isMedical = that.isMedical;
  761. postData.content = '';
  762. postData.shareExt = that.extList;
  763. }
  764. params.slbResourceShare = JSON.stringify(postData);
  765. params.fileDetailList = JSON.stringify(this.fileDetailList);
  766. uni.showToast({
  767. title: '提交中...',
  768. icon:'none'
  769. });
  770. that.canSave = false;
  771. request.post(that.isEdit?'/slbResourceShare/update':'/slbResourceShare/add', params).then(res => {
  772. if (res.success) {
  773. uni.showToast({
  774. title: status==1?'信息已暂存,请在我的供应中查看暂存信息':'发布已提交,请在我的供应中查看进度',
  775. icon: 'none',
  776. success: () => {
  777. setTimeout(() => {
  778. uni.redirectTo({
  779. url: "/pages/mine/share?tab="+(status==1?2:1)
  780. });
  781. }, 2500)
  782. }
  783. })
  784. } else {
  785. uni.showToast({
  786. title: res.msg,
  787. icon: 'none'
  788. })
  789. that.canSave = true;
  790. }
  791. console.warn(res);
  792. })
  793. },
  794. // 跳转
  795. tn(e) {
  796. uni.navigateTo({
  797. url: e,
  798. });
  799. },
  800. // 手动上传文件
  801. upload() {
  802. console.warn(121212);
  803. },
  804. // 手动清空列表
  805. clear() {
  806. this.$refs.imageUpload.clear()
  807. },
  808. select(e) {
  809. console.log('选择文件:', e)
  810. let tempFiles = e.tempFiles;
  811. for (let i in tempFiles) {
  812. this.upfile(tempFiles[i])
  813. }
  814. },
  815. upfile(file) {
  816. let that = this;
  817. console.warn(file);
  818. this.canNext = false;
  819. uni.showToast({
  820. title: '照片/文件正在上传中,请耐心等待',
  821. icon:'none'
  822. });
  823. uni.uploadFile({
  824. url: 'https://slb-m.lx-device.com/oss/upload/userFeedback', //仅为示例,非真实的接口地址
  825. filePath: file.url,
  826. name: 'file',
  827. success: (uploadFileRes) => {
  828. that.canNext = true;
  829. uni.hideToast();
  830. console.warn(JSON.parse(uploadFileRes.data));
  831. if(JSON.parse(uploadFileRes.data).success){
  832. let resultMap = JSON.parse(uploadFileRes.data).resultMap;
  833. that.fileDetailList.push({
  834. name: file.name,
  835. fileName: file.name, // 原始文件名
  836. ftpUrl: resultMap.uploadUrl, // 文件访问url
  837. path: file.path
  838. })
  839. }else{
  840. uni.showToast({
  841. title: JSON.parse(uploadFileRes.data).msg+',请删除后重试',
  842. icon:'none'
  843. });
  844. }
  845. },
  846. fail:(err)=>{
  847. uni.showToast({
  848. title: '上传失败,请删除后重试',
  849. icon:'none'
  850. });
  851. }
  852. });
  853. },
  854. // 上传成功
  855. success(e) {
  856. console.log('上传成功')
  857. },
  858. deleteFile(e, index) {
  859. if(!this.canNext){
  860. uni.showToast({
  861. title: '照片/文件正在上传中,请耐心等待',
  862. icon:'none'
  863. });
  864. return false;
  865. }
  866. for(let i=0;i<this.fileDetailList.length;i++){
  867. if(e.tempFile.path===this.fileDetailList[i].path){
  868. this.fileDetailList.splice(i, 1);
  869. }
  870. }
  871. console.error(this.fileDetailList);
  872. },
  873. selectChange(e) {
  874. this.searchValue = e.name
  875. this.current = e.regNumber;
  876. if(e.jobTitle){
  877. this.formInfo.jobTitle = e.jobTitle;
  878. this.formInfo.contactPerson = this[i].contactPerson;
  879. this.formInfo.contactMethod = this[i].contactMethod;
  880. }
  881. this.org = e;
  882. this.getAddress(e.name);
  883. },
  884. getAddress(name){
  885. let that = this;
  886. request.post('/member/getEnterPriseInfo', {
  887. keyWord: name
  888. }).then(res => {
  889. if(res&&res.success&&res.resultMap.data){
  890. if( res.resultMap.data.creditCode){
  891. that.org.creditCode = res.resultMap.data.creditCode
  892. }
  893. if( res.resultMap.data.regStatus){
  894. that.org.regStatus = res.resultMap.data.regStatus
  895. }
  896. if( res.resultMap.data.regLocation){
  897. that.org.base = res.resultMap.data.regLocation
  898. }
  899. }
  900. })
  901. },
  902. search: function(val) {
  903. let that = this;
  904. if (val && val.length > 3) {
  905. request.post('/member/searchCompys', {
  906. keyWord: val
  907. }).then(res => {
  908. if (res.success) {
  909. let list = res.resultMap.data || [];
  910. that.items = list;
  911. }else{
  912. if(res._redirect){
  913. uni.showToast({
  914. title: '操作过期,请重试',
  915. duration: 2000,
  916. icon:'none'
  917. });
  918. that.goBack();
  919. }
  920. }
  921. })
  922. } else {
  923. that.items = [];
  924. that.org = {};
  925. }
  926. },
  927. }
  928. }
  929. </script>
  930. <style lang="scss" scoped>
  931. .template-edit {}
  932. /* 胶囊*/
  933. .tn-custom-nav-bar__back {
  934. width: 60%;
  935. height: 100%;
  936. position: relative;
  937. display: flex;
  938. justify-content: space-evenly;
  939. align-items: center;
  940. box-sizing: border-box;
  941. // background-color: rgba(0, 0, 0, 0.15);
  942. border-radius: 1000rpx;
  943. border: 1rpx solid rgba(255, 255, 255, 0.5);
  944. // color: #FFFFFF;
  945. font-size: 18px;
  946. .icon {
  947. display: block;
  948. flex: 1;
  949. margin: auto;
  950. text-align: center;
  951. }
  952. &:before {
  953. content: " ";
  954. width: 1rpx;
  955. height: 110%;
  956. position: absolute;
  957. top: 22.5%;
  958. left: 0;
  959. right: 0;
  960. margin: auto;
  961. transform: scale(0.5);
  962. transform-origin: 0 0;
  963. pointer-events: none;
  964. box-sizing: border-box;
  965. opacity: 0.7;
  966. background-color: #FFFFFF;
  967. }
  968. }
  969. /* 底部悬浮按钮 start*/
  970. .tn-tabbar-height {
  971. min-height: 100rpx;
  972. height: calc(120rpx + env(safe-area-inset-bottom) / 2);
  973. }
  974. .tn-footerfixed {
  975. position: fixed;
  976. width: 100%;
  977. bottom: calc(env(safe-area-inset-bottom));
  978. z-index: 1024;
  979. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
  980. background: #f7f7f7;
  981. }
  982. /* 底部悬浮按钮 end*/
  983. /* 标签内容 start*/
  984. .tn-tag-content {
  985. &__item {
  986. display: inline-block;
  987. line-height: 45rpx;
  988. padding: 10rpx 30rpx;
  989. margin: 20rpx 20rpx 5rpx 0rpx;
  990. &--prefix {
  991. padding-right: 10rpx;
  992. }
  993. }
  994. }
  995. /deep/ .uni-forms-item__label {
  996. display: none;
  997. }
  998. /deep/ .uni-list-item__container {
  999. align-items: center;
  1000. }
  1001. /deep/.uni-card--shadow {
  1002. margin:0 !important;
  1003. }
  1004. /* 标签内容 end*/
  1005. </style>