product.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <template>
  2. <page-meta :page-style="'overflow:'+(show?'hidden':'visible')" ></page-meta>
  3. <view>
  4. <view class="product_image_box">
  5. <image class="product_image" :src="productInfo.thumb" mode="heightFix"></image>
  6. </view>
  7. <view class="product_info">
  8. <view class="stock_price">
  9. <view class="product_price">
  10. <text>{{productInfo.score}} 积分</text>
  11. </view>
  12. <view class="product_stock">剩{{productInfo.stock}}个</view>
  13. </view>
  14. <view class="product_name">{{productInfo.name}}</view>
  15. <view class="product_spec">{{productInfo.spec}}</view>
  16. </view>
  17. <view class="product_description">
  18. <rich-text :nodes="productInfo.description"></rich-text>
  19. </view>
  20. <view class="order_car">
  21. <button class="show_order" data-eventsync="true" @click="showSpecPopup(1)" >立即兑换</button>
  22. </view>
  23. <view class="to_bottom"> --- 到底了 --- </view>
  24. <uni-popup ref="specPopup" :show="true" type="bottom" class="popup" background-color="#FFFFFF" @change="popupChange">
  25. <view class="order_info">
  26. <view class="custom_addr" @click="showAddrPopup()">
  27. <view class="contact_user">
  28. <text class="contact_none" v-if="!checkedAddr.id">请选择收货地址</text>
  29. <text class="contact_name" >{{checkedAddr.contact_name}}</text>
  30. <text class="contact_phone" >{{checkedAddr.contact_phone}}</text>
  31. <text class="contact_more"> &gt;</text>
  32. </view>
  33. <view class="contact_addr">
  34. {{checkedAddr.contact_province}} {{checkedAddr.contact_city}} {{checkedAddr.contact_area}} {{checkedAddr.contact_addr}}
  35. </view>
  36. </view>
  37. <view class="car_item" >
  38. <view class="box_left">
  39. <image class="car_image" :src="productInfo.thumb" mode=""></image>
  40. </view>
  41. <view class="box_right">
  42. <view class="car_name">{{productInfo.name}}</view>
  43. <view class="stock_price">
  44. <view class="product_price">
  45. <text>{{productInfo.score}} 积分</text>
  46. </view>
  47. <view class="product_quantity_box">
  48. <button class="product_quantity_sub" @click="changeQuantity(-1)" data-eventsync="true">
  49. <image class="sub_icon" src="../../static/icon/sub_icon.png" mode=""></image>
  50. </button>
  51. <input type="number" class="product_quantity" placeholder="数量" v-model="quantity" @blur="changeQuantity(0)" ></input>
  52. <button class="product_quantity_add" @click="changeQuantity(+1)" data-eventsync="true">
  53. <image class="add_icon" src="../../static/icon/add_icon.png" mode=""></image>
  54. </button>
  55. </view>
  56. </view>
  57. <view class="product_stock">剩{{productInfo.stock}}个</view>
  58. </view>
  59. </view>
  60. <!-- 购物车增加两个撑高度 -->
  61. <view class="to_select_coupon" ></view>
  62. <view class="to_select_coupon" ></view>
  63. <view class="order_price" >合计: {{priceTotal}} 积分</view>
  64. <view class="order_btn">
  65. <button class="to_order" @click="createOrder()" data-eventsync="true" >兑换</button>
  66. </view>
  67. </view>
  68. </uni-popup>
  69. <uni-popup ref="addrPopup" type="bottom" class="popup" background-color="#FFFFFF" >
  70. <view class="popup_title">收货地址 <navigator url="/pages/addr/index?notify=addr" class="to_addr_page">管理</navigator> </view>
  71. <view class="addr_list">
  72. <view class="addr_item" v-for="(item,index) in addrList" :key="index" @click="checkedAddrItem(item)">
  73. <view class="radio_label">
  74. <image class="radio_icon" :src="item.id == checkedAddr.id? '../../static/icon/radioed.png' : '../../static/icon/radio.png'" ></image>
  75. </view>
  76. <view class="contact_user">
  77. <text class="contact_name">{{item.contact_name}}</text>
  78. <text class="contact_phone">{{item.contact_phone}}</text>
  79. <text class="contact_default" v-if="item.is_default">默认</text>
  80. </view>
  81. <view class="contact_addr">
  82. {{item.contact_province}} {{item.contact_city}} {{item.contact_area}} {{item.contact_addr}}
  83. </view>
  84. </view>
  85. </view>
  86. <view class="create_box">
  87. <navigator url="/pages/addr/index?notify=addr&type=create" class="create_addr" >新建收货地址</navigator>
  88. </view>
  89. </uni-popup>
  90. </view>
  91. </template>
  92. <script>
  93. export default {
  94. data() {
  95. return {
  96. show:false, // 使用Popup组件时,阻止禁止滚动穿透
  97. productInfo:{
  98. id:0,
  99. name:"",
  100. score:0,
  101. spec:"",
  102. stock:0,
  103. thumb:"",
  104. description:"",
  105. },
  106. requestParam:{
  107. id:0,
  108. },
  109. // 数量
  110. quantity:1,
  111. // 总价
  112. priceTotal:'0.00',
  113. // 规格选择按钮类型
  114. specBtnType: 1, // 1预约。2购物车
  115. // 地址列表
  116. addrList:[],
  117. // 已选地址
  118. checkedAddr:{
  119. id:0,
  120. contact_name:"",
  121. contact_phone:"",
  122. contact_province:"",
  123. contact_city:"",
  124. contact_area:"",
  125. contact_addr:"",
  126. is_default:0,
  127. },
  128. }
  129. },
  130. onLoad(param) {
  131. // 接受路由参数,产品ID
  132. this.requestParam.id = param.id;
  133. var that = this;
  134. // 监听地址变动
  135. uni.$on('addr_list_change',function(data){
  136. // 地址列表
  137. that.addrList = data.list;
  138. })
  139. // #ifdef MP-WEIXIN
  140. //分享按钮
  141. uni.showShareMenu({
  142. withShareTicket: true,
  143. menus: ['shareAppMessage', 'shareTimeline']
  144. })
  145. // #endif
  146. },
  147. onShow() {
  148. // 如果存在产品ID的话
  149. if( this.requestParam.id > 0) {
  150. // 请求详情
  151. this.$http.request('api/score_product/get_detail',this.requestParam).then((re)=>{
  152. // 成功渲染数据
  153. if( re.code == 'success' ) {
  154. // 刷新数据
  155. this.productInfo = re.data;
  156. }
  157. });
  158. };
  159. },
  160. methods: {
  161. // 地址弹出层
  162. showAddrPopup(){
  163. // 显示下单弹出层
  164. this.$refs.addrPopup.open('bottom');
  165. },
  166. // 规格弹出层
  167. showSpecPopup(type){
  168. // 登录提示
  169. // if( !this.$checkAccess.alterLogin()) return ;
  170. // 显示下单弹出层
  171. this.$refs.specPopup.open('bottom');
  172. // 地址列表
  173. this.getAddrList();
  174. // 计算价格
  175. this.priceHandler();
  176. },
  177. // 数量调整
  178. changeQuantity(number){
  179. // 如果不是0.表示两侧按钮点击,0表示输入的修改
  180. if( number != 0 ) {
  181. // 计算个数
  182. this.quantity = this.quantity + number;
  183. }
  184. // 如果大于库存设置为库存
  185. if( this.quantity > this.productInfo.stock ) {
  186. this.quantity = this.productInfo.stock;
  187. uni.showToast({
  188. title:"库存不足",
  189. icon:"none"
  190. })
  191. }
  192. // 如果小于1.设置为1
  193. if( this.quantity < 1 ) {
  194. this.quantity = 1;
  195. uni.showToast({title:"数量不可以小于0",icon:"none"})
  196. }
  197. // 计算价格
  198. this.priceHandler();
  199. },
  200. // 创建订单
  201. createOrder(){
  202. // 不可预约
  203. if( !this.$checkAccess.alertCity() ) return;
  204. // 下单数量小于0
  205. if( this.quantity < 1 ) {
  206. uni.showToast({
  207. title:"至少兑换1个"
  208. })
  209. return;
  210. }
  211. // 如果大于库存设置为库存
  212. if( this.productInfo.stock < 1 ) {
  213. uni.showToast({
  214. title:"库存不足",
  215. icon:"none"
  216. })
  217. return;
  218. }
  219. // 地址未填
  220. if( !this.checkedAddr.id ) {
  221. uni.showToast({
  222. title:"请选择收货地址",
  223. icon:"none"
  224. })
  225. return;
  226. }
  227. // 请求接口
  228. this.$http.request('api/score_orders/create',{"product_id":this.productInfo.id,'buy_num':this.quantity,'addr_id':this.checkedAddr.id},'post').then((re)=>{
  229. // 判断结果
  230. if( re.code == 'success' ) {
  231. // 处理结果
  232. this.productInfo.stock = this.productInfo.stock - this.quantity;
  233. // 关闭弹窗
  234. this.$refs.specPopup.close();
  235. // 跳转到订单列表
  236. uni.navigateTo({url:"/pages/score/orders"});
  237. return ;
  238. }else{
  239. uni.showModal({title:re.msg,showCancel:false});
  240. }
  241. });
  242. },
  243. // 计算价格
  244. priceHandler(){
  245. // 小数点保留
  246. this.priceTotal = this.productInfo.score * this.quantity;
  247. },
  248. popupChange(e){
  249. // 禁止滚动穿透
  250. this.show = e.show
  251. },
  252. // 选择地址
  253. checkedAddrItem(item){
  254. this.checkedAddr = item;
  255. this.$refs.addrPopup.close();
  256. },
  257. getAddrList(){
  258. // 判断数据
  259. this.$http.request('api/custom_addr/get_list').then((callback)=>{
  260. // 获取成功
  261. if( callback.code == 'success' ){
  262. this.addrList = callback.data;
  263. // 如果有的话
  264. if( this.addrList.length ){
  265. // 获取默认的
  266. for (let i in this.addrList) {
  267. // 如果是默认的
  268. if( this.addrList[i].is_default ) this.checkedAddr = this.addrList[i];
  269. }
  270. // 如果没有默认的话
  271. if( !this.checkedAddr.id ){
  272. this.checkedAddr = this.addrList[this.addrList.length-1];
  273. }
  274. }
  275. }
  276. });
  277. }
  278. }
  279. }
  280. </script>
  281. <style lang="less">
  282. .product_image_box{
  283. display: block;
  284. overflow: hidden;
  285. background: #FFFFFF;
  286. margin: 10rpx auto;
  287. .product_image{
  288. display: block;
  289. margin: 0 auto;
  290. width: 750rpx;
  291. height: 750rpx;
  292. }
  293. }
  294. .product_info{
  295. display: block;
  296. background: #FFFFFF;
  297. margin: 10rpx 0rpx;
  298. padding: 10px 10px;
  299. .product_name{
  300. max-height: 80rpx;
  301. font-size: 30rpx;
  302. line-height: 40rpx;
  303. overflow: hidden;
  304. padding: 10rpx 0rpx;
  305. }
  306. .product_spec{
  307. color: #999999;
  308. font-size: 24rpx;
  309. line-height: 30rpx;
  310. }
  311. .stock_price{
  312. font-size: 20rpx;
  313. overflow: hidden;
  314. margin-top: 10rpx;
  315. line-height: 30rpx;
  316. .product_price{
  317. float: left;
  318. color: red;
  319. font-size: 38rpx;
  320. line-height: 60rpx;
  321. .product_market{
  322. font-size: 24rpx;
  323. color: #999999;
  324. line-height: 30rpx;
  325. margin-left: 10rpx;
  326. text-decoration: line-through;
  327. }
  328. }
  329. .product_stock{
  330. color: #333333;
  331. float: right;
  332. font-size: 20rpx;
  333. line-height: 60rpx;
  334. }
  335. }
  336. }
  337. // 描述简介
  338. .product_business{
  339. display: block;
  340. overflow: hidden;
  341. padding: 20rpx 20rpx;
  342. margin: 10rpx auto;
  343. background: #FFFFFF;
  344. .logopic{
  345. float: left;
  346. width: 80rpx;
  347. height: 80rpx;
  348. border-radius: 50%;
  349. margin-right: 20rpx;
  350. }
  351. .business_info{
  352. float: left;
  353. width: 600rpx;
  354. overflow: hidden;
  355. .business_name{
  356. font-size: 26rpx;
  357. line-height: 40rpx;
  358. }
  359. .business_desc{
  360. color: #999999;
  361. font-size: 24rpx;
  362. line-height: 40rpx;
  363. }
  364. }
  365. }
  366. .product_description{
  367. width: 700rpx;
  368. display: block;
  369. overflow: hidden;
  370. background: #FFFFFF;
  371. min-height: 600rpx;
  372. font-size: 26rpx;
  373. margin: 0rpx auto;
  374. line-height: 50rpx;
  375. padding: 10rpx 25rpx;
  376. [alt]{ //web_view图片
  377. max-width: 100%; // 避免图片超宽
  378. vertical-align: bottom; // 避免图片之间间隙
  379. }
  380. }
  381. .product_poster{
  382. display: block;
  383. overflow: hidden;
  384. padding: 10rpx 0rpx;
  385. margin: 10rpx auto;
  386. background: #FFFFFF;
  387. .product_image{
  388. width: 750rpx;
  389. display: block;
  390. }
  391. }
  392. .order_car{
  393. left: 0rpx;
  394. width: 750rpx;
  395. height: 140rpx;
  396. display: block;
  397. position: fixed;
  398. padding-top: 20rpx;
  399. background: #FFFFFF;
  400. bottom: var(--window-bottom);
  401. border-top: 2rpx solid #DDDDDD;
  402. .show_order{
  403. width: 700rpx;
  404. height: 80rpx;
  405. display: block;
  406. color: #FFFFFF;
  407. font-size: 30rpx;
  408. overflow: hidden;
  409. line-height: 80rpx;
  410. padding: 0rpx 0rpx;
  411. text-align: center;
  412. margin: 0rpx auto;
  413. border-radius: 40rpx;
  414. background-color: #E03519;
  415. }
  416. }
  417. .popup{
  418. overflow: hidden;
  419. .popup_title{
  420. display: block;
  421. overflow: hidden;
  422. margin: 0rpx auto;
  423. font-size: 36rpx;
  424. height: 120rpx;
  425. line-height: 120rpx;
  426. padding: 0rpx 20rpx;
  427. border-bottom: 10rpx solid #F8F8F8;
  428. .to_addr_page{
  429. float: right;
  430. color: #F59A23;
  431. display: block;
  432. height: 120rpx;
  433. line-height: 120rpx;
  434. font-size: 26rpx;
  435. padding: 0rpx 10rpx;
  436. }
  437. }
  438. .order_info{
  439. overflow: hidden;
  440. background: #FFFFFF;
  441. .custom_addr{
  442. width: 680rpx;
  443. display: block;
  444. font-size: 24rpx;
  445. overflow: hidden;
  446. margin: 0rpx auto;
  447. line-height: 40rpx;
  448. padding: 20rpx 35rpx;
  449. background-color: #FFFFFF;
  450. border-bottom: 2rpx solid #dddddd;
  451. .contact_user{
  452. display: block;
  453. font-size: 24rpx;
  454. line-height: 50rpx;
  455. .contact_none{
  456. color: #E03519;
  457. font-size: 26rpx;
  458. font-weight: bold;
  459. }
  460. .contact_name{
  461. font-size: 26rpx;
  462. font-weight: bold;
  463. margin-right: 16rpx;
  464. }
  465. .contact_more{
  466. float: right;
  467. font-size: 40rpx;
  468. font-weight: bold;
  469. }
  470. }
  471. .contact_addr{
  472. width: 620rpx;
  473. display: block;
  474. font-size: 24rpx;
  475. line-height: 30rpx;
  476. padding: 10rpx 5rpx;
  477. }
  478. }
  479. .min600{
  480. min-height: 600rpx;
  481. }
  482. .car_item{
  483. height: 200rpx;
  484. display: block;
  485. background: #FFFFFF;
  486. margin: 20rpx auto;
  487. .box_left{
  488. float: left;
  489. width: 160rpx;
  490. height: 200rpx;
  491. margin-left: 35rpx;
  492. .car_image{
  493. width: 160rpx;
  494. height: 160rpx;
  495. margin: 20rpx 0rpx;
  496. border-radius: 5rpx;
  497. }
  498. }
  499. .box_right{
  500. float: left;
  501. width: 485rpx;
  502. margin-left: 35rpx;
  503. padding-top: 20rpx;
  504. .car_name{
  505. max-height: 80rpx;
  506. font-size: 30rpx;
  507. line-height: 40rpx;
  508. overflow: hidden;
  509. padding: 0rpx 0rpx;
  510. }
  511. .car_spec{
  512. color: #999999;
  513. font-size: 24rpx;
  514. line-height: 30rpx;
  515. padding: 0rpx 0rpx;
  516. }
  517. .stock_price{
  518. width: 485rpx;
  519. color: #dddddd;
  520. font-size: 20rpx;
  521. overflow: hidden;
  522. margin-top: 10rpx;
  523. line-height: 30rpx;
  524. .product_price{
  525. float: left;
  526. color: red;
  527. font-size: 30rpx;
  528. line-height: 60rpx;
  529. .car_market{
  530. font-size: 24rpx;
  531. color: #999999;
  532. line-height: 30rpx;
  533. vertical-align: middle;
  534. text-decoration: line-through;
  535. }
  536. }
  537. .product_quantity_box{
  538. float: right;
  539. color: #333333;
  540. overflow: hidden;
  541. font-size: 24rpx;
  542. margin-top: 10rpx;
  543. text-align: center;
  544. .product_quantity_sub{
  545. float: left;
  546. border: none;
  547. height: 36rpx;
  548. background: none;
  549. text-align: center;
  550. line-height: 36rpx;
  551. padding: 10rpx 10rpx;
  552. .sub_icon{
  553. width: 22rpx;
  554. height: 22rpx;
  555. display: block;
  556. }
  557. }
  558. .product_quantity_sub::after{
  559. border: none;
  560. background: none;
  561. }
  562. .product_quantity{
  563. float: left;
  564. width: 100rpx;
  565. height: 36rpx;
  566. font-size: 24rpx;
  567. min-height: 36rpx;
  568. line-height: 36rpx;
  569. padding: 0rpx 0rpx;
  570. border-radius: 8rpx;
  571. border: 2rpx solid #dddddd;
  572. }
  573. .product_quantity_add{
  574. float: left;
  575. border: none;
  576. height: 36rpx;
  577. background: none;
  578. text-align: center;
  579. padding: 10rpx 10rpx;
  580. line-height: 36rpx;
  581. .add_icon{
  582. width: 22rpx;
  583. height: 22rpx;
  584. display: block;
  585. }
  586. }
  587. .product_quantity_add::after{
  588. border: none;
  589. background: none;
  590. }
  591. }
  592. }
  593. .product_stock{
  594. font-size: 20rpx;
  595. line-height: 60rpx;
  596. }
  597. }
  598. }
  599. .to_select_coupon{
  600. font-size: 28rpx;
  601. padding: 30rpx 35rpx;
  602. margin-bottom: 20rpx;
  603. .coupon_deduction{
  604. color: red;
  605. float: right;
  606. }
  607. }
  608. .order_price{
  609. font-size: 28rpx;
  610. text-align: right;
  611. margin: 0rpx 35rpx;
  612. padding: 20rpx 0rpx;
  613. border-top: 2rpx solid #DDDDDD;
  614. .coupon_deduction{
  615. color: red;
  616. float: right;
  617. }
  618. }
  619. .order_btn{
  620. width: 700rpx;
  621. height: 100rpx;
  622. display: block;
  623. margin: 0 auto;
  624. margin-top: 70rpx;
  625. line-height: 80rpx;
  626. text-align: center;
  627. font-size: 30rpx;
  628. .to_car{
  629. color: #FFFFFF;
  630. float: right;
  631. width: 700rpx;
  632. height: 80rpx;
  633. display: block;
  634. overflow: hidden;
  635. font-size: 30rpx;
  636. line-height: 80rpx;
  637. padding: 0rpx 0rpx;
  638. border-radius: 40rpx;
  639. border: 0rpx solid transparent;
  640. background-color: #F59A23;
  641. }
  642. .to_car::after{
  643. border: 0rpx solid transparent;
  644. }
  645. .to_order{
  646. color: #FFFFFF;
  647. float: right;
  648. width: 700rpx;
  649. height: 80rpx;
  650. display: block;
  651. font-size: 30rpx;
  652. overflow: hidden;
  653. line-height: 80rpx;
  654. padding: 0rpx 0rpx;
  655. border-radius: 40rpx;
  656. background-color: #E03519;
  657. border: 0rpx solid transparent;
  658. }
  659. .to_order::after{
  660. border: 0rpx solid transparent;
  661. }
  662. }
  663. }
  664. .coupon_list{
  665. display: block;
  666. overflow: hidden;
  667. min-height: 600rpx;
  668. margin: 10rpx auto;
  669. background: #FFFFFF;
  670. padding-bottom: 50rpx;
  671. .coupon_item{
  672. height: 200rpx;
  673. display: block;
  674. margin: 10rpx auto;
  675. border-bottom: 2rpx solid #DDDDDD;
  676. .box_left{
  677. float: left;
  678. width: 160rpx;
  679. height: 160rpx;
  680. font-size: 20rpx;
  681. text-align: center;
  682. margin-left: 35rpx;
  683. line-height: 60rpx;
  684. margin-top: 20rpx;
  685. background: pink;
  686. .rebate{
  687. width: 120rpx;
  688. height: 60rpx;
  689. margin: 0rpx auto;
  690. line-height: 60rpx;
  691. margin-top: 20rpx;
  692. overflow: hidden;
  693. white-space: nowrap;
  694. text-overflow: ellipsis;
  695. }
  696. }
  697. .box_right{
  698. float: left;
  699. width: 485rpx;
  700. margin-left: 35rpx;
  701. padding-top: 20rpx;
  702. .coupon_title{
  703. width: 485rpx;
  704. max-height: 80rpx;
  705. font-size: 30rpx;
  706. overflow: hidden;
  707. line-height: 40rpx;
  708. padding: 0rpx 0rpx;
  709. .coupon_name{
  710. float: left;
  711. height: 40rpx;
  712. width: 380rpx;
  713. }
  714. .coupon_status{
  715. width: 85rpx;
  716. float: right;
  717. color: #999999;
  718. font-size: 24rpx;
  719. }
  720. }
  721. .product_scope{
  722. width: 485rpx;
  723. height: 80rpx;
  724. color: #999999;
  725. font-size: 24rpx;
  726. overflow: hidden;
  727. line-height: 80rpx;
  728. .check_label{
  729. float: right;
  730. display: block;
  731. overflow: hidden;
  732. padding: 20rpx 20rpx;
  733. .isstd{
  734. line-height: 40rpx;
  735. }
  736. .checkbox{
  737. float: right;
  738. width: 40rpx;
  739. height: 40rpx;
  740. }
  741. }
  742. }
  743. .coupon_info{
  744. width: 485rpx;
  745. max-height: 80rpx;
  746. font-size: 30rpx;
  747. overflow: hidden;
  748. line-height: 40rpx;
  749. padding: 0rpx 0rpx;
  750. .coupon_exp{
  751. float: left;
  752. font-size: 20rpx;
  753. }
  754. }
  755. }
  756. }
  757. .coupon_item:last-child{
  758. border-bottom: none;
  759. }
  760. }
  761. .addr_list{
  762. width: 730rpx;
  763. display: block;
  764. overflow: hidden;
  765. margin: 0rpx auto;
  766. min-height: 500rpx;
  767. .addr_item{
  768. display: block;
  769. font-size: 24rpx;
  770. overflow: hidden;
  771. line-height: 40rpx;
  772. padding: 15rpx 10rpx;
  773. border-radius: 15rpx;
  774. border-bottom: 2rpx solid #dddddd;
  775. .radio_label{
  776. width: 40rpx;
  777. float: left;
  778. height: 50rpx;
  779. padding-top: 30rpx;
  780. margin-right: 20rpx;
  781. .radio_icon{
  782. float: left;
  783. width: 40rpx;
  784. height: 40rpx;
  785. }
  786. }
  787. .contact_user{
  788. float: left;
  789. width: 640rpx;
  790. display: block;
  791. height: 50rpx;
  792. font-size: 24rpx;
  793. line-height: 50rpx;
  794. .contact_name{
  795. font-size: 26rpx;
  796. font-weight: bold;
  797. margin-right: 16rpx;
  798. }
  799. .contact_default{
  800. color: #F59A23;
  801. font-size: 20rpx;
  802. margin-left: 16rpx;
  803. border: 1rpx solid #F59A23;
  804. }
  805. }
  806. .contact_addr{
  807. float: left;
  808. width: 640rpx;
  809. display: block;
  810. font-size: 24rpx;
  811. line-height: 30rpx;
  812. padding: 10rpx 5rpx;
  813. }
  814. }
  815. }
  816. .create_box{
  817. height: 140rpx;
  818. display: block;
  819. .create_addr{
  820. width: 700rpx;
  821. height: 80rpx;
  822. display: block;
  823. color: #FFFFFF;
  824. font-size: 30rpx;
  825. overflow: hidden;
  826. line-height: 80rpx;
  827. padding: 0rpx 0rpx;
  828. text-align: center;
  829. margin: 0rpx auto;
  830. margin-top: 20rpx;
  831. border-radius: 40rpx;
  832. background-color: #E03519;
  833. }
  834. }
  835. }
  836. </style>