order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  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. let orderInfo = re.data;
  273. orderInfo = JSON.stringify(orderInfo)
  274. let params = encodeURIComponent(orderInfo);
  275. uni.navigateTo({url:`/pages/orders/confirm?params=${params}`});
  276. return ;
  277. }else{
  278. uni.showToast({title: re.msg,icon:"none"})
  279. }
  280. });
  281. },
  282. // 弹出优惠券
  283. popupCoupon(){
  284. this.$refs.popup.open();
  285. },
  286. // 选择优惠券
  287. checkedCoupon(index){
  288. // 单个设置选中/未选
  289. this.couponList[index].checked = this.couponList[index].checked ? 0 : 1;
  290. // 循环处理
  291. for (let i in this.couponList) {
  292. // 有未选的就不做全选
  293. if( index != i ) this.couponList[i].checked = 0;
  294. }
  295. // 如果未选中,提示可用
  296. if( !this.couponList[index].checked ) this.couponUsed = '去使用 >';
  297. // 已经选择的优惠券ID
  298. this.customCoupon = this.couponList[index].checked ? this.couponList[index].id : 0
  299. // 计算扣减
  300. this.couponRebate();
  301. // 计算价格
  302. this.priceHandler();
  303. // 关闭弹窗
  304. this.$refs.popup.close();
  305. },
  306. // 计算优惠券扣减
  307. couponRebate(){
  308. // 默认扣减0
  309. this.rebatePrice = 0;
  310. // 循环优惠券
  311. for (let i in this.couponList) {
  312. // 判断是否选中
  313. if( !this.couponList[i].checked ){
  314. // 未选择的不管
  315. continue;
  316. }
  317. /* 商品的总价格,决定是否可用 */
  318. var totalPrice = 0.00;
  319. // 循环产品,
  320. for (let j in this.cartList) {
  321. // 如果是商品券
  322. if( this.couponList[i].type_id == 1 ){
  323. // 判断商品是不是在商品范围
  324. var isScope = false;
  325. // 循环商品范围
  326. for (let k in this.couponList[i].product_scope) {
  327. // 如果存在商品范围
  328. if( this.couponList[i].product_scope[k].product_id == this.cartList[j].product_id) isScope = true;
  329. }
  330. // 范围内的做计算
  331. if( isScope ) totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  332. // 店铺券
  333. }else{
  334. // 折扣券以及满减券的话,计算价格
  335. totalPrice = this.$decimal.add(totalPrice,this.$decimal.mul(this.cartList[j].price,this.cartList[j].buy_num));
  336. }
  337. }
  338. // 如果是可以用的话
  339. if( totalPrice.toFixed() >= this.$decimal.mul(this.couponList[i].std_pay,1).toFixed() ){
  340. // 扣减金额
  341. let rebatePrice = 0;
  342. // 满减
  343. if( this.couponList[i].rebate_type == 1 ){
  344. // 计算扣减数据
  345. rebatePrice = this.$decimal.mul(this.couponList[i].rebate,1);
  346. // 替换文字
  347. this.couponUsed = "¥-" + rebatePrice.toFixed(2);
  348. }
  349. // 折扣
  350. if( this.couponList[i].rebate_type == 2 ){
  351. // 折扣
  352. rebatePrice = this.$decimal.mul(totalPrice,this.couponList[i].rebate);
  353. // -0.1 表示折扣
  354. rebatePrice = this.$decimal.sub(totalPrice,rebatePrice.mul(0.1));
  355. // 替换文字
  356. this.couponUsed = "¥-" + rebatePrice.toFixed(2);
  357. }
  358. // 赠品
  359. if( this.couponList[i].rebate_type == 3 ){
  360. // 替换文字
  361. this.couponUsed = "送" + ( this.couponList[i].rebate_scope.length ? this.couponList[i].rebate_scope[0].product_name: "");
  362. }
  363. // 小数点保留
  364. this.rebatePrice = rebatePrice.toFixed(2);
  365. }
  366. }
  367. },
  368. // 选择地址
  369. checkedAddrItem(item){
  370. this.checkedAddr = item;
  371. this.$refs.addrPopup.close();
  372. },
  373. getAddrList(){
  374. // 判断数据
  375. this.$http.request('api/custom_addr/get_list').then((callback)=>{
  376. // 获取成功
  377. if( callback.code == 'success' ){
  378. this.addrList = callback.data;
  379. // 如果有的话
  380. if( this.addrList.length ){
  381. // 获取默认的
  382. for (let i in this.addrList) {
  383. // 如果是默认的
  384. if( this.addrList[i].is_default ) this.checkedAddr = this.addrList[i];
  385. }
  386. // 如果没有默认的话
  387. if( !this.checkedAddr.id ){
  388. this.checkedAddr = this.addrList[this.addrList.length-1];
  389. }
  390. }
  391. }
  392. });
  393. }
  394. }
  395. }
  396. </script>
  397. <style lang="less">
  398. .custom_addr{
  399. width: 680rpx;
  400. display: block;
  401. font-size: 24rpx;
  402. overflow: hidden;
  403. margin: 0rpx auto;
  404. line-height: 40rpx;
  405. padding: 20rpx 35rpx;
  406. background-color: #FFFFFF;
  407. border-bottom: 2rpx solid #dddddd;
  408. .contact_user{
  409. display: block;
  410. font-size: 24rpx;
  411. line-height: 50rpx;
  412. .contact_none{
  413. font-size: 26rpx;
  414. font-weight: bold;
  415. }
  416. .contact_name{
  417. font-size: 26rpx;
  418. font-weight: bold;
  419. margin-right: 16rpx;
  420. }
  421. .contact_more{
  422. float: right;
  423. font-size: 40rpx;
  424. font-weight: bold;
  425. }
  426. }
  427. .contact_addr{
  428. width: 620rpx;
  429. display: block;
  430. font-size: 24rpx;
  431. line-height: 30rpx;
  432. padding: 10rpx 5rpx;
  433. }
  434. }
  435. .car_list{
  436. display: block;
  437. overflow: hidden;
  438. margin: 0rpx auto;
  439. margin-top: 20rpx;
  440. margin-bottom: 160rpx;
  441. background: #FFFFFF;
  442. .car_item{
  443. height: 170rpx;
  444. display: block;
  445. overflow: hidden;
  446. margin: 0rpx auto;
  447. padding: 20rpx 35rpx;
  448. border-bottom: 2rpx solid #DDDDDD;
  449. .box_left{
  450. float: left;
  451. width: 140rpx;
  452. height: 190rpx;
  453. margin-top: 10rpx;
  454. .car_image{
  455. width: 140rpx;
  456. height: 140rpx;
  457. border-radius: 5rpx;
  458. }
  459. }
  460. .box_center{
  461. float: left;
  462. width: 300rpx;
  463. margin-left: 25rpx;
  464. .car_name{
  465. max-height: 80rpx;
  466. font-size: 30rpx;
  467. line-height: 50rpx;
  468. overflow: hidden;
  469. }
  470. .car_spec{
  471. color: #999999;
  472. font-size: 24rpx;
  473. line-height: 60rpx;
  474. }
  475. .car_price{
  476. font-size: 30rpx;
  477. line-height: 60rpx;
  478. .price{
  479. color: red;
  480. }
  481. }
  482. }
  483. .box_right{
  484. float: right;
  485. width: 185rpx;
  486. .buy_num_box{
  487. float: right;
  488. color: #333333;
  489. overflow: hidden;
  490. font-size: 24rpx;
  491. margin-top: 130rpx;
  492. text-align: center;
  493. .buy_num{
  494. float: left;
  495. width: 100rpx;
  496. height: 30rpx;
  497. font-size: 24rpx;
  498. line-height: 30rpx;
  499. padding: 0rpx 0rpx;
  500. border-radius: 8rpx;
  501. }
  502. }
  503. }
  504. }
  505. .car_item:last-child{
  506. border-bottom: none;
  507. }
  508. }
  509. .to_select_coupon{
  510. display: block;
  511. height: 120rpx;
  512. font-size: 30rpx;
  513. margin: 20rpx auto;
  514. background: #FFFFFF;
  515. padding: 0rpx 35rpx;
  516. line-height: 120rpx;
  517. .coupon_deduction{
  518. color: red;
  519. float: right;
  520. font-size: 26rpx;
  521. }
  522. }
  523. .bottom_box{
  524. left: 0rpx;
  525. width: 100%;
  526. height: 140rpx;
  527. display: block;
  528. position: fixed;
  529. overflow: hidden;
  530. background: #FFFFFF;
  531. padding: 0rpx 35rpx;
  532. bottom: var(--window-bottom);
  533. .price_box{
  534. float: left;
  535. width: 500rpx;
  536. display: block;
  537. color: #666666;
  538. font-size: 26rpx;
  539. text-align: right;
  540. line-height: 100rpx;
  541. margin-right: 20rpx;
  542. .price_total{
  543. color: red;
  544. font-size: 30rpx;
  545. }
  546. }
  547. .to_order{
  548. float: left;
  549. width: 180rpx;
  550. height: 80rpx;
  551. display: block;
  552. color: #FFFFFF;
  553. font-size: 28rpx;
  554. margin-top: 10rpx;
  555. line-height: 80rpx;
  556. padding: 0rpx 0rpx;
  557. text-align: center;
  558. border-radius: 40rpx;
  559. background-color: #E03519;
  560. }
  561. }
  562. .popup{
  563. .popup_title{
  564. display: block;
  565. overflow: hidden;
  566. margin: 0rpx auto;
  567. font-size: 36rpx;
  568. height: 120rpx;
  569. line-height: 120rpx;
  570. padding: 0rpx 20rpx;
  571. border-bottom: 10rpx solid #F8F8F8;
  572. .to_addr_page{
  573. float: right;
  574. color: #F59A23;
  575. display: block;
  576. height: 120rpx;
  577. line-height: 120rpx;
  578. font-size: 26rpx;
  579. padding: 0rpx 10rpx;
  580. }
  581. }
  582. .coupon_list{
  583. display: block;
  584. overflow: hidden;
  585. margin: 10rpx auto;
  586. min-height: 600rpx;
  587. background: #FFFFFF;
  588. padding-bottom: 50rpx;
  589. .coupon_item{
  590. height: 200rpx;
  591. display: block;
  592. margin: 10rpx auto;
  593. border-bottom: 2rpx solid #DDDDDD;
  594. .box_left{
  595. float: left;
  596. width: 160rpx;
  597. height: 160rpx;
  598. font-size: 20rpx;
  599. text-align: center;
  600. margin-left: 35rpx;
  601. line-height: 60rpx;
  602. margin-top: 20rpx;
  603. background: pink;
  604. .rebate{
  605. width: 120rpx;
  606. height: 60rpx;
  607. margin: 0rpx auto;
  608. line-height: 60rpx;
  609. margin-top: 20rpx;
  610. overflow: hidden;
  611. white-space: nowrap;
  612. text-overflow: ellipsis;
  613. }
  614. }
  615. .box_right{
  616. float: left;
  617. width: 485rpx;
  618. margin-left: 35rpx;
  619. padding-top: 20rpx;
  620. .coupon_title{
  621. width: 485rpx;
  622. max-height: 80rpx;
  623. font-size: 30rpx;
  624. overflow: hidden;
  625. line-height: 40rpx;
  626. padding: 0rpx 0rpx;
  627. .coupon_name{
  628. float: left;
  629. height: 40rpx;
  630. width: 380rpx;
  631. }
  632. .coupon_status{
  633. width: 85rpx;
  634. float: right;
  635. color: #999999;
  636. font-size: 24rpx;
  637. }
  638. }
  639. .product_scope{
  640. width: 485rpx;
  641. height: 80rpx;
  642. color: #999999;
  643. font-size: 24rpx;
  644. overflow: hidden;
  645. line-height: 80rpx;
  646. .check_label{
  647. float: right;
  648. display: block;
  649. overflow: hidden;
  650. padding: 20rpx 20rpx;
  651. .isstd{
  652. line-height: 40rpx;
  653. }
  654. .checkbox{
  655. float: right;
  656. width: 40rpx;
  657. height: 40rpx;
  658. }
  659. }
  660. }
  661. .coupon_info{
  662. width: 485rpx;
  663. max-height: 80rpx;
  664. font-size: 30rpx;
  665. overflow: hidden;
  666. line-height: 40rpx;
  667. padding: 0rpx 0rpx;
  668. .coupon_exp{
  669. float: left;
  670. font-size: 20rpx;
  671. }
  672. }
  673. }
  674. }
  675. .coupon_item:last-child{
  676. border-bottom: none;
  677. }
  678. }
  679. .addr_list{
  680. width: 730rpx;
  681. display: block;
  682. overflow: hidden;
  683. margin: 0rpx auto;
  684. min-height: 500rpx;
  685. .addr_item{
  686. display: block;
  687. font-size: 24rpx;
  688. overflow: hidden;
  689. line-height: 40rpx;
  690. padding: 15rpx 10rpx;
  691. border-radius: 15rpx;
  692. border-bottom: 2rpx solid #dddddd;
  693. .radio_label{
  694. width: 40rpx;
  695. float: left;
  696. height: 50rpx;
  697. padding-top: 30rpx;
  698. margin-right: 20rpx;
  699. .radio_icon{
  700. float: left;
  701. width: 40rpx;
  702. height: 40rpx;
  703. }
  704. }
  705. .contact_user{
  706. float: left;
  707. width: 640rpx;
  708. display: block;
  709. height: 50rpx;
  710. font-size: 24rpx;
  711. line-height: 50rpx;
  712. .contact_name{
  713. font-size: 26rpx;
  714. font-weight: bold;
  715. margin-right: 16rpx;
  716. }
  717. .contact_default{
  718. color: #F59A23;
  719. font-size: 20rpx;
  720. margin-left: 16rpx;
  721. border: 1rpx solid #F59A23;
  722. }
  723. }
  724. .contact_addr{
  725. float: left;
  726. width: 640rpx;
  727. display: block;
  728. font-size: 24rpx;
  729. line-height: 30rpx;
  730. padding: 10rpx 5rpx;
  731. }
  732. }
  733. }
  734. .create_box{
  735. height: 140rpx;
  736. display: block;
  737. .create_addr{
  738. width: 700rpx;
  739. height: 80rpx;
  740. display: block;
  741. color: #FFFFFF;
  742. font-size: 30rpx;
  743. overflow: hidden;
  744. line-height: 80rpx;
  745. padding: 0rpx 0rpx;
  746. text-align: center;
  747. margin: 0rpx auto;
  748. margin-top: 20rpx;
  749. border-radius: 40rpx;
  750. background-color: #E03519;
  751. }
  752. }
  753. }
  754. </style>