fillorder.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  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 v-if="orderMessage.cartTypeEnum != 'VIRTUAL'" :offset="0" :span="9" @click="shippingFlag = true">配送方式</u-col>
  113. <u-col v-if="orderMessage.cartTypeEnum != 'VIRTUAL'" :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 v-if="orderMessage.cartTypeEnum != 'VIRTUAL'" :span="7">运费</u-col>
  141. <u-col v-if="orderMessage.cartTypeEnum != 'VIRTUAL'" :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="notSupportFreight" v-if="notSupportFreight.length !=0">
  170. <u-notice-bar style="width:100%" :volume-icon="false" mode="horizontal" :list="notSupportFreightGoodsList"></u-notice-bar>
  171. </div>
  172. <!-- 结账 -->
  173. <div class="box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
  174. <div class="tabbar-left">
  175. 合计:
  176. <span class="number">
  177. ¥
  178. <span>{{ orderMessage.priceDetailDTO.billPrice | unitPrice }}</span>
  179. </span>
  180. </div>
  181. <div class="navRiv" @click="createTradeFun()">
  182. <!-- #ifndef MP-WEIXIN -->
  183. <div class="tabbar-right">提交订单</div>
  184. <!-- #endif -->
  185. <!-- #ifdef MP-WEIXIN -->
  186. <div class="tabbar-right">微信支付</div>
  187. <!-- #endif -->
  188. </div>
  189. </div>
  190. </div>
  191. </template>
  192. <script>
  193. import * as API_Trade from "@/api/trade";
  194. import * as API_Address from "@/api/address";
  195. import * as API_Order from "@/api/order";
  196. import invoices from "@/pages/order/invoice/setInvoice";
  197. import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
  198. export default {
  199. onLoad: function (val) {
  200. this.routerVal = val;
  201. },
  202. components: {
  203. invoices,
  204. },
  205. watch: {},
  206. data() {
  207. return {
  208. invoiceFlag: false, //开票开关
  209. shippingText: "LOGISTICS",
  210. shippingFlag: false,
  211. shippingMethod: [
  212. {
  213. value: "LOGISTICS",
  214. label: "物流",
  215. },
  216. ],
  217. isAssemble: false, //是否拼团
  218. couponNums: "", //结算页面优惠券数量
  219. selectAddressId: "",
  220. routerVal: "",
  221. params: {},
  222. // 优惠劵
  223. couponList: "",
  224. // 已选地址
  225. address: "",
  226. // 发票信息
  227. receiptList: "",
  228. // 店铺信息
  229. orderMessage: "",
  230. data: "",
  231. // 存储备注
  232. remarkVal: [],
  233. detail: "", //返回的所有数据
  234. endWay: "", //最后一个参团人
  235. masterWay: "", //团长信息
  236. pintuanFlage: true, //是开团还是拼团
  237. notSupportFreight: [], //不支持运费
  238. notSupportFreightGoodsList: ["以下商品超出配送范围:"],
  239. };
  240. },
  241. filters: {
  242. /**
  243. * 发票收据类型
  244. */
  245. receiptType(type) {
  246. switch (type) {
  247. case "VATORDINARY":
  248. return "增值税普通发票";
  249. case "ELECTRO":
  250. return "电子普通发票";
  251. case "VATOSPECIAL":
  252. return "增值税专用发票";
  253. default:
  254. return "不开发票";
  255. }
  256. },
  257. },
  258. /**
  259. * 监听返回
  260. */
  261. onBackPress(e) {
  262. if (e.from == "backbutton") {
  263. let routes = getCurrentPages();
  264. let curRoute = routes[routes.length - 1].options;
  265. routes.forEach((item) => {
  266. if (
  267. item.route == "pages/tabbar/cart/cartList" ||
  268. item.route.indexOf("pages/product/goods") != -1
  269. ) {
  270. uni.redirectTo({
  271. url: item.route,
  272. });
  273. }
  274. });
  275. if (curRoute.addId) {
  276. uni.reLaunch({
  277. url: "/pages/tabbar/cart/cartList",
  278. });
  279. } else {
  280. uni.navigateBack();
  281. }
  282. return true; //阻止默认返回行为
  283. }
  284. },
  285. onShow() {
  286. uni.showLoading({
  287. mask: true,
  288. });
  289. this.getOrderList();
  290. uni.hideLoading();
  291. if (this.routerVal.way == "PINTUAN") {
  292. this.isAssemble = true;
  293. this.routerVal.parentOrder = JSON.parse(
  294. decodeURIComponent(this.routerVal.parentOrder)
  295. );
  296. this.pintuanWay();
  297. }
  298. },
  299. mounted() {},
  300. methods: {
  301. //发票回调 选择发票之后刷新购物车
  302. async callbackInvoice(val) {
  303. this.invoiceFlag = false;
  304. this.receiptList = val;
  305. if (val) {
  306. let submit = {
  307. way: this.routerVal.way,
  308. ...this.receiptList,
  309. };
  310. let receipt = await API_Order.getReceipt(submit);
  311. if (receipt.data.success) {
  312. this.shippingFlag = false;
  313. this.getOrderList();
  314. }
  315. }
  316. },
  317. // 跳转到店铺
  318. navigateToStore(val) {
  319. uni.navigateTo({
  320. url: "/pages/product/shopPage?id=" + val.storeId,
  321. });
  322. },
  323. // 点击跳转地址
  324. clickToAddress() {
  325. this.navigateTo(
  326. `/pages/mine/address/address?from=cart&way=${
  327. this.routerVal.way
  328. }&parentOrder=${encodeURIComponent(
  329. JSON.stringify(this.routerVal.parentOrder)
  330. )}`
  331. );
  332. },
  333. // 判断团长以及团员信息
  334. pintuanWay() {
  335. const { memberId } = this.routerVal.parentOrder;
  336. const userInfo = this.$options.filters.isLogin();
  337. if (memberId) {
  338. this.endWay = userInfo;
  339. this.masterWay = this.routerVal.parentOrder;
  340. this.pintuanFlage = false;
  341. } else {
  342. this.pintuanFlage = true;
  343. this.masterWay = userInfo;
  344. }
  345. },
  346. // 判断发票
  347. invoice() {
  348. this.invoiceFlag = true;
  349. },
  350. // 领取优惠券
  351. GET_Discount() {
  352. // 循环店铺id,商品id获取优惠券
  353. let store = [];
  354. let skus = [];
  355. this.orderMessage.cartList.forEach((item) => {
  356. item.skuList.forEach((sku) => {
  357. store.push(sku.storeId);
  358. skus.push(sku.goodsSku.id);
  359. });
  360. });
  361. store = Array.from(new Set(store));
  362. skus = Array.from(new Set(skus));
  363. uni.setStorage({
  364. key: "totalPrice",
  365. data: this.orderMessage.priceDetailDTO.goodsPrice,
  366. });
  367. this.navigateTo(
  368. `/pages/cart/coupon/index?way=${this.routerVal.way}&storeId=${store}&skuId=${skus}`
  369. );
  370. },
  371. /**
  372. * 跳转
  373. */
  374. navigateTo(url) {
  375. uni.navigateTo({
  376. url,
  377. });
  378. },
  379. /**
  380. * 提交订单准备支付
  381. */
  382. // 创建订单
  383. createTradeFun() {
  384. // 防抖
  385. this.$u.throttle(() => {
  386. if (!this.address.id) {
  387. uni.showToast({
  388. title: "请选择地址",
  389. duration: 2000,
  390. icon: "none",
  391. });
  392. return false;
  393. }
  394. // 创建订单
  395. let client;
  396. // #ifdef H5
  397. client = "H5";
  398. // #endif
  399. // #ifdef MP-WEIXIN
  400. client = "WECHAT_MP";
  401. // #endif
  402. // #ifdef APP-PLUS
  403. client = "APP";
  404. // #endif
  405. let submit = {
  406. client,
  407. way: this.routerVal.way,
  408. remark: this.remarkVal,
  409. parentOrderSn: "",
  410. };
  411. // 如果是拼团并且当前用户不是团长
  412. this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
  413. ? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
  414. : delete submit.parentOrderSn;
  415. /**
  416. * 创建订单
  417. */
  418. API_Trade.createTrade(submit).then((res) => {
  419. if (res.data.success) {
  420. uni.showToast({
  421. title: "创建订单成功!",
  422. duration: 2000,
  423. icon: "none",
  424. });
  425. // 如果当前价格为0跳转到订单列表
  426. if (this.orderMessage.priceDetailDTO.billPrice == 0) {
  427. uni.redirectTo({
  428. url: "/pages/order/myOrder?status=0",
  429. });
  430. } else {
  431. // #ifdef MP-WEIXIN
  432. // 微信小程序中点击创建订单直接开始支付
  433. this.pay(res.data.result.sn);
  434. // #endif
  435. // #ifndef MP-WEIXIN
  436. this.navigateTo(
  437. `/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}`
  438. );
  439. // #endif
  440. }
  441. } else {
  442. uni.showToast({
  443. title: res.data.message,
  444. duration: 2000,
  445. icon: "none",
  446. });
  447. }
  448. });
  449. }, 3000);
  450. },
  451. /**
  452. * 微信小程序中直接支付
  453. */
  454. async pay(sn) {
  455. new LiLiWXPay({
  456. sn: sn,
  457. price: this.orderMessage.priceDetailDTO.billPrice,
  458. }).pay();
  459. },
  460. /**
  461. * 获取用户地址
  462. */
  463. getUserAddress() {
  464. // 如果没有商品选择地址的话 则选择 默认地址
  465. API_Address.getAddressDefault().then((res) => {
  466. if (res.data.result) {
  467. res.data.result.consigneeAddressPath =
  468. res.data.result.consigneeAddressPath.split(",");
  469. this.address = res.data.result;
  470. }
  471. });
  472. },
  473. // 获取结算参数
  474. getOrderList() {
  475. // 获取购物车可用优惠券
  476. this.getCartsCouponNums();
  477. // 获取结算参数
  478. API_Trade.getCheckoutParams(this.routerVal.way).then((res) => {
  479. res.data.result.cartList.forEach((item, index) => {
  480. this.remarkVal[index] = {
  481. remark: item.remark,
  482. storeId: item.storeId,
  483. };
  484. });
  485. this.orderMessage = res.data.result;
  486. if (!res.data.result.memberAddress.id) {
  487. // 获取会员默认地址
  488. this.getUserAddress();
  489. } else {
  490. this.address = res.data.result.memberAddress;
  491. res.data.result.memberAddress.consigneeAddressPath =
  492. res.data.result.memberAddress.consigneeAddressPath.split(",");
  493. }
  494. if (
  495. res.data.result.notSupportFreight &&
  496. res.data.result.notSupportFreight.length != 0
  497. ) {
  498. this.notSupportFreight = res.data.result.notSupportFreight;
  499. res.data.result.notSupportFreight.forEach((item) => {
  500. this.notSupportFreightGoodsList[0] += item.goodsSku.goodsName;
  501. });
  502. }
  503. });
  504. },
  505. /**购物车可用优惠券 */
  506. getCartsCouponNums() {
  507. API_Trade.getCartCouponNum(this.routerVal.way).then((res) => {
  508. if (res.data.success) {
  509. this.couponNums = res.data.result;
  510. }
  511. });
  512. },
  513. //
  514. },
  515. };
  516. </script>
  517. <style scoped lang="scss">
  518. .main-color {
  519. font-weight: bold;
  520. }
  521. .uinput {
  522. /deep/ input {
  523. text-align: right;
  524. }
  525. }
  526. .promotionNotice {
  527. font-size: 24rpx;
  528. color: $aider-light-color;
  529. }
  530. .nums {
  531. color: $light-color;
  532. float: right;
  533. width: 15%;
  534. text-align: center;
  535. }
  536. .wait {
  537. font-size: 22rpx;
  538. font-family: PingFang SC, PingFang SC-Regular;
  539. font-weight: 400;
  540. color: #cccccc;
  541. text-align: center;
  542. }
  543. .line {
  544. margin-left: 14rpx;
  545. margin-right: 14rpx;
  546. margin-bottom: 50rpx;
  547. width: 143rpx;
  548. border-bottom: 2px dotted #999;
  549. }
  550. .tabbar-left {
  551. margin-left: 32rpx;
  552. }
  553. .btn-one,
  554. .wait {
  555. margin-top: 14rpx;
  556. }
  557. .btn-one {
  558. width: 100rpx;
  559. height: 40rpx;
  560. background: $light-color;
  561. border-radius: 20rpx;
  562. font-size: 22rpx;
  563. font-family: PingFang SC, PingFang SC-Regular;
  564. font-weight: 400;
  565. text-align: left;
  566. color: #ffffff;
  567. text-align: center;
  568. line-height: 40rpx;
  569. }
  570. .head-img {
  571. width: 81rpx;
  572. height: 81rpx;
  573. margin: 0 auto;
  574. }
  575. .group-title {
  576. text-align: center;
  577. font-size: 28rpx;
  578. font-family: PingFang SC, PingFang SC-Regular;
  579. font-weight: 400;
  580. color: $light-color;
  581. }
  582. .group-box {
  583. height: 242rpx;
  584. align-items: center;
  585. display: flex;
  586. justify-content: center;
  587. flex-direction: column;
  588. align-items: center;
  589. background: #fff;
  590. }
  591. .group {
  592. width: 100%;
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. }
  597. .tr {
  598. text-align: right;
  599. }
  600. .tl {
  601. text-align: left;
  602. }
  603. /deep/ .u-col-3 {
  604. text-align: right;
  605. }
  606. .bar {
  607. height: 4rpx;
  608. overflow: hidden;
  609. width: 100%;
  610. background: url("/pages/floor/imgs/line.png") no-repeat;
  611. }
  612. .tabC {
  613. > p {
  614. overflow: hidden;
  615. text-overflow: ellipsis;
  616. white-space: nowrap;
  617. }
  618. }
  619. .box2 {
  620. margin-top: 20rpx;
  621. }
  622. .notSupportFreight {
  623. position: fixed;
  624. bottom: calc(100rpx + env(safe-area-inset-bottom));
  625. // #ifdef H5
  626. bottom: 100rpx;
  627. // #endif
  628. display: flex;
  629. align-items: center;
  630. left: 0;
  631. background: #fdf6ec;
  632. height: 100rpx;
  633. width: 100%;
  634. transition: 0.35s;
  635. > .tips {
  636. margin: 0 32rpx;
  637. }
  638. }
  639. /deep/ .u-notice-bar-wrap {
  640. width: 100% !important;
  641. }
  642. .userClass {
  643. font-weight: bold;
  644. font-size: 32rpx;
  645. color: $u-content-color;
  646. > span {
  647. margin-left: 20rpx;
  648. }
  649. }
  650. .userAdress {
  651. margin: 20rpx 0;
  652. color: $u-tips-color;
  653. font-size: 26rpx;
  654. }
  655. .box6 {
  656. position: fixed;
  657. bottom: 0;
  658. left: 0;
  659. width: 100%;
  660. height: 100rpx;
  661. overflow: hidden;
  662. line-height: 100rpx;
  663. margin-bottom: 0px !important;
  664. background: #fff;
  665. color: #333;
  666. display: flex;
  667. justify-content: space-between;
  668. }
  669. .tabbar-right {
  670. margin-top: 10rpx;
  671. height: 80rpx;
  672. color: #fff;
  673. line-height: 80rpx;
  674. background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
  675. padding: 0 44rpx;
  676. text-align: center;
  677. border-radius: 400px;
  678. margin-right: 32rpx;
  679. }
  680. .sp_tag {
  681. display: inline;
  682. background: #f2f2f2;
  683. padding: 0 20rpx 0 10rpx;
  684. height: 20rpx;
  685. line-height: 20rpx;
  686. font-size: 24rpx;
  687. color: #262626;
  688. border-radius: 0.4em;
  689. }
  690. .sp_promotion {
  691. float: left;
  692. width: 75%;
  693. margin: 4rpx 0;
  694. }
  695. .sp_tag_plain {
  696. margin-left: 8rpx;
  697. padding: 0 6rpx 0 6rpx;
  698. background: #fff;
  699. border: 1px solid $main-color;
  700. font-size: 24rpx;
  701. color: $main-color;
  702. border-radius: 50px;
  703. }
  704. .sp_tag_plain:nth-of-type(1) {
  705. margin-left: 0;
  706. }
  707. .sp_name {
  708. float: left;
  709. width: 75%;
  710. font-size: 28rpx;
  711. overflow: hidden;
  712. text-overflow: ellipsis;
  713. white-space: nowrap;
  714. }
  715. .sp_type {
  716. color: $u-tips-color;
  717. padding: 8rpx 0;
  718. font-size: 24rpx;
  719. }
  720. .number {
  721. color: $main-color;
  722. font-size: 26rpx;
  723. margin-left: 10rpx;
  724. > span {
  725. font-size: 36rpx;
  726. }
  727. }
  728. .sp_number {
  729. color: $light-color;
  730. font-size: 28rpx;
  731. }
  732. .box1 {
  733. background: #f6f6f6 !important;
  734. min-height: 166rpx;
  735. // height: 200rpx;
  736. /deep/ .u-row {
  737. border: none;
  738. }
  739. margin-bottom: 0 !important;
  740. }
  741. .box {
  742. border-radius: 40rpx;
  743. overflow: hidden;
  744. background: #fff;
  745. margin-bottom: 20rpx;
  746. padding: 0 32rpx;
  747. }
  748. .wrapper {
  749. background: #f9f9f9;
  750. height: auto;
  751. padding-bottom: 200rpx;
  752. overflow: auto !important;
  753. }
  754. .ybname {
  755. margin-left: 20rpx;
  756. font-weight: 400;
  757. color: #333333;
  758. }
  759. /deep/ .u-col {
  760. padding: 36rpx 0 !important;
  761. }
  762. /deep/ .u-col-3,
  763. .tipsColor {
  764. color: $u-tips-color;
  765. }
  766. .tabL {
  767. text-align: left;
  768. overflow: hidden;
  769. /deep/ .u-image,
  770. .u-image__image {
  771. width: 132rpx !important;
  772. height: 132rpx !important;
  773. border-radius: 0.4em !important;
  774. }
  775. }
  776. </style>