form-seller.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448
  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" maxlength="20" v-model="secondParams.price" placeholder="请输入交易价" placeholder-class="placeholder">
  158. </view>
  159. </view>
  160. <view style="margin-top: 15rpx;">
  161. <text class="iconfont xiangliao"
  162. :class="vShow_detailTalkFlag ? 'icon-jiagexiangliao':'icon-juxingweigouxuan'"
  163. @click="Detailed($event)">
  164. <text class='pricecolor' >价格详聊</text>
  165. </text>
  166. <text class="showflag" v-show="vShow_detailTalkFlag">(勾选代表同意不显示交易价)</text>
  167. </view>
  168. <view class="row">
  169. <view class="label"><text class="red">*</text>商品成色:</view>
  170. <view class="spacing">
  171. <input type="text"
  172. maxlength="10"
  173. v-model="secondParams.productQuality"
  174. placeholder="请输入商品成色,如“9成新”"
  175. placeholder-class="placeholder">
  176. </view>
  177. </view>
  178. <view class="row none">
  179. <view class="label"><text class="red">*</text>商品包含的文件:</view>
  180. </view>
  181. <view class="row none">
  182. <view class="checkbox-main">
  183. <view
  184. class="checkbox-list"
  185. :class="type.isChecked ? 'checked' : ''"
  186. v-for="(type, index) in productFileTypeActions"
  187. :key="index"
  188. @click="choiceProductFileType(type, index)"
  189. >
  190. <text class="iconfont" :class="type.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
  191. {{ type.name }}
  192. </view>
  193. </view>
  194. </view>
  195. <view class="row none" v-if="secondParams.publishIdentity === 1">
  196. <view class="label-im">身份证照片:</view>
  197. <view class="label-em">个人请上传身份证正反面照片(图片大小不超过5M)</view>
  198. <view class="release-input upload image uploadGoodsImages" >
  199. <view class="upload-file-view">
  200. <view class="upload-file" v-if="secondParams.authenticationImage == ''">
  201. <text class="iconfont icon-shangchuantupian"></text>
  202. <text class="add-text">身份证正面</text>
  203. <view ref="goodsImages" class="input-file" @click="uploadCardImageFn(1)"></view>
  204. </view>
  205. <view class="upload-file" v-else>
  206. <image :src="secondParams.authenticationImage" alt="" class="upload-img" ></image>
  207. <text class=" del iconfont icon-iconfontguanbi" @click="removeCardImageFn(1)"></text>
  208. </view>
  209. </view>
  210. <view class="upload-file-view">
  211. <view class="upload-file" v-if="secondParams.authenticationBackImage == ''">
  212. <text class="iconfont icon-shangchuantupian"></text>
  213. <text class="add-text">身份证反面</text>
  214. <view ref="goodsImages" class="input-file" @click="uploadCardImageFn(2)"></view>
  215. </view>
  216. <view class="upload-file" v-else>
  217. <image :src="secondParams.authenticationBackImage" alt="" class="upload-img" ></image>
  218. <text class=" del iconfont icon-iconfontguanbi" @click="removeCardImageFn(2)"></text>
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. <view class="row none" v-if="secondParams.publishIdentity === 2">
  224. <view class="label-im">营业执照:</view>
  225. <view class="label-em">请上传营业执照照片(图片大小不超过5M)</view>
  226. <view class="release-input upload image uploadGoodsImages" >
  227. <view class="upload-file" v-if="secondParams.licenseImage == ''">
  228. <text class="iconfont icon-shangchuantupian"></text>
  229. <text class="add-text">营业执照</text>
  230. <view ref="goodsImages" class="input-file" @click="uploadUserImageFn"></view>
  231. </view>
  232. <view class="upload-file" v-else>
  233. <image :src="secondParams.licenseImage" alt="" class="upload-img" ></image>
  234. <i class=" del iconfont icon-iconfontguanbi" @click="removeUserImageFn"></i>
  235. </view>
  236. </view>
  237. </view>
  238. <view class="row">
  239. <view class="label">账户类型:</view>
  240. <view class="select spacing">
  241. <picker
  242. @change="bindPickerBankType($event)"
  243. :value="index"
  244. :range="bankActions"
  245. range-key="name"
  246. >
  247. <input
  248. class="input"
  249. type="text"
  250. disabled="true"
  251. v-model="bankTypeText"
  252. placeholder="请选择发布身份"
  253. placeholder-class="placeholder"
  254. />
  255. </picker>
  256. </view>
  257. <text class="iconfont icon-xiayibu"></text>
  258. </view>
  259. <view class="row">
  260. <view class="label">开户名:</view>
  261. <view class="spacing">
  262. <input type="text"
  263. v-model="secondParams.accountName"
  264. maxlength="15"
  265. placeholder="请输入采美对接人姓名"
  266. placeholder-class="placeholder">
  267. </view>
  268. </view>
  269. <view class="row">
  270. <view class="label">开户行:</view>
  271. <view class="spacing">
  272. <input type="text"
  273. v-model="secondParams.banOfDeposit"
  274. maxlength="15"
  275. placeholder="请输入采美对接人姓名"
  276. placeholder-class="placeholder">
  277. </view>
  278. </view>
  279. <view class="row">
  280. <view class="label-im">收款账号:<text class="sms">(用于接收最终结算金额)</text></view>
  281. <view class="spacing file-none">
  282. <input type="text"
  283. v-model="secondParams.cardNumber"
  284. maxlength="20"
  285. placeholder="请输入收款银行卡卡号"
  286. placeholder-class="placeholder">
  287. </view>
  288. </view>
  289. <view class="row">
  290. <view class="label">采美对接人:</view>
  291. <view class="spacing">
  292. <input type="text"
  293. v-model="secondParams.dockingPeopleName"
  294. maxlength="15"
  295. placeholder="请输入采美对接人姓名"
  296. placeholder-class="placeholder">
  297. </view>
  298. </view>
  299. <view class="row">
  300. <view class="label">对接人联系方式:</view>
  301. <view class="spacing">
  302. <input type="text"
  303. v-model="secondParams.dockingPeopleMobile"
  304. maxlength="11" placeholder="请输入采美对接人手机号"
  305. placeholder-class="placeholder">
  306. </view>
  307. </view>
  308. <view class="row">
  309. <view class="label">商品类型:</view>
  310. <view class="select spacing">
  311. <picker
  312. @change="bindPickerChangeProduct($event)"
  313. :value="index"
  314. :range="productActions"
  315. range-key="name"
  316. >
  317. <input
  318. class="input"
  319. type="text"
  320. disabled="true"
  321. v-model="organizationTypeText1"
  322. placeholder="请选择发布身份"
  323. placeholder-class="placeholder"
  324. />
  325. </picker>
  326. </view>
  327. <text class="iconfont icon-xiayibu"></text>
  328. </view>
  329. <view class="row" >
  330. <view class="label"><text class="red">*</text>联系地址:</view>
  331. <view class="spacing" @click="showMulLinkageThreePicker">
  332. <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none,placeholder' : ''" >
  333. {{addressData.address}}
  334. </text>
  335. </view>
  336. <text class="iconfont icon-xiayibu"></text>
  337. </view>
  338. <textarea type="text"
  339. class="border-grey address-details"
  340. v-model="secondParams.address"
  341. maxlength="50"
  342. placeholder="请填写详细地址,如街道/小区/门牌等"
  343. placeholder-class="placeholder"/>
  344. </textarea>
  345. <view class="release-main-container">
  346. <view class="release-from">
  347. <view class="label"><text class="red">*</text>商品图片</view>
  348. <view class="release-input upload image uploadGoodsImages" >
  349. <view class="upload-file" v-if="GoodsImagesList.length<5">
  350. <text class="iconfont icon-shangchuantupian"></text>
  351. <p class="add-text">商品图片</p>
  352. <view ref="goodsImages" class="input-file" @click="uploadGoodsImagesFn"></view>
  353. </view>
  354. <view class="upload-file" v-for="(item, index) in GoodsImagesList" :key="index">
  355. <image :data-original='item' :src="item" :data-image="item" alt="" class="upload-img" ></image>
  356. <text class=" del iconfont icon-iconfontguanbi" @click="removeGoodsImagesFn(index)"></text>
  357. </view>
  358. </view>
  359. <view class="form-upload-tips">
  360. <text class="iconfont icon-wenhao" ></text>
  361. <view class="wen-tips" >最多上传5张二手商品图片,请尽量全部上传,单张图片不能超过5M</view>
  362. </view>
  363. </view>
  364. <view class="row">
  365. <view class="label-im">二手出让承诺函签署文件:</view>
  366. <view class="label-em">(仅支持pdf文件,大小不能超过20)</view>
  367. <view class="spacing file-none" v-if="secondParams.fileName == ''">
  368. <view class="file-none-button" @click="uploadCommitmentFile">上传</view>
  369. </view>
  370. <view class="spacing file-text" v-else>
  371. <text class="file-text-em">{{ secondParams.fileName }}</text>
  372. <text class=" del iconfont icon-iconfontguanbi" @click="deleteCommitmentFile"></text>
  373. </view>
  374. </view>
  375. <view class="row none">
  376. <view class="label-im">二手出让承诺函签署图片</view>
  377. <view class="label-em">(若不方便上传承诺函签署文件,可对已签署的承诺函进行拍照或者截图再上传图片)</view>
  378. <view class="label-em">图片大小不超过5M</view>
  379. <view class="release-input upload image uploadGoodsImages" >
  380. <view class="upload-file" v-if="secondParams.commitmentImage == ''">
  381. <i class="iconfont icon-shangchuantupian"></i>
  382. <text class="add-text">承诺函图片</text>
  383. <view ref="goodsImages" class="input-file" @click="uploadCommitmentImageFn"></view>
  384. </view>
  385. <view class="upload-file" v-else>
  386. <image :src="secondParams.commitmentImage" alt="" class="upload-img" ></image>
  387. <i class=" del iconfont icon-iconfontguanbi" @click="removeCommitmentImageFn"></i>
  388. </view>
  389. </view>
  390. </view>
  391. <view class="productinfo">
  392. <view class="label unlogin-label" style="width: 100%;">商品详细信息</view>
  393. <view class="textarea-wrapper">
  394. <textarea class="textarea"
  395. type="text"
  396. v-model="secondParams.productDetails"
  397. placeholder="请填写商品详细信息,对商品进行更详细的描述"
  398. placeholder-class="placeholder"
  399. maxlength="200"
  400. @input="onTextareaInputInfo"
  401. />
  402. <span class="word-limit">{{secondParams.productDetails.length}}/200</span>
  403. </view>
  404. </view>
  405. </view>
  406. </view>
  407. <view class="secondBj thebj" v-show="modal1" :class="modal1 ? 'show':''">
  408. <view class="bjmain theresult">
  409. <text class="title">发布提示</text>
  410. <text class="content"> {{ tipsContentText }} </text>
  411. <view class="paybtn">
  412. <view class="btn cancel" @click.stop="cancelButtonFn">{{ cancelButtonText }}</view>
  413. <view class="btn confirm" @click.stop="confirmButtonFn">{{ confirmButtonText }}</view>
  414. </view>
  415. </view>
  416. </view>
  417. <!-- 地址弹窗 -->
  418. <mpvue-city-picker :themeColor="themeColor"
  419. ref="mpvueCityPicker"
  420. :pickerValueDefault="cityPickerValueDefault"
  421. @onCancel="onCancel"
  422. @onConfirm="onConfirm">
  423. </mpvue-city-picker>
  424. <!-- 发布按钮 -->
  425. <tui-bottom-popup :radius="false" :mask="false" :show="popupShow">
  426. <view class="tui-popup-box clearfix">
  427. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  428. <view class="tui-flex-1">
  429. <view class="tui-button-text" @click="handleChangAgree">
  430. <text class="iconfont"
  431. :class="checkbox ? 'icon-yixuanze':'icon-weixuanze'" >
  432. </text>
  433. 已阅读并同意采美
  434. <text style="color:#1890f9;" @click.stop="this.$api.navigateTo('/pages/service/service?id=1039&title=二手出让协议')">《二手出让协议》</text>
  435. </view>
  436. </view>
  437. <view class="tui-flex-1">
  438. <view class="tui-button" @click="handleSubmitBtn">发布</view>
  439. </view>
  440. </view>
  441. </view>
  442. </tui-bottom-popup>
  443. <!-- 弹窗提示 -->
  444. <tui-modal :show="modal" :padding="'40rpx 30rpx'" @cancel="hideMobel" :custom="true" fadeIn >
  445. <view class="tui-modal-custom">
  446. <view class="tui-prompt-text">
  447. {{ contentModalText }}
  448. </view>
  449. <view class="tui-prompt-flex">
  450. <view class="btn btn-confirm" @click="handleClick">确定</view>
  451. </view>
  452. </view>
  453. </tui-modal>
  454. </view>
  455. </template>
  456. <script>
  457. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  458. import { uploadFileImage , uploadFilePdf } from '@/services/public.js'
  459. import authorize from '@/common/config/authorize.js'
  460. import $reg from '@/common/config/common.js'
  461. import { mapState,mapMutations } from 'vuex'
  462. export default{
  463. name:'secondHandrelease',
  464. components:{
  465. mpvueCityPicker,
  466. },
  467. data(){
  468. return{
  469. isIphoneX: this.$store.state.isIphoneX,
  470. popupShow:true,
  471. userIdentity:0,
  472. bankTypeText:'请选择账户类型',
  473. publisherText:'个人身份',
  474. organizationTypeText:'请选择二手分类',
  475. organizationTypeText1:'请选择商品类型',
  476. brandActions:[],
  477. publisherActions:[
  478. {name:'个人身份',value:1},
  479. {name:'公司身份',value:2},
  480. ],
  481. categoryActions:[
  482. {name:'二手仪器',value:1},
  483. {name:'其他',value:3},
  484. ],
  485. productActions:[
  486. {name:'医美',value:1},
  487. {name:'非医美',value:3},
  488. ],
  489. productFileTypeActions:[
  490. { name:'仪器原始合同',value:1,isChecked:false},
  491. { name:'仪器注册证',value:2,isChecked:false},
  492. { name:'仪器发票',value:3,isChecked:false},
  493. { name:'仪器报关单',value:4,isChecked:false},
  494. { name:'无任何文件',value:5,isChecked:false}
  495. ],
  496. bankActions:[
  497. {name:'公账',value:1},
  498. {name:'私账',value:2},
  499. ],
  500. GoodsImagesList:[],
  501. secondParams:{
  502. publishIdentity:1, // 发布者身份 1 个人身份 2 公司身份
  503. secondHandType:'',//一级分类
  504. instrumentType:1,//二手仪器分类
  505. name:'',
  506. brandId:'',//品牌ID
  507. brandName:'',//其他品牌
  508. fixedYears:'',//出厂
  509. companyName:'',//公司名称
  510. maturityYears:'',//产品到期
  511. price:'',//交易价
  512. detailTalkFlag:1,//是否启用详聊
  513. normalPrice:'',//市场价
  514. originalPrice:'',//采购价
  515. stock:'',//数量
  516. productQuality:'',//商品成色
  517. fileType:'', // 商品文件类型
  518. contactName:'',//联系人
  519. contactMobile:'',//联系方式
  520. checkCode:'',// 联系人手机验证码
  521. cardNumber:'',// 收款账号
  522. authenticationImage:'', //身份证正面
  523. authenticationBackImage:'', //身份证反面
  524. licenseImage:'',//营业执照图片
  525. commitmentImage:'',//承诺函图片
  526. dockingPeopleName:'',//采美对接人姓名
  527. dockingPeopleMobile:'',//采美对接人手机号
  528. secondProductType:'',//
  529. townId:'',//县区地址
  530. address:'',//详细地址
  531. image:'',//图片
  532. fileName:'',
  533. ossName:'',
  534. productDetails:'',//商品详细信息
  535. announType:1,//发布类型 1.二手预成交商品 2.二手估价商品
  536. source:4,//二手发布来源.1:WWW,2:小程序,3:后台,4:协销
  537. accountName:'',//开户名
  538. banOfDeposit:'',//开户行
  539. accountType:'', // 账户类型
  540. },
  541. checkedFileTypeList:[],
  542. addressData:{
  543. address:'请选择所在地区',
  544. townID:'', //区ID
  545. cityID:'', //区ID
  546. provinceID:'', //区ID
  547. addressDetail: '', //地址
  548. },
  549. brandName:'请选择品牌名称',
  550. checkbox:false,
  551. tipsContentText:'',
  552. cancelButtonText:'取消发布',
  553. confirmButtonText:'去支付',
  554. contentModalText:'发布成功!商品信息会在1-2个工作日内进行审核,审核通过后将立即上线到采美二手市场',
  555. isButtonsType:0,
  556. vShow_detailTalkFlag:false,
  557. modal:false,
  558. modal1:false,
  559. isMobileDisabled: true, //手机验证码按钮控制
  560. mobilCount: '', //倒计时
  561. mobileCodeText: '获取验证码',
  562. mobilTime: null,
  563. }
  564. },
  565. methods:{
  566. onTextareaInputInfo(e){
  567. this.secondParams.productDetails = e.detail.value
  568. },
  569. showMulLinkageThreePicker() {//三级地址联动
  570. this.isShowInput = true
  571. this.$refs.mpvueCityPicker.show()
  572. },
  573. onConfirm(e) {//获取选择的地址信息
  574. this.addressData.address = e.name
  575. this.addressData.townID = e.townCode
  576. this.addressData.cityID = e.cityCode
  577. this.addressData.provinceID = e.provinceCode
  578. this.secondParams.townId = this.addressData.townID
  579. },
  580. bindPickerChangePublisher(e) {// 选择发布者身份
  581. this.publisherText = this.publisherActions[e.target.value].name
  582. this.secondParams.publishIdentity = this.publisherActions[e.target.value].value
  583. },
  584. bindPickerBankType(e) {// 选择账户类型
  585. this.bankTypeText = this.bankActions[e.target.value].name
  586. this.secondParams.accountType = this.bankActions[e.target.value].name
  587. },
  588. bindPickerChange(e) {// 选择二手分类
  589. this.secondParams.secondHandType = this.categoryActions[e.target.value].value
  590. if(this.secondParams.secondHandType === 1){
  591. this.organizationTypeText = '二手仪器-美容仪器'
  592. }else{
  593. this.organizationTypeText = this.categoryActions[e.target.value].name
  594. }
  595. },
  596. bindPickerChangeBrand(e) {
  597. // 选择品牌
  598. this.brandName = this.brandActions[e.target.value].name
  599. this.secondParams.brandId = this.brandActions[e.target.value].value
  600. },
  601. bindPickerChangeProduct(e) {
  602. // 选择商品类型
  603. this.organizationTypeText1 = this.productActions[e.target.value].name
  604. this.secondParams.secondProductType = this.productActions[e.target.value].value
  605. },
  606. choiceProductFileType(type,index){
  607. // 选择类别
  608. type.isChecked = !type.isChecked
  609. if (type.isChecked) {
  610. if(!this.contains(this.checkedFileTypeList,type.value)){
  611. this.checkedFileTypeList.push(type.value)
  612. }
  613. } else {
  614. this.checkedFileTypeList.splice(this.checkedFileTypeList.indexOf(type.value),1)
  615. }
  616. this.secondParams.fileType = this.checkedFileTypeList.join(',')
  617. },
  618. contains(arr, val) {// 校验
  619. return arr.some(item => item === val)
  620. },
  621. Detailed(){
  622. this.vShow_detailTalkFlag = !this.vShow_detailTalkFlag
  623. if(this.vShow_detailTalkFlag){
  624. this.secondParams.detailTalkFlag = 2 //启用价格详聊
  625. }else {
  626. this.secondParams.detailTalkFlag = 1 //不启用价格详聊
  627. }
  628. },
  629. uploadGoodsImagesFn(event){//上传商品图片
  630. uploadFileImage().then(res =>{
  631. this.GoodsImagesList.push(JSON.parse(res.data).data)
  632. this.secondParams.image =this.GoodsImagesList.toString()+','
  633. })
  634. },
  635. uploadCardImageFn(type){//上传身份正反面照
  636. uploadFileImage().then(res =>{
  637. if(type == 1){
  638. this.secondParams.authenticationImage = JSON.parse(res.data).data
  639. }else{
  640. this.secondParams.authenticationBackImage = JSON.parse(res.data).data
  641. }
  642. })
  643. },
  644. uploadUserImageFn(event){//上传营业执照图片
  645. console.log('event')
  646. uploadFileImage().then(res =>{
  647. this.secondParams.licenseImage = JSON.parse(res.data).data
  648. })
  649. },
  650. uploadCommitmentImageFn(event){//上传承诺函图片
  651. uploadFileImage().then(res =>{
  652. this.secondParams.commitmentImage = JSON.parse(res.data).data
  653. })
  654. },
  655. uploadCommitmentFile(){//上传承诺函文件
  656. uploadFilePdf().then(res =>{
  657. let data = JSON.parse(res.data).data
  658. this.secondParams.fileName = uni.getStorageSync('fileName')
  659. this.secondParams.ossName = data.ossName
  660. console.log('fileName',this.secondParams.fileName)
  661. console.log('ossName',this.secondParams.ossName)
  662. })
  663. },
  664. deleteCommitmentFile(){//删除承诺函文件
  665. this.secondParams.fileName = ''
  666. },
  667. removeGoodsImagesFn(index){//删除商品图片
  668. this.GoodsImagesList.splice(index,1)
  669. this.secondParams.image =this.GoodsImagesList.toString()+','
  670. },
  671. removeCardImageFn(type){//删除身份证图片
  672. if(type == 1){
  673. this.secondParams.authenticationImage = ''
  674. }else{
  675. this.secondParams.authenticationBackImage = ''
  676. }
  677. },
  678. removeUserImageFn(index){//删除公司营业执照图片
  679. this.secondParams.licenseImage = ''
  680. },
  681. removeCommitmentImageFn(index){//删除承诺函图片
  682. this.secondParams.commitmentImage = ''
  683. },
  684. contactMobileOnblur(e){// 识别手机号是否正确
  685. if(this.$reg.isMobile(e.detail.value)){
  686. this.isMobileDisabled = false
  687. }
  688. },
  689. getMobileCodeFn(){
  690. let params = {
  691. mobile:this.secondParams.contactMobile,
  692. isCheckCaptcha:1,
  693. activateCodeType:6,
  694. platformType:2
  695. }
  696. this.isMobileDisabled = true
  697. this.PublicService.GetRegisterMobileCode(params).then(response =>{
  698. this.$util.msg('验证短信已发送',2000)
  699. const TIME_COUNT = 60
  700. if (!this.mobilTime) {
  701. this.mobilCount = TIME_COUNT
  702. this.isMobileDisabled = true
  703. this.mobilTime = setInterval(() => {
  704. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  705. this.mobilCount--
  706. this.mobileCodeText = this.mobilCount +'s重新发送'
  707. } else {
  708. this.isMobileDisabled = false
  709. clearInterval(this.mobilTime)
  710. this.mobilTime = null
  711. this.mobileCodeText = '获取验证码'
  712. }
  713. },1000)
  714. }
  715. }).catch( error =>{
  716. this.$util.msg(error.msg,2000)
  717. this.isMobileDisabled = false
  718. })
  719. },
  720. handleSubmitBtn () {
  721. if(this.secondParams.contactName == ''){
  722. this.$util.msg('请输入联系人姓名',2000)
  723. return
  724. }
  725. if(this.secondParams.contactMobile == ''){
  726. console.log(this.secondParams.contactMobile)
  727. this.$util.msg('请输入联系方式',2000)
  728. return
  729. }
  730. if(!$reg.isMobile(this.secondParams.contactMobile)){
  731. this.$util.msg('请填写正确的手机号',2000)
  732. return
  733. }
  734. if(this.secondParams.checkCode == ''){
  735. this.$util.msg('请输入短信验证码',2000)
  736. return
  737. }
  738. if(this.secondParams.secondHandType == ''){
  739. this.$util.msg('请选择分类',2000)
  740. return
  741. }
  742. if(this.secondParams.secondHandType == 1 ){
  743. if(this.secondParams.instrumentType ==''){
  744. this.$util.msg('请完善仪器分类',2000)
  745. return
  746. }
  747. }
  748. if(this.secondParams.brandId == ''){
  749. this.$util.msg('请选择商品品牌',2000)
  750. return
  751. }
  752. if(this.secondParams.name == ''){
  753. this.$util.msg('请输入商品名称',2000)
  754. return
  755. }
  756. if(this.secondParams.publishIdentity === 2) {
  757. if (this.secondParams.companyName=='') {
  758. this.$util.msg('请输入公司名称',2000)
  759. return
  760. }
  761. }
  762. if(!this.$api.isNumber(this.secondParams.price)){
  763. this.$util.msg('请输入交易价',2000)
  764. return
  765. }
  766. if(this.secondParams.productQuality == ''){
  767. this.$util.msg('请输入商品成色',2000)
  768. return
  769. }
  770. if(this.secondParams.fileType == ''){
  771. this.$util.msg('请选择商品包含的文件',2000)
  772. return
  773. }
  774. if(this.secondParams.cardNumber == ''){
  775. this.$util.msg('请输入收款银行卡卡号',2000)
  776. return
  777. }
  778. if(this.userIdentity === 1){
  779. if(this.secondParams.dockingPeopleName == ''){
  780. this.$util.msg('请输入采美对接人姓名',2000)
  781. return
  782. }
  783. if(this.secondParams.dockingPeopleMobile == ''){
  784. this.$util.msg('请输入采美对接人手机号',2000)
  785. return
  786. }
  787. }
  788. if(this.secondParams.dockingPeopleMobile !=''){
  789. if(!$reg.isMobile(this.secondParams.dockingPeopleMobile)){
  790. this.$util.msg('请填写正确的采美对接人手机号',2000)
  791. return
  792. }
  793. }
  794. if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
  795. this.$util.msg('请完善联系地址',2000)
  796. return
  797. }
  798. if(this.secondParams.address == ''){
  799. this.$util.msg('请填写详细地址',2000)
  800. return
  801. }
  802. if(this.GoodsImagesList ==''){
  803. this.$util.msg('请上传商品图片',2000)
  804. return
  805. }
  806. if(this.checkbox==false){
  807. this.$util.msg('请勾选已阅读',2000)
  808. return
  809. }
  810. if(this.secondParams.publishIdentity === 1){
  811. if(this.secondParams.authenticationImage == '' && this.secondParams.authenticationBackImage == ''){
  812. this.modal1 = true
  813. this.tipsContentText = '上传身份证照片,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
  814. this.cancelButtonText = '继续发布'
  815. this.confirmButtonText = '去上传'
  816. this.isButtonsType = 1
  817. return
  818. }
  819. }else{
  820. if(this.secondParams.licenseImage == ''){
  821. this.modal1 = true
  822. this.tipsContentText = '上传营业执照照片,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
  823. this.cancelButtonText = '继续发布'
  824. this.confirmButtonText = '去上传'
  825. this.isButtonsType = 1
  826. return
  827. }
  828. }
  829. if(this.secondParams.commitmentImage == '' || this.secondParams.ossName == ''){
  830. this.modal1 = true
  831. this.tipsContentText = '上传二手出让承诺函,您的二手商品将获得更好的推荐和曝光,方便您快速卖出。'
  832. this.cancelButtonText = '继续发布'
  833. this.confirmButtonText = '去上传'
  834. this.isButtonsType = 1
  835. return
  836. }
  837. console.log(this.secondParams)
  838. this.SecondHandProduct(this.secondParams)
  839. },
  840. SecondHandProduct(params){//提交发布
  841. this.SecondService.SecondHandProduct(params).then(res=>{
  842. this.modal = true
  843. })
  844. .catch(error =>{
  845. this.$util.msg(error.msg,2000)
  846. })
  847. },
  848. cancelButtonFn(){//弹窗操作按钮
  849. switch(this.isButtonsType){
  850. case 1:
  851. this.modal1 = false
  852. this.SecondHandProduct(this.secondParams)
  853. break
  854. case 2:
  855. this.modal1 = false
  856. break
  857. }
  858. },
  859. confirmButtonFn(){//弹窗操作按钮
  860. switch(this.isButtonsType){
  861. case 1:
  862. this.modal1 = false
  863. break
  864. case 2:
  865. this.modal1 = false
  866. break
  867. }
  868. },
  869. handleChangAgree() {
  870. this.checkbox = !this.checkbox
  871. },
  872. getBrandList() {
  873. // 获取收款类型列表
  874. this.SecondService.brandList()
  875. .then(response => {
  876. this.brandActions = response.data.map(item => ({
  877. ...item,
  878. name: item.name,
  879. value: item.id
  880. }))
  881. })
  882. .catch(err => {
  883. this.$util.msg(err.msg, 2000)
  884. })
  885. },
  886. hideMobel(){
  887. this.modal = false
  888. },
  889. handleClick(){
  890. this.modal = false
  891. this.$api.redirectTo ('/pages/second/product/product-list')
  892. }
  893. },
  894. onShow() {
  895. this.getBrandList()
  896. this.$api.getComStorage('userInfo').then((resolve) =>{
  897. this.userIdentity = resolve.userIdentity
  898. console.log(this.userIdentity)
  899. }).catch(error =>{
  900. console.log(error)
  901. })
  902. }
  903. }
  904. </script>
  905. <style lang="scss">
  906. view{font-size: 28rpx;}
  907. .my-maintenance{
  908. padding: 20rpx;
  909. }
  910. .bannerimg {
  911. height: 100rpx;
  912. width: 100%;
  913. }
  914. .bannerimg image{
  915. width: 100%;
  916. height: 100% ;
  917. }
  918. .newsTitle {
  919. line-height: 48rpx;
  920. text-align: left;
  921. color: #e15616;
  922. padding:20rpx;
  923. background-color: rgba(225, 86, 22, .1);
  924. border-radius: 10rpx;
  925. }
  926. .nestext{
  927. font-size: 24rpx;
  928. line-height: 40rpx;
  929. }
  930. .secondradio view{
  931. display: inline-block;
  932. color: #333333;
  933. margin-right: 21rpx;
  934. }
  935. .secondradio{
  936. display: inline-block;
  937. margin-left: 40rpx;
  938. }
  939. .Secondary{
  940. margin-left: 96rpx;
  941. }
  942. .secondradio view.active {
  943. color: #e15616;
  944. }
  945. .placeholder{
  946. color: #b2b2b2;
  947. }
  948. .linqi_text {
  949. width: 607rpx;
  950. height: 68rpx;
  951. background-color: #1890f9;
  952. box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);
  953. text-align: center;
  954. line-height: 68rpx;
  955. color: #ffffff;
  956. margin: auto;
  957. font-size:24rpx;
  958. position: relative;
  959. }
  960. .jiaobiao {
  961. width: 0;
  962. height: 0;
  963. border-left: 20rpx solid transparent;
  964. border-right: 20rpx solid transparent;
  965. top: -25%;
  966. right: 40%;
  967. border-bottom: 20rpx solid #1890f9;
  968. position: absolute;
  969. }
  970. .label{
  971. color: #666666;
  972. display: inline-block;
  973. .red{
  974. color: #f94b4b;
  975. }
  976. }
  977. .label-im{
  978. width: 100%;
  979. line-height: 50rpx;
  980. font-size: $font-size-28;
  981. color: #666666;
  982. text-align: left;
  983. margin-top: 20rpx;
  984. .red{
  985. color: #f94b4b;
  986. }
  987. .sms{
  988. font-size: $font-size-24;
  989. color: #fea785;
  990. }
  991. }
  992. .label-em{
  993. line-height: 28rpx;
  994. font-size: $font-size-20;
  995. color: #fea785;
  996. width: 100%;
  997. text-align: left;
  998. }
  999. .label.second{
  1000. width: 155rpx;
  1001. }
  1002. .row .spacing.second{
  1003. width: 70%;
  1004. }
  1005. .row{
  1006. width: 100%;
  1007. border-bottom: 2rpx solid #e1e1e1;
  1008. line-height: 90rpx;
  1009. float: left;
  1010. height: auto;
  1011. position: relative;
  1012. .checkbox-main{
  1013. width: 100%;
  1014. .checkbox-list {
  1015. height: 60rpx;
  1016. font-size: $font-size-28;
  1017. line-height: 60rpx;
  1018. border-radius: 10rpx;
  1019. margin-right: 20rpx;
  1020. margin-bottom: 10rpx;
  1021. box-sizing: border-box;
  1022. float: left;
  1023. color: #333333;
  1024. .icon-yixuanze{
  1025. margin-right: 10rpx;
  1026. color: #E15616;
  1027. }
  1028. .icon-weixuanze{
  1029. margin-right: 10rpx;
  1030. color: #B2B2B2;
  1031. }
  1032. }
  1033. }
  1034. .row-btn{
  1035. width: 180rpx;
  1036. height:64rpx;
  1037. background: $btn-confirm;
  1038. padding: 0;
  1039. border-radius: 32rpx;
  1040. position: absolute;
  1041. right: 0;
  1042. top: 10rpx;
  1043. .row-input{
  1044. width: 180rpx;
  1045. height: 64rpx;
  1046. line-height: 64rpx;
  1047. padding: 0;
  1048. color: #FFFFFF;
  1049. background: $btn-confirm;
  1050. text-align: center;
  1051. border-radius: 32rpx;
  1052. &.other{
  1053. width: 180rpx;
  1054. background: #F7F7F7;
  1055. margin-right: 20rpx;
  1056. }
  1057. &.none{
  1058. background: #F7F7F7;
  1059. }
  1060. }
  1061. &.disabled{
  1062. background: #F7F7F7;
  1063. .row-input{
  1064. background: #F7F7F7;
  1065. color: #999999;
  1066. font-size: 24rpx;
  1067. }
  1068. }
  1069. }
  1070. &.none{
  1071. border-bottom: none;
  1072. }
  1073. }
  1074. .row.fenlei{
  1075. height: auto;
  1076. margin: 10rpx 0;
  1077. border: 0;
  1078. }
  1079. .select {
  1080. position: relative;
  1081. color: #b2b2b2;
  1082. text-align: left;
  1083. user-select: none;
  1084. }
  1085. .row .spacing{
  1086. display: inline-block;
  1087. margin-left: 50rpx;
  1088. width: 430rpx;
  1089. vertical-align:middle;
  1090. position: relative;
  1091. color: #333333;
  1092. .input{
  1093. color: #333333;
  1094. }
  1095. &.file{
  1096. width: 100%;
  1097. }
  1098. &.file-text{
  1099. width: 100%;
  1100. line-height: 44rpx;
  1101. font-size: 28rpx;
  1102. box-sizing: border-box;
  1103. margin-left: 0;
  1104. .file-text-em{
  1105. width: 100%;
  1106. text-overflow: ellipsis;
  1107. overflow: hidden;
  1108. display: -webkit-box;
  1109. -webkit-line-clamp: 1;
  1110. line-clamp: 1;
  1111. -webkit-box-orient: vertical;
  1112. line-height: 44rpx;
  1113. font-size: 28rpx;
  1114. padding-right: 40rpx;
  1115. box-sizing: border-box;
  1116. position: relative;
  1117. }
  1118. .icon-iconfontguanbi{
  1119. width: 40rpx;
  1120. height: 40rpx;
  1121. line-height: 40rpx;
  1122. display: block;
  1123. position: absolute;
  1124. top: 0;
  1125. right:0;
  1126. color: #f94b4b;
  1127. font-size: 36rpx;
  1128. }
  1129. }
  1130. &.file-none{
  1131. width: 100%;
  1132. margin-left: 0;
  1133. position: relative;
  1134. .file-none-button{
  1135. width: 88rpx;
  1136. height: 44rpx;
  1137. background-color: #e15616;
  1138. border-radius: 8rpx;
  1139. line-height: 44rpx;
  1140. text-align: center;
  1141. font-size: 24rpx;
  1142. color: #FFFFFF;
  1143. position: absolute;
  1144. right: 0;
  1145. top: -15rpx;
  1146. }
  1147. }
  1148. }
  1149. .select .placeholder {
  1150. position: relative;
  1151. cursor: pointer;
  1152. width: 100%;
  1153. display: inline-block;
  1154. }
  1155. .icon-xiayibu{
  1156. right: 0rpx;
  1157. color: #b2b2b2;
  1158. position: absolute;
  1159. }
  1160. .xiangliao{
  1161. font-size: 26rpx;
  1162. margin-right: 10rpx;
  1163. color: #b2b2b2;
  1164. }
  1165. .icon-jiagexiangliao{
  1166. color: #e15616 !important;
  1167. }
  1168. .pricecolor{
  1169. margin-left: 10rpx;
  1170. }
  1171. .showflag{
  1172. color: #b2b2b2;
  1173. }
  1174. .border-grey{
  1175. width: 100%;
  1176. resize: none;
  1177. padding: 20rpx 0;
  1178. height: 160rpx;
  1179. border-bottom: 2rpx solid #e1e1e1;
  1180. }
  1181. .release-main-container {
  1182. overflow: hidden;
  1183. margin: 20rpx 0;
  1184. }
  1185. .uploadGoodsImages{
  1186. display: flex;
  1187. overflow-x: auto;
  1188. overflow-y: hidden;
  1189. }
  1190. .secondradio{
  1191. .row-radio{
  1192. transform: scale(.8);
  1193. }
  1194. .row-input{margin-right: 10rpx;}
  1195. }
  1196. .linqi_text .p{
  1197. font-size: $font-size-20;
  1198. }
  1199. .upload-file {
  1200. float: left;
  1201. margin: 20rpx 20rpx 20rpx 0px;
  1202. cursor: pointer;
  1203. width: 194rpx;
  1204. height: 194rpx;
  1205. border-radius: 6rpx;
  1206. border: solid 2rpx #e1e1e1;
  1207. flex-shrink: 0;
  1208. position: relative;
  1209. display: inline-block;
  1210. .input-file {
  1211. width: 194rpx;
  1212. height: 194rpx;
  1213. opacity: 0;
  1214. cursor: pointer;
  1215. position: absolute;
  1216. top: 0;
  1217. left: 0;
  1218. }
  1219. .upload-img {
  1220. width: 100%;
  1221. height: 100%;
  1222. display: block;
  1223. border-radius: .53vw;
  1224. }
  1225. .icon-shangchuantupian{
  1226. display: block;
  1227. width: 100%;
  1228. height: 100rpx;
  1229. line-height: 90rpx;
  1230. color: #b2b2b2;
  1231. font-size: $font-size-40;
  1232. text-align: center;
  1233. padding-top: 20rpx;
  1234. box-sizing: border-box;
  1235. }
  1236. .add-text {
  1237. display: block;
  1238. width: 100%;
  1239. line-height: 50rpx;
  1240. font-size: 24rpx;
  1241. color: #b2b2b2;
  1242. text-align: center;
  1243. }
  1244. .icon-iconfontguanbi{
  1245. width: 40rpx;
  1246. height: 40rpx;
  1247. line-height: 40rpx;
  1248. display: block;
  1249. position: absolute;
  1250. background: #f94b4b;
  1251. text-align: center;
  1252. line-height: 40rpx;
  1253. border-radius: 50%;
  1254. top: -15rpx;
  1255. right:-18rpx;
  1256. color: #FFFFFF;
  1257. font-size: $font-size-24;
  1258. }
  1259. }
  1260. .wen-tips {
  1261. width: 664rpx;
  1262. height: 68rpx;
  1263. line-height: 68rpx;
  1264. text-align: center;
  1265. color: #FFF;
  1266. font-size: 20rpx;
  1267. background-color: #1890f9;
  1268. box-shadow: 0 0.8vw 1.6vw 0 rgba(24, 144, 249, 0.17);
  1269. border-radius: 2rpx;
  1270. display: none;
  1271. }
  1272. .form-upload-tips:hover .wen-tips {
  1273. display: block;
  1274. }
  1275. .textarea-wrapper {
  1276. letter-spacing: 2rpx;
  1277. line-height: 48rpx;
  1278. color: #333333;
  1279. position: relative;
  1280. font-size: 28rpx;
  1281. border: 2rpx solid #E1E1E1;
  1282. height: 300rpx;
  1283. padding: 16rpx;
  1284. border-radius: 6rpx;
  1285. margin: 20rpx 0;
  1286. }
  1287. .textarea-wrapper textarea{
  1288. width: 100%;
  1289. }
  1290. .word-limit {
  1291. position: absolute;
  1292. right: 2.7vw;
  1293. bottom: 2.7vw;
  1294. font-size: 3.2vw;
  1295. color: #9aa5b5;
  1296. }
  1297. .row.Read{
  1298. border: 0;
  1299. text-align: center;
  1300. color: #999999;
  1301. }
  1302. .thebj {
  1303. position: fixed;
  1304. left: 0;
  1305. top: 0;
  1306. bottom: 0;
  1307. width: 100%;
  1308. height: 100%;
  1309. background-color: rgba(0, 0, 0, .5);
  1310. z-index: 999999;
  1311. opacity: 0;
  1312. }
  1313. .thebj.show{
  1314. opacity: 1;
  1315. }
  1316. .theresult {
  1317. position: absolute;
  1318. top: 50%;
  1319. left: 50%;
  1320. transform: translate(-50%, -50%);
  1321. width:580rpx;
  1322. background-color: #fff;
  1323. border-radius: 32rpx;
  1324. }
  1325. .theresult .title{
  1326. line-height: 100rpx;
  1327. text-align: center;
  1328. display: block;
  1329. color: #333333;
  1330. font-size: 30rpx;
  1331. font-weight: bold;
  1332. border-bottom: 2rpx solid #efefef;
  1333. }
  1334. .theresult .content{
  1335. padding: 30rpx 52rpx;
  1336. line-height: 48rpx;
  1337. color: #666666;
  1338. font-size: 30rpx;
  1339. display: block;
  1340. }
  1341. .paybtn{
  1342. width: 100%;
  1343. height: 90rpx;
  1344. float: left;
  1345. .btn{
  1346. width: 50%;
  1347. height: 90rpx;
  1348. text-align: center;
  1349. line-height: 90rpx;
  1350. font-size: 30rpx;
  1351. display: inline-block;
  1352. float: left;
  1353. &.cancel{
  1354. background-color: #efefef;
  1355. border-radius: 0rpx 0rpx 0rpx 32rpx;
  1356. color: #999999;
  1357. }
  1358. &.confirm{
  1359. background-image: linear-gradient(270deg, #f28f31 0%, #e15616 100%);
  1360. border-radius: 0rpx 0rpx 32rpx 0rpx;
  1361. color: #fff;
  1362. }
  1363. }
  1364. }
  1365. .icon-wenhao{
  1366. color: #1890f9;
  1367. font-size: 35rpx;
  1368. width: 50rpx;
  1369. }
  1370. .form-upload-tips:hover .wen-tips {display: block;}
  1371. .tui-popup-box {
  1372. position: relative;
  1373. box-sizing: border-box;
  1374. min-height: 100rpx;
  1375. padding: 6rpx 24rpx;
  1376. .tui-popup-content {
  1377. padding-top: 30rpx;
  1378. }
  1379. }
  1380. .tui-popup-btn {
  1381. width: 100%;
  1382. height: auto;
  1383. float: left;
  1384. box-sizing: border-box;
  1385. margin-top: 30rpx;
  1386. .tui-button {
  1387. width: 600rpx;
  1388. height: 88rpx;
  1389. background: $btn-confirm;
  1390. line-height: 88rpx;
  1391. text-align: center;
  1392. color: #ffffff;
  1393. font-size: $font-size-28;
  1394. border-radius: 44rpx;
  1395. margin: 0 auto;
  1396. }
  1397. .tui-button-text{
  1398. width: 600rpx;
  1399. height: 70rpx;
  1400. line-height: 70rpx;
  1401. text-align: center;
  1402. color: #333333;
  1403. font-size: $font-size-26;
  1404. margin: 0 auto;
  1405. margin-top: 15rpx;
  1406. .iconfont{
  1407. margin-right: 10rpx;
  1408. &.icon-yixuanze{
  1409. color: $color-system;
  1410. }
  1411. }
  1412. }
  1413. }
  1414. .tui-prompt-flex{
  1415. width: 100%;
  1416. height: 80rpx;
  1417. display: flex;
  1418. margin-top: 20rpx;
  1419. .btn{
  1420. flex: 1;
  1421. line-height: 80rpx;
  1422. font-size: $font-size-26;
  1423. text-align: center;
  1424. color: #FFFFFF;
  1425. border-radius: 40rpx;
  1426. margin: 0 24rpx;
  1427. &.btn-cancel{
  1428. background: #F7F7F7;
  1429. color: #999999;
  1430. }
  1431. &.btn-confirm{
  1432. background: $btn-confirm;
  1433. }
  1434. }
  1435. }
  1436. .tui-prompt-text{
  1437. line-height: 44rpx;
  1438. font-size: $font-size-26;
  1439. color: #333333;
  1440. .text{
  1441. color: $color-system;
  1442. }
  1443. }
  1444. </style>