product.vue 20 KB

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