order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. <template>
  2. <view>
  3. <view class="custom_addr" @click="showAddrPopup()">
  4. <view class="contact_user">
  5. <text class="contact_none" v-if="!checkedAddr.id">请选择收货地址</text>
  6. <text class="contact_name" >{{checkedAddr.contact_name}}</text>
  7. <text class="contact_phone" >{{checkedAddr.contact_phone}}</text>
  8. <text class="contact_more"> &gt;</text>
  9. </view>
  10. <view class="contact_addr">
  11. {{checkedAddr.contact_province}} {{checkedAddr.contact_city}} {{checkedAddr.contact_area}} {{checkedAddr.contact_addr}}
  12. </view>
  13. </view>
  14. <view class="car_list">
  15. <view class="car_item" v-for="(item,index) in cartList" :key="index">
  16. <view class="box_left">
  17. <image class="car_image" :src="item.thumb" mode=""></image>
  18. </view>
  19. <view class="box_center">
  20. <view class="car_name">{{item.name}}</view>
  21. <view class="car_spec">{{item.spec}}</view>
  22. <view class="car_price">
  23. <text class="price">¥{{item.price}}</text>
  24. </view>
  25. </view>
  26. <view class="box_right">
  27. <view class="buy_num_box">
  28. <view class="buy_num">共{{item.buy_num}}件</view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="to_select_coupon" v-if="couponList.length" @click="popupCoupon()">
  34. <text>优惠券</text>
  35. <view class="coupon_deduction">{{couponUsed}}</view>
  36. </view>
  37. <view class="bottom_box">
  38. <view class="price_box">
  39. 合计:<text class="price_total">¥{{priceTotal}}</text>
  40. </view>
  41. <button class="to_order" @click="createOrder()" data-eventsync="true">提交预约</button>
  42. </view>
  43. <uni-popup ref="popup" type="bottom" class="popup" background-color="#FFFFFF" @touchmove.stop.prevent="()=>{}">
  44. <view class="coupon_list">
  45. <view class="coupon_item" v-for="(item,index) in couponList" :key="index" @click="checkedCoupon(index)">
  46. <view class="box_left">
  47. <view class="rebate" v-if="item.rebate_type == 1" > ¥{{item.rebate}}</view>
  48. <view class="rebate" v-if="item.rebate_type == 2" > 打 {{item.rebate}} 折</view>
  49. <view class="rebate" v-if="item.rebate_type == 3" >
  50. <text v-if="item.rebate_scope.length"> {{item.rebate_scope[0].product_name}} </text>
  51. </view>
  52. <view class="std_pay"> 满{{item.std_pay}}</view>
  53. </view>
  54. <view class="box_right">
  55. <view class="coupon_title">
  56. <view class="coupon_name" v-if="item.rebate_type == 1">满减券</view>
  57. <view class="coupon_name" v-if="item.rebate_type == 2">折扣券</view>
  58. <view class="coupon_name" v-if="item.rebate_type == 3">赠品券</view>
  59. </view>
  60. <view class="product_scope">
  61. <text class="" v-if="item.type_id == 1">限定商品可用</text>
  62. <text class="" v-if="item.type_id == 2">全场可用</text>
  63. <view class="check_label" >
  64. <view class="isstd" v-if="!item.is_std">不可用</view>
  65. <image class="checkbox" v-if="item.is_std" :src="item.checked?'../../static/icon/checked.png':'../../static/icon/checkbox.png'"></image>
  66. </view>
  67. </view>
  68. <view class="coupon_info">
  69. <view class="coupon_exp">{{item.exp_time}} 到期</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </uni-popup>
  75. <uni-popup ref="addrPopup" type="bottom" class="popup" background-color="#FFFFFF" >
  76. <view class="popup_title">收货地址 <navigator url="/pages/addr/index?notify=addr" class="to_addr_page">管理</navigator> </view>
  77. <view class="addr_list">
  78. <view class="addr_item" v-for="(item,index) in addrList" :key="index" @click="checkedAddrItem(item)">
  79. <view class="radio_label">
  80. <image class="radio_icon" :src="item.id == checkedAddr.id? '../../static/icon/radioed.png' : '../../static/icon/radio.png'" ></image>
  81. </view>
  82. <view class="contact_user">
  83. <text class="contact_name">{{item.contact_name}}</text>
  84. <text class="contact_phone">{{item.contact_phone}}</text>
  85. <text class="contact_default" v-if="item.is_default">默认</text>
  86. </view>
  87. <view class="contact_addr">
  88. {{item.contact_province}} {{item.contact_city}} {{item.contact_area}} {{item.contact_addr}}
  89. </view>
  90. </view>
  91. </view>
  92. <view class="create_box">
  93. <navigator url="/pages/addr/index?notify=addr&type=create" class="create_addr" >新建收货地址</navigator>
  94. </view>
  95. </uni-popup>
  96. </view>
  97. </template>
  98. <script>
  99. export default {
  100. data() {
  101. return {
  102. // 购物车列表
  103. cartList:[],
  104. // 优惠券列表
  105. couponList:[],
  106. // 请求参数
  107. requestParam:{
  108. cart_ids:"",
  109. },
  110. // 总价
  111. priceTotal:'0.00',
  112. // 优惠券使用
  113. couponUsed:"去使用 >",
  114. // 扣减金额
  115. rebatePrice:0.00,
  116. // 已经选择的优惠券ID
  117. customCoupon: 0,
  118. // 地址列表
  119. addrList:[],
  120. // 已选地址
  121. checkedAddr:{
  122. id:0,
  123. contact_name:"",
  124. contact_phone:"",
  125. contact_province:"",
  126. contact_city:"",
  127. contact_area:"",
  128. contact_addr:"",
  129. is_default:0,
  130. }
  131. }
  132. },
  133. onLoad(param) {
  134. // 获取路由参数
  135. this.requestParam.cart_ids = param.cart_ids;
  136. var that = this;
  137. // 监听地址变动
  138. uni.$on('addr_list_change',function(data){
  139. // 地址列表
  140. that.addrList = data.list;
  141. })
  142. },
  143. onShow() {
  144. // 结果
  145. this.$http.request('api/shop_cart/check_list',this.requestParam).then((re)=>{
  146. if( re.code == 'success' ){
  147. // 赋值
  148. this.cartList = re.data;
  149. // 结果
  150. this.$http.request('api/custom_coupon/get_checked',this.requestParam).then((re)=>{
  151. if( re.code == 'success' ){
  152. // 循环优惠券
  153. for (let i in re.data) {
  154. /* 商品的总价格,决定是否可用 */
  155. var totalPrice = 0.00;
  156. // 循环产品,
  157. for (let j in this.cartList) {
  158. // 如果是商品券
  159. if( re.data[i].type_id == 1 ){
  160. // 判断商品是不是在商品范围
  161. var isScope = false;
  162. // 循环商品范围
  163. for (let k in re.data[i].product_scope) {
  164. // 如果存在商品范围
  165. if( re.data[i].product_scope[k].product_id == this.cartList[j].product_id) isScope = true;
  166. }
  167. // 范围内的做计算
  168. if( isScope ){
  169. totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  170. }
  171. // 店铺券
  172. }else{
  173. // 折扣券以及满减券的话,计算价格
  174. totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  175. }
  176. }
  177. // 判断价格到不到限额
  178. re.data[i].is_std = totalPrice.toFixed() >= this.$decimal.mul(re.data[i].std_pay,1).toFixed();
  179. }
  180. // 赋值
  181. this.couponList = re.data;
  182. }
  183. });
  184. // 计算价格
  185. this.priceHandler();
  186. }
  187. });
  188. // 地址列表
  189. this.getAddrList();
  190. },
  191. onPullDownRefresh() {
  192. // 请求列表
  193. this.$http.request('api/shop_cart/check_list',this.requestParam).then((re)=>{
  194. if( re.code == 'success' ){
  195. // 赋值
  196. this.cartList = re.data;
  197. this.priceHandler();
  198. }
  199. });
  200. uni.stopPullDownRefresh();
  201. },
  202. onReachBottom() {
  203. },
  204. methods: {
  205. // 地址弹出层
  206. showAddrPopup(){
  207. // 显示下单弹出层
  208. this.$refs.addrPopup.open('bottom');
  209. },
  210. // 价格计算
  211. priceHandler(){
  212. // 总价格
  213. let priceTotal = 0;
  214. // 循环处理
  215. for (let index in this.cartList) {
  216. priceTotal = this.$decimal.add(priceTotal,this.$decimal.mul(this.cartList[index].price,this.cartList[index].buy_num));
  217. }
  218. // 扣减数据
  219. priceTotal = this.$decimal.sub(priceTotal,this.rebatePrice);
  220. // 小数点保留
  221. this.priceTotal = priceTotal.toFixed(2)
  222. },
  223. // 创建订单
  224. createOrder(){
  225. // 不可预约
  226. if( !this.$checkAccess.alertCity() ) return;
  227. // 需要下单的产品列表
  228. let productList = [];
  229. // 循环列表数据
  230. for (let index in this.cartList) {
  231. // 购买数量必须大于0的才行
  232. if( this.cartList[index].buy_num > 0 ){
  233. // 追加需要下单的数据
  234. productList.push({product_id: this.cartList[index].product_id,buy_num:this.cartList[index].buy_num,product_skuid:this.cartList[index].skuid});
  235. }
  236. }
  237. if( productList.length <= 0) {
  238. uni.showToast({
  239. title:"未选择可预约的产品",
  240. icon:"none",
  241. })
  242. return ;
  243. }
  244. // 地址未填
  245. if( !this.checkedAddr.id ) {
  246. uni.showToast({
  247. title:"请选择收货地址",
  248. icon:"none"
  249. })
  250. return;
  251. }
  252. //需要下单的产品信息参数传给OrederCompletion页面
  253. let productInfo = [];
  254. for (let index in this.cartList) {
  255. // 购买数量必须大于0的才行
  256. if( this.cartList[index].buy_num > 0 ){
  257. // 追加需要下单的数据
  258. productInfo.push({name:this.cartList[index].name,spec:this.cartList[index].spec,price:this.cartList[index].price});
  259. }
  260. }
  261. // 转成json字符串
  262. productInfo = JSON.stringify(productInfo);
  263. //加密json格式成编码数组
  264. let encodedArray = encodeURIComponent(productInfo);
  265. // 转成json字符串传输
  266. productList = JSON.stringify(productList);
  267. // 请求接口
  268. this.$http.request('api/orders/create',{"product_list":productList,'custom_coupon_id':this.customCoupon,'is_cart':1,'addr_id':this.checkedAddr.id},'post').then((re)=>{
  269. // 判断结果
  270. if( re.code == 'success' ) {
  271. // 跳转到报单完成页面
  272. uni.redirectTo({url:`/pages/orders/completion?params=${encodedArray}`})
  273. return ;
  274. }else{
  275. uni.showToast({title: re.msg,icon:"none"})
  276. }
  277. });
  278. },
  279. // 弹出优惠券
  280. popupCoupon(){
  281. this.$refs.popup.open();
  282. },
  283. // 选择优惠券
  284. checkedCoupon(index){
  285. // 单个设置选中/未选
  286. this.couponList[index].checked = this.couponList[index].checked ? 0 : 1;
  287. // 循环处理
  288. for (let i in this.couponList) {
  289. // 有未选的就不做全选
  290. if( index != i ) this.couponList[i].checked = 0;
  291. }
  292. // 如果未选中,提示可用
  293. if( !this.couponList[index].checked ) this.couponUsed = '去使用 >';
  294. // 已经选择的优惠券ID
  295. this.customCoupon = this.couponList[index].checked ? this.couponList[index].id : 0
  296. // 计算扣减
  297. this.couponRebate();
  298. // 计算价格
  299. this.priceHandler();
  300. // 关闭弹窗
  301. this.$refs.popup.close();
  302. },
  303. // 计算优惠券扣减
  304. couponRebate(){
  305. // 默认扣减0
  306. this.rebatePrice = 0;
  307. // 循环优惠券
  308. for (let i in this.couponList) {
  309. // 判断是否选中
  310. if( !this.couponList[i].checked ){
  311. // 未选择的不管
  312. continue;
  313. }
  314. /* 商品的总价格,决定是否可用 */
  315. var totalPrice = 0.00;
  316. // 循环产品,
  317. for (let j in this.cartList) {
  318. // 如果是商品券
  319. if( this.couponList[i].type_id == 1 ){
  320. // 判断商品是不是在商品范围
  321. var isScope = false;
  322. // 循环商品范围
  323. for (let k in this.couponList[i].product_scope) {
  324. // 如果存在商品范围
  325. if( this.couponList[i].product_scope[k].product_id == this.cartList[j].product_id) isScope = true;
  326. }
  327. // 范围内的做计算
  328. if( isScope ) totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  329. // 店铺券
  330. }else{
  331. // 折扣券以及满减券的话,计算价格
  332. totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  333. }
  334. }
  335. // 如果是可以用的话
  336. if( parseFloat(totalPrice.toFixed()) >= parseFloat(this.$decimal.mul(this.couponList[i].std_pay,1).toFixed()) ){
  337. // 扣减金额
  338. let rebatePrice = 0;
  339. // 满减
  340. if( this.couponList[i].rebate_type == 1 ){
  341. // 计算扣减数据
  342. rebatePrice = this.$decimal.mul(this.couponList[i].rebate,1);
  343. // 替换文字
  344. this.couponUsed = "¥-" + rebatePrice.toFixed(2);
  345. }
  346. // 折扣
  347. if( this.couponList[i].rebate_type == 2 ){
  348. // 折扣
  349. rebatePrice = this.$decimal.mul(totalPrice,this.couponList[i].rebate);
  350. // -0.1 表示折扣
  351. rebatePrice = this.$decimal.sub(totalPrice,rebatePrice.mul(0.1));
  352. // 替换文字
  353. this.couponUsed = "¥-" + rebatePrice.toFixed(2);
  354. }
  355. // 赠品
  356. if( this.couponList[i].rebate_type == 3 ){
  357. // 替换文字
  358. this.couponUsed = "送" + ( this.couponList[i].rebate_scope.length ? this.couponList[i].rebate_scope[0].product_name: "");
  359. }
  360. // 小数点保留
  361. this.rebatePrice = rebatePrice.toFixed(2);
  362. }
  363. }
  364. },
  365. // 选择地址
  366. checkedAddrItem(item){
  367. this.checkedAddr = item;
  368. this.$refs.addrPopup.close();
  369. },
  370. getAddrList(){
  371. // 判断数据
  372. this.$http.request('api/custom_addr/get_list').then((callback)=>{
  373. // 获取成功
  374. if( callback.code == 'success' ){
  375. this.addrList = callback.data;
  376. // 如果有的话
  377. if( this.addrList.length ){
  378. // 获取默认的
  379. for (let i in this.addrList) {
  380. // 如果是默认的
  381. if( this.addrList[i].is_default ) this.checkedAddr = this.addrList[i];
  382. }
  383. // 如果没有默认的话
  384. if( !this.checkedAddr.id ){
  385. this.checkedAddr = this.addrList[this.addrList.length-1];
  386. }
  387. }
  388. }
  389. });
  390. }
  391. }
  392. }
  393. </script>
  394. <style lang="less">
  395. .custom_addr{
  396. width: 680rpx;
  397. display: block;
  398. font-size: 24rpx;
  399. overflow: hidden;
  400. margin: 0rpx auto;
  401. line-height: 40rpx;
  402. padding: 20rpx 35rpx;
  403. background-color: #FFFFFF;
  404. border-bottom: 2rpx solid #dddddd;
  405. .contact_user{
  406. display: block;
  407. font-size: 24rpx;
  408. line-height: 50rpx;
  409. .contact_none{
  410. font-size: 26rpx;
  411. font-weight: bold;
  412. }
  413. .contact_name{
  414. font-size: 26rpx;
  415. font-weight: bold;
  416. margin-right: 16rpx;
  417. }
  418. .contact_more{
  419. float: right;
  420. font-size: 40rpx;
  421. font-weight: bold;
  422. }
  423. }
  424. .contact_addr{
  425. width: 620rpx;
  426. display: block;
  427. font-size: 24rpx;
  428. line-height: 30rpx;
  429. padding: 10rpx 5rpx;
  430. }
  431. }
  432. .car_list{
  433. display: block;
  434. overflow: hidden;
  435. margin: 0rpx auto;
  436. margin-top: 20rpx;
  437. margin-bottom: 160rpx;
  438. background: #FFFFFF;
  439. .car_item{
  440. height: 170rpx;
  441. display: block;
  442. overflow: hidden;
  443. margin: 0rpx auto;
  444. padding: 20rpx 35rpx;
  445. border-bottom: 2rpx solid #DDDDDD;
  446. .box_left{
  447. float: left;
  448. width: 140rpx;
  449. height: 190rpx;
  450. margin-top: 10rpx;
  451. .car_image{
  452. width: 140rpx;
  453. height: 140rpx;
  454. border-radius: 5rpx;
  455. }
  456. }
  457. .box_center{
  458. float: left;
  459. width: 300rpx;
  460. margin-left: 25rpx;
  461. .car_name{
  462. max-height: 80rpx;
  463. font-size: 30rpx;
  464. line-height: 50rpx;
  465. overflow: hidden;
  466. }
  467. .car_spec{
  468. color: #999999;
  469. font-size: 24rpx;
  470. line-height: 60rpx;
  471. max-height: 60rpx;
  472. overflow: hidden;
  473. }
  474. .car_price{
  475. font-size: 30rpx;
  476. line-height: 60rpx;
  477. .price{
  478. color: red;
  479. }
  480. }
  481. }
  482. .box_right{
  483. float: right;
  484. width: 185rpx;
  485. .buy_num_box{
  486. float: right;
  487. color: #333333;
  488. overflow: hidden;
  489. font-size: 24rpx;
  490. margin-top: 130rpx;
  491. text-align: center;
  492. .buy_num{
  493. float: left;
  494. width: 100rpx;
  495. height: 30rpx;
  496. font-size: 24rpx;
  497. line-height: 30rpx;
  498. padding: 0rpx 0rpx;
  499. border-radius: 8rpx;
  500. }
  501. }
  502. }
  503. }
  504. .car_item:last-child{
  505. border-bottom: none;
  506. }
  507. }
  508. .to_select_coupon{
  509. display: block;
  510. height: 120rpx;
  511. font-size: 30rpx;
  512. margin: 20rpx auto;
  513. background: #FFFFFF;
  514. padding: 0rpx 35rpx;
  515. line-height: 120rpx;
  516. .coupon_deduction{
  517. color: red;
  518. float: right;
  519. font-size: 26rpx;
  520. }
  521. }
  522. .bottom_box{
  523. left: 0rpx;
  524. width: 100%;
  525. height: 140rpx;
  526. display: block;
  527. position: fixed;
  528. overflow: hidden;
  529. background: #FFFFFF;
  530. padding: 0rpx 35rpx;
  531. bottom: var(--window-bottom);
  532. .price_box{
  533. float: left;
  534. width: 500rpx;
  535. display: block;
  536. color: #666666;
  537. font-size: 26rpx;
  538. text-align: right;
  539. line-height: 100rpx;
  540. margin-right: 20rpx;
  541. .price_total{
  542. color: red;
  543. font-size: 30rpx;
  544. }
  545. }
  546. .to_order{
  547. float: left;
  548. width: 180rpx;
  549. height: 80rpx;
  550. display: block;
  551. color: #FFFFFF;
  552. font-size: 28rpx;
  553. margin-top: 10rpx;
  554. line-height: 80rpx;
  555. padding: 0rpx 0rpx;
  556. text-align: center;
  557. border-radius: 40rpx;
  558. background-color: #E03519;
  559. }
  560. }
  561. .popup{
  562. .popup_title{
  563. display: block;
  564. overflow: hidden;
  565. margin: 0rpx auto;
  566. font-size: 36rpx;
  567. height: 120rpx;
  568. line-height: 120rpx;
  569. padding: 0rpx 20rpx;
  570. border-bottom: 10rpx solid #F8F8F8;
  571. .to_addr_page{
  572. float: right;
  573. color: #F59A23;
  574. display: block;
  575. height: 120rpx;
  576. line-height: 120rpx;
  577. font-size: 26rpx;
  578. padding: 0rpx 10rpx;
  579. }
  580. }
  581. .coupon_list{
  582. display: block;
  583. overflow: hidden;
  584. margin: 10rpx auto;
  585. min-height: 600rpx;
  586. background: #FFFFFF;
  587. padding-bottom: 50rpx;
  588. .coupon_item{
  589. height: 200rpx;
  590. display: block;
  591. margin: 10rpx auto;
  592. border-bottom: 2rpx solid #DDDDDD;
  593. .box_left{
  594. float: left;
  595. width: 160rpx;
  596. height: 160rpx;
  597. font-size: 20rpx;
  598. text-align: center;
  599. margin-left: 35rpx;
  600. line-height: 60rpx;
  601. margin-top: 20rpx;
  602. background: pink;
  603. .rebate{
  604. width: 120rpx;
  605. height: 60rpx;
  606. margin: 0rpx auto;
  607. line-height: 60rpx;
  608. margin-top: 20rpx;
  609. overflow: hidden;
  610. white-space: nowrap;
  611. text-overflow: ellipsis;
  612. }
  613. }
  614. .box_right{
  615. float: left;
  616. width: 485rpx;
  617. margin-left: 35rpx;
  618. padding-top: 20rpx;
  619. .coupon_title{
  620. width: 485rpx;
  621. max-height: 80rpx;
  622. font-size: 30rpx;
  623. overflow: hidden;
  624. line-height: 40rpx;
  625. padding: 0rpx 0rpx;
  626. .coupon_name{
  627. float: left;
  628. height: 40rpx;
  629. width: 380rpx;
  630. }
  631. .coupon_status{
  632. width: 85rpx;
  633. float: right;
  634. color: #999999;
  635. font-size: 24rpx;
  636. }
  637. }
  638. .product_scope{
  639. width: 485rpx;
  640. height: 80rpx;
  641. color: #999999;
  642. font-size: 24rpx;
  643. overflow: hidden;
  644. line-height: 80rpx;
  645. .check_label{
  646. float: right;
  647. display: block;
  648. overflow: hidden;
  649. padding: 20rpx 20rpx;
  650. .isstd{
  651. line-height: 40rpx;
  652. }
  653. .checkbox{
  654. float: right;
  655. width: 40rpx;
  656. height: 40rpx;
  657. }
  658. }
  659. }
  660. .coupon_info{
  661. width: 485rpx;
  662. max-height: 80rpx;
  663. font-size: 30rpx;
  664. overflow: hidden;
  665. line-height: 40rpx;
  666. padding: 0rpx 0rpx;
  667. .coupon_exp{
  668. float: left;
  669. font-size: 20rpx;
  670. }
  671. }
  672. }
  673. }
  674. .coupon_item:last-child{
  675. border-bottom: none;
  676. }
  677. }
  678. .addr_list{
  679. width: 730rpx;
  680. display: block;
  681. overflow: hidden;
  682. margin: 0rpx auto;
  683. min-height: 500rpx;
  684. .addr_item{
  685. display: block;
  686. font-size: 24rpx;
  687. overflow: hidden;
  688. line-height: 40rpx;
  689. padding: 15rpx 10rpx;
  690. border-radius: 15rpx;
  691. border-bottom: 2rpx solid #dddddd;
  692. .radio_label{
  693. width: 40rpx;
  694. float: left;
  695. height: 50rpx;
  696. padding-top: 30rpx;
  697. margin-right: 20rpx;
  698. .radio_icon{
  699. float: left;
  700. width: 40rpx;
  701. height: 40rpx;
  702. }
  703. }
  704. .contact_user{
  705. float: left;
  706. width: 640rpx;
  707. display: block;
  708. height: 50rpx;
  709. font-size: 24rpx;
  710. line-height: 50rpx;
  711. .contact_name{
  712. font-size: 26rpx;
  713. font-weight: bold;
  714. margin-right: 16rpx;
  715. }
  716. .contact_default{
  717. color: #F59A23;
  718. font-size: 20rpx;
  719. margin-left: 16rpx;
  720. border: 1rpx solid #F59A23;
  721. }
  722. }
  723. .contact_addr{
  724. float: left;
  725. width: 640rpx;
  726. display: block;
  727. font-size: 24rpx;
  728. line-height: 30rpx;
  729. padding: 10rpx 5rpx;
  730. }
  731. }
  732. }
  733. .create_box{
  734. height: 140rpx;
  735. display: block;
  736. .create_addr{
  737. width: 700rpx;
  738. height: 80rpx;
  739. display: block;
  740. color: #FFFFFF;
  741. font-size: 30rpx;
  742. overflow: hidden;
  743. line-height: 80rpx;
  744. padding: 0rpx 0rpx;
  745. text-align: center;
  746. margin: 0rpx auto;
  747. margin-top: 20rpx;
  748. border-radius: 40rpx;
  749. background-color: #E03519;
  750. }
  751. }
  752. }
  753. </style>