fillorder.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <div class="wrapper">
  3. <!-- 选择地址 -->
  4. <div class="box1 box">
  5. <u-row style="margin-top: 32rpx">
  6. <u-col style="padding: 0 !important" :offset="0" :span="11" @click.native="clickToAddress()">
  7. <div v-if="!address.id">请选择地址</div>
  8. <div v-else>
  9. <div class="userClass">
  10. {{ address.name }}
  11. <span>
  12. {{ address.mobile | secrecyMobile }}
  13. <u-tag v-if="address.isDefault" text="默认" style="margin-left: 24rpx" mode="plain" type="error" size="mini" />
  14. </span>
  15. </div>
  16. <div class="userAdress">
  17. <span v-if="address.consigneeAddressPath[0]">{{
  18. address.consigneeAddressPath[0]
  19. }}</span>
  20. <span v-if="address.consigneeAddressPath[1]">{{
  21. address.consigneeAddressPath[1]
  22. }}</span>
  23. <span v-if="address.consigneeAddressPath[2]">{{
  24. address.consigneeAddressPath[2]
  25. }}</span>
  26. <span v-if="address.consigneeAddressPath[3]">{{
  27. address.consigneeAddressPath[3]
  28. }}</span>
  29. <span>
  30. {{ address.detail }}
  31. </span>
  32. </div>
  33. </div>
  34. </u-col>
  35. <u-col :span="1" @click.native="
  36. navigateTo('/pages/mine/address/address?way=' + routerVal.way)
  37. " style="text-align: right">
  38. <u-icon name="arrow-right" style="color: #bababa"></u-icon>
  39. </u-col>
  40. </u-row>
  41. </div>
  42. <!-- 背景 -->
  43. <div class="bar"></div>
  44. <!-- 开团信息 -->
  45. <view class="group-box" v-if="isAssemble">
  46. <view class="group-title">
  47. <span v-if="pintuanFlage">你正在开团购买</span>
  48. <span v-else>为你加入仅差<span>{{routerVal.parentOrder.toBeGroupedNum }}</span>人的团购买</span>
  49. </view>
  50. <view class="group">
  51. <view>
  52. <u-image borderRadius="50%" shape="square" class="head-img" width="81rpx" height="81rpx" :src="masterWay.face || '/static/missing-face.png'"></u-image>
  53. <view class="btn-one">团长</view>
  54. </view>
  55. <view class="line"> </view>
  56. <view>
  57. <!-- 如果有最后一名,显示最后一名,没有最后一名,显示等待参团 -->
  58. <u-image class="head-img" v-if="endWay.face" :src="endWay.face" borderRadius="50%" shape="square" width="81rpx" height="81rpx">
  59. <view slot="loading"></view>
  60. </u-image>
  61. <u-image class="head-img" borderRadius="50%" shape="square" v-else width="81rpx" height="81rpx" :src="endWay.face || '/static/missing-face.png'"></u-image>
  62. <view class="wait">{{ endWay.nickname || "等待参团" }}</view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 店铺商品信息 -->
  67. <div class="box box2" v-for="(item, index) in orderMessage.cartList" :key="index">
  68. <u-row class="tab1" @click="navigateToStore(item)">
  69. <u-col :offset="0">
  70. <span class="ybname">{{ item.storeName }}</span>
  71. </u-col>
  72. </u-row>
  73. <div class="promotionNotice">{{ item.promotionNotice }}</div>
  74. <u-row class="goodsBorder" v-for="(val, i) in item.skuList" :key="i">
  75. <u-col class="tabL" :offset="0" @click="navigateTo('/pages/product/goods?id=' + val.goodsSku.id+'&goodsId='+val.goodsSku.goodsId)" :span="3">
  76. <u-image borderRadius="10rpx" :src="val.goodsSku.thumbnail" alt />
  77. </u-col>
  78. <u-col :span="9" @click="navigateTo('/pages/product/goods?id=' + val.goodsSku.id+'&goodsId='+val.goodsSku.goodsId)" class="tabC">
  79. <div style="overflow: hidden">
  80. <p class="sp_name">{{ val.goodsSku.goodsName }}</p>
  81. <p class="sp_promotion" v-if="val.promotion_tags">
  82. <view class="sp_tag sp_tag_plain" v-for="(promotion_item, promotion_index) in val.promotion_tags" :key="promotion_index">{{ promotion_item }}</view>
  83. </p>
  84. <span class="nums">x{{ val.num }}</span>
  85. </div>
  86. <p class="sp_number">¥{{ val.goodsSku.price | unitPrice }}</p>
  87. </u-col>
  88. </u-row>
  89. <u-row>
  90. <u-col :offset="0" :span="4" class="tl" style="text-align: left">备注信息</u-col>
  91. <u-col :span="8" textAlign="right">
  92. <u-input style="text-align:right;" class="uinput" v-model="remarkVal[index].remark" />
  93. </u-col>
  94. </u-row>
  95. </div>
  96. <!-- 订单信息 -->
  97. <div class="box box3">
  98. <u-row>
  99. <u-col :offset="0" :span="4">发票信息</u-col>
  100. <u-col :span="8" class="tipsColor" textAlign="right" @click.native="invoice()">
  101. <span v-if="receiptList">{{receiptList.receiptTitle}} - {{receiptList.receiptContent}}</span>
  102. <span v-else>不开发票</span>
  103. </u-col>
  104. </u-row>
  105. </div>
  106. <!-- 发票信息 -->
  107. <invoices :res="receiptList" @callbackInvoice="callbackInvoice" v-if="invoiceFlag" />
  108. <u-select v-model="shippingFlag" :list="shippingMethod" ></u-select>
  109. <!-- 优惠券 -->
  110. <div class="box box4">
  111. <u-row>
  112. <u-col :offset="0" :span="9" @click="shippingFlag = true">配送方式</u-col>
  113. <u-col :span="3" textAlign="right" @click="shippingFlag = true">
  114. {{ shippingMethod.find(e=>{ return e.value == shippingText; }).label }}
  115. </u-col>
  116. </u-row>
  117. <u-row>
  118. <u-col :offset="0" :span="9" @click="GET_Discount()">优惠券</u-col>
  119. <u-col :span="3" v-if="orderMessage.priceDetailDTO && orderMessage.priceDetailDTO.couponPrice" textAlign="right" @click="GET_Discount()">
  120. <span class="main-color">-{{orderMessage.priceDetailDTO.couponPrice | unitPrice}}</span>
  121. </u-col>
  122. <!-- orderMessage.priceDetailDTO.couponPrice | unitPrice -->
  123. <u-col :span="3" v-else textAlign="right" @click="GET_Discount()">
  124. {{ couponNums || "0" }}张可用
  125. <u-icon name="arrow-right"></u-icon>
  126. </u-col>
  127. </u-row>
  128. </div>
  129. <div class="box box5" v-if="orderMessage.priceDetailDTO">
  130. <div>
  131. <u-row>
  132. <u-col :span="9">商品合计</u-col>
  133. <u-col :span="3" textAlign="right">
  134. <span>¥{{ orderMessage.priceDetailDTO.goodsPrice | unitPrice }}</span>
  135. </u-col>
  136. </u-row>
  137. </div>
  138. <div>
  139. <u-row>
  140. <u-col :span="7">运费</u-col>
  141. <u-col :span="5" class="tr tipsColor" textAlign="right">
  142. <u-tag v-if="orderMessage.priceDetailDTO.freightPrice == 0" style="margin-right: 20rpx" color="#FF6262" text="包邮" type="warning" size="mini" mode="plain" shape="circle" />
  143. <span>¥{{
  144. orderMessage.priceDetailDTO.freightPrice | unitPrice
  145. }}</span>
  146. </u-col>
  147. </u-row>
  148. </div>
  149. <div>
  150. <u-row>
  151. <u-col :span="9">优惠金额</u-col>
  152. <u-col :span="3" textAlign="right">-¥{{ orderMessage.priceDetailDTO.couponPrice | unitPrice }}</u-col>
  153. </u-row>
  154. </div>
  155. <div>
  156. <u-row>
  157. <u-col :span="6">活动优惠</u-col>
  158. <u-col :span="6" class="tr tipsColor" textAlign="right">
  159. <u-tag style="margin-right: 20rpx" v-if="orderMessage.priceDetailDTO.discountPrice != 0" color="#FF6262" :text="`优惠 ${orderMessage.priceDetailDTO.discountPrice} 元`" type="warning"
  160. size="mini" mode="plain" shape="circle" />
  161. <span>{{
  162. orderMessage.priceDetailDTO.discountPrice | unitPrice
  163. }}</span>
  164. </u-col>
  165. </u-row>
  166. </div>
  167. </div>
  168. <!-- 结账 -->
  169. <div class="box box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
  170. <div class="navL">
  171. 合计:
  172. <span class="number">
  173. ¥
  174. <span>{{ orderMessage.priceDetailDTO.billPrice | unitPrice }}</span>
  175. </span>
  176. </div>
  177. <div class="navRiv" @click="createTradeFun()">
  178. <!-- #ifndef MP-WEIXIN -->
  179. <div class="navR">提交订单</div>
  180. <!-- #endif -->
  181. <!-- #ifdef MP-WEIXIN -->
  182. <div class="navR">微信支付</div>
  183. <!-- #endif -->
  184. </div>
  185. </div>
  186. </div>
  187. </template>
  188. <script>
  189. import * as API_Trade from "@/api/trade";
  190. import * as API_Address from "@/api/address";
  191. import * as API_Order from "@/api/order";
  192. import invoices from "@/pages/order/invoice/setInvoice";
  193. import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
  194. export default {
  195. onLoad: function (val) {
  196. this.routerVal = val;
  197. },
  198. components: {
  199. invoices,
  200. },
  201. watch: {},
  202. data() {
  203. return {
  204. invoiceFlag: false, //开票开关
  205. shippingText: "LOGISTICS",
  206. shippingFlag: false,
  207. shippingMethod: [
  208. {
  209. value: "LOGISTICS",
  210. label: "物流",
  211. },
  212. ],
  213. isAssemble: false, //是否拼团
  214. couponNums: "", //结算页面优惠券数量
  215. selectAddressId: "",
  216. routerVal: "",
  217. params: {},
  218. // 优惠劵
  219. couponList: "",
  220. // 已选地址
  221. address: "",
  222. // 发票信息
  223. receiptList: "",
  224. // 店铺信息
  225. orderMessage: "",
  226. data: "",
  227. // 存储备注
  228. remarkVal: [],
  229. detail: "", //返回的所有数据
  230. endWay: "", //最后一个参团人
  231. masterWay: "", //团长信息
  232. pintuanFlage: true, //是开团还是拼团
  233. };
  234. },
  235. filters: {
  236. /**
  237. * 发票收据类型
  238. */
  239. receiptType(type) {
  240. switch (type) {
  241. case "VATORDINARY":
  242. return "增值税普通发票";
  243. case "ELECTRO":
  244. return "电子普通发票";
  245. case "VATOSPECIAL":
  246. return "增值税专用发票";
  247. default:
  248. return "不开发票";
  249. }
  250. },
  251. },
  252. /**
  253. * 监听返回
  254. */
  255. onBackPress(e) {
  256. if (e.from == "backbutton") {
  257. let routes = getCurrentPages();
  258. let curRoute = routes[routes.length - 1].options;
  259. routes.forEach((item) => {
  260. if (
  261. item.route == "pages/tabbar/cart/cartList" ||
  262. item.route.indexOf("pages/product/goods") != -1
  263. ) {
  264. uni.redirectTo({
  265. url: item.route,
  266. });
  267. }
  268. });
  269. if (curRoute.addId) {
  270. uni.reLaunch({
  271. url: "/pages/tabbar/cart/cartList",
  272. });
  273. } else {
  274. uni.navigateBack();
  275. }
  276. return true; //阻止默认返回行为
  277. }
  278. },
  279. onShow() {
  280. uni.showLoading({
  281. mask: true,
  282. });
  283. this.getOrderList();
  284. uni.hideLoading();
  285. if (this.routerVal.way == "PINTUAN") {
  286. this.isAssemble = true;
  287. this.routerVal.parentOrder = JSON.parse(
  288. decodeURIComponent(this.routerVal.parentOrder)
  289. );
  290. this.pintuanWay();
  291. }
  292. },
  293. mounted() {},
  294. methods: {
  295. //发票回调 选择发票之后刷新购物车
  296. async callbackInvoice(val) {
  297. this.invoiceFlag = false;
  298. this.receiptList = val;
  299. if (val) {
  300. let submit = {
  301. way: this.routerVal.way,
  302. ...this.receiptList,
  303. };
  304. let receipt = await API_Order.getReceipt(submit);
  305. if (receipt.data.success) {
  306. this.shippingFlag = false;
  307. this.getOrderList();
  308. }
  309. }
  310. },
  311. // 跳转到店铺
  312. navigateToStore(val) {
  313. uni.navigateTo({
  314. url: "/pages/product/shopPage?id=" + val.storeId,
  315. });
  316. },
  317. // 点击跳转地址
  318. clickToAddress() {
  319. this.navigateTo(
  320. `/pages/mine/address/address?from=cart&way=${
  321. this.routerVal.way
  322. }&parentOrder=${encodeURIComponent(
  323. JSON.stringify(this.routerVal.parentOrder)
  324. )}`
  325. );
  326. },
  327. // 判断团长以及团员信息
  328. pintuanWay() {
  329. const { memberId } = this.routerVal.parentOrder;
  330. const userInfo = this.$options.filters.isLogin();
  331. if (memberId) {
  332. this.endWay = userInfo;
  333. this.masterWay = this.routerVal.parentOrder;
  334. this.pintuanFlage = false;
  335. } else {
  336. this.pintuanFlage = true;
  337. this.masterWay = userInfo;
  338. }
  339. },
  340. // 判断发票
  341. invoice() {
  342. this.invoiceFlag = true;
  343. },
  344. // 领取优惠券
  345. GET_Discount() {
  346. // 循环店铺id,商品id获取优惠券
  347. let store = [];
  348. let skus = [];
  349. this.orderMessage.cartList.forEach((item) => {
  350. item.skuList.forEach((sku) => {
  351. store.push(sku.storeId);
  352. skus.push(sku.goodsSku.id);
  353. });
  354. });
  355. store = Array.from(new Set(store));
  356. skus = Array.from(new Set(skus));
  357. uni.setStorage({
  358. key: "totalPrice",
  359. data: this.orderMessage.priceDetailDTO.goodsPrice,
  360. });
  361. this.navigateTo(
  362. `/pages/cart/coupon/index?way=${this.routerVal.way}&storeId=${store}&skuId=${skus}`
  363. );
  364. },
  365. /**
  366. * 跳转
  367. */
  368. navigateTo(url) {
  369. uni.navigateTo({
  370. url,
  371. });
  372. },
  373. /**
  374. * 提交订单准备支付
  375. */
  376. // 创建订单
  377. createTradeFun() {
  378. // 防抖
  379. this.$u.throttle(() => {
  380. if (!this.address.id) {
  381. uni.showToast({
  382. title: "请选择地址",
  383. duration: 2000,
  384. icon: "none",
  385. });
  386. return false;
  387. }
  388. // 创建订单
  389. let client;
  390. // #ifdef H5
  391. client = "H5";
  392. // #endif
  393. // #ifdef MP-WEIXIN
  394. client = "WECHAT_MP";
  395. // #endif
  396. // #ifdef APP-PLUS
  397. client = "APP";
  398. // #endif
  399. let submit = {
  400. client,
  401. way: this.routerVal.way,
  402. remark: this.remarkVal,
  403. parentOrderSn: "",
  404. };
  405. // 如果是拼团并且当前用户不是团长
  406. this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
  407. ? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
  408. : delete submit.parentOrderSn;
  409. /**
  410. * 创建订单
  411. */
  412. API_Trade.createTrade(submit).then((res) => {
  413. if (res.data.success) {
  414. uni.showToast({
  415. title: "创建订单成功!",
  416. duration: 2000,
  417. icon: "none",
  418. });
  419. // 如果当前价格为0跳转到订单列表
  420. if (this.orderMessage.priceDetailDTO.billPrice == 0) {
  421. uni.redirectTo({
  422. url: "/pages/order/myOrder?status=0",
  423. });
  424. } else {
  425. // #ifdef MP-WEIXIN
  426. // 微信小程序中点击创建订单直接开始支付
  427. this.pay(res.data.result.sn);
  428. // #endif
  429. // #ifndef MP-WEIXIN
  430. this.navigateTo(
  431. `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}`
  432. );
  433. // #endif
  434. }
  435. } else {
  436. uni.showToast({
  437. title: "创建订单有误!请稍后重试",
  438. duration: 2000,
  439. icon: "none",
  440. });
  441. }
  442. });
  443. }, 3000);
  444. },
  445. /**
  446. * 微信小程序中直接支付
  447. */
  448. async pay(sn) {
  449. new LiLiWXPay({
  450. sn: sn,
  451. price: this.orderMessage.priceDetailDTO.billPrice,
  452. }).pay();
  453. },
  454. /**
  455. * 获取用户地址
  456. */
  457. getUserAddress() {
  458. // 如果没有商品选择地址的话 则选择 默认地址
  459. API_Address.getAddressDefault().then((res) => {
  460. if (res.data.result) {
  461. res.data.result.consigneeAddressPath = res.data.result.consigneeAddressPath.split(
  462. ","
  463. );
  464. this.address = res.data.result;
  465. }
  466. });
  467. },
  468. // 获取结算参数
  469. getOrderList() {
  470. // 获取购物车可用优惠券
  471. this.getCartsCouponNums();
  472. // 获取结算参数
  473. API_Trade.getCheckoutParams(this.routerVal.way).then((res) => {
  474. res.data.result.cartList.forEach((item, index) => {
  475. this.remarkVal[index] = {
  476. remark: item.remark,
  477. storeId: item.storeId,
  478. };
  479. });
  480. this.orderMessage = res.data.result;
  481. if (!res.data.result.memberAddress.id) {
  482. // 获取会员默认地址
  483. this.getUserAddress();
  484. } else {
  485. this.address = res.data.result.memberAddress;
  486. res.data.result.memberAddress.consigneeAddressPath = res.data.result.memberAddress.consigneeAddressPath.split(
  487. ","
  488. );
  489. }
  490. });
  491. },
  492. /**购物车可用优惠券 */
  493. getCartsCouponNums() {
  494. API_Trade.getCartCouponNum(this.routerVal.way).then((res) => {
  495. if (res.data.success) {
  496. this.couponNums = res.data.result;
  497. }
  498. });
  499. },
  500. //
  501. },
  502. };
  503. </script>
  504. <style scoped lang="scss">
  505. .main-color {
  506. font-weight: bold;
  507. }
  508. .uinput {
  509. /deep/ input {
  510. text-align: right;
  511. }
  512. }
  513. .promotionNotice {
  514. font-size: 24rpx;
  515. color: $aider-light-color;
  516. }
  517. .nums {
  518. color: $light-color;
  519. float: right;
  520. width: 15%;
  521. text-align: center;
  522. }
  523. .wait {
  524. font-size: 22rpx;
  525. font-family: PingFang SC, PingFang SC-Regular;
  526. font-weight: 400;
  527. color: #cccccc;
  528. text-align: center;
  529. }
  530. .line {
  531. margin-left: 14rpx;
  532. margin-right: 14rpx;
  533. margin-bottom: 50rpx;
  534. width: 143rpx;
  535. border-bottom: 2px dotted #999;
  536. }
  537. .btn-one,
  538. .wait {
  539. margin-top: 14rpx;
  540. }
  541. .btn-one {
  542. width: 100rpx;
  543. height: 40rpx;
  544. background: $light-color;
  545. border-radius: 20rpx;
  546. font-size: 22rpx;
  547. font-family: PingFang SC, PingFang SC-Regular;
  548. font-weight: 400;
  549. text-align: left;
  550. color: #ffffff;
  551. text-align: center;
  552. line-height: 40rpx;
  553. }
  554. .head-img {
  555. width: 81rpx;
  556. height: 81rpx;
  557. margin: 0 auto;
  558. }
  559. .group-title {
  560. text-align: center;
  561. font-size: 28rpx;
  562. font-family: PingFang SC, PingFang SC-Regular;
  563. font-weight: 400;
  564. color: $light-color;
  565. }
  566. .group-box {
  567. height: 242rpx;
  568. align-items: center;
  569. display: flex;
  570. justify-content: center;
  571. flex-direction: column;
  572. align-items: center;
  573. background: #fff;
  574. }
  575. .group {
  576. width: 100%;
  577. display: flex;
  578. align-items: center;
  579. justify-content: center;
  580. }
  581. .tr {
  582. text-align: right;
  583. }
  584. .tl {
  585. text-align: left;
  586. }
  587. /deep/ .u-col-3 {
  588. text-align: right;
  589. }
  590. .bar {
  591. height: 4rpx;
  592. overflow: hidden;
  593. width: 100%;
  594. background: url("/pages/floor/imgs/line.png") no-repeat;
  595. }
  596. .tabC {
  597. > p {
  598. overflow: hidden;
  599. text-overflow: ellipsis;
  600. white-space: nowrap;
  601. }
  602. }
  603. .box2 {
  604. margin-top: 20rpx;
  605. }
  606. .userClass {
  607. font-weight: bold;
  608. font-size: 32rpx;
  609. color: $u-content-color;
  610. > span {
  611. margin-left: 20rpx;
  612. }
  613. }
  614. .userAdress {
  615. margin: 20rpx 0;
  616. color: $u-tips-color;
  617. font-size: 26rpx;
  618. }
  619. .box6 {
  620. position: fixed;
  621. bottom: 0;
  622. left: 0;
  623. margin: 0;
  624. height: 100rpx;
  625. overflow: hidden;
  626. line-height: 100rpx;
  627. margin-bottom: 0px !important;
  628. background: #fff;
  629. color: #333;
  630. width: 100%;
  631. > .navL {
  632. width: 65%;
  633. }
  634. > .navRiv {
  635. float: left;
  636. }
  637. }
  638. .navR {
  639. margin-top: 10rpx;
  640. height: 80rpx;
  641. color: #fff;
  642. line-height: 80rpx;
  643. background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
  644. padding: 0 44rpx;
  645. text-align: center;
  646. border-radius: 400px;
  647. }
  648. .sp_tag {
  649. display: inline;
  650. background: #f2f2f2;
  651. padding: 0 20rpx 0 10rpx;
  652. height: 20rpx;
  653. line-height: 20rpx;
  654. font-size: 24rpx;
  655. color: #262626;
  656. border-radius: 0.4em;
  657. }
  658. .sp_promotion {
  659. float: left;
  660. width: 75%;
  661. margin: 4rpx 0;
  662. }
  663. .sp_tag_plain {
  664. margin-left: 8rpx;
  665. padding: 0 6rpx 0 6rpx;
  666. background: #fff;
  667. border: 1px solid $main-color;
  668. font-size: 24rpx;
  669. color: $main-color;
  670. border-radius: 50px;
  671. }
  672. .sp_tag_plain:nth-of-type(1) {
  673. margin-left: 0;
  674. }
  675. .sp_name {
  676. float: left;
  677. width: 75%;
  678. font-size: 28rpx;
  679. overflow: hidden;
  680. text-overflow: ellipsis;
  681. white-space: nowrap;
  682. }
  683. .sp_type {
  684. color: $u-tips-color;
  685. padding: 8rpx 0;
  686. font-size: 24rpx;
  687. }
  688. .number {
  689. color: $main-color;
  690. font-size: 26rpx;
  691. margin-left: 10rpx;
  692. > span {
  693. font-size: 36rpx;
  694. }
  695. }
  696. .sp_number {
  697. color: $light-color;
  698. font-size: 28rpx;
  699. }
  700. .box1 {
  701. background: #f6f6f6 !important;
  702. min-height: 166rpx;
  703. // height: 200rpx;
  704. /deep/ .u-row {
  705. border: none;
  706. }
  707. margin-bottom: 0 !important;
  708. }
  709. .box {
  710. border-radius: 40rpx;
  711. overflow: hidden;
  712. background: #fff;
  713. margin-bottom: 20rpx;
  714. padding: 0 32rpx;
  715. }
  716. .navL,
  717. .navR {
  718. float: left;
  719. }
  720. .wrapper {
  721. background: #f9f9f9;
  722. height: auto;
  723. padding-bottom: 200rpx;
  724. overflow: auto !important;
  725. }
  726. .tab1 {
  727. }
  728. .ybname {
  729. margin-left: 20rpx;
  730. font-weight: 400;
  731. color: #333333;
  732. }
  733. /deep/ .u-col {
  734. padding: 36rpx 0 !important;
  735. }
  736. /deep/ .u-col-3,
  737. .tipsColor {
  738. color: $u-tips-color;
  739. }
  740. .tabL {
  741. text-align: left;
  742. overflow: hidden;
  743. /deep/ .u-image,
  744. .u-image__image {
  745. width: 132rpx !important;
  746. height: 132rpx !important;
  747. border-radius: 0.4em !important;
  748. }
  749. }
  750. </style>