form.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  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 { mapState,mapMutations } from 'vuex'
  287. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  288. import { uploadFileImage , uploadFilePdf } from '@/services/public.js'
  289. import authorize from '@/common/config/authorize.js'
  290. import $reg from '@/common/config/common.js'
  291. export default{
  292. components:{
  293. mpvueCityPicker,
  294. },
  295. data(){
  296. return{
  297. isIphoneX: this.$store.state.isIphoneX,
  298. popupShow:true,
  299. userIdentity:0,
  300. publisherText:'个人身份',
  301. organizationTypeText:'请选择二手分类',
  302. organizationTypeText1:'请选择商品类型',
  303. brandActions:[],
  304. publisherActions:[
  305. {name:'个人身份',value:1},
  306. {name:'公司身份',value:2},
  307. ],
  308. categoryActions:[
  309. {name:'二手仪器',value:1},
  310. {name:'其他',value:3},
  311. ],
  312. productActions:[
  313. {name:'医美',value:1},
  314. {name:'非医美',value:3},
  315. ],
  316. GoodsImagesList:[],
  317. secondParams:{
  318. publishIdentity:1, // 发布者身份 1 个人身份 2 公司身份
  319. secondHandType:'',//一级分类
  320. instrumentType:1,//二手仪器分类
  321. name:'',
  322. brandId:'',//品牌ID
  323. brandName:'',//其他品牌
  324. fixedYears:'',//出厂
  325. companyName:'',//公司名称
  326. maturityYears:'',//产品到期
  327. price:'',//交易价
  328. detailTalkFlag:1,//是否启用详聊
  329. normalPrice:'',//市场价
  330. originalPrice:'',//采购价
  331. stock:'',//数量
  332. productQuality:'',//商品成色
  333. fileType:'', // 商品文件类型
  334. contactName:'',//联系人
  335. contactMobile:'',//联系方式
  336. checkCode:'',// 联系人手机验证码
  337. cardNumber:'',// 收款账号
  338. authenticationImage:'', //身份证正面
  339. authenticationBackImage:'', //身份证反面
  340. licenseImage:'',//营业执照图片
  341. commitmentImage:'',//承诺函图片
  342. dockingPeopleName:'',//采美对接人姓名
  343. dockingPeopleMobile:'',//采美对接人手机号
  344. secondProductType:'',//
  345. townId:'',//县区地址
  346. address:'',//详细地址
  347. image:'',//图片
  348. fileName:'',
  349. ossName:'',
  350. productDetails:'',//商品详细信息
  351. announType:2,//发布类型 1.二手预成交商品 2.二手估价商品
  352. source:2,//二手发布来源.1:WWW,2:小程序,3:后台,4:协销
  353. userId:0
  354. },
  355. addressData:{
  356. address:'请选择所在地区',
  357. townID:'', //区ID
  358. cityID:'', //区ID
  359. provinceID:'', //区ID
  360. addressDetail: '', //地址
  361. },
  362. brandName:'请选择品牌名称',
  363. checkbox:false,
  364. tipsContentText:'',
  365. cancelButtonText:'取消发布',
  366. confirmButtonText:'去支付',
  367. contentModalText:'发布成功!商品信息会在1-2个工作日内进行审核,采美官方人员也会联系您进行商品估价,审核通过后将立即上线到采美二手市场。',
  368. isButtonsType:0,
  369. modal:false,
  370. modal1:false,
  371. isMobileDisabled: true, //手机验证码按钮控制
  372. mobilCount: '', //倒计时
  373. mobileCodeText: '获取验证码',
  374. mobilTime: null,
  375. }
  376. },
  377. methods:{
  378. onTextareaInputInfo(e){
  379. this.secondParams.productDetails = e.detail.value
  380. },
  381. showMulLinkageThreePicker() {//三级地址联动
  382. this.isShowInput = true
  383. this.$refs.mpvueCityPicker.show()
  384. },
  385. onConfirm(e) {//获取选择的地址信息
  386. this.addressData.address = e.name
  387. this.addressData.townID = e.townCode
  388. this.addressData.cityID = e.cityCode
  389. this.addressData.provinceID = e.provinceCode
  390. this.secondParams.townId = this.addressData.townID
  391. },
  392. bindPickerChangePublisher(e) {// 选择发布者身份
  393. this.publisherText = this.publisherActions[e.target.value].name
  394. this.secondParams.publishIdentity = this.publisherActions[e.target.value].value
  395. },
  396. bindPickerChange(e) {// 选择二手分类
  397. this.secondParams.secondHandType = this.categoryActions[e.target.value].value
  398. if(this.secondParams.secondHandType === 1){
  399. this.organizationTypeText = '二手仪器-美容仪器'
  400. }else{
  401. this.organizationTypeText = this.categoryActions[e.target.value].name
  402. }
  403. },
  404. bindPickerChangeBrand(e) {
  405. // 选择品牌
  406. this.brandName = this.brandActions[e.target.value].name
  407. this.secondParams.brandId = this.brandActions[e.target.value].value
  408. },
  409. bindPickerChangeProduct(e) {
  410. // 选择商品类型
  411. this.organizationTypeText1 = this.productActions[e.target.value].name
  412. this.secondParams.secondProductType = this.productActions[e.target.value].value
  413. },
  414. contains(arr, val) {// 校验
  415. return arr.some(item => item === val)
  416. },
  417. uploadGoodsImagesFn(event){//上传商品图片
  418. uploadFileImage().then(res =>{
  419. this.GoodsImagesList.push(JSON.parse(res.data).data)
  420. this.secondParams.image =this.GoodsImagesList.toString()+','
  421. })
  422. },
  423. removeGoodsImagesFn(index){//删除商品图片
  424. this.GoodsImagesList.splice(index,1)
  425. this.secondParams.image =this.GoodsImagesList.toString()+','
  426. },
  427. contactMobileOnblur(e){// 识别手机号是否正确
  428. if(this.$reg.isMobile(e.detail.value)){
  429. this.isMobileDisabled = false
  430. }
  431. },
  432. getMobileCodeFn(){
  433. let params = {
  434. mobile:this.secondParams.contactMobile,
  435. isCheckCaptcha:1,
  436. activateCodeType:6,
  437. platformType:2
  438. }
  439. this.isMobileDisabled = true
  440. this.PublicService.GetRegisterMobileCode(params).then(response =>{
  441. this.$util.msg('验证短信已发送',2000)
  442. const TIME_COUNT = 60
  443. if (!this.mobilTime) {
  444. this.mobilCount = TIME_COUNT
  445. this.isMobileDisabled = true
  446. this.mobilTime = setInterval(() => {
  447. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  448. this.mobilCount--
  449. this.mobileCodeText = this.mobilCount +'秒后重发'
  450. } else {
  451. this.isMobileDisabled = false
  452. clearInterval(this.mobilTime)
  453. this.mobilTime = null
  454. this.mobileCodeText = '获取验证码'
  455. }
  456. },1000)
  457. }
  458. }).catch( error =>{
  459. this.$util.msg(error.msg,2000)
  460. this.isMobileDisabled = false
  461. })
  462. },
  463. handleSubmitBtn () {
  464. if(this.secondParams.contactName == ''){
  465. this.$util.msg('请输入联系人姓名',2000)
  466. return
  467. }
  468. if(this.secondParams.contactMobile == ''){
  469. console.log(this.secondParams.contactMobile)
  470. this.$util.msg('请输入联系方式',2000)
  471. return
  472. }
  473. if(!$reg.isMobile(this.secondParams.contactMobile)){
  474. this.$util.msg('请填写正确的手机号',2000)
  475. return
  476. }
  477. if(this.secondParams.checkCode == ''){
  478. this.$util.msg('请输入短信验证码',2000)
  479. return
  480. }
  481. if(this.secondParams.secondHandType == ''){
  482. this.$util.msg('请选择分类',2000)
  483. return
  484. }
  485. if(this.secondParams.secondHandType == 1 ){
  486. if(this.secondParams.instrumentType ==''){
  487. this.$util.msg('请完善仪器分类',2000)
  488. return
  489. }
  490. }
  491. if(this.secondParams.brandId == ''){
  492. this.$util.msg('请选择商品品牌',2000)
  493. return
  494. }
  495. if(this.secondParams.name == ''){
  496. this.$util.msg('请输入商品名称',2000)
  497. return
  498. }
  499. if(this.secondParams.publishIdentity === 2) {
  500. if (this.secondParams.companyName=='') {
  501. this.$util.msg('请输入公司名称',2000)
  502. return
  503. }
  504. }
  505. if(this.secondParams.productQuality == ''){
  506. this.$util.msg('请输入商品成色',2000)
  507. return
  508. }
  509. if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
  510. this.$util.msg('请完善联系地址',2000)
  511. return
  512. }
  513. if(this.secondParams.address == ''){
  514. this.$util.msg('请填写详细地址',2000)
  515. return
  516. }
  517. if(this.GoodsImagesList ==''){
  518. this.$util.msg('请上传商品图片',2000)
  519. return
  520. }
  521. if(this.checkbox==false){
  522. this.$util.msg('请勾选已阅读',2000)
  523. return
  524. }
  525. console.log(this.secondParams)
  526. this.SecondHandProduct(this.secondParams)
  527. },
  528. SecondHandProduct(params){//提交发布
  529. this.SecondService.SecondHandProduct(params).then(res=>{
  530. this.modal = true
  531. })
  532. .catch(error =>{
  533. this.$util.msg(error.msg,2000)
  534. })
  535. },
  536. cancelButtonFn(){//弹窗操作按钮
  537. switch(this.isButtonsType){
  538. case 1:
  539. this.modal1 = false
  540. this.SecondHandProduct(this.secondParams)
  541. break
  542. case 2:
  543. this.modal1 = false
  544. break
  545. }
  546. },
  547. confirmButtonFn(){//弹窗操作按钮
  548. switch(this.isButtonsType){
  549. case 1:
  550. this.modal1 = false
  551. break
  552. case 2:
  553. this.modal1 = false
  554. break
  555. }
  556. },
  557. handleChangAgree() {
  558. this.checkbox = !this.checkbox
  559. },
  560. getBrandList() {
  561. // 获取收款类型列表
  562. this.SecondService.brandList()
  563. .then(response => {
  564. this.brandActions = response.data.map(item => ({
  565. ...item,
  566. name: item.name,
  567. value: item.id
  568. }))
  569. })
  570. .catch(err => {
  571. this.$util.msg(err.msg, 2000)
  572. })
  573. },
  574. hideMobel(){
  575. this.modal = false
  576. },
  577. handleClick(){
  578. this.modal = false
  579. this.$api.redirectTo ('/pages/second/product/product-list')
  580. },
  581. async getUserInfo(){
  582. try{
  583. const res = await this.$api.getComStorage('userInfo')
  584. this.userIdentity = res.userIdentity
  585. this.secondParams.userId = res.userId
  586. }catch(error){
  587. console.log('获取用户信息异常!')
  588. }
  589. }
  590. },
  591. onShow() {
  592. this.getBrandList()
  593. this.getUserInfo()
  594. }
  595. }
  596. </script>
  597. <style lang="scss">
  598. view{font-size: 28rpx;}
  599. .my-maintenance{
  600. padding: 20rpx;
  601. }
  602. .bannerimg {
  603. height: 100rpx;
  604. width: 100%;
  605. display: none;
  606. }
  607. .bannerimg image{
  608. width: 100%;
  609. height: 100% ;
  610. }
  611. .newsTitle {
  612. line-height: 48rpx;
  613. text-align: left;
  614. color: #FF5B00;
  615. padding:20rpx;
  616. background-color: rgba(225, 86, 22, .1);
  617. border-radius: 10rpx;
  618. display: none;
  619. }
  620. .nestext{
  621. font-size: 24rpx;
  622. line-height: 40rpx;
  623. }
  624. .secondradio view{
  625. display: inline-block;
  626. color: #333333;
  627. margin-right: 21rpx;
  628. }
  629. .secondradio{
  630. display: inline-block;
  631. margin-left: 40rpx;
  632. }
  633. .Secondary{
  634. margin-left: 96rpx;
  635. }
  636. .secondradio view.active {
  637. color: #FF5B00;
  638. }
  639. .placeholder{
  640. color: #b2b2b2;
  641. }
  642. .linqi_text {
  643. width: 607rpx;
  644. height: 68rpx;
  645. background-color: #1890f9;
  646. box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);
  647. text-align: center;
  648. line-height: 68rpx;
  649. color: #ffffff;
  650. margin: auto;
  651. font-size:24rpx;
  652. position: relative;
  653. }
  654. .jiaobiao {
  655. width: 0;
  656. height: 0;
  657. border-left: 20rpx solid transparent;
  658. border-right: 20rpx solid transparent;
  659. top: -25%;
  660. right: 40%;
  661. border-bottom: 20rpx solid #1890f9;
  662. position: absolute;
  663. }
  664. .label{
  665. color: #666666;
  666. display: inline-block;
  667. .red{
  668. color: #f94b4b;
  669. }
  670. }
  671. .label-im{
  672. width: 100%;
  673. line-height: 50rpx;
  674. font-size: $font-size-28;
  675. color: #666666;
  676. text-align: left;
  677. margin-top: 20rpx;
  678. .red{
  679. color: #f94b4b;
  680. }
  681. .sms{
  682. font-size: $font-size-24;
  683. color: #fea785;
  684. }
  685. }
  686. .label-em{
  687. line-height: 28rpx;
  688. font-size: $font-size-20;
  689. color: #fea785;
  690. width: 100%;
  691. text-align: left;
  692. }
  693. .label.second{
  694. width: 155rpx;
  695. }
  696. .row .spacing.second{
  697. width: 70%;
  698. }
  699. .row{
  700. width: 100%;
  701. border-bottom: 2rpx solid #e1e1e1;
  702. line-height: 90rpx;
  703. float: left;
  704. height: auto;
  705. position: relative;
  706. .checkbox-main{
  707. width: 100%;
  708. .checkbox-list {
  709. height: 60rpx;
  710. font-size: $font-size-28;
  711. line-height: 60rpx;
  712. border-radius: 10rpx;
  713. margin-right: 20rpx;
  714. margin-bottom: 10rpx;
  715. box-sizing: border-box;
  716. float: left;
  717. color: #333333;
  718. .icon-yixuanze{
  719. margin-right: 10rpx;
  720. color: #FF5B00;
  721. }
  722. .icon-weixuanze{
  723. margin-right: 10rpx;
  724. color: #B2B2B2;
  725. }
  726. }
  727. }
  728. .row-btn{
  729. width: 180rpx;
  730. height:64rpx;
  731. background: $btn-confirm;
  732. padding: 0;
  733. border-radius: 32rpx;
  734. position: absolute;
  735. right: 0;
  736. top: 10rpx;
  737. .row-input{
  738. width: 180rpx;
  739. height: 64rpx;
  740. line-height: 64rpx;
  741. padding: 0;
  742. color: #FFFFFF;
  743. background: $btn-confirm;
  744. text-align: center;
  745. border-radius: 32rpx;
  746. &.other{
  747. width: 180rpx;
  748. background: #F7F7F7;
  749. margin-right: 20rpx;
  750. }
  751. &.none{
  752. background: #F7F7F7;
  753. }
  754. }
  755. &.disabled{
  756. background: #F7F7F7;
  757. .row-input{
  758. background: #F7F7F7;
  759. color: #999999;
  760. font-size: 24rpx;
  761. }
  762. }
  763. }
  764. &.none{
  765. border-bottom: none;
  766. }
  767. }
  768. .row.fenlei{
  769. height: auto;
  770. margin: 10rpx 0;
  771. border: 0;
  772. }
  773. .select {
  774. position: relative;
  775. color: #b2b2b2;
  776. text-align: left;
  777. user-select: none;
  778. }
  779. .row .spacing{
  780. display: inline-block;
  781. margin-left: 50rpx;
  782. width: 430rpx;
  783. vertical-align:middle;
  784. position: relative;
  785. color: #333333;
  786. .input{
  787. color: #333333;
  788. }
  789. &.file{
  790. width: 100%;
  791. }
  792. &.file-text{
  793. width: 100%;
  794. line-height: 44rpx;
  795. font-size: 28rpx;
  796. box-sizing: border-box;
  797. margin-left: 0;
  798. .file-text-em{
  799. width: 100%;
  800. text-overflow: ellipsis;
  801. overflow: hidden;
  802. display: -webkit-box;
  803. -webkit-line-clamp: 1;
  804. line-clamp: 1;
  805. -webkit-box-orient: vertical;
  806. line-height: 44rpx;
  807. font-size: 28rpx;
  808. padding-right: 40rpx;
  809. box-sizing: border-box;
  810. position: relative;
  811. }
  812. .icon-iconfontguanbi{
  813. width: 40rpx;
  814. height: 40rpx;
  815. line-height: 40rpx;
  816. display: block;
  817. position: absolute;
  818. top: 0;
  819. right:0;
  820. color: #f94b4b;
  821. font-size: 36rpx;
  822. }
  823. }
  824. &.file-none{
  825. width: 100%;
  826. margin-left: 0;
  827. position: relative;
  828. .file-none-button{
  829. width: 88rpx;
  830. height: 44rpx;
  831. background-color: #FF5B00;
  832. border-radius: 8rpx;
  833. line-height: 44rpx;
  834. text-align: center;
  835. font-size: 24rpx;
  836. color: #FFFFFF;
  837. position: absolute;
  838. right: 0;
  839. top: -15rpx;
  840. }
  841. }
  842. }
  843. .select .placeholder {
  844. position: relative;
  845. cursor: pointer;
  846. width: 100%;
  847. display: inline-block;
  848. }
  849. .icon-xiayibu{
  850. right: 0rpx;
  851. color: #b2b2b2;
  852. position: absolute;
  853. }
  854. .xiangliao{
  855. font-size: 26rpx;
  856. margin-right: 10rpx;
  857. color: #b2b2b2;
  858. }
  859. .icon-jiagexiangliao{
  860. color: #FF5B00 !important;
  861. }
  862. .pricecolor{
  863. margin-left: 10rpx;
  864. }
  865. .showflag{
  866. color: #b2b2b2;
  867. }
  868. .border-grey{
  869. width: 100%;
  870. resize: none;
  871. padding: 20rpx 0;
  872. height: 160rpx;
  873. border-bottom: 2rpx solid #e1e1e1;
  874. }
  875. .release-main-container {
  876. overflow: hidden;
  877. margin: 20rpx 0;
  878. }
  879. .uploadGoodsImages{
  880. display: flex;
  881. overflow-x: auto;
  882. overflow-y: hidden;
  883. }
  884. .secondradio{
  885. .row-radio{
  886. transform: scale(.8);
  887. }
  888. .row-input{margin-right: 10rpx;}
  889. }
  890. .linqi_text .p{
  891. font-size: $font-size-20;
  892. }
  893. .upload-file {
  894. float: left;
  895. margin: 20rpx 20rpx 20rpx 0px;
  896. cursor: pointer;
  897. width: 194rpx;
  898. height: 194rpx;
  899. border-radius: 6rpx;
  900. border: solid 2rpx #e1e1e1;
  901. flex-shrink: 0;
  902. position: relative;
  903. display: inline-block;
  904. .input-file {
  905. width: 194rpx;
  906. height: 194rpx;
  907. opacity: 0;
  908. cursor: pointer;
  909. position: absolute;
  910. top: 0;
  911. left: 0;
  912. }
  913. .upload-img {
  914. width: 100%;
  915. height: 100%;
  916. display: block;
  917. border-radius: .53vw;
  918. }
  919. .icon-shangchuantupian{
  920. display: block;
  921. width: 100%;
  922. height: 100rpx;
  923. line-height: 90rpx;
  924. color: #b2b2b2;
  925. font-size: $font-size-40;
  926. text-align: center;
  927. padding-top: 20rpx;
  928. box-sizing: border-box;
  929. }
  930. .add-text {
  931. display: block;
  932. width: 100%;
  933. line-height: 50rpx;
  934. font-size: 24rpx;
  935. color: #b2b2b2;
  936. text-align: center;
  937. }
  938. .icon-iconfontguanbi{
  939. width: 40rpx;
  940. height: 40rpx;
  941. line-height: 40rpx;
  942. display: block;
  943. position: absolute;
  944. background: #f94b4b;
  945. text-align: center;
  946. line-height: 40rpx;
  947. border-radius: 50%;
  948. top: -15rpx;
  949. right:-18rpx;
  950. color: #FFFFFF;
  951. font-size: $font-size-24;
  952. }
  953. }
  954. .wen-tips {
  955. width: 664rpx;
  956. height: 68rpx;
  957. line-height: 68rpx;
  958. text-align: center;
  959. color: #FFF;
  960. font-size: 20rpx;
  961. background-color: #1890f9;
  962. box-shadow: 0 0.8vw 1.6vw 0 rgba(24, 144, 249, 0.17);
  963. border-radius: 2rpx;
  964. display: none;
  965. }
  966. .form-upload-tips:hover .wen-tips {
  967. display: block;
  968. }
  969. .textarea-wrapper {
  970. letter-spacing: 2rpx;
  971. line-height: 48rpx;
  972. color: #333333;
  973. position: relative;
  974. font-size: 28rpx;
  975. border: 2rpx solid #E1E1E1;
  976. height: 300rpx;
  977. padding: 16rpx;
  978. border-radius: 6rpx;
  979. margin: 20rpx 0;
  980. }
  981. .textarea-wrapper textarea{
  982. width: 100%;
  983. }
  984. .word-limit {
  985. position: absolute;
  986. right: 2.7vw;
  987. bottom: 2.7vw;
  988. font-size: 3.2vw;
  989. color: #9aa5b5;
  990. }
  991. .row.Read{
  992. border: 0;
  993. text-align: center;
  994. color: #999999;
  995. }
  996. .thebj {
  997. position: fixed;
  998. left: 0;
  999. top: 0;
  1000. bottom: 0;
  1001. width: 100%;
  1002. height: 100%;
  1003. background-color: rgba(0, 0, 0, .5);
  1004. z-index: 999999;
  1005. opacity: 0;
  1006. }
  1007. .thebj.show{
  1008. opacity: 1;
  1009. }
  1010. .theresult {
  1011. position: absolute;
  1012. top: 50%;
  1013. left: 50%;
  1014. transform: translate(-50%, -50%);
  1015. width:580rpx;
  1016. background-color: #fff;
  1017. border-radius: 32rpx;
  1018. }
  1019. .theresult .title{
  1020. line-height: 100rpx;
  1021. text-align: center;
  1022. display: block;
  1023. color: #333333;
  1024. font-size: 30rpx;
  1025. font-weight: bold;
  1026. border-bottom: 2rpx solid #efefef;
  1027. }
  1028. .theresult .content{
  1029. padding: 30rpx 52rpx;
  1030. line-height: 48rpx;
  1031. color: #666666;
  1032. font-size: 30rpx;
  1033. display: block;
  1034. }
  1035. .paybtn{
  1036. width: 100%;
  1037. height: 90rpx;
  1038. float: left;
  1039. .btn{
  1040. width: 50%;
  1041. height: 90rpx;
  1042. text-align: center;
  1043. line-height: 90rpx;
  1044. font-size: 30rpx;
  1045. display: inline-block;
  1046. float: left;
  1047. &.cancel{
  1048. background-color: #efefef;
  1049. border-radius: 0rpx 0rpx 0rpx 32rpx;
  1050. color: #999999;
  1051. }
  1052. &.confirm{
  1053. background-image: linear-gradient(270deg, #f28f31 0%, #FF5B00 100%);
  1054. border-radius: 0rpx 0rpx 32rpx 0rpx;
  1055. color: #fff;
  1056. }
  1057. }
  1058. }
  1059. .icon-wenhao{
  1060. color: #1890f9;
  1061. font-size: 35rpx;
  1062. width: 50rpx;
  1063. }
  1064. .form-upload-tips:hover .wen-tips {display: block;}
  1065. .tui-popup-box {
  1066. position: relative;
  1067. box-sizing: border-box;
  1068. min-height: 100rpx;
  1069. padding: 6rpx 24rpx;
  1070. .tui-popup-content {
  1071. padding-top: 30rpx;
  1072. }
  1073. }
  1074. .tui-popup-btn {
  1075. width: 100%;
  1076. height: auto;
  1077. float: left;
  1078. box-sizing: border-box;
  1079. margin-top: 30rpx;
  1080. .tui-button {
  1081. width: 600rpx;
  1082. height: 88rpx;
  1083. background: $btn-confirm;
  1084. line-height: 88rpx;
  1085. text-align: center;
  1086. color: #ffffff;
  1087. font-size: $font-size-28;
  1088. border-radius: 44rpx;
  1089. margin: 0 auto;
  1090. }
  1091. .tui-button-text{
  1092. width: 600rpx;
  1093. height: 70rpx;
  1094. line-height: 70rpx;
  1095. text-align: center;
  1096. color: #333333;
  1097. font-size: $font-size-26;
  1098. margin: 0 auto;
  1099. margin-top: 15rpx;
  1100. .iconfont{
  1101. margin-right: 10rpx;
  1102. &.icon-yixuanze{
  1103. color: $color-system;
  1104. }
  1105. }
  1106. }
  1107. }
  1108. .tui-prompt-flex{
  1109. width: 100%;
  1110. height: 80rpx;
  1111. display: flex;
  1112. margin-top: 20rpx;
  1113. .btn{
  1114. flex: 1;
  1115. line-height: 80rpx;
  1116. font-size: $font-size-26;
  1117. text-align: center;
  1118. color: #FFFFFF;
  1119. border-radius: 40rpx;
  1120. margin: 0 24rpx;
  1121. &.btn-cancel{
  1122. background: #F7F7F7;
  1123. color: #999999;
  1124. }
  1125. &.btn-confirm{
  1126. background: $btn-confirm;
  1127. }
  1128. }
  1129. }
  1130. .tui-prompt-text{
  1131. line-height: 44rpx;
  1132. font-size: $font-size-26;
  1133. color: #333333;
  1134. .text{
  1135. color: $color-system;
  1136. }
  1137. }
  1138. </style>