form-presale.vue 28 KB

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