form.vue 30 KB

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