order.vue 21 KB

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