order.vue 20 KB

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