create-order.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. <template>
  2. <view class="container order clearfix" :style="{paddingBottom :isIphoneX ? '170rpx' : '134rpx'}">
  3. <!-- 透明模态层 -->
  4. <modal-layer v-if='modallayer'></modal-layer>
  5. <!-- 地址选择 -->
  6. <choice-address ref="choiceAddress" v-if="isAddress" :addressData="addressData"></choice-address>
  7. <!-- 商品 -->
  8. <seller-goodsList ref='goods' v-if="isRequest" :goodsData="goodsData" @handleGoodList="handChangeInputGoodsList"></seller-goodsList>
  9. <!-- 返佣订单 -->
  10. <view class="Rebate" @click="RebateChang" v-if="goodsData.length==1 && secondflag && isDepositFlg">
  11. <text class="rebate-title">返佣订单</text>
  12. <text class="iconfont" :class="rebatecheck?'icon-yixuanze':'icon-weixuanze'" ></text>
  13. </view>
  14. <!-- 发票信息 -->
  15. <seller-invoice ref="invoice"
  16. v-if="isRequest && isDepositFlg"
  17. :invoiceDatas="invoiceData"
  18. @handleChoiceaInvoice="handleChoiceaInvoiceData">
  19. </seller-invoice>
  20. <!-- 优惠券选择弹窗 -->
  21. <sellerCoupon ref="coupon"
  22. v-if="isCouponShow"
  23. :couponList="couponList"
  24. @handleChoiceaCoupon="handleChoiceaCouponData">
  25. </sellerCoupon>
  26. <!-- 兑换优惠券弹窗 -->
  27. <sellerExchangeCoupon v-if="isExchangePopup"></sellerExchangeCoupon>
  28. <!-- 运费 -->
  29. <seller-freight ref="freight"
  30. v-if="isFreight && isDepositFlg"
  31. :freightDatas="freightData"
  32. @handleChoiceaFreight="handleChoiceaFreightData"
  33. @showFreightAlert="handFreightAlertShow">
  34. </seller-freight>
  35. <freight-alert v-if="isfreightTip" ref="csPhone"></freight-alert>
  36. <!-- 余额抵扣 -->
  37. <view class="invoice-balance" v-if="!rechargeGoods">
  38. <view class="balabce-t">
  39. <view class="balabce-t-le">余额抵扣</view>
  40. <view class="balabce-t-ri">
  41. <view class="money">
  42. <text>可用余额:</text>
  43. <text>¥{{ userMoney | NumFormat }}</text>
  44. </view>
  45. <view class="checkbox-box">
  46. <button class="checkbox iconfont"
  47. hover-class="btn-hover"
  48. v-if="userMoney!=0"
  49. @click.stop="checkedBalabce"
  50. :class="[ischecked ?'icon-gouxuanl':'icon-weigouxuan']"
  51. >
  52. </button>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="balabce-b" :class="{'balabce-b--hide':!ischecked}">
  57. <view class="balabce-b-text animation" :style="{'transform':ischecked?'translateY(0)':'translateY(-50%)','-webkit-transform':ischecked?'translateY(0)':'translateY(-50%)'}">
  58. <text>当前使用:¥{{deductMoney | NumFormat}},剩余:¥{{ surplusMoney | NumFormat }}</text>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 售后条例 -->
  63. <seller-regulations ref="regulations"
  64. v-if="isRequest && isDepositFlg&&seconDepositFlg"
  65. :regulaDatas="regulationsData"
  66. @handleData="claData">
  67. </seller-regulations>
  68. <regula-alert v-if="isregulaTip" ref="csPhone"></regula-alert>
  69. <!-- 底部 -->
  70. <view class="footer" :style="{paddingBottom :isIphoneX ? '68rpx' : '0rpx'}">
  71. <view class="footer-le">
  72. <view class="footer-count">
  73. <text>共{{allCount}}件商品</text>
  74. </view>
  75. <view class="footer-price">
  76. <view class="sum" :class="totalDiscountAmount == 0 ? 'none' : ''">
  77. 总价:<text class="price">¥{{payAllPrice | NumFormat}}</text>
  78. </view>
  79. <view class="sum-none" v-if="totalDiscountAmount > 0">
  80. <text class="money-reduced">共减<text>¥{{ totalDiscountAmount | NumFormat}}</text></text>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="footer-submit" @click.stop="orderSubmitMit">
  85. <view class="btn">提交订单</view>
  86. </view>
  87. </view>
  88. <!-- 优惠券 -->
  89. <view class="coupon-content-model" v-if="isCouponModel">
  90. <view class="coupon-alert-content">
  91. <view class="coupon">
  92. <view class="coupon-list">
  93. <view class="list-cell-tags">{{ ExchangeCouponData.couponType | TypeFormat }}</text></view>
  94. <view class="list-cell-le">
  95. <view class="coupon-maxMoney">
  96. <text class="small">¥</text>
  97. {{ ExchangeCouponData.couponAmount }}
  98. </view>
  99. <view class="coupon-minMoney">
  100. <text class="txt">满{{ ExchangeCouponData.touchPrice }}可用</text>
  101. </view>
  102. </view>
  103. <view class="list-cell-ri">
  104. <view class="list-cell-top">
  105. <text v-if="ExchangeCouponData.couponType == 0">
  106. {{ ExchangeCouponData.productType && ExchangeCouponData.productType == 1 ? '全商城商品通用' : '仅可购买指定商品' }}
  107. </text>
  108. <text v-if="ExchangeCouponData.couponType == 1">
  109. {{ ExchangeCouponData.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
  110. </text>
  111. <text v-if="ExchangeCouponData.couponType == 3">仅限购买店铺【{{ ExchangeCouponData.shopName }}】的商品</text>
  112. <text v-if="ExchangeCouponData.couponType == 4 || ExchangeCouponData.couponType == 2">全商城商品通用</text>
  113. </view>
  114. <view class="list-cell-time">有效期:{{ ExchangeCouponData.startDate }} - {{ ExchangeCouponData.endDate }}</view>
  115. </view>
  116. </view>
  117. <view class="coupon-btn" @click.stop="handleClickCancel">立即收下</view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </template>
  123. <script>
  124. import choiceAddress from '@/components/cm-module/creatOrder/sellerAddress'
  125. import sellerGoodsList from '@/components/cm-module/creatOrder/sellerGoodsList'
  126. import sellerInvoice from '@/components/cm-module/creatOrder/sellerInvoice'
  127. import sellerFreight from '@/components/cm-module/creatOrder/sellerFreight'
  128. import freightAlert from '@/components/cm-module/modelAlert/freightAlert.vue'
  129. import sellerCoupon from '@/components/cm-module/creatOrder/sellerCoupon'
  130. import sellerExchangeCoupon from '@/components/cm-module/creatOrder/sellerExchangeCoupon'
  131. import sellerRegulations from '@/components/cm-module/creatOrder/sellerRegulations.vue'
  132. import modalLayer from "@/components/modal-layer"
  133. export default {
  134. components:{
  135. choiceAddress,
  136. sellerGoodsList,
  137. sellerInvoice,
  138. sellerFreight,
  139. sellerCoupon,
  140. sellerExchangeCoupon,
  141. freightAlert,
  142. modalLayer,
  143. sellerRegulations
  144. },
  145. data() {
  146. return {
  147. modallayer:false,
  148. orderID:0,
  149. clubID:'',
  150. productIds:'', // 获取上一级页面商品信息
  151. productCount:'', // 获取上一级页面商品数量
  152. classifyIDS:'', // 获取上一级页面商品分类
  153. serviceProviderId:'', // 协销ID
  154. cartType:3, // 购买类型(1购物车提交,2直接购买提交,3协销下单)
  155. submitState:'', // 提交状态
  156. balanceDeductionFlag:2, // 勾选余额的状态(1使用,2不使用)
  157. allCount:1, // 订单提交总数量
  158. totalOriginalPrice:0, // 订单总原价(划线部分)
  159. reducedPrice:0, // 满减金额
  160. couponAmount:0, // 优惠券金额
  161. totalDiscountAmount:0, // 共减金额
  162. payAllPrice:0.00, // 订单提交总金额
  163. allPrice:0.00, // 订单总金额
  164. surplusMoney:0.00, // 显示勾选后的剩余抵扣
  165. userMoney:0.00, // 显示可使用余额
  166. deductMoney:0.00, // 显示已使用的余额
  167. addressID:'', // 地址ID
  168. townID:'', // 区ID
  169. isRequest:false, // 是否加载完成渲染子组件
  170. isFreight:false, // 是否加载完成渲染子组件
  171. isAddress:false, // 是否加载完成地址
  172. isExchangePopup:false, // 控制兑换优惠券弹窗
  173. isfreightTip:false, // 控制邮费弹窗
  174. ischecked:false, // 是否勾选余额
  175. addressData:{}, // 初始化地址信息
  176. goodsData:[], // 初始化商品信息
  177. couponList:[], // 初始化优惠券信息
  178. invoiceData:{type:0}, // 初始化发票信息
  179. freightData:{}, // 邮费数据
  180. orderInfo:[], // 提交的商品信息
  181. payInfo:{}, // 订单信息
  182. rechargeGoods:false,
  183. isDepositFlg:true,
  184. depositIds : [6060,6061,6062,6063,6064,6065,6066,6067,6068,6069],//定金&充值余额商品ID
  185. isIphoneX:this.$store.state.isIphoneX,
  186. regulationsData:[],
  187. clauseId:0,
  188. seconDepositFlg:true,
  189. rebateFlag:0,
  190. rebatecheck:false,
  191. productsList:[],
  192. isCouponShow:false, // 是否显示可选优惠券
  193. secondflag:true,
  194. isCouponModel:false, // 兑换优惠券成功提示
  195. ExchangeCouponData:{} // 兑换优惠券信息
  196. }
  197. },
  198. onLoad(option){//商品数据
  199. let data = JSON.parse(option.data);
  200. this.allPrice = data.data.allPrice;
  201. this.allCount = data.data.allCount;
  202. this.payAllPrice = this.allPrice;
  203. this.clubId = data.data.clubId
  204. this.productCount = data.data.productCount
  205. this.productIds = data.data.productID
  206. if(option.type =='prodcut'){
  207. this.getInitProdcutCrearOrder();
  208. }else{
  209. this.getInitCrearOrder();
  210. }
  211. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  212. this.clubUserId = resolve.userID
  213. })
  214. },
  215. filters:{
  216. NumFormat(value) {//处理金额
  217. return Number(value).toFixed(2);
  218. },
  219. },
  220. methods: {
  221. RebateChang(){
  222. this.rebatecheck = !this.rebatecheck;
  223. if(this.rebatecheck){
  224. this.rebateFlag=1;
  225. }else{
  226. this.rebateFlag=0;
  227. }
  228. console.log(this.rebateFlag)
  229. },
  230. getInitProdcutCrearOrder(option){//二手下单初始化查询
  231. this.$api.getStorage().then((resolve) =>{
  232. this.seconDepositFlg = false;
  233. this.serviceProviderId = resolve.serviceProviderId
  234. let params ={clubId:this.clubId,serviceProviderId:this.serviceProviderId,productCount:this.productCount,productId:this.productIds}
  235. this.SellerService.GetSettlementBySencondProduct(params).then(response =>{
  236. let resData = response.data
  237. this.isRequest = true
  238. this.goodsData = resData.shopList
  239. this.userMoney = resData.userMoney
  240. this.secondflag = false
  241. }).catch(error =>{
  242. this.$util.msg(error.msg,2000)
  243. })
  244. })
  245. },
  246. getInitCrearOrder(){//协销购物车跳转确认订单初始化信息
  247. this.$api.getStorage().then((resolve) =>{
  248. this.serviceProviderId = resolve.serviceProviderId
  249. this.SellerService.SellerSettlement(
  250. {
  251. clubId:this.clubId,
  252. serviceProviderId:this.serviceProviderId,
  253. count:this.productCount,
  254. productIds:this.productIds,
  255. }
  256. ).then(response =>{
  257. let data = response.data
  258. this.isRequest = true
  259. this.goodsData = data.shopList
  260. this.userMoney = data.userMoney
  261. this.reducedPrice = data.reducedPrice
  262. this.totalOriginalPrice = data.reducedPrice + data.totalAmount
  263. this.rechargeGoods = data.rechargeGoods
  264. this.couponList = data.couponList
  265. if(this.couponList.length>0){
  266. this.isCouponShow = true
  267. }
  268. this.allPrice = this.payAllPrice = data.totalAmount
  269. this.regulationsData = data.clauseList
  270. this.goodsData.forEach(item =>{
  271. this.productsList = item.productsList
  272. item.productsList.forEach(pros =>{
  273. if(this.depositIds.indexOf(pros.productID)>=0){
  274. this.isDepositFlg = false
  275. }
  276. })
  277. })
  278. }).catch(error =>{
  279. this.$util.msg(error.msg,2000)
  280. })
  281. })
  282. },
  283. getFreightData(){//获取邮费信息
  284. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  285. let params ={
  286. userId:resolve.userID,
  287. productIds:this.productIds,
  288. totalPrice:this.allPrice,
  289. townId:this.addressData.townID
  290. }
  291. this.OrderService.GetOrderPostage(params).then(response =>{
  292. this.isFreight = true
  293. this.freightData = response.data
  294. if(response.data.freePostFlag== 1){
  295. this.payAllPrice = this.allPrice+response.data.freight
  296. }else{
  297. this.payAllPrice = this.allPrice
  298. }
  299. })
  300. })
  301. },
  302. getAddressData(){//获取地址信息
  303. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  304. this.UserService.QueryAddressList({pageNum:1,pageSize:1,userID:resolve.userID}).then(response =>{
  305. this.isAddress = true
  306. this.addressData = {}
  307. if(response.data.results != ''){
  308. this.addressID = response.data.results[0].addressID;
  309. this.townID = response.data.results[0].townID;
  310. this.addressData = response.data.results[0];
  311. this.getFreightData()
  312. }else{
  313. this.addressData = this.addressData;
  314. }
  315. })
  316. })
  317. },
  318. handChangeInputGoodsList(data){//对应供应商的留言信息
  319. this.goodsData = data;
  320. },
  321. handleChoiceaInvoiceData(data){//获取发票信息
  322. this.invoiceData = data
  323. },
  324. handleChoiceaFreightData(data){//获取运费信息
  325. if(data.freePostFlag == '1'){
  326. this.freightData = data
  327. this.payAllPrice = this.allPrice+parseInt(data.freight)
  328. this.attributePallPrice()
  329. }else{
  330. this.freightData = data
  331. this.payAllPrice = this.allPrice
  332. this.attributePallPrice()
  333. }
  334. },
  335. claData(id){
  336. this.clauseId = id;
  337. },
  338. handleChoiceaCouponData(data){// 勾选使用优惠券
  339. console.log('优惠券信息',data)
  340. this.couponAmount = data.couponAmount
  341. this.totalDiscountAmount = this.reducedPrice + this.couponAmount;
  342. this.clubCouponId = data.clubCouponId
  343. this.attributePallPrice()
  344. },
  345. checkedBalabce(){//勾选使用余额
  346. if(this.userMoney > 0){
  347. this.ischecked = !this.ischecked
  348. if(this.ischecked){
  349. this.balanceDeductionFlag =1
  350. this.attributePallPrice()
  351. }else{
  352. this.balanceDeductionFlag = 2
  353. if(this.freightData.freePostFlag == 1 || this.freightData.freePostFlag == '1'){
  354. this.payAllPrice = this.allPrice+parseInt(this.freightData.freight)
  355. }else{
  356. this.payAllPrice = this.allPrice
  357. }
  358. }
  359. }else{
  360. return
  361. }
  362. },
  363. attributePallPrice(){//计算价格
  364. if(this.freightData.freePostFlag == 1 || this.freightData.freePostFlag == '1'){
  365. this.attributeHashfreight(this.freightData.freight)
  366. }else{
  367. this.attributeNofreight()
  368. }
  369. },
  370. attributeNofreight(){//计算没有邮费的支付价格
  371. if(this.ischecked){
  372. if(this.userMoney>this.payAllPrice){
  373. this.payAllPrice = 0.00
  374. this.deductMoney = this.allPrice //勾选后使用抵余额
  375. this.surplusMoney = this.userMoney - this.deductMoney //勾选后的剩余抵扣
  376. }else{
  377. this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount //勾选后的总价
  378. this.deductMoney = this.userMoney //勾选后使用抵余额
  379. this.surplusMoney = this.userMoney - this.deductMoney //勾选后的剩余抵扣
  380. }
  381. }else{
  382. this.payAllPrice = this.allPrice - this.couponAmount;
  383. this.deductMoney = 0.00;
  384. this.surplusMoney = this.userMoney;
  385. }
  386. },
  387. attributeHashfreight(freight){//计算需要邮费的支付价格
  388. this.payAllPrice = this.allPrice+parseInt(freight)//计算不包邮的价格 总价等于商品价格+邮费
  389. if(this.ischecked){
  390. if(this.userMoney>this.payAllPrice){ //余额大于支付金额
  391. this.payAllPrice =0.00
  392. this.deductMoney = this.allPrice+parseInt(freight) //勾选后使用抵余额
  393. this.surplusMoney = this.userMoney - this.deductMoney //勾选后的剩余抵扣
  394. }else{
  395. this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney - this.couponAmount //勾选后的总价
  396. this.deductMoney = this.userMoney //勾选后使用抵余额
  397. this.surplusMoney = this.userMoney - this.deductMoney //勾选后的剩余抵扣
  398. }
  399. }else{
  400. this.payAllPrice = this.allPrice+parseInt(freight) - this.couponAmount
  401. this.deductMoney = 0.00
  402. this.surplusMoney = this.userMoney
  403. }
  404. },
  405. orderSubmitMit(){//提交订单
  406. if(this.addressID == ''){
  407. this.$util.msg('请先添加收货地址~',2000)
  408. return
  409. }
  410. // 处理商品信息及留言
  411. this.orderInfo = this.goodsData.map(el => {
  412. let productInfo = [];
  413. el.productsList.forEach(item => {
  414. productInfo.push({
  415. productId:item.productID,
  416. productNum:item.productCount,
  417. productType:item.giftType ? Number(item.giftType) : 0,
  418. presentNum:0,
  419. })
  420. })
  421. return {shopId:el.shopID,note:el.note?el.note:'',productInfo:productInfo}
  422. })
  423. //订单信息
  424. this.payInfo = {
  425. orderShouldPayFee:this.payAllPrice.toFixed(2),//提交的总价
  426. balancePayFlag:this.balanceDeductionFlag,//余额抵扣的状态
  427. freight:parseInt(this.freightData.freight).toFixed(2),//邮费
  428. freePostFlag:parseInt(this.freightData.freePostFlag),//运费形式
  429. clauseId:this.clauseId,//售后条款
  430. rebateFlag:this.rebateFlag,//返佣
  431. }
  432. console.log(this.payInfo)
  433. let params = {
  434. clubCouponId:this.clubCouponId,
  435. orderSource:6, //提交来源
  436. clubUserId:this.clubUserId, //机构UserID
  437. cartType:this.cartType, //从购物车提交
  438. serviceProviderId:this.serviceProviderId,//帮下单协销ID
  439. addressId:this.addressID, //地址ID
  440. orderInfo:this.orderInfo, //商品信息
  441. payInfo:this.payInfo, //订单信息
  442. orderInvoice:this.invoiceData //发票信息
  443. }
  444. this.modalLayer = true;
  445. this.$util.modal('','请仔细确认订单是否为返佣订单后再提交订单','继续提交','再想一想',true,() =>{
  446. this.SellerService.SellerCreateOrderSubmit({'params':JSON.stringify(params)}).then(response =>{
  447. const data = response.data;
  448. if(data.code === '1'){
  449. this.$util.msg('支付成功',2000,true,'success')
  450. setTimeout(() =>{
  451. this.$api.redirectTo(`/pages/seller/order/order-details?type=cash&orderID=${data.orderID}&userId=${this.clubUserId}`)
  452. },2000)
  453. }else{
  454. this.$util.msg('订单提交成功',2000,true,'success')
  455. setTimeout(()=>{
  456. this.$api.redirectTo(`/pages/seller/order/order-details?type=cash&orderID=${data.orderID}&userId=${this.clubUserId}`)
  457. },2000)
  458. }
  459. }).catch(error =>{
  460. this.$util.msg(error.msg,2000);
  461. })
  462. })
  463. },
  464. handFreightAlertShow(){//显示邮费弹窗
  465. this.isfreightTip = true;
  466. },
  467. handleClickCancel(){// 关闭优惠券弹窗
  468. this.isCouponModel = false;
  469. this.getInitCrearOrder();
  470. },
  471. hideFreight(){//关闭邮费弹窗
  472. this.isfreightTip = false;
  473. },
  474. },
  475. onShow() {
  476. // this.addressID = ''
  477. let pages = getCurrentPages();
  478. let currPage = pages[pages.length-1];
  479. if(currPage.data.select =='select'){
  480. this.isAddress = true
  481. let SelectData = uni.getStorageSync('selectAddress');
  482. this.addressID = SelectData.addressID;
  483. this.addressData = SelectData
  484. this.getFreightData()
  485. }else{
  486. this.getAddressData()
  487. }
  488. }
  489. }
  490. </script>
  491. <style lang="scss">
  492. page {
  493. height: auto;
  494. background:#F7F7F7;
  495. }
  496. .btn-hover{
  497. background: #FFFFFF;
  498. }
  499. .animation{
  500. /* transition: transform 0.3s ease;*/
  501. transition-property: transform;
  502. transition-duration: 0.3s;
  503. transition-timing-function: ease;
  504. }
  505. .invoice-freight{
  506. width: 702rpx;
  507. padding: 0 24rpx;
  508. height: 86rpx;
  509. line-height: 86rpx;
  510. font-size: $font-size-28;
  511. color: $text-color;
  512. background: #FFFFFF;
  513. float: left;
  514. font-weight: bold;
  515. .freight-left{
  516. float: left;
  517. .icon-yunfeishuoming{
  518. height: 100%;
  519. padding: 0 15rpx;
  520. color: $color-system;
  521. font-weight: normal;
  522. }
  523. }
  524. .freight-right{
  525. float: right;
  526. color: #2A81FF;
  527. }
  528. }
  529. .invoice-balance{
  530. width: 702rpx;
  531. height: auto;
  532. padding:0 24rpx;
  533. background: #FFFFFF;
  534. float: left;
  535. margin-top: 24rpx;
  536. margin-bottom: 24rpx;
  537. .balabce-t{
  538. width: 100%;
  539. height: 86rpx;
  540. line-height: 86rpx;
  541. font-size: $font-size-28;
  542. color: $text-color;
  543. float: left;
  544. .balabce-t-le{
  545. float: left;
  546. font-weight: bold;
  547. }
  548. .balabce-t-ri{
  549. float: right;
  550. display: flex;
  551. align-items: center;
  552. .money{
  553. display: flex;
  554. float: left;
  555. }
  556. .checkbox-box{
  557. display: flex;
  558. width: 60rpx;
  559. float: left;
  560. height: 100%;
  561. font-size: $font-size-24;
  562. .checkbox{
  563. width: 40rpx;
  564. text-align: right;
  565. box-sizing: border-box;
  566. text-align: center;
  567. text-decoration: none;
  568. border-radius: 0;
  569. -webkit-tap-highlight-color: transparent;
  570. overflow: hidden;
  571. color: $color-system;
  572. padding: 5rpx;
  573. }
  574. }
  575. }
  576. }
  577. .balabce-b{
  578. width: 100%;
  579. float: left;
  580. overflow: hidden;
  581. .balabce-b-text{
  582. width: 100%;
  583. line-height: 58rpx;
  584. font-size: $font-size-24;
  585. color: #FF2A2A;
  586. text-align: right;
  587. float: right;
  588. }
  589. &.balabce-b--hide {
  590. padding: 0 0;
  591. height: 0px;
  592. line-height: 0px;
  593. }
  594. }
  595. }
  596. .footer{
  597. position: fixed;
  598. left: 0;
  599. bottom: 0;
  600. display: flex;
  601. align-items: center;
  602. width: 100%;
  603. height: 110rpx;
  604. line-height: 110rpx;
  605. justify-content: space-between;
  606. font-size: $font-size-28;
  607. background-color: #FFFFFF;
  608. z-index: 990;
  609. color: $text-color;
  610. .footer-le{
  611. width:570rpx;
  612. height:100%;
  613. float: left;
  614. }
  615. .footer-count{
  616. float: left;
  617. padding-left: 24rpx;
  618. width:190rpx;
  619. box-sizing: border-box;
  620. font-size: $font-size-26;
  621. }
  622. .footer-price{
  623. width:370rpx;
  624. float: right;
  625. text-align: right;
  626. color: $text-color;
  627. padding: 10rpx 20rpx 10rpx 0;
  628. box-sizing: border-box;
  629. .sum-none{
  630. width: 100%;
  631. height: 45rpx;
  632. line-height: 45rpx;
  633. color: $text-color;
  634. float: left;
  635. text-align: right;
  636. .money{
  637. font-size: $font-size-26;
  638. color: #999999;
  639. text-decoration: line-through;
  640. }
  641. .money-sign{
  642. font-size: $font-size-26;
  643. color: #999999;
  644. text-decoration: line-through;
  645. }
  646. .money-reduced{
  647. margin-left: 10rpx;
  648. font-size: $font-size-26;
  649. color:$color-system;
  650. }
  651. }
  652. .sum{
  653. width: 100%;
  654. height: 45rpx;
  655. line-height: 45rpx;
  656. float: left;
  657. &.none{
  658. height: 90rpx;
  659. line-height: 90rpx;
  660. }
  661. .price{
  662. font-size: $font-size-32;
  663. color: #FF2A2A;
  664. }
  665. }
  666. }
  667. .footer-submit{
  668. display:flex;
  669. align-items:center;
  670. justify-content: center;
  671. width: 180rpx;
  672. height: 100%;
  673. box-sizing: border-box;
  674. padding: 15rpx 5rpx;
  675. .btn{
  676. width: 100%;
  677. height: 100%;
  678. color: #FFFFFF;
  679. background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  680. font-size: $font-size-26;
  681. text-align: center;
  682. line-height: 80rpx;
  683. border-radius: 40rpx;
  684. }
  685. }
  686. }
  687. .Rebate{
  688. width: 702rpx;
  689. height: auto;
  690. padding: 0 24rpx;
  691. background: #FFFFFF;
  692. float: left;
  693. margin-bottom: 24rpx;
  694. margin-top: 24rpx;
  695. line-height: 86rpx;
  696. .rebate-title{
  697. float: left;
  698. font-weight: bold;
  699. color: #333333;
  700. font-size: $font-size-28;
  701. }
  702. .iconfont{
  703. float: right;
  704. color: #b2b2b2;
  705. font-size: 40rpx;
  706. &.icon-yixuanze{
  707. color: $color-system;
  708. }
  709. }
  710. }
  711. .coupon-content-model{
  712. width: 100%;
  713. height: 100%;
  714. background: rgba(0,0,0,.5);
  715. position: fixed;
  716. top: 0;
  717. left: 0;
  718. z-index: 8888;
  719. transition: all 0.4s;
  720. .coupon-alert-content{
  721. width: 600rpx;
  722. height: 612rpx;
  723. position: absolute;
  724. top: 0;
  725. left: 0;
  726. bottom: 0;
  727. right: 0;
  728. margin: auto;
  729. box-sizing: border-box;
  730. padding-top: 92rpx;
  731. .coupon{
  732. width: 600rpx;
  733. height: 522rpx;
  734. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbg@2x.png);
  735. background-size: cover;
  736. box-sizing: border-box;
  737. padding: 230rpx 40rpx 0 40rpx;
  738. .coupon-list{
  739. width: 100%;
  740. height: 147rpx;
  741. margin-bottom: 32rpx;
  742. box-sizing: border-box;
  743. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-bg@2x.png);
  744. background-size: cover;
  745. position: relative;
  746. .list-cell-tags{
  747. display: inline-block;
  748. padding: 0 10rpx;
  749. height: 32rpx;
  750. line-height: 32rpx;
  751. background-color: #f94b4b;
  752. color: #FFFFFF;
  753. font-size: 18rpx;
  754. border-radius: 16rpx 0 16rpx 0;
  755. text-align: center;
  756. position: absolute;
  757. top: 0;
  758. left: 0;
  759. }
  760. .list-cell-le{
  761. width: 154rpx;
  762. height: 100%;
  763. box-sizing: border-box;
  764. padding: 30rpx 0;
  765. float: left;
  766. .coupon-maxMoney{
  767. width: 100%;
  768. height: 54rpx;
  769. line-height: 54rpx;
  770. font-size: 42rpx;
  771. color: #f94b4b;
  772. text-align: center;
  773. margin-top: 10rpx;
  774. .small{
  775. font-size: $font-size-20;
  776. }
  777. }
  778. .coupon-minMoney{
  779. width: 100%;
  780. height: 28rpx;
  781. float: left;
  782. box-sizing: border-box;
  783. padding-left: 24rpx;
  784. .txt{
  785. display: block;
  786. height: 28rpx;
  787. line-height: 28rpx;
  788. font-size: 16rpx;
  789. color: #f94b4b;
  790. text-align: center;
  791. padding: 0 5rpx;
  792. background-color: #fff1eb;
  793. border-radius: 4rpx;
  794. float: left;
  795. }
  796. }
  797. }
  798. .list-cell-ri{
  799. width: 366rpx;
  800. height: 100%;
  801. box-sizing: border-box;
  802. padding:30rpx 20rpx;
  803. float: left;
  804. .list-cell-top{
  805. width: 100%;
  806. height: 64rpx;
  807. line-height: 64rpx;
  808. font-size: $font-size-26;
  809. color: #333333;
  810. float: left;
  811. }
  812. .list-cell-time{
  813. width: 100%;
  814. height: 28rpx;
  815. line-height: 28rpx;
  816. text-align: left;
  817. font-size: $font-size-20;
  818. color: #999999;
  819. }
  820. }
  821. }
  822. .coupon-btn{
  823. width: 100%;
  824. height: 78rpx;
  825. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbtnbg@2x.png);
  826. background-size: cover;
  827. line-height: 78rpx;
  828. text-align: center;
  829. color: #FFFFFF;
  830. font-size: $font-size-36;
  831. }
  832. }
  833. }
  834. }
  835. </style>