product.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. <template>
  2. <page-meta :page-style="'overflow:'+(show?'hidden':'visible')" ></page-meta>
  3. <view>
  4. <view class="product_image_box">
  5. <image class="product_image" :src="productInfo.thumb" mode="heightFix"></image>
  6. </view>
  7. <view class="product_info">
  8. <view class="stock_price">
  9. <view class="product_price">
  10. <text>{{productInfo.score}} 积分</text>
  11. </view>
  12. <view class="product_stock">剩{{productInfo.stock}}个</view>
  13. </view>
  14. <view class="product_name">{{productInfo.name}}</view>
  15. <view class="product_spec">{{productInfo.spec}}</view>
  16. </view>
  17. <view class="product_description">
  18. <rich-text :nodes="productInfo.description"></rich-text>
  19. </view>
  20. <view class="order_car">
  21. <button class="show_order" data-eventsync="true" @click="showSpecPopup(1)" >立即兑换</button>
  22. </view>
  23. <view class="to_bottom"> --- 到底了 --- </view>
  24. <uni-popup ref="specPopup" :show="true" type="bottom" class="popup" background-color="#FFFFFF" @change="popupChange">
  25. <view class="order_info">
  26. <view class="custom_addr" @click="showAddrPopup()">
  27. <view class="contact_user">
  28. <text class="contact_none" v-if="!checkedAddr.id">请选择收货地址</text>
  29. <text class="contact_name" >{{checkedAddr.contact_name}}</text>
  30. <text class="contact_phone" >{{checkedAddr.contact_phone}}</text>
  31. <text class="contact_more"> &gt;</text>
  32. <view class="contact_shop text-ellipsis" style="width: 250rpx; text-align: end">
  33. <text v-if="checkedAddr.shop_type">({{ $CONSTANTS.SHOP_TYPES[checkedAddr.shop_type] }})&nbsp;</text>
  34. {{ checkedAddr.contact_shop }}
  35. </view>
  36. </view>
  37. <view class="contact_addr" style="display: flex;">
  38. {{checkedAddr.contact_province}} {{checkedAddr.contact_city}} {{checkedAddr.contact_area}} {{checkedAddr.contact_addr}}
  39. </view>
  40. </view>
  41. <view class="car_item" >
  42. <view class="box_left">
  43. <image class="car_image" :src="productInfo.thumb" mode=""></image>
  44. </view>
  45. <view class="box_right">
  46. <view class="car_name">{{productInfo.name}}</view>
  47. <view class="stock_price">
  48. <view class="product_price">
  49. <text>{{productInfo.score}} 积分</text>
  50. </view>
  51. <view class="product_quantity_box">
  52. <button class="product_quantity_sub" @click="changeQuantity(-1)" data-eventsync="true">
  53. <image class="sub_icon" src="../../static/icon/sub_icon.png" mode=""></image>
  54. </button>
  55. <input type="number" class="product_quantity" placeholder="数量" v-model="quantity" @blur="changeQuantity(0)" ></input>
  56. <button class="product_quantity_add" @click="changeQuantity(+1)" data-eventsync="true">
  57. <image class="add_icon" src="../../static/icon/add_icon.png" mode=""></image>
  58. </button>
  59. </view>
  60. </view>
  61. <view class="product_stock">剩{{productInfo.stock}}个</view>
  62. </view>
  63. </view>
  64. <!-- 购物车增加两个撑高度 -->
  65. <view class="to_select_coupon" ></view>
  66. <view class="to_select_coupon" ></view>
  67. <view class="order_price" >合计: {{priceTotal}} 积分</view>
  68. <view class="order_btn">
  69. <button class="to_order" @click="createOrder()" data-eventsync="true" >兑换</button>
  70. </view>
  71. </view>
  72. </uni-popup>
  73. <uni-popup ref="addrPopup" type="bottom" class="popup" background-color="#FFFFFF" >
  74. <view class="popup_title">收货地址 <navigator url="/pages/addr/index?notify=addr" class="to_addr_page">管理</navigator> </view>
  75. <view class="addr_list">
  76. <view class="addr_item" v-for="(item,index) in addrList" :key="index" @click="checkedAddrItem(item)">
  77. <view class="radio_label">
  78. <image class="radio_icon" :src="item.id == checkedAddr.id? '../../static/icon/radioed.png' : '../../static/icon/radio.png'" ></image>
  79. </view>
  80. <view class="contact_user">
  81. <text class="contact_name">{{item.contact_name}}</text>
  82. <text class="contact_phone">{{item.contact_phone}}</text>
  83. <text class="contact_default" v-if="item.is_default">默认</text>
  84. <view class="contact_shop text-ellipsis" style="width: 250rpx; text-align: end">
  85. <text v-if="item.shop_type">({{ $CONSTANTS.SHOP_TYPES[item.shop_type] }})&nbsp;</text>
  86. {{ item.contact_shop }}
  87. </view>
  88. </view>
  89. <view class="contact_addr" style="display: flex;">
  90. {{item.contact_province}} {{item.contact_city}} {{item.contact_area}} {{item.contact_addr}}
  91. </view>
  92. </view>
  93. </view>
  94. <view class="create_box">
  95. <navigator url="/pages/addr/index?notify=addr&type=create" class="create_addr" >新建收货地址</navigator>
  96. </view>
  97. </uni-popup>
  98. </view>
  99. </template>
  100. <script>
  101. export default {
  102. data() {
  103. return {
  104. show:false, // 使用Popup组件时,阻止禁止滚动穿透
  105. productInfo:{
  106. id:0,
  107. name:"",
  108. score:0,
  109. spec:"",
  110. stock:0,
  111. thumb:"",
  112. description:"",
  113. },
  114. requestParam:{
  115. id:0,
  116. },
  117. // 数量
  118. quantity:1,
  119. // 总价
  120. priceTotal:'0.00',
  121. // 规格选择按钮类型
  122. specBtnType: 1, // 1预约。2购物车
  123. // 地址列表
  124. addrList:[],
  125. // 已选地址
  126. checkedAddr:{
  127. id:0,
  128. contact_name:"",
  129. contact_phone:"",
  130. contact_province:"",
  131. contact_city:"",
  132. contact_area:"",
  133. contact_addr:"",
  134. is_default:0,
  135. },
  136. }
  137. },
  138. onLoad(param) {
  139. // 接受路由参数,产品ID
  140. this.requestParam.id = param.id;
  141. var that = this;
  142. // 监听地址变动
  143. uni.$on('addr_list_change',function(data){
  144. // 地址列表
  145. that.addrList = data.list;
  146. })
  147. // #ifdef MP-WEIXIN
  148. //分享按钮
  149. uni.showShareMenu({
  150. withShareTicket: true,
  151. menus: ['shareAppMessage', 'shareTimeline']
  152. })
  153. // #endif
  154. },
  155. onShareAppMessage(obj) {
  156. return {
  157. title: this.productInfo.name,
  158. path: '/pages/score/product?id=' + this.productInfo.id
  159. }
  160. },
  161. onShow() {
  162. // 如果存在产品ID的话
  163. if( this.requestParam.id > 0) {
  164. // 请求详情
  165. this.$http.request('api/score_product/get_detail',this.requestParam).then((re)=>{
  166. // 成功渲染数据
  167. if( re.code == 'success' ) {
  168. // 刷新数据
  169. this.productInfo = re.data;
  170. }
  171. });
  172. };
  173. },
  174. methods: {
  175. // 地址弹出层
  176. showAddrPopup(){
  177. // 显示下单弹出层
  178. this.$refs.addrPopup.open('bottom');
  179. },
  180. // 规格弹出层
  181. showSpecPopup(type){
  182. // 登录提示
  183. // if( !this.$checkAccess.alterLogin()) return ;
  184. // 显示下单弹出层
  185. this.$refs.specPopup.open('bottom');
  186. // 地址列表
  187. this.getAddrList();
  188. // 计算价格
  189. this.priceHandler();
  190. },
  191. // 数量调整
  192. changeQuantity(number){
  193. // 如果不是0.表示两侧按钮点击,0表示输入的修改
  194. if( number != 0 ) {
  195. // 计算个数
  196. this.quantity = this.quantity + number;
  197. }
  198. // 如果大于库存设置为库存
  199. if( this.quantity > this.productInfo.stock ) {
  200. this.quantity = this.productInfo.stock;
  201. uni.showToast({
  202. title:"库存不足",
  203. icon:"none"
  204. })
  205. }
  206. // 如果小于1.设置为1
  207. if( this.quantity < 1 ) {
  208. this.quantity = 1;
  209. uni.showToast({title:"数量不可以小于0",icon:"none"})
  210. }
  211. // 计算价格
  212. this.priceHandler();
  213. },
  214. // 创建订单
  215. createOrder(){
  216. // 不可预约
  217. if( !this.$checkAccess.alertCity() ) return;
  218. // 下单数量小于0
  219. if( this.quantity < 1 ) {
  220. uni.showToast({
  221. title:"至少兑换1个"
  222. })
  223. return;
  224. }
  225. // 如果大于库存设置为库存
  226. if( this.productInfo.stock < 1 ) {
  227. uni.showToast({
  228. title:"库存不足",
  229. icon:"none"
  230. })
  231. return;
  232. }
  233. // 地址未填
  234. if( !this.checkedAddr.id ) {
  235. uni.showToast({
  236. title:"请选择收货地址",
  237. icon:"none"
  238. })
  239. return;
  240. }
  241. // 请求接口
  242. this.$http.request('api/score_orders/create',{"product_id":this.productInfo.id,'buy_num':this.quantity,'addr_id':this.checkedAddr.id},'post').then((re)=>{
  243. // 判断结果
  244. if( re.code == 'success' ) {
  245. // 处理结果
  246. this.productInfo.stock = this.productInfo.stock - this.quantity;
  247. // 关闭弹窗
  248. this.$refs.specPopup.close();
  249. // 跳转到订单列表
  250. uni.navigateTo({url:"/pages/score/orders"});
  251. return ;
  252. }else{
  253. uni.showModal({title:re.msg,showCancel:false});
  254. }
  255. });
  256. },
  257. // 计算价格
  258. priceHandler(){
  259. // 小数点保留
  260. this.priceTotal = this.productInfo.score * this.quantity;
  261. },
  262. popupChange(e){
  263. // 禁止滚动穿透
  264. this.show = e.show
  265. },
  266. // 选择地址
  267. checkedAddrItem(item){
  268. this.checkedAddr = item;
  269. this.$refs.addrPopup.close();
  270. },
  271. getAddrList(){
  272. // 判断数据
  273. this.$http.request('api/custom_addr/get_list').then((callback)=>{
  274. // 获取成功
  275. if( callback.code == 'success' ){
  276. this.addrList = callback.data;
  277. // 如果有的话
  278. if( this.addrList.length ){
  279. // 获取默认的
  280. for (let i in this.addrList) {
  281. // 如果是默认的
  282. if( this.addrList[i].is_default ) this.checkedAddr = this.addrList[i];
  283. }
  284. // 如果没有默认的话
  285. if( !this.checkedAddr.id ){
  286. this.checkedAddr = this.addrList[this.addrList.length-1];
  287. }
  288. }
  289. }
  290. });
  291. }
  292. }
  293. }
  294. </script>
  295. <style lang="less">
  296. .product_image_box{
  297. display: block;
  298. overflow: hidden;
  299. background: #FFFFFF;
  300. margin: 10rpx auto;
  301. .product_image{
  302. display: block;
  303. margin: 0 auto;
  304. width: 750rpx;
  305. height: 750rpx;
  306. }
  307. }
  308. .product_info{
  309. display: block;
  310. background: #FFFFFF;
  311. margin: 10rpx 0rpx;
  312. padding: 10px 10px;
  313. .product_name{
  314. max-height: 80rpx;
  315. font-size: 30rpx;
  316. line-height: 40rpx;
  317. overflow: hidden;
  318. padding: 10rpx 0rpx;
  319. }
  320. .product_spec{
  321. color: #999999;
  322. font-size: 24rpx;
  323. line-height: 30rpx;
  324. }
  325. .stock_price{
  326. font-size: 20rpx;
  327. overflow: hidden;
  328. margin-top: 10rpx;
  329. line-height: 30rpx;
  330. .product_price{
  331. float: left;
  332. color: red;
  333. font-size: 38rpx;
  334. line-height: 60rpx;
  335. .product_market{
  336. font-size: 24rpx;
  337. color: #999999;
  338. line-height: 30rpx;
  339. margin-left: 10rpx;
  340. text-decoration: line-through;
  341. }
  342. }
  343. .product_stock{
  344. color: #333333;
  345. float: right;
  346. font-size: 20rpx;
  347. line-height: 60rpx;
  348. }
  349. }
  350. }
  351. // 描述简介
  352. .product_business{
  353. display: block;
  354. overflow: hidden;
  355. padding: 20rpx 20rpx;
  356. margin: 10rpx auto;
  357. background: #FFFFFF;
  358. .logopic{
  359. float: left;
  360. width: 80rpx;
  361. height: 80rpx;
  362. border-radius: 50%;
  363. margin-right: 20rpx;
  364. }
  365. .business_info{
  366. float: left;
  367. width: 600rpx;
  368. overflow: hidden;
  369. .business_name{
  370. font-size: 26rpx;
  371. line-height: 40rpx;
  372. }
  373. .business_desc{
  374. color: #999999;
  375. font-size: 24rpx;
  376. line-height: 40rpx;
  377. }
  378. }
  379. }
  380. .product_description{
  381. width: 700rpx;
  382. display: block;
  383. overflow: hidden;
  384. background: #FFFFFF;
  385. min-height: 600rpx;
  386. font-size: 26rpx;
  387. margin: 0rpx auto;
  388. line-height: 50rpx;
  389. padding: 10rpx 25rpx;
  390. [alt]{ //web_view图片
  391. max-width: 100%; // 避免图片超宽
  392. vertical-align: bottom; // 避免图片之间间隙
  393. }
  394. }
  395. .product_poster{
  396. display: block;
  397. overflow: hidden;
  398. padding: 10rpx 0rpx;
  399. margin: 10rpx auto;
  400. background: #FFFFFF;
  401. .product_image{
  402. width: 750rpx;
  403. display: block;
  404. }
  405. }
  406. .order_car{
  407. left: 0rpx;
  408. width: 750rpx;
  409. height: 140rpx;
  410. display: block;
  411. position: fixed;
  412. padding-top: 20rpx;
  413. background: #FFFFFF;
  414. bottom: var(--window-bottom);
  415. border-top: 2rpx solid #DDDDDD;
  416. .show_order{
  417. width: 700rpx;
  418. height: 80rpx;
  419. display: block;
  420. color: #FFFFFF;
  421. font-size: 30rpx;
  422. overflow: hidden;
  423. line-height: 80rpx;
  424. padding: 0rpx 0rpx;
  425. text-align: center;
  426. margin: 0rpx auto;
  427. border-radius: 40rpx;
  428. background-color: #E03519;
  429. }
  430. }
  431. .popup{
  432. overflow: hidden;
  433. .popup_title{
  434. display: block;
  435. overflow: hidden;
  436. margin: 0rpx auto;
  437. font-size: 36rpx;
  438. height: 120rpx;
  439. line-height: 120rpx;
  440. padding: 0rpx 20rpx;
  441. border-bottom: 10rpx solid #F8F8F8;
  442. .to_addr_page{
  443. float: right;
  444. color: #F59A23;
  445. display: block;
  446. height: 120rpx;
  447. line-height: 120rpx;
  448. font-size: 26rpx;
  449. padding: 0rpx 10rpx;
  450. }
  451. }
  452. .order_info{
  453. overflow: hidden;
  454. background: #FFFFFF;
  455. .custom_addr{
  456. width: 680rpx;
  457. display: block;
  458. font-size: 24rpx;
  459. overflow: hidden;
  460. margin: 0rpx auto;
  461. line-height: 40rpx;
  462. padding: 20rpx 35rpx;
  463. background-color: #FFFFFF;
  464. border-bottom: 2rpx solid #dddddd;
  465. .contact_user{
  466. display: block;
  467. font-size: 24rpx;
  468. line-height: 50rpx;
  469. .contact_none{
  470. color: #E03519;
  471. font-size: 26rpx;
  472. font-weight: bold;
  473. }
  474. .contact_name{
  475. font-size: 26rpx;
  476. font-weight: bold;
  477. margin-right: 16rpx;
  478. }
  479. .contact_more{
  480. float: right;
  481. font-size: 40rpx;
  482. font-weight: bold;
  483. }
  484. .contact_shop {
  485. float: right;
  486. font-size: 26rpx;
  487. margin-right: 16rpx;
  488. }
  489. }
  490. .contact_addr{
  491. width: 620rpx;
  492. display: block;
  493. font-size: 24rpx;
  494. line-height: 30rpx;
  495. padding: 10rpx 5rpx;
  496. }
  497. }
  498. .min600{
  499. min-height: 600rpx;
  500. }
  501. .car_item{
  502. height: 200rpx;
  503. display: block;
  504. background: #FFFFFF;
  505. margin: 20rpx auto;
  506. .box_left{
  507. float: left;
  508. width: 160rpx;
  509. height: 200rpx;
  510. margin-left: 35rpx;
  511. .car_image{
  512. width: 160rpx;
  513. height: 160rpx;
  514. margin: 20rpx 0rpx;
  515. border-radius: 5rpx;
  516. }
  517. }
  518. .box_right{
  519. float: left;
  520. width: 485rpx;
  521. margin-left: 35rpx;
  522. padding-top: 20rpx;
  523. .car_name{
  524. max-height: 80rpx;
  525. font-size: 30rpx;
  526. line-height: 40rpx;
  527. overflow: hidden;
  528. padding: 0rpx 0rpx;
  529. }
  530. .car_spec{
  531. color: #999999;
  532. font-size: 24rpx;
  533. line-height: 30rpx;
  534. padding: 0rpx 0rpx;
  535. }
  536. .stock_price{
  537. width: 485rpx;
  538. color: #dddddd;
  539. font-size: 20rpx;
  540. overflow: hidden;
  541. margin-top: 10rpx;
  542. line-height: 30rpx;
  543. .product_price{
  544. float: left;
  545. color: red;
  546. font-size: 30rpx;
  547. line-height: 60rpx;
  548. .car_market{
  549. font-size: 24rpx;
  550. color: #999999;
  551. line-height: 30rpx;
  552. vertical-align: middle;
  553. text-decoration: line-through;
  554. }
  555. }
  556. .product_quantity_box{
  557. float: right;
  558. color: #333333;
  559. overflow: hidden;
  560. font-size: 24rpx;
  561. margin-top: 10rpx;
  562. text-align: center;
  563. .product_quantity_sub{
  564. float: left;
  565. border: none;
  566. height: 36rpx;
  567. background: none;
  568. text-align: center;
  569. line-height: 36rpx;
  570. padding: 10rpx 10rpx;
  571. .sub_icon{
  572. width: 22rpx;
  573. height: 22rpx;
  574. display: block;
  575. }
  576. }
  577. .product_quantity_sub::after{
  578. border: none;
  579. background: none;
  580. }
  581. .product_quantity{
  582. float: left;
  583. width: 100rpx;
  584. height: 36rpx;
  585. font-size: 24rpx;
  586. min-height: 36rpx;
  587. line-height: 36rpx;
  588. padding: 0rpx 0rpx;
  589. border-radius: 8rpx;
  590. border: 2rpx solid #dddddd;
  591. }
  592. .product_quantity_add{
  593. float: left;
  594. border: none;
  595. height: 36rpx;
  596. background: none;
  597. text-align: center;
  598. padding: 10rpx 10rpx;
  599. line-height: 36rpx;
  600. .add_icon{
  601. width: 22rpx;
  602. height: 22rpx;
  603. display: block;
  604. }
  605. }
  606. .product_quantity_add::after{
  607. border: none;
  608. background: none;
  609. }
  610. }
  611. }
  612. .product_stock{
  613. font-size: 20rpx;
  614. line-height: 60rpx;
  615. }
  616. }
  617. }
  618. .to_select_coupon{
  619. font-size: 28rpx;
  620. padding: 30rpx 35rpx;
  621. margin-bottom: 20rpx;
  622. .coupon_deduction{
  623. color: red;
  624. float: right;
  625. }
  626. }
  627. .order_price{
  628. font-size: 28rpx;
  629. text-align: right;
  630. margin: 0rpx 35rpx;
  631. padding: 20rpx 0rpx;
  632. border-top: 2rpx solid #DDDDDD;
  633. .coupon_deduction{
  634. color: red;
  635. float: right;
  636. }
  637. }
  638. .order_btn{
  639. width: 700rpx;
  640. height: 100rpx;
  641. display: block;
  642. margin: 0 auto;
  643. margin-top: 70rpx;
  644. line-height: 80rpx;
  645. text-align: center;
  646. font-size: 30rpx;
  647. .to_car{
  648. color: #FFFFFF;
  649. float: right;
  650. width: 700rpx;
  651. height: 80rpx;
  652. display: block;
  653. overflow: hidden;
  654. font-size: 30rpx;
  655. line-height: 80rpx;
  656. padding: 0rpx 0rpx;
  657. border-radius: 40rpx;
  658. border: 0rpx solid transparent;
  659. background-color: #F59A23;
  660. }
  661. .to_car::after{
  662. border: 0rpx solid transparent;
  663. }
  664. .to_order{
  665. color: #FFFFFF;
  666. float: right;
  667. width: 700rpx;
  668. height: 80rpx;
  669. display: block;
  670. font-size: 30rpx;
  671. overflow: hidden;
  672. line-height: 80rpx;
  673. padding: 0rpx 0rpx;
  674. border-radius: 40rpx;
  675. background-color: #E03519;
  676. border: 0rpx solid transparent;
  677. }
  678. .to_order::after{
  679. border: 0rpx solid transparent;
  680. }
  681. }
  682. }
  683. .coupon_list{
  684. display: block;
  685. overflow: hidden;
  686. min-height: 600rpx;
  687. margin: 10rpx auto;
  688. background: #FFFFFF;
  689. padding-bottom: 50rpx;
  690. .coupon_item{
  691. height: 200rpx;
  692. display: block;
  693. margin: 10rpx auto;
  694. border-bottom: 2rpx solid #DDDDDD;
  695. .box_left{
  696. float: left;
  697. width: 160rpx;
  698. height: 160rpx;
  699. font-size: 20rpx;
  700. text-align: center;
  701. margin-left: 35rpx;
  702. line-height: 60rpx;
  703. margin-top: 20rpx;
  704. background: pink;
  705. .rebate{
  706. width: 120rpx;
  707. height: 60rpx;
  708. margin: 0rpx auto;
  709. line-height: 60rpx;
  710. margin-top: 20rpx;
  711. overflow: hidden;
  712. white-space: nowrap;
  713. text-overflow: ellipsis;
  714. }
  715. }
  716. .box_right{
  717. float: left;
  718. width: 485rpx;
  719. margin-left: 35rpx;
  720. padding-top: 20rpx;
  721. .coupon_title{
  722. width: 485rpx;
  723. max-height: 80rpx;
  724. font-size: 30rpx;
  725. overflow: hidden;
  726. line-height: 40rpx;
  727. padding: 0rpx 0rpx;
  728. .coupon_name{
  729. float: left;
  730. height: 40rpx;
  731. width: 380rpx;
  732. }
  733. .coupon_status{
  734. width: 85rpx;
  735. float: right;
  736. color: #999999;
  737. font-size: 24rpx;
  738. }
  739. }
  740. .product_scope{
  741. width: 485rpx;
  742. height: 80rpx;
  743. color: #999999;
  744. font-size: 24rpx;
  745. overflow: hidden;
  746. line-height: 80rpx;
  747. .check_label{
  748. float: right;
  749. display: block;
  750. overflow: hidden;
  751. padding: 20rpx 20rpx;
  752. .isstd{
  753. line-height: 40rpx;
  754. }
  755. .checkbox{
  756. float: right;
  757. width: 40rpx;
  758. height: 40rpx;
  759. }
  760. }
  761. }
  762. .coupon_info{
  763. width: 485rpx;
  764. max-height: 80rpx;
  765. font-size: 30rpx;
  766. overflow: hidden;
  767. line-height: 40rpx;
  768. padding: 0rpx 0rpx;
  769. .coupon_exp{
  770. float: left;
  771. font-size: 20rpx;
  772. }
  773. }
  774. }
  775. }
  776. .coupon_item:last-child{
  777. border-bottom: none;
  778. }
  779. }
  780. .addr_list{
  781. width: 730rpx;
  782. display: block;
  783. overflow: hidden;
  784. margin: 0rpx auto;
  785. min-height: 500rpx;
  786. .addr_item{
  787. display: block;
  788. font-size: 24rpx;
  789. overflow: hidden;
  790. line-height: 40rpx;
  791. padding: 15rpx 10rpx;
  792. border-radius: 15rpx;
  793. border-bottom: 2rpx solid #dddddd;
  794. .radio_label{
  795. width: 40rpx;
  796. float: left;
  797. height: 50rpx;
  798. padding-top: 30rpx;
  799. margin-right: 20rpx;
  800. .radio_icon{
  801. float: left;
  802. width: 40rpx;
  803. height: 40rpx;
  804. }
  805. }
  806. .contact_user{
  807. float: left;
  808. width: 640rpx;
  809. display: block;
  810. height: 50rpx;
  811. font-size: 24rpx;
  812. line-height: 50rpx;
  813. .contact_name{
  814. font-size: 26rpx;
  815. font-weight: bold;
  816. margin-right: 16rpx;
  817. }
  818. .contact_default{
  819. color: #F59A23;
  820. font-size: 20rpx;
  821. margin-left: 16rpx;
  822. border: 1rpx solid #F59A23;
  823. }
  824. .contact_shop {
  825. float: right;
  826. font-size: 26rpx;
  827. }
  828. }
  829. .contact_addr{
  830. float: left;
  831. width: 640rpx;
  832. display: block;
  833. font-size: 24rpx;
  834. line-height: 30rpx;
  835. padding: 10rpx 5rpx;
  836. }
  837. }
  838. }
  839. .create_box{
  840. height: 140rpx;
  841. display: block;
  842. .create_addr{
  843. width: 700rpx;
  844. height: 80rpx;
  845. display: block;
  846. color: #FFFFFF;
  847. font-size: 30rpx;
  848. overflow: hidden;
  849. line-height: 80rpx;
  850. padding: 0rpx 0rpx;
  851. text-align: center;
  852. margin: 0rpx auto;
  853. margin-top: 20rpx;
  854. border-radius: 40rpx;
  855. background-color: #E03519;
  856. }
  857. }
  858. }
  859. </style>