addShare.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111
  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;"></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>个人信息</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;" :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>
  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: 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: -30rpx;">
  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 tn-padding-top-xs" 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 tn-padding-top-xs" 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;" :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. }
  731. if(that.selectValue=='公司'){
  732. postData.companyEntity = {};
  733. postData.companyEntity.company = postData.company;
  734. postData.companyEntity.jobTitle = postData.jobTitle;
  735. postData.companyEntity.creditCode = this.org.creditCode;
  736. postData.companyEntity.address = this.org.base;
  737. postData.companyEntity.regStatus = this.org.regStatus;
  738. postData.companyEntity.contactPerson = postData.contactPerson;
  739. postData.companyEntity.contactMethod = postData.contactMethod;
  740. postData.companyEntity.contactNickName = postData.contactNickName;
  741. // postData.companyEntity.address = this.org.creditCode;
  742. // postData.companyEntity.company = postData.company;
  743. postData.slbUserExt = {};
  744. postData.slbUserExt.userContactMethod = postData.contactMethod;
  745. postData.slbUserExt.contactPerson = postData.contactPerson;
  746. postData.slbUserExt.contactMethod = postData.contactMethod;
  747. postData.slbUserExt.contactNickName = postData.contactNickName;
  748. postData.slbUserExt.userRealName = this.formInfo.userRealName;
  749. }else{
  750. postData.slbUserExt = {};
  751. postData.slbUserExt.userContactMethod = postData.contactMethod;
  752. postData.slbUserExt.contactPerson = postData.contactPerson;
  753. postData.slbUserExt.contactMethod = postData.contactMethod;
  754. postData.slbUserExt.contactNickName = postData.contactNickName;
  755. postData.slbUserExt.userRealName = this.formInfo.userRealName;
  756. }
  757. if(postData.type=='1'){
  758. postData.secType = that.selectValue4;
  759. postData.isMedical = that.isMedical;
  760. postData.content = '';
  761. postData.shareExt = that.extList;
  762. }
  763. params.slbResourceShare = JSON.stringify(postData);
  764. params.fileDetailList = JSON.stringify(this.fileDetailList);
  765. uni.showToast({
  766. title: '提交中...',
  767. icon:'none'
  768. });
  769. that.canSave = false;
  770. request.post(that.isEdit?'/slbResourceShare/update':'/slbResourceShare/add', params).then(res => {
  771. if (res.success) {
  772. uni.showToast({
  773. title: status==1?'信息已暂存,请在我的供应中查看暂存信息':'发布已提交,请在我的供应中查看进度',
  774. icon: 'none',
  775. success: () => {
  776. setTimeout(() => {
  777. uni.redirectTo({
  778. url: "/pages/mine/share?tab="+(status==1?2:1)
  779. });
  780. }, 2500)
  781. }
  782. })
  783. } else {
  784. uni.showToast({
  785. title: res.msg,
  786. icon: 'none'
  787. })
  788. that.canSave = true;
  789. }
  790. console.warn(res);
  791. })
  792. },
  793. // 跳转
  794. tn(e) {
  795. uni.navigateTo({
  796. url: e,
  797. });
  798. },
  799. // 手动上传文件
  800. upload() {
  801. console.warn(121212);
  802. },
  803. // 手动清空列表
  804. clear() {
  805. this.$refs.imageUpload.clear()
  806. },
  807. select(e) {
  808. console.log('选择文件:', e)
  809. let tempFiles = e.tempFiles;
  810. for (let i in tempFiles) {
  811. this.upfile(tempFiles[i])
  812. }
  813. },
  814. upfile(file) {
  815. let that = this;
  816. console.warn(file);
  817. this.canNext = false;
  818. uni.showToast({
  819. title: '照片/文件正在上传中,请耐心等待',
  820. icon:'none'
  821. });
  822. uni.uploadFile({
  823. url: 'https://slb-m.lx-device.com/oss/upload/userFeedback', //仅为示例,非真实的接口地址
  824. filePath: file.url,
  825. name: 'file',
  826. success: (uploadFileRes) => {
  827. that.canNext = true;
  828. uni.hideToast();
  829. console.warn(JSON.parse(uploadFileRes.data));
  830. if(JSON.parse(uploadFileRes.data).success){
  831. let resultMap = JSON.parse(uploadFileRes.data).resultMap;
  832. that.fileDetailList.push({
  833. name: file.name,
  834. fileName: file.name, // 原始文件名
  835. ftpUrl: resultMap.uploadUrl, // 文件访问url
  836. path: file.path
  837. })
  838. }else{
  839. uni.showToast({
  840. title: JSON.parse(uploadFileRes.data).msg+',请删除后重试',
  841. icon:'none'
  842. });
  843. }
  844. },
  845. fail:(err)=>{
  846. uni.showToast({
  847. title: '上传失败,请删除后重试',
  848. icon:'none'
  849. });
  850. }
  851. });
  852. },
  853. // 上传成功
  854. success(e) {
  855. console.log('上传成功')
  856. },
  857. deleteFile(e, index) {
  858. if(!this.canNext){
  859. uni.showToast({
  860. title: '照片/文件正在上传中,请耐心等待',
  861. icon:'none'
  862. });
  863. return false;
  864. }
  865. for(let i=0;i<this.fileDetailList.length;i++){
  866. if(e.tempFile.path===this.fileDetailList[i].path){
  867. this.fileDetailList.splice(i, 1);
  868. }
  869. }
  870. console.error(this.fileDetailList);
  871. },
  872. selectChange(e) {
  873. this.searchValue = e.name
  874. this.current = e.regNumber;
  875. if(e.jobTitle){
  876. this.formInfo.jobTitle = e.jobTitle;
  877. this.formInfo.contactPerson = this[i].contactPerson;
  878. this.formInfo.contactMethod = this[i].contactMethod;
  879. }
  880. this.org = e;
  881. this.getAddress(e.name);
  882. },
  883. getAddress(name){
  884. let that = this;
  885. request.post('/member/getEnterPriseInfo', {
  886. keyWord: name
  887. }).then(res => {
  888. if(res&&res.success&&res.resultMap.data){
  889. if( res.resultMap.data.creditCode){
  890. that.org.creditCode = res.resultMap.data.creditCode
  891. }
  892. if( res.resultMap.data.regStatus){
  893. that.org.regStatus = res.resultMap.data.regStatus
  894. }
  895. if( res.resultMap.data.regLocation){
  896. that.org.base = res.resultMap.data.regLocation
  897. }
  898. }
  899. })
  900. },
  901. search: function(val) {
  902. let that = this;
  903. if (val && val.length > 3) {
  904. request.post('/member/searchCompys', {
  905. keyWord: val
  906. }).then(res => {
  907. if (res.success) {
  908. let list = res.resultMap.data || [];
  909. that.items = list;
  910. }else{
  911. if(res._redirect){
  912. uni.showToast({
  913. title: '操作过期,请重试',
  914. duration: 2000,
  915. icon:'none'
  916. });
  917. that.goBack();
  918. }
  919. }
  920. })
  921. } else {
  922. that.items = [];
  923. that.org = {};
  924. }
  925. },
  926. }
  927. }
  928. </script>
  929. <style lang="scss" scoped>
  930. .template-edit {}
  931. /* 胶囊*/
  932. .tn-custom-nav-bar__back {
  933. width: 60%;
  934. height: 100%;
  935. position: relative;
  936. display: flex;
  937. justify-content: space-evenly;
  938. align-items: center;
  939. box-sizing: border-box;
  940. // background-color: rgba(0, 0, 0, 0.15);
  941. border-radius: 1000rpx;
  942. border: 1rpx solid rgba(255, 255, 255, 0.5);
  943. // color: #FFFFFF;
  944. font-size: 18px;
  945. .icon {
  946. display: block;
  947. flex: 1;
  948. margin: auto;
  949. text-align: center;
  950. }
  951. &:before {
  952. content: " ";
  953. width: 1rpx;
  954. height: 110%;
  955. position: absolute;
  956. top: 22.5%;
  957. left: 0;
  958. right: 0;
  959. margin: auto;
  960. transform: scale(0.5);
  961. transform-origin: 0 0;
  962. pointer-events: none;
  963. box-sizing: border-box;
  964. opacity: 0.7;
  965. background-color: #FFFFFF;
  966. }
  967. }
  968. /* 底部悬浮按钮 start*/
  969. .tn-tabbar-height {
  970. min-height: 100rpx;
  971. height: calc(120rpx + env(safe-area-inset-bottom) / 2);
  972. }
  973. .tn-footerfixed {
  974. position: fixed;
  975. width: 100%;
  976. bottom: calc(env(safe-area-inset-bottom));
  977. z-index: 1024;
  978. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
  979. background: #f7f7f7;
  980. }
  981. /* 底部悬浮按钮 end*/
  982. /* 标签内容 start*/
  983. .tn-tag-content {
  984. &__item {
  985. display: inline-block;
  986. line-height: 45rpx;
  987. padding: 10rpx 30rpx;
  988. margin: 20rpx 20rpx 5rpx 0rpx;
  989. &--prefix {
  990. padding-right: 10rpx;
  991. }
  992. }
  993. }
  994. /deep/ .uni-forms-item__label {
  995. display: none;
  996. }
  997. /deep/ .uni-list-item__container {
  998. align-items: center;
  999. }
  1000. /deep/.uni-card--shadow {
  1001. margin:0 !important;
  1002. }
  1003. /* 标签内容 end*/
  1004. </style>