circle.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. <template>
  2. <view class="template-edit tn-safe-area-inset-bottom">
  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. <!-- <text class='icon tn-icon-home-capsule-fill'></text> -->
  8. </view>
  9. <view slot="default" style="display: flex;">
  10. <view style="flex:1;margin-left:25px">
  11. <text>发布需求</text>
  12. </view>
  13. <view>
  14. <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>
  15. <!-- <text style="margin-right: 4px;padding: 6px 15px;background-color:#00000026;border-radius: 30px;color: #3D7EFF;" @click="saveForm(1)">暂存</text> -->
  16. </view>
  17. </view>
  18. </tn-nav-bar>
  19. <view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  20. <tn-steps style="pointer-events:none;" :list="stepList" :current="stepIndex" mode="dotIcon"></tn-steps>
  21. <!-- <uni-steps :options="stepList" :active="stepIndex" /> -->
  22. <view v-if="stepIndex==1">
  23. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top tn-margin">
  24. <view class="tn-flex justify-content-item">
  25. <!-- <view class="tn-bg-black tn-color-white tn-text-center"
  26. style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
  27. <text class="tn-icon-topics" style="font-size: 30rpx;"></text>
  28. </view> -->
  29. <view class="tn-text-lg tn-padding-right-xs tn-text-bold" style="font-size: 16px;">以下三种方式可任选其一,若有可都输入</view>
  30. </view>
  31. <!-- <view class="justify-content-item tn-text-df tn-color-grey">
  32. <text class="tn-padding-xs">500字内</text>
  33. <text class="tn-icon-keyboard-circle"></text>
  34. </view> -->
  35. </view>
  36. <!-- <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;">
  37. <input placeholder="写下一句简短的标题" name="input" placeholder-style="color:#AAAAAA" ></input>
  38. </view> -->
  39. <view class="tn-margin tn-bg-gray--light tn-padding" style="border-radius: 10rpx;">
  40. <textarea maxlength="500" v-model="content" placeholder="请描述您的需求..." placeholder-style="color:#AAAAAA"></textarea>
  41. </view>
  42. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin" style="margin-top:40px;margin-bottom: 0;">
  43. <view class="tn-flex justify-content-item">
  44. <view class=" tn-text-center"
  45. style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
  46. <text class="tn-icon-image" style="font-size: 20px;"></text>
  47. </view>
  48. <view class="tn-padding-right-xs tn-text-bold" style="font-size: 16px;">上传图片</view>
  49. </view>
  50. <!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
  51. <text class="tn-padding-xs">清空上传</text>
  52. <text class="tn-icon-delete"></text>
  53. </view> -->
  54. </view>
  55. <view class="tn-margin-left tn-padding-top-xs">
  56. <uni-file-picker
  57. v-model="imgList" :limit="6" @delete="deleteFile" :auto-upload="false" @select="select" @success="success">
  58. </uni-file-picker>
  59. <view style="margin-top: 8px;">
  60. <text style="color: #999;font-size: 12px;">一次只能上传六张图片</text>
  61. </view>
  62. </view>
  63. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top-xl tn-margin" style="margin-bottom: 0;">
  64. <view class="tn-flex justify-content-item">
  65. <view class=" tn-text-center"
  66. style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
  67. <text class="tn-icon-link" style="font-size: 20px;"></text>
  68. </view>
  69. <view class="tn-padding-right-xs tn-text-bold" style="font-size: 16px;">上传文件</view>
  70. </view>
  71. <!-- <view class="justify-content-item tn-text-df tn-color-grey" @tap="clear">
  72. <text class="tn-padding-xs">清空上传</text>
  73. <text class="tn-icon-delete"></text>
  74. </view> -->
  75. </view>
  76. <view class="tn-margin-left tn-padding-top-xs">
  77. <uni-file-picker
  78. v-model="fileList" :limit="3" mode="grid" @delete="deleteFile" file-mediatype="all" file-extname="pdf,docx,doc,xls,xlsx" :auto-upload="false" @select="select" @success="success">
  79. <!-- <button size="default">上传文件</button> -->
  80. <view style="text-align: left;">
  81. <button size="mini" style="color:#1d60b1;border-color:#1d60b1;" plain="true">上传文件</button>
  82. </view>
  83. <!-- <tn-button shadow shape="round" fontColor="tn-color-white" size="lg" backgroundColor="tn-bg-blue" :fontSize="24" height="auto" padding="20rpx 36rpx">上传文件</tn-button>
  84. -->
  85. </uni-file-picker>
  86. <view style="margin-top: 4px;">
  87. <text style="color: #999;font-size: 12px;">一次只能上传三个文件,支持格式 pdf .doc .xls,不超过5MB。</text>
  88. </view>
  89. </view>
  90. <view style="margin-top:20px;padding: 16px">
  91. <text style="font-size: 16px;">需求有效期:</text>
  92. <uni-data-select
  93. v-model="selectValue"
  94. :localdata="selectList"
  95. @change="changeSelect"
  96. placement="top"
  97. placeholder="请选择"
  98. ></uni-data-select>
  99. </view>
  100. <!-- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top-xl tn-margin">
  101. <view class="tn-flex justify-content-item">
  102. <view class="tn-bg-black tn-color-white tn-text-center" style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
  103. <text class="tn-icon-tag" style="font-size: 30rpx;"></text>
  104. </view>
  105. <view class="tn-text-lg tn-padding-right-xs tn-text-bold">话题标签</view>
  106. </view>
  107. <view class="justify-content-item tn-text-df tn-color-grey">
  108. <text class="tn-padding-xs">选择</text>
  109. <text class="tn-icon-right"></text>
  110. </view>
  111. </view> -->
  112. <!-- 悬浮按钮-->
  113. <view class="tn-flex tn-footerfixed">
  114. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  115. <button type="default" plain="true" style="border-radius: 24px;"
  116. @click="nextStep()">
  117. 下一步
  118. </button>
  119. </view>
  120. </view>
  121. </view>
  122. <view v-if="stepIndex==2">
  123. <view style="padding:16px">
  124. <uni-forms :modelValue="formData" label-width="0">
  125. <view style="margin:16px 0">
  126. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;">*</text><text>公司名称:</text>
  127. <w-select
  128. style="width: 100%;"
  129. v-model='searchValue'
  130. :list='items'
  131. valueName='name'
  132. keyName="regNumber"
  133. @change='selectChange'
  134. :filterable="true"
  135. >
  136. </w-select>
  137. </view>
  138. <!-- <uni-forms-item label="公司名称" name="name">
  139. <uni-easyinput type="text" v-model="userInfo.company" placeholder="请输入所在公司名称" />
  140. </uni-forms-item> -->
  141. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;">*</text><text>您的职称:</text>
  142. <uni-forms-item label="" name="realName" label-width="0">
  143. <uni-easyinput type="text" v-model="formInfo.jobTitle" :clearable="false" placeholder="请输入您的职称" />
  144. </uni-forms-item>
  145. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;">*</text><text>联系人姓名:</text>
  146. <uni-forms-item label="联系人姓名" name="contactMethod">
  147. <uni-easyinput type="text" v-model="formInfo.contactPerson" :clearable="false" placeholder="请输入联系人姓名" />
  148. </uni-forms-item>
  149. <text style="color: red;line-height: 30px;vertical-align: middle;margin-right: 4px;">*</text><text>联系方式:</text>
  150. <uni-forms-item label="联系方式" name="phone">
  151. <uni-easyinput type="text" v-model="formInfo.contactMethod" :clearable="false" placeholder="请输入联系手机/微信/邮箱" />
  152. </uni-forms-item>
  153. <uni-forms-item label="11" name="check">
  154. <uni-data-checkbox :multiple="true" selectedColor="#01BEFF" v-model="formInfo.agree" :localdata="[{text: '同意平台核查所填信息的真实性',value: '是'}]" />
  155. </uni-forms-item>
  156. </uni-forms>
  157. </view>
  158. <view class="tn-flex tn-footerfixed">
  159. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  160. <button type="default" plain="true" style="border-radius: 24px;"
  161. @click="preStep()">
  162. 上一步
  163. </button>
  164. </view>
  165. <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
  166. <button type="primary" style="background-color:#1d60b1;border-radius: 23px" @click="saveForm()">提交审核</button>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <view class='tn-tabbar-height'></view>
  172. </view>
  173. </template>
  174. <script>
  175. import template_page_mixin from '@/libs/mixin/template_page_mixin.js';
  176. import request from '../utils/request';
  177. export default {
  178. name: 'TemplateEdit',
  179. mixins: [template_page_mixin],
  180. data() {
  181. return {
  182. canSave: true,
  183. selectValue: '',
  184. //非常紧急/两周/一月/长期
  185. selectList: [{
  186. value: '一周',
  187. text: '一周'
  188. },
  189. {
  190. value: '两周',
  191. text: '两周'
  192. },
  193. {
  194. value: '一月',
  195. text: '一月'
  196. }
  197. ],
  198. content:'',
  199. formInfo:{
  200. jobTitle:'',
  201. // contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName?JSON.parse(uni.getStorageSync('userInfo')).contactNickName:'用户'+JSON.parse(uni.getStorageInfoSync('userInfo')).userName.splice(-4),
  202. agree:[],
  203. contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName,
  204. contactMethod:JSON.parse(uni.getStorageSync('userInfo')).contactMethod||JSON.parse(uni.getStorageSync('userInfo')).userName
  205. },
  206. imgList:[],
  207. fileDetailList:[],
  208. stepIndex:1,
  209. // stepList:[{title:'填写需求'},{title: '填写联系方式'}],
  210. stepList: [{
  211. name: '填写需求',
  212. icon: 'circle',
  213. selectIcon: 'circle-fill'
  214. },
  215. {
  216. name: '填写联系方式',
  217. icon: 'trusty',
  218. selectIcon: 'trusty-fill'
  219. }
  220. ],
  221. formData: {
  222. apiType: 'this,ali',
  223. token: 'dffc1e06e636cff0fdf7d877b6ae6a2e',
  224. image: null
  225. },
  226. fileList: [],
  227. showUploadList: true,
  228. customBtn: false,
  229. autoUpload: true,
  230. showProgress: false,
  231. deleteable: true,
  232. customStyle: false,
  233. maxCount: 9,
  234. disabled: false,
  235. searchValue: '',
  236. items: [],
  237. org:{
  238. name:'',
  239. regNumber:''
  240. },
  241. editItem:{}
  242. }
  243. },
  244. watch: {
  245. searchValue(val, oldval) {
  246. console.error(val,this.org.name);
  247. if(val!==this.org.name){
  248. this.current = null;
  249. }
  250. if(this.stepIndex==2){
  251. this.search(val)
  252. }
  253. // if(this.org.name!=this.org.regNumber){
  254. // }
  255. }
  256. },
  257. onLoad(props) {
  258. console.error(props.sid);
  259. if(props.sid){
  260. this.isEdit = true;
  261. this.editItem = JSON.parse(uni.getStorageSync(props.sid)||'{}');
  262. this.content = this.editItem.content;
  263. this.fileDetailList = this.editItem.fileDetailList;
  264. for(let i=0;i<this.fileDetailList.length;i++){
  265. this.fileDetailList[i].path = this.fileDetailList[i].ftpUrl
  266. if(this.isImage(this.fileDetailList[i].fileName)){
  267. this.imgList.push({
  268. name: this.fileDetailList[i].fileName,
  269. url: this.fileDetailList[i].ftpUrl,
  270. path: this.fileDetailList[i].path
  271. })
  272. }else{
  273. this.imgList.push({
  274. name: this.fileDetailList[i].fileName,
  275. url: this.fileDetailList[i].ftpUrl,
  276. path: this.fileDetailList[i].path
  277. })
  278. }
  279. }
  280. this.org.name = this.editItem.company;
  281. this.formInfo.jobTitle = this.editItem.jobTitle;
  282. this.formInfo.contactPerson = this.editItem.contactPerson;
  283. this.formInfo.contactMethod = this.editItem.contactMethod;
  284. }
  285. this.getCompany();
  286. },
  287. methods: {
  288. isImage(fileName) {
  289. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  290. const extension = fileName.split('.').pop().toLowerCase();
  291. return imageExtensions.includes(extension);
  292. },
  293. getCompany(){
  294. let that = this;
  295. request.post('/slbUserCompanyRel/show/my', {
  296. userNo: uni.getStorageSync('userNo')
  297. }).then(res => {
  298. if (res.success) {
  299. let list = res.list || [];
  300. for(let i=0;i<list.length;i++){
  301. list[i].name = list[i].company;
  302. list[i].regNumber= list[i].company;
  303. if(!that.isEdit&&list[i].isDefault=='1'){
  304. that.searchValue = list[i].name
  305. that.current = list[i].name;
  306. that.org = list[i];
  307. if(list[i].jobTitle){
  308. that.formInfo.jobTitle = list[i].jobTitle
  309. }
  310. }
  311. if(that.isEdit&&list[i].name==that.editItem.company){
  312. that.searchValue = list[i].name
  313. that.current = list[i].name;
  314. that.formInfo.jobTitle = list[i].jobTitle;
  315. that.formInfo.contactPerson = list[i].contactPerson;
  316. that.formInfo.contactMethod = list[i].contactMethod;
  317. that.org = list[i];
  318. }
  319. }
  320. that.items = list;
  321. }
  322. })
  323. },
  324. preStep(){
  325. this.stepIndex = 1;
  326. },
  327. nextStep(){
  328. if(this.content==''&&this.fileDetailList.length===0){
  329. uni.showToast({
  330. title:'请输入您的需求或上传图片/文件',
  331. icon:'none'
  332. })
  333. this.stepIndex = 1;
  334. return false;
  335. }
  336. this.stepIndex = 2;
  337. },
  338. changeSelect(e) {
  339. this.selectValue = e;
  340. },
  341. saveForm(status){
  342. if(!this.canSave){
  343. return false;
  344. }
  345. let that = this;
  346. let params = {
  347. };
  348. if(status!=1&&!this.org.name){
  349. uni.showToast({
  350. title: '请输入公司名称',
  351. duration: 2000,
  352. icon:'none'
  353. });
  354. return false;
  355. }
  356. if(status!=1&&this.formInfo.jobTitle.length<1){
  357. uni.showToast({
  358. title: '请输入您的职称',
  359. duration: 2000,
  360. icon:'none'
  361. });
  362. return false;
  363. }
  364. if(status!=1&&this.formInfo.contactPerson.length<1){
  365. uni.showToast({
  366. title: '请输入联系人姓名',
  367. duration: 2000,
  368. icon:'none'
  369. });
  370. return false;
  371. }
  372. if(status!=1&&this.formInfo.contactMethod.length<1){
  373. uni.showToast({
  374. title: '请输入联系方式',
  375. duration: 2000,
  376. icon:'none'
  377. });
  378. return false;
  379. }
  380. if(status!=1&&this.formInfo.agree.length<1){
  381. uni.showToast({
  382. title: '请勾选同意平台核查所填信息的真实性',
  383. duration: 2000,
  384. icon:'none'
  385. });
  386. return false;
  387. }
  388. uni.showToast({
  389. title: '提交中...',
  390. icon:'none'
  391. });
  392. that.canSave = false;
  393. params.slbResourceDemand = {
  394. type:'3',
  395. company:this.org.name,
  396. jobTitle:this.formInfo.jobTitle,
  397. contactPerson:this.formInfo.contactPerson,
  398. contactMethod:this.formInfo.contactMethod,
  399. content:that.content,
  400. userNo:uni.getStorageSync('userNo'),
  401. validDate:this.selectValue,
  402. status: status==1?status:3,
  403. id: that.isEdit?that.editItem.id:undefined,
  404. bisNo: that.isEdit?that.editItem.bisNo:undefined,
  405. version: that.isEdit?that.editItem.version:undefined
  406. };
  407. params.slbResourceDemand.companyEntity = {};
  408. params.slbResourceDemand.companyEntity.company = params.slbResourceDemand.company;
  409. params.slbResourceDemand.companyEntity.jobTitle = params.slbResourceDemand.jobTitle;
  410. params.slbResourceDemand.companyEntity.creditCode = this.org.creditCode;
  411. params.slbResourceDemand.companyEntity.address = this.org.base;
  412. params.slbResourceDemand.companyEntity.regStatus = this.org.regStatus;
  413. params.slbResourceDemand.companyEntity.contactPerson = params.slbResourceDemand.contactPerson;
  414. params.slbResourceDemand.companyEntity.contactMethod = params.slbResourceDemand.contactMethod;
  415. params.slbResourceDemand.slbUserExt = {
  416. contactPerson:params.slbResourceDemand.contactPerson,
  417. contactMethod:params.slbResourceDemand.contactMethod,
  418. userNo:uni.getStorageSync('userNo'),
  419. };
  420. params.slbResourceDemand = JSON.stringify(params.slbResourceDemand);
  421. // params.slbResourceDemand.companyEntity.contactNickName = params.slbResourceDemand.contactNickName;
  422. // params.slbUserExt = JSON.stringify({
  423. // jobTitle:this.formInfo.jobTitle,
  424. // contactPerson:this.formInfo.contactPerson,
  425. // contactMethod:this.formInfo.contactMethod,
  426. // userNo:uni.getStorageSync('userNo'),
  427. // });
  428. params.fileDetailList = JSON.stringify(this.fileDetailList);
  429. request.post(that.isEdit?'/slbResourceDemand/update':'/slbResourceDemand/add', params).then(res => {
  430. that.canSave = true;
  431. if(res.success){
  432. uni.showToast({
  433. title:status==1?'信息已暂存,请在我的需求中查看暂存信息':'发布已提交,请在我的需求中查看进度',
  434. icon:'none',
  435. success:()=>{
  436. setTimeout(()=>{
  437. uni.redirectTo({
  438. url: "/pages/mine/need?tab="+(status==1?2:1)
  439. });
  440. },1500)
  441. }
  442. })
  443. }else{
  444. uni.showToast({
  445. title:res.msg,
  446. icon:'none'
  447. })
  448. }
  449. console.warn(res);
  450. })
  451. },
  452. // 跳转
  453. tn(e) {
  454. uni.navigateTo({
  455. url: e,
  456. });
  457. },
  458. // 手动上传文件
  459. upload() {
  460. console.warn(121212);
  461. },
  462. // 手动清空列表
  463. clear() {
  464. this.$refs.imageUpload.clear()
  465. },
  466. // 图片拖拽重新排序
  467. onSortList(list) {
  468. console.log(list);
  469. },
  470. select(e) {
  471. console.log('选择文件:', e)
  472. let tempFiles = e.tempFiles;
  473. for (let i in tempFiles) {
  474. this.upfile(tempFiles[i])
  475. }
  476. },
  477. deleteFile(e, index) {
  478. for(let i=0;i<this.fileDetailList.length;i++){
  479. if(e.tempFile.path===this.fileDetailList[i].path){
  480. this.fileDetailList.splice(i, 1);
  481. }
  482. }
  483. },
  484. upfile(file) {
  485. let that = this;
  486. console.warn(file);
  487. uni.uploadFile({
  488. url: 'http://slb-m.dev.ml1993.com/oss/upload/userFeedback', //仅为示例,非真实的接口地址
  489. filePath: file.url,
  490. name: 'file',
  491. success: (uploadFileRes) => {
  492. console.warn(JSON.parse(uploadFileRes.data));
  493. let resultMap = JSON.parse(uploadFileRes.data).resultMap;
  494. that.fileDetailList.push({
  495. name: file.name,
  496. fileName: file.name, // 原始文件名
  497. ftpUrl: resultMap.uploadUrl, // 文件访问url
  498. path:file.path
  499. })
  500. }
  501. });
  502. },
  503. // 上传成功
  504. success(e) {
  505. console.log('上传成功')
  506. },
  507. selectChange(e){
  508. console.error(e);
  509. this.searchValue = e.name
  510. this.current = e.regNumber;
  511. if(e.jobTitle){
  512. this.formInfo.jobTitle = e.jobTitle;
  513. }
  514. this.org = e;
  515. this.getAddress(e.name);
  516. },
  517. getAddress(name){
  518. let that = this;
  519. request.post('/member/getEnterPriseInfo', {
  520. keyWord: name
  521. }).then(res => {
  522. if(res&&res.success&&res.resultMap.data&&res.resultMap.data.regLocation){
  523. that.org.base = res.resultMap.data.regLocation
  524. }
  525. })
  526. },
  527. search: function(val) {
  528. let that = this;
  529. if (val && val.length > 3) {
  530. request.post('/member/searchCompys', {
  531. keyWord: val
  532. }).then(res => {
  533. if(res&&res.success){
  534. let list = res.resultMap.data || [];
  535. that.items = list;
  536. }
  537. })
  538. }else{
  539. that.items = [];
  540. that.org = {};
  541. }
  542. },
  543. }
  544. }
  545. </script>
  546. <style lang="scss" scoped>
  547. .template-edit {}
  548. /* 胶囊*/
  549. .tn-custom-nav-bar__back {
  550. width: 60%;
  551. height: 100%;
  552. position: relative;
  553. display: flex;
  554. justify-content: space-evenly;
  555. align-items: center;
  556. box-sizing: border-box;
  557. // background-color: rgba(0, 0, 0, 0.15);
  558. border-radius: 1000rpx;
  559. border: 1rpx solid rgba(255, 255, 255, 0.5);
  560. // color: #FFFFFF;
  561. font-size: 18px;
  562. .icon {
  563. display: block;
  564. flex: 1;
  565. margin: auto;
  566. text-align: center;
  567. }
  568. &:before {
  569. content: " ";
  570. width: 1rpx;
  571. height: 110%;
  572. position: absolute;
  573. top: 22.5%;
  574. left: 0;
  575. right: 0;
  576. margin: auto;
  577. transform: scale(0.5);
  578. transform-origin: 0 0;
  579. pointer-events: none;
  580. box-sizing: border-box;
  581. opacity: 0.7;
  582. background-color: #FFFFFF;
  583. }
  584. }
  585. /* 底部悬浮按钮 start*/
  586. .tn-tabbar-height {
  587. min-height: 100rpx;
  588. height: calc(120rpx + env(safe-area-inset-bottom) / 2);
  589. }
  590. .tn-footerfixed {
  591. position: fixed;
  592. width: 100%;
  593. bottom: calc(env(safe-area-inset-bottom));
  594. z-index: 1024;
  595. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
  596. background: #fff;
  597. }
  598. /* 底部悬浮按钮 end*/
  599. /* 标签内容 start*/
  600. .tn-tag-content {
  601. &__item {
  602. display: inline-block;
  603. line-height: 45rpx;
  604. padding: 10rpx 30rpx;
  605. margin: 20rpx 20rpx 5rpx 0rpx;
  606. &--prefix {
  607. padding-right: 10rpx;
  608. }
  609. }
  610. }
  611. /deep/ .uni-forms-item__label {
  612. display: none;
  613. }
  614. /deep/ .uni-stat__select .uni-select__input-placeholder {
  615. font-size: 14px;
  616. }
  617. /* 标签内容 end*/
  618. </style>