product.vue 20 KB

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