form-presale.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. <template name="secondHandrelease">
  2. <view class="fleaMarketForm">
  3. <view class="bannerimg"><image src="https://static.caimei365.com/app/img/bg/secondbg.png"></image></view>
  4. <view class="my-maintenance" :style="{ paddingBottom: isIphoneX ? '270rpx' : '250rpx' }">
  5. <view class="newsTitle">
  6. <view class="nestext">
  7. 欢迎您来到采美365网二手商品市场,您可以在这里发布二手仪器和产品,采美官方
  8. 人员将会对商品进行审核和专业的估价,估价完成后才能上架展示并销售,展示期为
  9. 3个月。为了完整展示您的商品,请您认真填写以下商品基本信息,谢谢合作。
  10. </view>
  11. </view>
  12. <view class="row">
  13. <view class="label"><text class="red">*</text>发布身份:</view>
  14. <view class="select spacing">
  15. <picker
  16. @change="bindPickerChangePublisher($event)"
  17. :value="index"
  18. :range="publisherActions"
  19. range-key="name"
  20. >
  21. <input
  22. class="input"
  23. type="text"
  24. disabled="true"
  25. v-model="publisherText"
  26. placeholder="请选择发布身份"
  27. placeholder-class="placeholder"
  28. />
  29. </picker>
  30. </view>
  31. <text class="iconfont icon-xiayibu"></text>
  32. </view>
  33. <view class="row">
  34. <view class="label"><text class="red">*</text>联系人:</view>
  35. <view class="spacing">
  36. <input type="text"
  37. maxlength="15"
  38. v-model="secondParams.contactName"
  39. placeholder="请输入联系人姓名"
  40. placeholder-class="placeholder">
  41. </view>
  42. </view>
  43. <view class="row">
  44. <view class="label"><text class="red">*</text>联系方式:</view>
  45. <view class="spacing">
  46. <input type="text"
  47. v-model="secondParams.contactMobile"
  48. maxlength="11"
  49. placeholder="请输入联系人手机号"
  50. @blur="contactMobileOnblur"
  51. placeholder-class="placeholder">
  52. </view>
  53. </view>
  54. <view class="row">
  55. <view class="label"><text class="red">*</text>验证码:</view>
  56. <view class="spacing">
  57. <input type="text"
  58. v-model="secondParams.checkCode"
  59. maxlength="6"
  60. placeholder="请输入验证码"
  61. placeholder-class="placeholder">
  62. </view>
  63. <view class="row-btn" :class="[isMobileDisabled ? 'disabled' : '']">
  64. <button class="row-input"
  65. type="button"
  66. @click.stop="getMobileCodeFn"
  67. :disabled="isMobileDisabled">
  68. {{ mobileCodeText }}
  69. </button>
  70. </view>
  71. </view>
  72. <view class="row">
  73. <view class="label"><text class="red">*</text>二手分类:</view>
  74. <view class="select spacing">
  75. <picker
  76. @change="bindPickerChange($event)"
  77. :value="index"
  78. :range="categoryActions"
  79. range-key="name"
  80. >
  81. <input
  82. class="input"
  83. type="text"
  84. disabled="true"
  85. v-model="organizationTypeText"
  86. placeholder="请选择分类"
  87. placeholder-class="placeholder"
  88. />
  89. </picker>
  90. </view>
  91. <text class="iconfont icon-xiayibu"></text>
  92. </view>
  93. <view class="row">
  94. <view class="label"><text class="red">*</text>商品品牌:</view>
  95. <view class="select spacing">
  96. <picker
  97. @change="bindPickerChangeBrand($event)"
  98. :value="index"
  99. :range="brandActions"
  100. range-key="name"
  101. >
  102. <input
  103. class="input"
  104. type="text"
  105. disabled="true"
  106. v-model="brandName"
  107. placeholder="请选择品牌"
  108. placeholder-class="placeholder"
  109. />
  110. </picker>
  111. </view>
  112. <text class="iconfont icon-xiayibu"></text>
  113. </view>
  114. <view class="row" v-if="secondParams.brandId==161">
  115. <view class="label">其它品牌:</view>
  116. <view class="spacing">
  117. <input type="text"
  118. maxlength="40"
  119. v-model="secondParams.brandName"
  120. placeholder="请输入商品品牌"
  121. placeholder-class="placeholder">
  122. </view>
  123. </view>
  124. <view class="row">
  125. <view class="label"><text class="red">*</text>商品名称:</view>
  126. <view class="spacing">
  127. <input type="text"
  128. maxlength="40"
  129. v-model="secondParams.name"
  130. placeholder="请输入商品名称,不超过40个汉字"
  131. placeholder-class="placeholder">
  132. </view>
  133. </view>
  134. <view class="row">
  135. <view class="label">出厂日期:</view>
  136. <view class="spacing">
  137. <input type="text"
  138. v-model="secondParams.fixedYears"
  139. maxlength="10"
  140. placeholder="请输入出厂日期 如:2020年06月"
  141. placeholder-class="placeholder">
  142. </view>
  143. </view>
  144. <view class="row" v-if="secondParams.publishIdentity === 2">
  145. <view class="label"><text class="red">*</text>公司名称:</view>
  146. <view class="spacing">
  147. <input type="text"
  148. v-model="secondParams.companyName"
  149. maxlength="30"
  150. placeholder="请输入公司名称,不超过30个汉字"
  151. placeholder-class="placeholder">
  152. </view>
  153. </view>
  154. <view class="row">
  155. <view class="label"><text class="red">*</text>商品成色:</view>
  156. <view class="spacing">
  157. <input type="text"
  158. maxlength="10"
  159. v-model="secondParams.productQuality"
  160. placeholder="请输入商品成色,如“9成新”"
  161. placeholder-class="placeholder">
  162. </view>
  163. </view>
  164. <!-- <view class="row">
  165. <view class="label">商品类型:</view>
  166. <view class="select spacing">
  167. <picker
  168. @change="bindPickerChangeProduct($event)"
  169. :value="index"
  170. :range="productActions"
  171. range-key="name"
  172. >
  173. <input
  174. class="input"
  175. type="text"
  176. disabled="true"
  177. v-model="organizationTypeText1"
  178. placeholder="请选择发布身份"
  179. placeholder-class="placeholder"
  180. />
  181. </picker>
  182. </view>
  183. <text class="iconfont icon-xiayibu"></text>
  184. </view> -->
  185. <view class="row" >
  186. <view class="label"><text class="red">*</text>联系地址:</view>
  187. <view class="spacing" @click="showMulLinkageThreePicker">
  188. <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none,placeholder' : ''" >
  189. {{addressData.address}}
  190. </text>
  191. </view>
  192. <text class="iconfont icon-xiayibu"></text>
  193. </view>
  194. <textarea type="text"
  195. class="border-grey address-details"
  196. v-model="secondParams.address"
  197. maxlength="50"
  198. placeholder="请填写详细地址,如街道/小区/门牌等"
  199. placeholder-class="placeholder"/>
  200. </textarea>
  201. <view class="release-main-container">
  202. <view class="release-from">
  203. <view class="label"><text class="red">*</text>商品图片</view>
  204. <view class="release-input upload image uploadGoodsImages" >
  205. <view class="upload-file" v-if="GoodsImagesList.length<5">
  206. <text class="iconfont icon-shangchuantupian"></text>
  207. <p class="add-text">商品图片</p>
  208. <view ref="goodsImages" class="input-file" @click="uploadGoodsImagesFn"></view>
  209. </view>
  210. <view class="upload-file" v-for="(item, index) in GoodsImagesList" :key="index">
  211. <image :data-original='item' :src="item" :data-image="item" alt="" class="upload-img" ></image>
  212. <text class=" del iconfont icon-iconfontguanbi" @click="removeGoodsImagesFn(index)"></text>
  213. </view>
  214. </view>
  215. <view class="form-upload-tips">
  216. <text class="iconfont icon-wenhao" ></text>
  217. <view class="wen-tips" >最多上传5张二手商品图片,请尽量全部上传,单张图片不能超过5M</view>
  218. </view>
  219. </view>
  220. <view class="productinfo">
  221. <view class="label unlogin-label" style="width: 100%;">商品详细信息</view>
  222. <view class="textarea-wrapper">
  223. <textarea class="textarea"
  224. type="text"
  225. v-model="secondParams.productDetails"
  226. placeholder="请填写商品详细信息,对商品进行更详细的描述"
  227. placeholder-class="placeholder"
  228. maxlength="200"
  229. @input="onTextareaInputInfo"
  230. />
  231. <span class="word-limit">{{secondParams.productDetails.length}}/200</span>
  232. </view>
  233. </view>
  234. </view>
  235. </view>
  236. <view class="secondBj thebj" v-show="modal1" :class="modal1 ? 'show':''">
  237. <view class="bjmain theresult">
  238. <text class="title">发布提示</text>
  239. <text class="content"> {{ tipsContentText }} </text>
  240. <view class="paybtn">
  241. <view class="btn cancel" @click.stop="cancelButtonFn">{{ cancelButtonText }}</view>
  242. <view class="btn confirm" @click.stop="confirmButtonFn">{{ confirmButtonText }}</view>
  243. </view>
  244. </view>
  245. </view>
  246. <!-- 地址弹窗 -->
  247. <mpvue-city-picker :themeColor="themeColor"
  248. ref="mpvueCityPicker"
  249. :pickerValueDefault="cityPickerValueDefault"
  250. @onCancel="onCancel"
  251. @onConfirm="onConfirm">
  252. </mpvue-city-picker>
  253. <!-- 发布按钮 -->
  254. <tui-bottom-popup :radius="false" :mask="false" :show="popupShow">
  255. <view class="tui-popup-box clearfix">
  256. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  257. <view class="tui-flex-1">
  258. <view class="tui-button-text" @click="handleChangAgree">
  259. <text class="iconfont"
  260. :class="checkbox ? 'icon-yixuanze':'icon-weixuanze'" >
  261. </text>
  262. 已阅读并同意采美
  263. <text style="color:#1890f9;" @click.stop="this.$api.navigateTo('/pages/service/service?id=1039&title=二手出让协议')">《二手出让协议》</text>
  264. </view>
  265. </view>
  266. <view class="tui-flex-1">
  267. <view class="tui-button" @click="handleSubmitBtn">发布</view>
  268. </view>
  269. </view>
  270. </view>
  271. </tui-bottom-popup>
  272. <!-- 弹窗提示 -->
  273. <tui-modal :show="modal" :padding="'40rpx 30rpx'" @cancel="hideMobel" :custom="true" fadeIn >
  274. <view class="tui-modal-custom">
  275. <view class="tui-prompt-text">
  276. {{ contentModalText }}
  277. </view>
  278. <view class="tui-prompt-flex">
  279. <view class="btn btn-confirm" @click="handleClick">确定</view>
  280. </view>
  281. </view>
  282. </tui-modal>
  283. </view>
  284. </template>
  285. <script>
  286. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  287. import { uploadFileImage , uploadFilePdf } from '@/services/public.js'
  288. import authorize from '@/common/config/authorize.js'
  289. import $reg from '@/common/config/common.js'
  290. import { mapState,mapMutations } from 'vuex'
  291. export default{
  292. name:'secondHandrelease',
  293. components:{
  294. mpvueCityPicker,
  295. },
  296. data(){
  297. return{
  298. isIphoneX: this.$store.state.isIphoneX,
  299. popupShow:true,
  300. userIdentity:0,
  301. publisherText:'个人身份',
  302. organizationTypeText:'请选择二手分类',
  303. organizationTypeText1:'请选择商品类型',
  304. brandActions:[],
  305. publisherActions:[
  306. {name:'个人身份',value:1},
  307. {name:'公司身份',value:2},
  308. ],
  309. categoryActions:[
  310. {name:'二手仪器',value:1},
  311. {name:'其他',value:3},
  312. ],
  313. productActions:[
  314. {name:'医美',value:1},
  315. {name:'非医美',value:3},
  316. ],
  317. GoodsImagesList:[],
  318. secondParams:{
  319. publishIdentity:1, // 发布者身份 1 个人身份 2 公司身份
  320. secondHandType:'',//一级分类
  321. instrumentType:1,//二手仪器分类
  322. name:'',
  323. brandId:'',//品牌ID
  324. brandName:'',//其他品牌
  325. fixedYears:'',//出厂
  326. companyName:'',//公司名称
  327. maturityYears:'',//产品到期
  328. price:'',//交易价
  329. detailTalkFlag:1,//是否启用详聊
  330. normalPrice:'',//市场价
  331. originalPrice:'',//采购价
  332. stock:'',//数量
  333. productQuality:'',//商品成色
  334. fileType:'', // 商品文件类型
  335. contactName:'',//联系人
  336. contactMobile:'',//联系方式
  337. checkCode:'',// 联系人手机验证码
  338. cardNumber:'',// 收款账号
  339. authenticationImage:'', //身份证正面
  340. authenticationBackImage:'', //身份证反面
  341. licenseImage:'',//营业执照图片
  342. commitmentImage:'',//承诺函图片
  343. dockingPeopleName:'',//采美对接人姓名
  344. dockingPeopleMobile:'',//采美对接人手机号
  345. secondProductType:'',//
  346. townId:'',//县区地址
  347. address:'',//详细地址
  348. image:'',//图片
  349. fileName:'',
  350. ossName:'',
  351. productDetails:'',//商品详细信息
  352. announType:2,//发布类型 1.二手预成交商品 2.二手估价商品
  353. source:4,//二手发布来源.1:WWW,2:小程序,3:后台,4:协销.
  354. accountName:'',//开户名
  355. banOfDeposit:'',//开户行
  356. accountType:'', // 账户类型
  357. },
  358. addressData:{
  359. address:'请选择所在地区',
  360. townID:'', //区ID
  361. cityID:'', //区ID
  362. provinceID:'', //区ID
  363. addressDetail: '', //地址
  364. },
  365. brandName:'请选择品牌名称',
  366. checkbox:false,
  367. tipsContentText:'',
  368. cancelButtonText:'取消发布',
  369. confirmButtonText:'去支付',
  370. contentModalText:'发布成功!商品信息会在1-2个工作日内进行审核,采美官方人员也会联系您进行商品估价,审核通过后将立即上线到采美二手市场。',
  371. isButtonsType:0,
  372. modal:false,
  373. modal1:false,
  374. isMobileDisabled: true, //手机验证码按钮控制
  375. mobilCount: '', //倒计时
  376. mobileCodeText: '获取验证码',
  377. mobilTime: null,
  378. }
  379. },
  380. methods:{
  381. onTextareaInputInfo(e){
  382. this.secondParams.productDetails = e.detail.value
  383. },
  384. showMulLinkageThreePicker() {//三级地址联动
  385. this.isShowInput = true
  386. this.$refs.mpvueCityPicker.show()
  387. },
  388. onConfirm(e) {//获取选择的地址信息
  389. this.addressData.address = e.name
  390. this.addressData.townID = e.townCode
  391. this.addressData.cityID = e.cityCode
  392. this.addressData.provinceID = e.provinceCode
  393. this.secondParams.townId = this.addressData.townID
  394. },
  395. bindPickerChangePublisher(e) {// 选择发布者身份
  396. this.publisherText = this.publisherActions[e.target.value].name
  397. this.secondParams.publishIdentity = this.publisherActions[e.target.value].value
  398. },
  399. bindPickerChange(e) {// 选择二手分类
  400. this.secondParams.secondHandType = this.categoryActions[e.target.value].value
  401. if(this.secondParams.secondHandType === 1){
  402. this.organizationTypeText = '二手仪器-美容仪器'
  403. }else{
  404. this.organizationTypeText = this.categoryActions[e.target.value].name
  405. }
  406. },
  407. bindPickerChangeBrand(e) {
  408. // 选择品牌
  409. this.brandName = this.brandActions[e.target.value].name
  410. this.secondParams.brandId = this.brandActions[e.target.value].value
  411. },
  412. bindPickerChangeProduct(e) {
  413. // 选择商品类型
  414. this.organizationTypeText1 = this.productActions[e.target.value].name
  415. this.secondParams.secondProductType = this.productActions[e.target.value].value
  416. },
  417. contains(arr, val) {// 校验
  418. return arr.some(item => item === val)
  419. },
  420. uploadGoodsImagesFn(event){//上传商品图片
  421. uploadFileImage().then(res =>{
  422. this.GoodsImagesList.push(JSON.parse(res.data).data)
  423. this.secondParams.image =this.GoodsImagesList.toString()+','
  424. })
  425. },
  426. removeGoodsImagesFn(index){//删除商品图片
  427. this.GoodsImagesList.splice(index,1)
  428. this.secondParams.image =this.GoodsImagesList.toString()+','
  429. },
  430. contactMobileOnblur(e){// 识别手机号是否正确
  431. if(this.$reg.isMobile(e.detail.value)){
  432. this.isMobileDisabled = false
  433. }
  434. },
  435. getMobileCodeFn(){
  436. let params = {
  437. mobile:this.secondParams.contactMobile,
  438. isCheckCaptcha:1,
  439. activateCodeType:6,
  440. platformType:2
  441. }
  442. this.isMobileDisabled = true
  443. this.PublicService.GetRegisterMobileCode(params).then(response =>{
  444. this.$util.msg('验证短信已发送',2000)
  445. const TIME_COUNT = 60
  446. if (!this.mobilTime) {
  447. this.mobilCount = TIME_COUNT
  448. this.isMobileDisabled = true
  449. this.mobilTime = setInterval(() => {
  450. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  451. this.mobilCount--
  452. this.mobileCodeText = this.mobilCount +'s重新发送'
  453. } else {
  454. this.isMobileDisabled = false
  455. clearInterval(this.mobilTime)
  456. this.mobilTime = null
  457. this.mobileCodeText = '获取验证码'
  458. }
  459. },1000)
  460. }
  461. }).catch( error =>{
  462. this.$util.msg(error.msg,2000)
  463. this.isMobileDisabled = false
  464. })
  465. },
  466. handleSubmitBtn () {
  467. if(this.secondParams.contactName == ''){
  468. this.$util.msg('请输入联系人姓名',2000)
  469. return
  470. }
  471. if(this.secondParams.contactMobile == ''){
  472. console.log(this.secondParams.contactMobile)
  473. this.$util.msg('请输入联系方式',2000)
  474. return
  475. }
  476. if(!$reg.isMobile(this.secondParams.contactMobile)){
  477. this.$util.msg('请填写正确的手机号',2000)
  478. return
  479. }
  480. if(this.secondParams.checkCode == ''){
  481. this.$util.msg('请输入短信验证码',2000)
  482. return
  483. }
  484. if(this.secondParams.secondHandType == ''){
  485. this.$util.msg('请选择分类',2000)
  486. return
  487. }
  488. if(this.secondParams.secondHandType == 1 ){
  489. if(this.secondParams.instrumentType ==''){
  490. this.$util.msg('请完善仪器分类',2000)
  491. return
  492. }
  493. }
  494. if(this.secondParams.brandId == ''){
  495. this.$util.msg('请选择商品品牌',2000)
  496. return
  497. }
  498. if(this.secondParams.name == ''){
  499. this.$util.msg('请输入商品名称',2000)
  500. return
  501. }
  502. if(this.secondParams.publishIdentity === 2) {
  503. if (this.secondParams.companyName=='') {
  504. this.$util.msg('请输入公司名称',2000)
  505. return
  506. }
  507. }
  508. if(this.secondParams.productQuality == ''){
  509. this.$util.msg('请输入商品成色',2000)
  510. return
  511. }
  512. if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
  513. this.$util.msg('请完善联系地址',2000)
  514. return
  515. }
  516. if(this.secondParams.address == ''){
  517. this.$util.msg('请填写详细地址',2000)
  518. return
  519. }
  520. if(this.GoodsImagesList ==''){
  521. this.$util.msg('请上传商品图片',2000)
  522. return
  523. }
  524. if(this.checkbox==false){
  525. this.$util.msg('请勾选已阅读',2000)
  526. return
  527. }
  528. console.log(this.secondParams)
  529. this.SecondHandProduct(this.secondParams)
  530. },
  531. SecondHandProduct(params){//提交发布
  532. this.SecondService.SecondHandProduct(params).then(res=>{
  533. this.modal = true
  534. })
  535. .catch(error =>{
  536. this.$util.msg(error.msg,2000)
  537. })
  538. },
  539. cancelButtonFn(){//弹窗操作按钮
  540. switch(this.isButtonsType){
  541. case 1:
  542. this.modal1 = false
  543. this.SecondHandProduct(this.secondParams)
  544. break
  545. case 2:
  546. this.modal1 = false
  547. break
  548. }
  549. },
  550. confirmButtonFn(){//弹窗操作按钮
  551. switch(this.isButtonsType){
  552. case 1:
  553. this.modal1 = false
  554. break
  555. case 2:
  556. this.modal1 = false
  557. break
  558. }
  559. },
  560. handleChangAgree() {
  561. this.checkbox = !this.checkbox
  562. },
  563. getBrandList() {
  564. // 获取收款类型列表
  565. this.SecondService.brandList()
  566. .then(response => {
  567. this.brandActions = response.data.map(item => ({
  568. ...item,
  569. name: item.name,
  570. value: item.id
  571. }))
  572. })
  573. .catch(err => {
  574. this.$util.msg(err.msg, 2000)
  575. })
  576. },
  577. hideMobel(){
  578. this.modal = false
  579. },
  580. handleClick(){
  581. this.modal = false
  582. this.$api.redirectTo ('/pages/second/product/product-list')
  583. }
  584. },
  585. onShow() {
  586. this.getBrandList()
  587. this.$api.getComStorage('userInfo').then((resolve) =>{
  588. this.userIdentity = resolve.userIdentity
  589. console.log(this.userIdentity)
  590. }).catch(error =>{
  591. console.log(error)
  592. })
  593. }
  594. }
  595. </script>
  596. <style lang="scss">
  597. view{font-size: 28rpx;}
  598. .my-maintenance{
  599. padding: 20rpx;
  600. }
  601. .bannerimg {
  602. height: 100rpx;
  603. width: 100%;
  604. }
  605. .bannerimg image{
  606. width: 100%;
  607. height: 100% ;
  608. }
  609. .newsTitle {
  610. line-height: 48rpx;
  611. text-align: left;
  612. color: #e15616;
  613. padding:20rpx;
  614. background-color: rgba(225, 86, 22, .1);
  615. border-radius: 10rpx;
  616. }
  617. .nestext{
  618. font-size: 24rpx;
  619. line-height: 40rpx;
  620. }
  621. .secondradio view{
  622. display: inline-block;
  623. color: #333333;
  624. margin-right: 21rpx;
  625. }
  626. .secondradio{
  627. display: inline-block;
  628. margin-left: 40rpx;
  629. }
  630. .Secondary{
  631. margin-left: 96rpx;
  632. }
  633. .secondradio view.active {
  634. color: #e15616;
  635. }
  636. .placeholder{
  637. color: #b2b2b2;
  638. }
  639. .linqi_text {
  640. width: 607rpx;
  641. height: 68rpx;
  642. background-color: #1890f9;
  643. box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);
  644. text-align: center;
  645. line-height: 68rpx;
  646. color: #ffffff;
  647. margin: auto;
  648. font-size:24rpx;
  649. position: relative;
  650. }
  651. .jiaobiao {
  652. width: 0;
  653. height: 0;
  654. border-left: 20rpx solid transparent;
  655. border-right: 20rpx solid transparent;
  656. top: -25%;
  657. right: 40%;
  658. border-bottom: 20rpx solid #1890f9;
  659. position: absolute;
  660. }
  661. .label{
  662. color: #666666;
  663. display: inline-block;
  664. .red{
  665. color: #f94b4b;
  666. }
  667. }
  668. .label-im{
  669. width: 100%;
  670. line-height: 50rpx;
  671. font-size: $font-size-28;
  672. color: #666666;
  673. text-align: left;
  674. margin-top: 20rpx;
  675. .red{
  676. color: #f94b4b;
  677. }
  678. .sms{
  679. font-size: $font-size-24;
  680. color: #fea785;
  681. }
  682. }
  683. .label-em{
  684. line-height: 28rpx;
  685. font-size: $font-size-20;
  686. color: #fea785;
  687. width: 100%;
  688. text-align: left;
  689. }
  690. .label.second{
  691. width: 155rpx;
  692. }
  693. .row .spacing.second{
  694. width: 70%;
  695. }
  696. .row{
  697. width: 100%;
  698. border-bottom: 2rpx solid #e1e1e1;
  699. line-height: 90rpx;
  700. float: left;
  701. height: auto;
  702. position: relative;
  703. .checkbox-main{
  704. width: 100%;
  705. .checkbox-list {
  706. height: 60rpx;
  707. font-size: $font-size-28;
  708. line-height: 60rpx;
  709. border-radius: 10rpx;
  710. margin-right: 20rpx;
  711. margin-bottom: 10rpx;
  712. box-sizing: border-box;
  713. float: left;
  714. color: #333333;
  715. .icon-yixuanze{
  716. margin-right: 10rpx;
  717. color: #E15616;
  718. }
  719. .icon-weixuanze{
  720. margin-right: 10rpx;
  721. color: #B2B2B2;
  722. }
  723. }
  724. }
  725. .row-btn{
  726. width: 180rpx;
  727. height:64rpx;
  728. background: $btn-confirm;
  729. padding: 0;
  730. border-radius: 32rpx;
  731. position: absolute;
  732. right: 0;
  733. top: 10rpx;
  734. .row-input{
  735. width: 180rpx;
  736. height: 64rpx;
  737. line-height: 64rpx;
  738. padding: 0;
  739. color: #FFFFFF;
  740. background: $btn-confirm;
  741. text-align: center;
  742. border-radius: 32rpx;
  743. &.other{
  744. width: 180rpx;
  745. background: #F7F7F7;
  746. margin-right: 20rpx;
  747. }
  748. &.none{
  749. background: #F7F7F7;
  750. }
  751. }
  752. &.disabled{
  753. background: #F7F7F7;
  754. .row-input{
  755. background: #F7F7F7;
  756. color: #999999;
  757. font-size: 24rpx;
  758. }
  759. }
  760. }
  761. &.none{
  762. border-bottom: none;
  763. }
  764. }
  765. .row.fenlei{
  766. height: auto;
  767. margin: 10rpx 0;
  768. border: 0;
  769. }
  770. .select {
  771. position: relative;
  772. color: #b2b2b2;
  773. text-align: left;
  774. user-select: none;
  775. }
  776. .row .spacing{
  777. display: inline-block;
  778. margin-left: 50rpx;
  779. width: 430rpx;
  780. vertical-align:middle;
  781. position: relative;
  782. color: #333333;
  783. .input{
  784. color: #333333;
  785. }
  786. &.file{
  787. width: 100%;
  788. }
  789. &.file-text{
  790. width: 100%;
  791. line-height: 44rpx;
  792. font-size: 28rpx;
  793. box-sizing: border-box;
  794. margin-left: 0;
  795. .file-text-em{
  796. width: 100%;
  797. text-overflow: ellipsis;
  798. overflow: hidden;
  799. display: -webkit-box;
  800. -webkit-line-clamp: 1;
  801. line-clamp: 1;
  802. -webkit-box-orient: vertical;
  803. line-height: 44rpx;
  804. font-size: 28rpx;
  805. padding-right: 40rpx;
  806. box-sizing: border-box;
  807. position: relative;
  808. }
  809. .icon-iconfontguanbi{
  810. width: 40rpx;
  811. height: 40rpx;
  812. line-height: 40rpx;
  813. display: block;
  814. position: absolute;
  815. top: 0;
  816. right:0;
  817. color: #f94b4b;
  818. font-size: 36rpx;
  819. }
  820. }
  821. &.file-none{
  822. width: 100%;
  823. margin-left: 0;
  824. position: relative;
  825. .file-none-button{
  826. width: 88rpx;
  827. height: 44rpx;
  828. background-color: #e15616;
  829. border-radius: 8rpx;
  830. line-height: 44rpx;
  831. text-align: center;
  832. font-size: 24rpx;
  833. color: #FFFFFF;
  834. position: absolute;
  835. right: 0;
  836. top: -15rpx;
  837. }
  838. }
  839. }
  840. .select .placeholder {
  841. position: relative;
  842. cursor: pointer;
  843. width: 100%;
  844. display: inline-block;
  845. }
  846. .icon-xiayibu{
  847. right: 0rpx;
  848. color: #b2b2b2;
  849. position: absolute;
  850. }
  851. .xiangliao{
  852. font-size: 26rpx;
  853. margin-right: 10rpx;
  854. color: #b2b2b2;
  855. }
  856. .icon-jiagexiangliao{
  857. color: #e15616 !important;
  858. }
  859. .pricecolor{
  860. margin-left: 10rpx;
  861. }
  862. .showflag{
  863. color: #b2b2b2;
  864. }
  865. .border-grey{
  866. width: 100%;
  867. resize: none;
  868. padding: 20rpx 0;
  869. height: 160rpx;
  870. border-bottom: 2rpx solid #e1e1e1;
  871. }
  872. .release-main-container {
  873. overflow: hidden;
  874. margin: 20rpx 0;
  875. }
  876. .uploadGoodsImages{
  877. display: flex;
  878. overflow-x: auto;
  879. overflow-y: hidden;
  880. }
  881. .secondradio{
  882. .row-radio{
  883. transform: scale(.8);
  884. }
  885. .row-input{margin-right: 10rpx;}
  886. }
  887. .linqi_text .p{
  888. font-size: $font-size-20;
  889. }
  890. .upload-file {
  891. float: left;
  892. margin: 20rpx 20rpx 20rpx 0px;
  893. cursor: pointer;
  894. width: 194rpx;
  895. height: 194rpx;
  896. border-radius: 6rpx;
  897. border: solid 2rpx #e1e1e1;
  898. flex-shrink: 0;
  899. position: relative;
  900. display: inline-block;
  901. .input-file {
  902. width: 194rpx;
  903. height: 194rpx;
  904. opacity: 0;
  905. cursor: pointer;
  906. position: absolute;
  907. top: 0;
  908. left: 0;
  909. }
  910. .upload-img {
  911. width: 100%;
  912. height: 100%;
  913. display: block;
  914. border-radius: .53vw;
  915. }
  916. .icon-shangchuantupian{
  917. display: block;
  918. width: 100%;
  919. height: 100rpx;
  920. line-height: 90rpx;
  921. color: #b2b2b2;
  922. font-size: $font-size-40;
  923. text-align: center;
  924. padding-top: 20rpx;
  925. box-sizing: border-box;
  926. }
  927. .add-text {
  928. display: block;
  929. width: 100%;
  930. line-height: 50rpx;
  931. font-size: 24rpx;
  932. color: #b2b2b2;
  933. text-align: center;
  934. }
  935. .icon-iconfontguanbi{
  936. width: 40rpx;
  937. height: 40rpx;
  938. line-height: 40rpx;
  939. display: block;
  940. position: absolute;
  941. background: #f94b4b;
  942. text-align: center;
  943. line-height: 40rpx;
  944. border-radius: 50%;
  945. top: -15rpx;
  946. right:-18rpx;
  947. color: #FFFFFF;
  948. font-size: $font-size-24;
  949. }
  950. }
  951. .wen-tips {
  952. width: 664rpx;
  953. height: 68rpx;
  954. line-height: 68rpx;
  955. text-align: center;
  956. color: #FFF;
  957. font-size: 20rpx;
  958. background-color: #1890f9;
  959. box-shadow: 0 0.8vw 1.6vw 0 rgba(24, 144, 249, 0.17);
  960. border-radius: 2rpx;
  961. display: none;
  962. }
  963. .form-upload-tips:hover .wen-tips {
  964. display: block;
  965. }
  966. .textarea-wrapper {
  967. letter-spacing: 2rpx;
  968. line-height: 48rpx;
  969. color: #333333;
  970. position: relative;
  971. font-size: 28rpx;
  972. border: 2rpx solid #E1E1E1;
  973. height: 300rpx;
  974. padding: 16rpx;
  975. border-radius: 6rpx;
  976. margin: 20rpx 0;
  977. }
  978. .textarea-wrapper textarea{
  979. width: 100%;
  980. }
  981. .word-limit {
  982. position: absolute;
  983. right: 2.7vw;
  984. bottom: 2.7vw;
  985. font-size: 3.2vw;
  986. color: #9aa5b5;
  987. }
  988. .row.Read{
  989. border: 0;
  990. text-align: center;
  991. color: #999999;
  992. }
  993. .thebj {
  994. position: fixed;
  995. left: 0;
  996. top: 0;
  997. bottom: 0;
  998. width: 100%;
  999. height: 100%;
  1000. background-color: rgba(0, 0, 0, .5);
  1001. z-index: 999999;
  1002. opacity: 0;
  1003. }
  1004. .thebj.show{
  1005. opacity: 1;
  1006. }
  1007. .theresult {
  1008. position: absolute;
  1009. top: 50%;
  1010. left: 50%;
  1011. transform: translate(-50%, -50%);
  1012. width:580rpx;
  1013. background-color: #fff;
  1014. border-radius: 32rpx;
  1015. }
  1016. .theresult .title{
  1017. line-height: 100rpx;
  1018. text-align: center;
  1019. display: block;
  1020. color: #333333;
  1021. font-size: 30rpx;
  1022. font-weight: bold;
  1023. border-bottom: 2rpx solid #efefef;
  1024. }
  1025. .theresult .content{
  1026. padding: 30rpx 52rpx;
  1027. line-height: 48rpx;
  1028. color: #666666;
  1029. font-size: 30rpx;
  1030. display: block;
  1031. }
  1032. .paybtn{
  1033. width: 100%;
  1034. height: 90rpx;
  1035. float: left;
  1036. .btn{
  1037. width: 50%;
  1038. height: 90rpx;
  1039. text-align: center;
  1040. line-height: 90rpx;
  1041. font-size: 30rpx;
  1042. display: inline-block;
  1043. float: left;
  1044. &.cancel{
  1045. background-color: #efefef;
  1046. border-radius: 0rpx 0rpx 0rpx 32rpx;
  1047. color: #999999;
  1048. }
  1049. &.confirm{
  1050. background-image: linear-gradient(270deg, #f28f31 0%, #e15616 100%);
  1051. border-radius: 0rpx 0rpx 32rpx 0rpx;
  1052. color: #fff;
  1053. }
  1054. }
  1055. }
  1056. .icon-wenhao{
  1057. color: #1890f9;
  1058. font-size: 35rpx;
  1059. width: 50rpx;
  1060. }
  1061. .form-upload-tips:hover .wen-tips {display: block;}
  1062. .tui-popup-box {
  1063. position: relative;
  1064. box-sizing: border-box;
  1065. min-height: 100rpx;
  1066. padding: 6rpx 24rpx;
  1067. .tui-popup-content {
  1068. padding-top: 30rpx;
  1069. }
  1070. }
  1071. .tui-popup-btn {
  1072. width: 100%;
  1073. height: auto;
  1074. float: left;
  1075. box-sizing: border-box;
  1076. margin-top: 30rpx;
  1077. .tui-button {
  1078. width: 600rpx;
  1079. height: 88rpx;
  1080. background: $btn-confirm;
  1081. line-height: 88rpx;
  1082. text-align: center;
  1083. color: #ffffff;
  1084. font-size: $font-size-28;
  1085. border-radius: 44rpx;
  1086. margin: 0 auto;
  1087. }
  1088. .tui-button-text{
  1089. width: 600rpx;
  1090. height: 70rpx;
  1091. line-height: 70rpx;
  1092. text-align: center;
  1093. color: #333333;
  1094. font-size: $font-size-26;
  1095. margin: 0 auto;
  1096. margin-top: 15rpx;
  1097. .iconfont{
  1098. margin-right: 10rpx;
  1099. &.icon-yixuanze{
  1100. color: $color-system;
  1101. }
  1102. }
  1103. }
  1104. }
  1105. .tui-prompt-flex{
  1106. width: 100%;
  1107. height: 80rpx;
  1108. display: flex;
  1109. margin-top: 20rpx;
  1110. .btn{
  1111. flex: 1;
  1112. line-height: 80rpx;
  1113. font-size: $font-size-26;
  1114. text-align: center;
  1115. color: #FFFFFF;
  1116. border-radius: 40rpx;
  1117. margin: 0 24rpx;
  1118. &.btn-cancel{
  1119. background: #F7F7F7;
  1120. color: #999999;
  1121. }
  1122. &.btn-confirm{
  1123. background: $btn-confirm;
  1124. }
  1125. }
  1126. }
  1127. .tui-prompt-text{
  1128. line-height: 44rpx;
  1129. font-size: $font-size-26;
  1130. color: #333333;
  1131. .text{
  1132. color: $color-system;
  1133. }
  1134. }
  1135. </style>