product.vue 20 KB

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