form.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. <template name="secondHandrelease">
  2. <view class="fleaMarketForm">
  3. <view class="bannerimg"><image src="https://static.caimei365.com/app/img/bg/secondbg.jpg"></image></view>
  4. <view class="my-maintenance" >
  5. <view class="newsTitle">
  6. <view class="nestext">欢迎您来到采美365网二手商品市场,您可以在这里发布二手设备/产品信息,每个商品需要收取您100元的展示费,展示期为6个月; 为了完整展示您的商品,请您认真填写以下内容,谢谢合作</view>
  7. </view>
  8. <form>
  9. <view class="row fenlei">
  10. <view class="label">分类</view>
  11. <view class="secondradio">
  12. <radio-group class="row-group" @change="secondHandRidio" >
  13. <label class="row-input" v-for="(item, index) in fenlei" :key="index">
  14. <radio class="row-radio" :value="item.value" color="#E15616"/>
  15. <view class="row-text">{{item.name}}</view>
  16. </label>
  17. </radio-group>
  18. </view>
  19. <view class="secondradio Secondary" v-if="isShow" >
  20. <checkbox-group class="row-group" @change="secondHandType">
  21. <label class="row-input" v-for="(item, index) in radioList" :key="item.value" >
  22. <checkbox class="row-check" :value="item.value" ></checkbox>
  23. <view class="row-text">{{item.name}}</view>
  24. </label>
  25. </checkbox-group>
  26. </view>
  27. <view class="linqi_text" v-show="secondParams.secondHandType==2">
  28. <view class="jiaobiao"></view>
  29. <p class="p">临期产品是指临近保质期的产品,距离到期日最好在6个月以上</p>
  30. </view>
  31. </view>
  32. <view class="row">
  33. <view class="label">商品品牌</view>
  34. <view class="select spacing" @click="hanldOperationConfim">
  35. <view class="placeholder" :style="brandname=='请选择品牌名称'?'':'color:#333333'">{{brandname}}</view>
  36. </view>
  37. <text class="iconfont icon-xiayibu"></text>
  38. <!-- 品牌弹窗 -->
  39. <tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
  40. <view class="tui-popup-box clearfix">
  41. <text class="iconfont icon-iconfontguanbi" @click="hidePopup()"></text>
  42. <view class="content">
  43. <view class="freight-radio">
  44. <scroll-view scroll-y style="max-height: 605rpx;">
  45. <radio-group class="row-group" @change="radioChange" >
  46. <label class="row-input" v-for="(item, index) in BrandList" :key="item.id">
  47. <view class="row-text">{{item.name}}</view>
  48. <radio class="row-radio" :value="item.id" color="#E15616"/>
  49. </label>
  50. </radio-group>
  51. </scroll-view>
  52. </view>
  53. </view>
  54. </view>
  55. </tui-bottom-popup>
  56. </view>
  57. <view class="row" v-if="secondParams.brandID==161">
  58. <view class="label">其它品牌</view>
  59. <view class="spacing">
  60. <input type="text" maxlength="40" v-model="secondParams.brandName" placeholder="请输入商品品牌" placeholder-class="placeholder">
  61. </view>
  62. </view>
  63. <view class="row">
  64. <view class="label">商品名称</view>
  65. <view class="spacing">
  66. <input type="text" maxlength="40" v-model="secondParams.name" placeholder="请输入商品名称,不超过40个汉字" placeholder-class="placeholder">
  67. </view>
  68. </view>
  69. <view class="row">
  70. <view class="label">出厂日期</view>
  71. <view class="spacing">
  72. <input type="text" v-model="secondParams.fixedYears" maxlength="10" placeholder="请输入出厂日期 如:2020年06月" placeholder-class="placeholder">
  73. </view>
  74. </view>
  75. <!-- <view class="row" v-show="secondParams.secondHandType==2">
  76. <view class="label second">产品到期日</view>
  77. <view class="spacing second">
  78. <input type="text" v-model="secondParams.maturityYears" maxlength="10" placeholder="请输入产品到期日,如:2020年12月" placeholder-class="placeholder">
  79. </view>
  80. </view> -->
  81. <view class="row">
  82. <view class="label">公司名称</view>
  83. <view class="spacing">
  84. <input type="text" v-model="secondParams.companyName" maxlength="30" placeholder="请输入公司名称,不超过30个汉字" placeholder-class="placeholder">
  85. </view>
  86. </view>
  87. <view class="row">
  88. <view class="label">交易价</view>
  89. <view class="spacing">
  90. <input type="text" maxlength="20" v-model="secondParams.price1" placeholder="请输入交易价" placeholder-class="placeholder">
  91. </view>
  92. </view>
  93. <view style="margin-top: 15rpx;">
  94. <label v-model="secondParams.detailTalkFlags" class="iconfont xiangliao"
  95. :class="vShow_detailTalkFlag ? 'icon-jiagexiangliao':'icon-juxingweigouxuan'" @click="Detailed($event)">
  96. <label class='pricecolor' >价格详聊</label>
  97. </label>
  98. <label class="showflag" v-show="vShow_detailTalkFlag">(勾选代表同意不显示交易价)</label>
  99. </view>
  100. <!-- <view class="row" v-show="secondParams.secondHandType==2">
  101. <view class="label">市场价</view>
  102. <view class="spacing">
  103. <input type="text" v-model="secondParams.normalPrice" maxlength="30" placeholder="请输入市场价" placeholder-class="placeholder">
  104. </view>
  105. </view> -->
  106. <!-- <view class="row" v-show="secondParams.secondHandType==2">
  107. <view class="label second">采购价/原价</view>
  108. <view class="spacing second">
  109. <input type="text" v-model="secondParams.originalPrice" maxlength="30" placeholder="请输入采购价/原价" placeholder-class="placeholder"/>
  110. </view>
  111. </view>
  112. <view class="row" v-show="secondParams.secondHandType==2">
  113. <view class="label">数量</view>
  114. <view class="spacing">
  115. <input type="text" v-model="secondParams.stock" maxlength="30" placeholder="请输入数量" placeholder-class="placeholder">
  116. </view>
  117. </view> -->
  118. <view class="row">
  119. <view class="label">商品成色</view>
  120. <view class="spacing">
  121. <input type="text" maxlength="10" v-model="secondParams.productQuality" placeholder="请输入商品成色,如“9成新”" placeholder-class="placeholder">
  122. </view>
  123. </view>
  124. <view class="row">
  125. <view class="label">联系人</view>
  126. <view class="spacing">
  127. <input type="text" maxlength="15" v-model="secondParams.contactName" placeholder="请输入联系人姓名" placeholder-class="placeholder">
  128. </view>
  129. </view>
  130. <view class="row">
  131. <view class="label">联系方式</view>
  132. <view class="spacing">
  133. <input type="text" v-model="secondParams.contactMobile" maxlength="11" placeholder="请输入联系人手机号" placeholder-class="placeholder">
  134. </view>
  135. </view>
  136. <view class="row">
  137. <view class="label">采美对接人</view>
  138. <view class="spacing">
  139. <input type="text" v-model="secondParams.dockingPeopleName" maxlength="15" placeholder="请输入采美对接人姓名" placeholder-class="placeholder">
  140. </view>
  141. </view>
  142. <view class="row">
  143. <view class="label">对接人联系方式</view>
  144. <view class="spacing">
  145. <input type="text" v-model="secondParams.dockingPeopleMobile" maxlength="11" placeholder="请输入采美对接人手机号" placeholder-class="placeholder">
  146. </view>
  147. </view>
  148. <view class="row">
  149. <view class="label">商品类型</view>
  150. <view class="secondradio">
  151. <radio-group class="row-group" @change="getProductType" >
  152. <label class="row-input" v-for="(item, index) in beauty" :key="index">
  153. <radio class="row-radio" :value="item.value" color="#E15616"/>
  154. <view class="row-text">{{item.name}}</view>
  155. </label>
  156. </radio-group>
  157. </view>
  158. </view>
  159. <view class="row" >
  160. <view class="label">联系地址</view>
  161. <view class="spacing" @click="showMulLinkageThreePicker">
  162. <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none,placeholder' : ''" >
  163. {{addressData.address}}
  164. </text>
  165. </view>
  166. <text class="iconfont icon-xiayibu"></text>
  167. </view>
  168. <textarea type="text" class="border-grey address-details" v-model="secondParams.address" maxlength="50"
  169. placeholder="请填写详细地址,如街道/小区/门牌等" placeholder-class="placeholder"/></textarea>
  170. <view class="release-main-container">
  171. <view class="release-from">
  172. <view class="label">商品图片</view>
  173. <view class="release-input upload image uploadGoodsImages" >
  174. <view class="upload-file" v-if="GoodsImagesList.length<5">
  175. <i class="iconfont icon-shangchuantupian"></i>
  176. <p class="add-text">商品图片</p>
  177. <view ref="goodsImages" class="input-file" @click="uploadGoodsImagesFn"></view>
  178. </view>
  179. <view class="upload-file" v-for="(item, index) in GoodsImagesList" :key="index">
  180. <image :data-original='item' :src="item" :data-image="item" alt="" class="upload-img" ></image>
  181. <i class=" del iconfont icon-shanchu1" @click="removeGoodsImagesFn(index)"></i>
  182. </view>
  183. </view>
  184. <view class="form-upload-tips">
  185. <i class="iconfont icon-wenhao" ></i>
  186. <view class="wen-tips" >最多上传5张二手商品图片,请尽量全部上传,单张图片不能超过5M</view>
  187. </view>
  188. </view>
  189. </view>
  190. <view class="productinfo">
  191. <view class="label unlogin-label" style="width: 100%;">商品详细信息</view>
  192. <div class="textarea-wrapper">
  193. <textarea class="textarea"
  194. type="text"
  195. v-model="secondParams.productDetails"
  196. placeholder="请填写商品详细信息,对商品进行更详细的描述"
  197. placeholder-class="placeholder"
  198. maxlength="200"
  199. @input="onTextareaInputInfo"
  200. />
  201. <span class="word-limit">{{secondParams.productDetails.length}}/200</span>
  202. </div>
  203. </view>
  204. <view class="productinfo">
  205. <view class="label unlogin-label" style="width: 100%;">免责声明</view>
  206. <text class="smText" >鉴于本网站提供的二手版块信息包括但不限于公司名称,商品的简介、性能、描述与说明,相关图片、视频等均由卖家自行提供,由卖家对其提供的信息承担相应法律责任。买家应自行甄别商品信息并查验商品性状。本网站对二手版块中买卖双方的交易不提供任何形式的担保与保证,特此声明!</text>
  207. </view>
  208. <view class="row Read">
  209. <span @click="changeBox($event)" class="iconfont xiangliao"
  210. :class="checkbox?'icon-jiagexiangliao':'icon-juxingweigouxuan'" ><span style="margin-left: 10rpx;">已阅读</span></span>
  211. </view>
  212. <div class="BtnAll" :style="{ paddingBottom :isIphoneX ? '68rpx' : '0rpx' }">
  213. <view @click="submitBtn" class="btn-submit">发布</view>
  214. </div>
  215. </form>
  216. <!-- 地址弹窗 -->
  217. <mpvue-city-picker :themeColor="themeColor"
  218. ref="mpvueCityPicker"
  219. :pickerValueDefault="cityPickerValueDefault"
  220. @onCancel="onCancel"
  221. @onConfirm="onConfirm">
  222. </mpvue-city-picker>
  223. </view>
  224. <view class="secondBj thebj" v-show="vShow_secondBj" :class="vShow_secondBj?'show':''">
  225. <view class="bjmain theresult">
  226. <span class="title">发布提示</span>
  227. <p>发布二手商品,采美需要收取您每个商品100元的展示费,展示期为6个月</br>
  228. 支付完成后,商品会在1-2个工作日内进行审核,审核通过后,商品会立即上线</p>
  229. <view class="paybtn">
  230. <view class="thegopay gozhofubao" @click.stop="quxiao">取消发布</view>
  231. <view class="cancel closebtn" @click.stop="gopay">去支付</view>
  232. </view>
  233. </view>
  234. </view>
  235. <payment-record ref="payment" v-if="isRequest" :discernReceiptList="discernReceiptList" :receiptAmount="receiptAmount"></payment-record>
  236. </view>
  237. </template>
  238. <script>
  239. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  240. import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord'
  241. import { uploadFileImage } from "@/api/utils.js"
  242. import authorize from '@/common/config/authorize.js'
  243. import $reg from '@/common/config/common.js'
  244. import { mapState,mapMutations } from 'vuex';
  245. export default{
  246. name:'secondHandrelease',
  247. components:{
  248. mpvueCityPicker,
  249. paymentRecord,
  250. },
  251. data(){
  252. return{
  253. userIdentity:0,
  254. popupShow:false,
  255. fenlei:[
  256. {name:'二手仪器',value:'1'},
  257. // {name:'临期产品',value:'2'},
  258. {name:'其他',value:'3'},
  259. ],
  260. radioList:[
  261. {name:'轻光电',value:'1',isChecked:false},
  262. {name:'重光电',value:'2',isChecked:false},
  263. {name:'耗材配件',value:'3',isChecked:false},
  264. ],
  265. beauty:[
  266. {name:'医美',value:'1'},
  267. {name:'非医美',value:'2'},
  268. ],
  269. BrandList:[],
  270. isShow:false,
  271. GoodsImagesList:[],
  272. vShow_GoodsImages:false,
  273. secondParams:{
  274. secondHandType:'',//一级分类
  275. instrumentType:'',//二手仪器分类
  276. name:'',
  277. brandID:'',//品牌ID
  278. brandName:'',//其他品牌
  279. fixedYears:null,//出厂
  280. companyName:'',//公司名称
  281. maturityYears:'',//产品到期
  282. price1:'',//交易价
  283. detailTalkFlag:1,//是否启用详聊
  284. normalPrice:'',//市场价
  285. originalPrice:'',//采购价
  286. stock:'',//数量
  287. productQuality:'',//商品成色
  288. contactName:'',//联系人
  289. contactMobile:'',//联系方式
  290. dockingPeopleName:'',//采美对接人姓名
  291. dockingPeopleMobile:'',//采美对接人手机号
  292. secondProductType:'',//
  293. townId:'',//县区地址
  294. address:'',//详细地址
  295. image1:'',//图片
  296. productDetails:'',//商品详细信息
  297. source:2
  298. },
  299. addressData:{
  300. address:'请选择所在地区',
  301. townID:'', //区ID
  302. cityID:'', //区ID
  303. provinceID:'', //区ID
  304. addressDetail: '', //地址
  305. },
  306. brandname:'请选择品牌名称',
  307. checkbox:false,
  308. shoplogoTwo:false,
  309. vShow_secondBj:false,
  310. resultBj:false,
  311. vShow_detailTalkFlag:false,
  312. playid:'',
  313. }
  314. },
  315. methods:{
  316. onTextareaInputInfo(e){
  317. this.secondParams.productDetails = e.detail.value;
  318. },
  319. radioChange(e){//品牌
  320. this.secondParams.brandID = e.target.value;
  321. this.BrandList.forEach((item,index)=>{
  322. if(item.id==this.secondParams.brandID){
  323. this.brandname = item.name;
  324. this.popupShow = false;
  325. }
  326. })
  327. },
  328. showMulLinkageThreePicker() {//三级地址联动
  329. this.isShowInput = true
  330. this.$refs.mpvueCityPicker.show()
  331. },
  332. onConfirm(e) {//获取选择的地址信息
  333. this.addressData.address = e.name;
  334. this.addressData.townID = e.townCode;
  335. this.addressData.cityID = e.cityCode;
  336. this.addressData.provinceID = e.provinceCode;
  337. this.secondParams.townId = this.addressData.townID;
  338. },
  339. hanldOperationConfim(){
  340. this.popupShow = true;
  341. },
  342. hidePopup(){
  343. this.popupShow = false;
  344. },
  345. secondHandRidio(e) {
  346. this.secondParams.secondHandType = e.target.value;
  347. if (e.target.value == 1){
  348. this.isShow = true;
  349. }else {
  350. this.isShow = false;
  351. }
  352. },
  353. secondHandType(e){ //二手仪器
  354. this.secondParams.instrumentType = e.target.value.toString();
  355. },
  356. Detailed(){
  357. this.vShow_detailTalkFlag = !this.vShow_detailTalkFlag;
  358. if(this.vShow_detailTalkFlag){
  359. this.secondParams.detailTalkFlag = 2 ;//启用价格详聊
  360. }else {
  361. this.secondParams.detailTalkFlag = 1 ;//不启用价格详聊
  362. }
  363. },
  364. uploadGoodsImagesFn(event){//上传商品图片
  365. uploadFileImage().then(res =>{
  366. this.GoodsImagesList.push(JSON.parse(res.data).data);
  367. this.secondParams.image1 =this.GoodsImagesList.toString()+',';
  368. })
  369. },
  370. removeGoodsImagesFn(index){//删除商品图片
  371. this.GoodsImagesList.splice(index,1);
  372. this.secondParams.image1 =this.GoodsImagesList.toString()+',';
  373. },
  374. getProductType(e){
  375. this.secondParams.secondProductType = e.target.value ;
  376. },
  377. submitBtn () {
  378. if(this.secondParams.secondHandType == ''){
  379. this.$util.msg('请选择分类',2000);
  380. return;
  381. }
  382. if(this.secondParams.secondHandType == 1 ){
  383. if(this.secondParams.instrumentType ==''){
  384. this.$util.msg('请完善仪器分类',2000);
  385. return;
  386. }
  387. }
  388. if(this.secondParams.brandID == ''){
  389. this.$util.msg('请选择商品品牌',2000);
  390. return;
  391. }
  392. if(this.secondParams.name == ''){
  393. this.$util.msg('请输入商品名称',2000);
  394. return
  395. }
  396. // if(this.secondParams.secondHandType ==2) {
  397. // if (this.secondParams.maturityYears=='') {
  398. // this.$util.msg('请输入产品到期日',2000);
  399. // return
  400. // }
  401. // }
  402. if(!this.$api.isNumber(this.secondParams.price1)){
  403. this.$util.msg('请输入交易价',2000);
  404. return
  405. }
  406. // if(this.secondParams.secondHandType ==2) {
  407. // if (!this.$api.isNumber(this.secondParams.normalPrice)) {
  408. // this.$util.msg('请输入市场价',2000);
  409. // return
  410. // }
  411. // if(!this.$api.isNumber(this.secondParams.originalPrice)){
  412. // this.$util.msg('请输入采购价/原价',2000);
  413. // return
  414. // }
  415. // if(!this.$api.isNumber(this.secondParams.stock)){
  416. // this.$util.msg('请输入数量',2000);
  417. // return
  418. // }
  419. // }
  420. if(this.secondParams.productQuality == ''){
  421. this.$util.msg('请输入商品成色',2000);
  422. return
  423. }
  424. if(this.secondParams.contactName == ''){
  425. this.$util.msg('请输入联系人姓名',2000);
  426. return
  427. }
  428. if(this.secondParams.contactMobile == ''){
  429. console.log(this.secondParams.contactMobile)
  430. this.$util.msg('请输入联系方式',2000);
  431. return
  432. }
  433. if(!$reg.isMobile(this.secondParams.contactMobile)){
  434. this.$util.msg('请填写正确的手机号',2000);
  435. return
  436. }
  437. if(this.userIdentity === 1){
  438. if(this.secondParams.dockingPeopleName == ''){
  439. this.$util.msg('请输入采美对接人姓名',2000);
  440. return
  441. }
  442. if(this.secondParams.dockingPeopleMobile == ''){
  443. this.$util.msg('请输入采美对接人手机号',2000);
  444. return
  445. }
  446. }
  447. if(this.secondParams.dockingPeopleMobile !=''){
  448. if(!$reg.isMobile(this.secondParams.dockingPeopleMobile)){
  449. this.$util.msg('请填写正确的采美对接人手机号',2000);
  450. return
  451. }
  452. }
  453. if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
  454. this.$util.msg('请完善联系地址',2000);
  455. return
  456. }
  457. if(this.secondParams.address == ''){
  458. this.$util.msg('请填写详细地址',2000);
  459. return
  460. }
  461. if(this.GoodsImagesList ==''){
  462. this.$util.msg('请上传图片',2000);
  463. return;
  464. }
  465. if(this.checkbox==false){
  466. this.$util.msg('请勾选已阅读',2000);
  467. return
  468. }
  469. console.log(this.secondParams)
  470. this.SecondService.SecondHandProduct(this.secondParams).then(res=>{ //提交发布
  471. this.vShow_secondBj = true;
  472. this.playid= res.data;
  473. }).catch(error =>{
  474. this.$util.msg(error.msg,2000)
  475. this.secondBj = false;
  476. return
  477. })
  478. },
  479. quxiao:function(){
  480. this.vShow_secondBj = false;
  481. },
  482. gopay(){
  483. this.MiniWxPayFor()
  484. this.vShow_secondBj = false;
  485. },
  486. MiniWxPayFor(){
  487. authorize.getCode('weixin').then(wechatcode =>{
  488. let params ={
  489. code:wechatcode,
  490. productId:this.playid
  491. }
  492. this.PayService.SecondHandPay(params).then(response =>{
  493. let PayInfo = JSON.parse(response.data.data.payInfo);
  494. this.WxRequestPayment(PayInfo)
  495. }).catch(error =>{
  496. this.$util.msg(error.msg,2000)
  497. })
  498. })
  499. },
  500. WxRequestPayment(data){
  501. let self = this
  502. wx.requestPayment({
  503. 'timeStamp': data.timeStamp,
  504. 'nonceStr': data.nonceStr,
  505. 'package': data.package,
  506. 'signType': data.signType,
  507. 'paySign': data.paySign,
  508. 'success':function(res){
  509. wx.reLaunch({url: 'second/pages/product/product-list'});
  510. },
  511. 'fail':function(res){
  512. self.$util.msg('用户取消支付~')
  513. },
  514. 'complete':function(res){
  515. }
  516. })
  517. },
  518. changeBox:function () {
  519. this.checkbox = !this.checkbox;
  520. },
  521. },
  522. onShow() {
  523. this.SecondService.brandList().then(res =>{//品牌列表
  524. if(res.code == 0){
  525. this.BrandList = res.data;
  526. }
  527. })
  528. this.$api.getComStorage('userInfo').then((resolve) =>{
  529. this.userIdentity = resolve.userIdentity
  530. console.log(this.userIdentity)
  531. }).catch(error =>{
  532. console.log(error)
  533. })
  534. }
  535. }
  536. </script>
  537. <style lang="scss">
  538. view{font-size: 28rpx;}
  539. .my-maintenance{
  540. padding: 20rpx;
  541. }
  542. .bannerimg {
  543. height: 66rpx;
  544. width: 100%;
  545. }
  546. .bannerimg image{
  547. width: 100%;
  548. height: 100% ;
  549. }
  550. .newsTitle {
  551. line-height: 48rpx;
  552. text-align: left;
  553. color: #e15616;
  554. padding:20rpx;
  555. background-color: rgba(225, 86, 22, .1);
  556. }
  557. .nestext{
  558. font-size: 24rpx;
  559. }
  560. .secondradio view{
  561. display: inline-block;
  562. color: #333333;
  563. margin-right: 21rpx;
  564. }
  565. .secondradio{
  566. display: inline-block;
  567. margin-left: 40rpx;
  568. }
  569. .Secondary{
  570. margin-left: 96rpx;
  571. }
  572. .secondradio view.active {
  573. color: #e15616;
  574. }
  575. .placeholder{
  576. color: #b2b2b2;
  577. }
  578. .linqi_text {
  579. width: 607rpx;
  580. height: 68rpx;
  581. background-color: #1890f9;
  582. box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(24, 144, 249, 0.17);
  583. text-align: center;
  584. line-height: 68rpx;
  585. color: #ffffff;
  586. margin: auto;
  587. font-size:24rpx;
  588. position: relative;
  589. }
  590. .jiaobiao {
  591. width: 0;
  592. height: 0;
  593. border-left: 20rpx solid transparent;
  594. border-right: 20rpx solid transparent;
  595. top: -25%;
  596. right: 40%;
  597. border-bottom: 20rpx solid #1890f9;
  598. position: absolute;
  599. }
  600. .label{
  601. color: #666666;
  602. display: inline-block;
  603. }
  604. .label.second{
  605. width: 155rpx;
  606. }
  607. .row .spacing.second{
  608. width: 70%;
  609. }
  610. .row{
  611. border-bottom: 2rpx solid #e1e1e1;
  612. line-height: 90rpx;
  613. height: 90rpx;
  614. position: relative;
  615. }
  616. .row.fenlei{
  617. height: auto;
  618. margin: 10rpx 0;
  619. border: 0;
  620. }
  621. .select {
  622. position: relative;
  623. color: #b2b2b2;
  624. text-align: left;
  625. user-select: none;
  626. }
  627. .row .spacing{
  628. display: inline-block;
  629. margin-left: 50rpx;
  630. width: 430rpx;
  631. vertical-align:middle;
  632. position: relative;
  633. }
  634. .select .placeholder {
  635. position: relative;
  636. cursor: pointer;
  637. width: 100%;
  638. display: inline-block;
  639. }
  640. .icon-xiayibu{
  641. right: 0rpx;
  642. color: #b2b2b2;
  643. position: absolute;
  644. }
  645. .xiangliao{
  646. font-size: 26rpx;
  647. margin-right: 10rpx;
  648. color: #b2b2b2;
  649. }
  650. .icon-jiagexiangliao{
  651. color: #e15616 !important;
  652. }
  653. .pricecolor{
  654. margin-left: 10rpx;
  655. }
  656. .showflag{
  657. color: #b2b2b2;
  658. }
  659. .border-grey{
  660. width: 100%;
  661. resize: none;
  662. padding: 20rpx 0;
  663. height: 160rpx;
  664. border-bottom: 2rpx solid #e1e1e1;
  665. }
  666. .release-main-container {
  667. overflow: hidden;
  668. margin: 20rpx 0;
  669. }
  670. .uploadGoodsImages{
  671. display: flex;
  672. overflow-x: auto;
  673. overflow-y: hidden;
  674. }
  675. .secondradio{
  676. .row-radio{
  677. transform: scale(.8);
  678. }
  679. .row-input{margin-right: 10rpx;}
  680. }
  681. .linqi_text .p{
  682. font-size: $font-size-20;
  683. }
  684. .upload-file {
  685. float: left;
  686. margin: 20rpx 20rpx 20rpx 0px;
  687. cursor: pointer;
  688. width: 194rpx;
  689. height: 194rpx;
  690. border-radius: 6rpx;
  691. border: solid 2rpx #e1e1e1;
  692. flex-shrink: 0;
  693. position: relative;
  694. display: inline-block;
  695. }
  696. .input-file {
  697. width: 194rpx;
  698. height: 194rpx;
  699. opacity: 0;
  700. cursor: pointer;
  701. position: absolute;
  702. }
  703. .add-text {
  704. font-size: 26rpx;
  705. color: #333330;
  706. opacity: 0.5;
  707. position: absolute;
  708. top: 55%;
  709. right:24%;
  710. }
  711. .upload-img {
  712. width: 100%;
  713. height: 100%;
  714. display: block;
  715. border-radius: .53vw;
  716. }
  717. .icon-shangchuantupian{
  718. width: 46rpx;
  719. height: 46rpx;
  720. color: #b2b2b2;
  721. font-size: 18px;
  722. position: absolute;
  723. top: 30%;
  724. left: 40%;
  725. }
  726. .icon-shanchu1{
  727. position: absolute;
  728. top: -25rpx;
  729. right:-10rpx;
  730. color: #f94b4b;
  731. font-size: 36rpx;
  732. }
  733. .wen-tips {
  734. width: 664rpx;
  735. height: 68rpx;
  736. line-height: 68rpx;
  737. text-align: center;
  738. color: #FFF;
  739. font-size: 20rpx;
  740. background-color: #1890f9;
  741. box-shadow: 0 0.8vw 1.6vw 0 rgba(24, 144, 249, 0.17);
  742. border-radius: 2rpx;
  743. display: none;
  744. }
  745. .form-upload-tips:hover .wen-tips {
  746. display: block;
  747. }
  748. .textarea-wrapper {
  749. letter-spacing: 2rpx;
  750. line-height: 48rpx;
  751. color: #333333;
  752. position: relative;
  753. font-size: 28rpx;
  754. border: 2rpx solid #b2b2b2;
  755. height: 300rpx;
  756. padding: 16rpx;
  757. border-radius: 6rpx;
  758. margin: 20rpx 0;
  759. }
  760. .textarea-wrapper textarea{
  761. width: 100%;
  762. }
  763. .word-limit {
  764. position: absolute;
  765. right: 2.7vw;
  766. bottom: 2.7vw;
  767. font-size: 3.2vw;
  768. color: #9aa5b5;
  769. }
  770. .smText{
  771. color: #999999;
  772. text-align: left;
  773. line-height: 42rpx;
  774. font-size: 24rpx;
  775. margin-top: 10rpx;
  776. width: 100%;
  777. height: 260rpx;
  778. }
  779. .BtnAll{
  780. width: 100%;
  781. margin-bottom: 20rpx;
  782. .btn-submit{
  783. width: 600rpx;
  784. height: 90rpx;
  785. margin: auto;
  786. text-align: center;
  787. line-height: 90rpx;
  788. color: #fff;
  789. background-image: linear-gradient(315deg,
  790. #f28f31 0%,
  791. #e15616 100%);
  792. border-radius: 90rpx;
  793. font-size: 30rpx;
  794. }
  795. }
  796. .row.Read{
  797. border: 0;
  798. text-align: center;
  799. color: #999999;
  800. }
  801. .thebj {
  802. position: fixed;
  803. left: 0;
  804. top: 0;
  805. bottom: 0;
  806. width: 100%;
  807. height: 100%;
  808. background-color: rgba(0, 0, 0, .5);
  809. z-index: 999999;
  810. opacity: 0;
  811. }
  812. .thebj.show{
  813. opacity: 1;
  814. }
  815. .theresult {
  816. position: absolute;
  817. top: 50%;
  818. left: 50%;
  819. transform: translate(-50%, -50%);
  820. width:580rpx;
  821. background-color: #fff;
  822. border-radius: 32rpx;
  823. }
  824. .theresult .title{
  825. line-height: 100rpx;
  826. text-align: center;
  827. display: block;
  828. color: #333333;
  829. font-size: 30rpx;
  830. font-weight: bold;
  831. border-bottom: 2rpx solid #efefef;
  832. }
  833. .theresult p{
  834. padding: 30rpx 52rpx;
  835. line-height: 48rpx;
  836. color: #666666;
  837. font-size: 30rpx;
  838. }
  839. .paybtn view{
  840. width: 290rpx;
  841. height: 90rpx;
  842. text-align: center;
  843. line-height: 90rpx;
  844. font-size: 30rpx;
  845. display: inline-block;
  846. }
  847. .paybtn .cancel{
  848. background-image: linear-gradient(270deg, #f28f31 0%, #e15616 100%);
  849. border-radius: 0rpx 0rpx 32rpx 0rpx;
  850. color: #fff;
  851. }
  852. .paybtn .thegopay{
  853. background-color: #efefef;
  854. border-radius: 0rpx 0rpx 0rpx 32rpx;
  855. color: #999999;
  856. }
  857. .icon-wenhao{
  858. color: #1890f9;
  859. font-size: 35rpx;
  860. width: 50rpx;
  861. }
  862. .form-upload-tips:hover .wen-tips {display: block;}
  863. .tui-popup-box {
  864. z-index: 22;
  865. width: 702rpx;
  866. padding: 24rpx 24rpx 36rpx 24rpx;
  867. height: 670rpx;
  868. position: relative;
  869. .icon-iconfontguanbi{
  870. font-size: 40rpx;
  871. color: #b2b2b2;
  872. width: 60rpx;
  873. float: right;
  874. display: block;
  875. }
  876. .content{
  877. .freight-radio{
  878. height: 66rpx;
  879. line-height: 66rpx;
  880. padding: 0 35rpx;
  881. .row-group{
  882. width: 100%;
  883. // max-height: 605rpx;
  884. // overflow: auto;
  885. }
  886. .row-input{
  887. height: 66rpx;
  888. line-height: 66rpx;
  889. width: 100%;
  890. display: block;
  891. }
  892. .row-radio{
  893. float: right;
  894. transform: scale(0.9);
  895. color: #b2b2b2;
  896. }
  897. .row-text{
  898. font-size: $font-size-28;
  899. color: #666666;
  900. float: left;
  901. }
  902. }
  903. }
  904. }
  905. checkbox .wx-checkbox-input{
  906. border-radius: 50%;
  907. }
  908. .row-check{
  909. transform: scale(0.8);
  910. }
  911. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  912. background: #E15616;
  913. border: 2rpx solid #e15616;
  914. }
  915. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  916. border-radius: 50%;
  917. border: 2rpx solid #e15616;
  918. width: 34rpx;
  919. height: 34rpx;
  920. line-height: 34rpx;
  921. text-align: center;
  922. font-size:34rpx;
  923. color:#fff;
  924. background: transparent;
  925. transform:translate(-50%, -50%) scale(.8);
  926. -webkit-transform:translate(-50%, -50%) scale(.8);
  927. }
  928. </style>