product.vue 23 KB

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