product.vue 23 KB

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