circle.vue 21 KB

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