index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. <template>
  2. <view>
  3. <view class='shoppingCart copy-data'>
  4. <view class='nav acea-row row-between-wrapper'>
  5. <view>订单号:<text class='num'>{{ list.order_id }}</text></view>
  6. <view v-if="lets != 1" class='administrate acea-row row-center-wrapper' @click="switchs">切换</view>
  7. </view>
  8. <view class="content">
  9. <view class="list_top">共<span class="bluefont">{{ list.total_num }}</span>件<span class="garyfont">(已核销 {{ list.writeoff_count }} 件)</span>
  10. </view>
  11. <view class='list'>
  12. <view>
  13. <block v-for="(item,index) in list.cart_info" :key="index">
  14. <view v-if="item.is_writeoff == 1" class='item acea-row row-between-wrapper writeoff'>
  15. <div class="xuan q" type="checkbox" v-model="checkModel" :value="item.id">
  16. <view class="iconfont icon-duihao dui"></view>
  17. </div>
  18. <view class='picTxt acea-row row-between-wrapper'>
  19. <view class='pictrue'>
  20. <image :src="item.cart_info.productInfo.image" mode=""></image>
  21. </view>
  22. <view class='text'>
  23. <view class="title">
  24. <view class='line1 top' :class="item.attrStatus?'':'reColor'">
  25. {{ item.cart_info.productInfo.store_name }}
  26. </view>
  27. <view v-if="item.is_writeoff == 1" class="txt">已核销{{parseInt(lists.cart_info[index].cart_num-lists.cart_info[index].surplus_num)}}件</view>
  28. </view>
  29. <view class='infor line1'>
  30. 属性:{{ item.cart_info.productInfo.attrInfo.suk }}</view>
  31. <view class='money he'>
  32. <view>¥{{ item.cart_info.productInfo.price }}</view>
  33. <view v-if="item.is_writeoff == 1" class="txt">
  34. <view class='carnum acea-row row-center-wrapper'>
  35. <view class="reduce">-</view>
  36. <view class='num0'>0</view>
  37. <view class="plus">+</view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view v-else class='item acea-row row-between-wrapper'>
  45. <!-- <input type="checkbox" v-model="checkModel" :value="item.id" :value="(item.id).toString()" :checked="item.checked" color="#007AFF"/> -->
  46. <div class="xuan" :class="item.checked?'q':''" type="checkbox" v-model="checkModel" :value="item.id" @click="dan(item.cart_id,index)">
  47. <view :class="item.checked?'iconfont icon-duihao dui':''"></view>
  48. </div>
  49. <view class='picTxt acea-row row-between-wrapper'>
  50. <view class='pictrue'>
  51. <image :src="item.cart_info.productInfo.image" mode=""></image>
  52. </view>
  53. <view class='text'>
  54. <view class="title">
  55. <view class='line1 top' :class="item.attrStatus?'':'reColor'">
  56. {{ item.cart_info.productInfo.store_name }}
  57. </view>
  58. <view v-if="item.is_writeoff == 1" class="txt">已核销</view>
  59. <view v-if="item.is_writeoff == 0 && lists.cart_info[index].surplus_num == lists.cart_info[index].cart_num" class="txt bluecol">未核销</view>
  60. <view v-if="item.is_writeoff == 0 && lists.cart_info[index].surplus_num != lists.cart_info[index].cart_num" class="txt orangcol">已核销{{parseInt(lists.cart_info[index].cart_num-lists.cart_info[index].surplus_num)}}件</view>
  61. </view>
  62. <!-- <view class='line1' :class="item.attrStatus?'':'reColor'">
  63. {{ item.cart_info.productInfo.store_name }}
  64. </view> -->
  65. <view class='infor line1'>
  66. 属性:{{ item.cart_info.productInfo.attrInfo.suk }}</view>
  67. <view class='money he'>
  68. <view>¥{{ item.cart_info.productInfo.price }}</view>
  69. <view v-if="item.is_writeoff == 1" class="txt">
  70. <view class='carnum acea-row row-center-wrapper'>
  71. <view class="reduce">-</view>
  72. <view class='num0'>0</view>
  73. <view class="plus">+</view>
  74. </view>
  75. </view>
  76. <view v-else class="txt">
  77. <view class='carnum acea-row row-center-wrapper'>
  78. <view v-if="item.surplus_num == 1" class="reduce bggary">-</view>
  79. <view v-else class="reduce" @click.stop='subCart(item,index)'>-</view>
  80. <view class='nums'>{{parseInt(item.surplus_num)}}</view>
  81. <view v-if="item.surplus_num == item.surplus_num+nums[index].num" class="plus bggary">+</view>
  82. <view v-else class="plus" @click.stop='addCart(item,index)'>+</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </block>
  90. </view>
  91. </view>
  92. </view>
  93. <view class='footer acea-row row-between-wrapper'>
  94. <view>
  95. <view style="display: flex;" @change="checkboxAllChange">
  96. <!-- <input type="checkbox" @click="checkboxAllChange" v-model="isAllSelect"> -->
  97. <div class="xuan" :class="checked?'q':''" @click="checkAll" v-model="checked">
  98. <view class="iconfont icon-duihao dui"></view>
  99. </div>
  100. <text class='checkAll'>全选</text>
  101. </view>
  102. </view>
  103. <view >
  104. <button class='money' type="primary" @click="verification">立即核销</button>
  105. </view>
  106. </view>
  107. </view>
  108. <view v-if="box">
  109. <view class="box">
  110. <view class="small_box">
  111. <image src="../../../static/decorate.png" mode=""></image>
  112. <view class="content">
  113. <view class="font">核销成功</view>
  114. <view v-if="list.total_num == parseInt(list.writeoff_count)+writeOffNum" class="small_font">当前订单已完成核销</view>
  115. <view v-else class="small_font">当前订单仍有未核销商品</view>
  116. </view>
  117. <view v-if="lets == 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum" class="btn" @click="ok(1)">好的</view>
  118. <view v-if="list.total_num != parseInt(list.writeoff_count)+writeOffNum" class="btn" @click="ok(0)">继续核销其他商品</view>
  119. <navigator v-if="lets > 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum" :url='"/pages/admin/store/scanning/index?code="+attr.code' open-type="redirect" hover-class='none' class="btn">核销其他订单</navigator>
  120. <navigator v-if="lets > 1 && list.total_num != parseInt(list.writeoff_count)+writeOffNum" :url='"/pages/admin/store/scanning/index?code="+attr.code' hover-class='none' open-type="redirect" class="btn_no">返回列表</navigator>
  121. <navigator v-if="(lets > 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum)||(lets==1&&list.total_num != parseInt(list.writeoff_count)+writeOffNum)" url="/pages/admin/store/index" hover-class='none' open-type="redirect" class="btn_no">返回首页</navigator>
  122. </view>
  123. </view>
  124. </view>
  125. <writeOffSwitching ref="writeOff" :attr="attr" :isShow='1' :iSplus='1' :iScart='1' @dataId = "onDataId" @myevent="onMyEvent" id='product-window'></writeOffSwitching>
  126. </view>
  127. </template>
  128. <script>
  129. import writeOffSwitching from '../../../components/writeOffSwitching/index.vue';
  130. import { orderCartInfo, orderWriteoff } from '@/api/admin'
  131. export default {
  132. components: {
  133. writeOffSwitching
  134. },
  135. data() {
  136. return {
  137. nums:[],
  138. newList:[],
  139. reduce_show:-1,
  140. plus_show:-1,
  141. ids: [],//选定需要核销的id
  142. lets: 0, //判断订单的数量
  143. listlet: 0, //判断订单商品的数量
  144. attr: { //切换组件传值
  145. cartAttr: false,
  146. id: [],
  147. code: '',
  148. type: 0
  149. },
  150. id: 0, //订单ID
  151. list: [],
  152. lists: [],
  153. lengt: 0,
  154. box: false,
  155. checked: false,
  156. checkModel: [],
  157. isAllSelect: false,
  158. data:[{id:'1',value:'aaa'},{id:'2',value:'bbb'},{id:'3',value:'ccc'}],
  159. writeOffNum:0 //每次核销商品数量
  160. };
  161. },
  162. watch:{
  163.   checkModel(){
  164.     if(this.lengt==this.checkModel.length){
  165.       this.checked=true;
  166.     }else{
  167.       this.checked=false;
  168.     }
  169.   }
  170. },
  171. onLoad: function(options) {
  172. this.id = options.id
  173. this.attr.code = options.code
  174. this.lets = options.let
  175. this.getList(this.id)
  176. },
  177. onShow: function() {
  178. },
  179. methods: {
  180. //处理每一条数据的最大值
  181. num(){
  182. for (let index = 0; index < this.lists.cart_info.length; index++) {
  183. this.nums.push({ num: 0 });
  184. }
  185. },
  186. subCart(item,index){
  187. if(item.surplus_num == 1) {
  188. this.reduce_show = index;
  189. }else{
  190. this.nums[index].num --
  191. item.surplus_num--
  192. }
  193. },
  194. addCart(item,index){
  195. if(item.surplus_num == item.surplus_num+this.nums[index].num) {
  196. this.plus_show = index;
  197. }
  198. else{
  199. item.surplus_num++
  200. this.nums[index].num ++
  201. }
  202. },
  203. checkAll(){
  204. var items = this.list.cart_info,
  205. data = [];
  206.     if(this.checked){
  207.       this.checkModel=[];
  208. for (var i = 0, lenI = this.list.cart_info.length; i < lenI; ++i) {
  209. const item = items[i]
  210. this.$set(item,'checked',false)
  211. }
  212.     }else{
  213. this.checkModel=[];
  214. for (var i = 0, lenI = this.list.cart_info.length; i < lenI; ++i) {
  215. const item = items[i]
  216. this.$set(item,'checked',true)
  217. if(item.is_writeoff == 1){
  218. this.checkModel =this.checkModel.filter(item => item != item.cart_id)
  219. }else{
  220. this.checkModel.push(item.cart_id)
  221. }
  222. }
  223. this.lengt = this.checkModel.length
  224.     }
  225.   },
  226. dan(id,index){
  227. if(this.checkModel.indexOf(id) == -1){
  228. this.$set(this.list.cart_info[index],'checked',true)
  229. this.checkModel.push(id)
  230. }
  231. else{
  232. this.$set(this.list.cart_info[index],'checked',false)
  233. this.checkModel =this.checkModel.filter(item => item != id)
  234. }
  235. },
  236. getList:function(id) {
  237. orderCartInfo(1,{oid:id}).then(res=>{
  238. this.list = res.data
  239. this.lists = JSON.parse(JSON.stringify(res.data))
  240. this.listlet = res.data.cart_info.length
  241. this.$set(this.attr, 'id',this.list.id);
  242. this.checkAll()
  243. this.num()
  244. })
  245. },
  246. onDataId: function(id) {
  247. this.nums.forEach((item)=>{
  248. item.num = 0
  249. })
  250. this.id = id;
  251. this.getList(id);
  252. },
  253. switchs(){
  254. this.attr.cartAttr = true;
  255. this.$refs.writeOff.getList(1)
  256. },
  257. onMyEvent(){
  258. this.attr.cartAttr = false;
  259. },
  260. verification(){
  261. let that = this
  262. let obj = {};
  263. // 将数组转化为对象
  264. for (let key in this.checkModel) {
  265. obj[key] = this.checkModel[key];
  266. };
  267. let newObj = Object.keys(obj).map(val => ({
  268. cart_id: obj[val],
  269. }));
  270. //处理列表内对应的核销数的数值
  271. for(var i =0 ;i<newObj.length;i++){
  272. for(var j = 0; j< this.list.cart_info.length;j++){
  273. if(newObj[i].cart_id == this.list.cart_info[j].cart_id){
  274. newObj[i].cart_num= this.list.cart_info[j].surplus_num;
  275. }
  276. }
  277. }
  278. this.newList = newObj
  279. if(that.checkModel.length == 0){
  280. that.$util.Tips({
  281. title: '请选择商品'
  282. });
  283. }else{
  284. uni.showLoading({
  285. title: '加载中',
  286. });
  287. let num = 0;
  288. newObj.forEach((item)=>{
  289. num = num+ parseInt(item.cart_num)
  290. })
  291. this.writeOffNum = num;
  292. setTimeout(function () {
  293. orderWriteoff(1,{oid:that.id,cart_ids:that.newList}).then(res=>{
  294. uni.hideLoading();
  295. that.box = true
  296. }).catch(err=>{
  297. that.$util.Tips({
  298. title: err
  299. });
  300. uni.hideLoading();
  301. })
  302. }, 1000);
  303. }
  304. },
  305. // 所有订单核销完成
  306. ok(type){
  307. this.box = false
  308. this.nums.forEach((item)=>{
  309. item.num = 0
  310. })
  311. this.getList(this.id)
  312. if(type){
  313. uni.redirectTo({
  314. url:'/pages/admin/store/index'
  315. })
  316. }
  317. // this.$router.go(0);
  318. }
  319. }
  320. }
  321. </script>
  322. <style scoped lang="scss">
  323. /deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked{
  324. border: 1px solid #007aff !important;
  325. background-color: #007aff !important;
  326. }
  327. .bggary{
  328. background-color: #dfdfdf;
  329. }
  330. .page-footer {
  331. position: fixed;
  332. bottom: 0;
  333. z-index: 30;
  334. display: flex;
  335. align-items: center;
  336. justify-content: space-around;
  337. width: 100%;
  338. height: calc(98upx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  339. height: calc(98upx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  340. box-sizing: border-box;
  341. border-top: solid 1upx #F3F3F3;
  342. background-color: #fff;
  343. box-shadow: 0px 0px 17upx 1upx rgba(206, 206, 206, 0.32);
  344. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  345. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  346. .foot-item {
  347. display: flex;
  348. width: max-content;
  349. align-items: center;
  350. justify-content: center;
  351. flex-direction: column;
  352. position: relative;
  353. .count-num {
  354. position: absolute;
  355. display: flex;
  356. justify-content: center;
  357. align-items: center;
  358. width: 40upx;
  359. height: 40upx;
  360. top: 0upx;
  361. right: -15upx;
  362. color: #fff;
  363. font-size: 20upx;
  364. background-color: #FD502F;
  365. border-radius: 50%;
  366. padding: 4upx;
  367. }
  368. }
  369. .foot-item image {
  370. height: 50upx;
  371. width: 50upx;
  372. text-align: center;
  373. margin: 0 auto;
  374. }
  375. .foot-item .txt {
  376. font-size: 24upx;
  377. &.active {}
  378. }
  379. }
  380. .shoppingCart {
  381. /* #ifdef H5 */
  382. // padding-bottom: 0;
  383. // padding-bottom: constant(safe-area-inset-bottom);
  384. // padding-bottom: env(safe-area-inset-bottom);
  385. /* #endif */
  386. }
  387. .shoppingCart .labelNav {
  388. height: 76upx;
  389. padding: 0 30upx;
  390. font-size: 22upx;
  391. color: #8c8c8c;
  392. position: fixed;
  393. left: 0;
  394. width: 100%;
  395. box-sizing: border-box;
  396. background-color: #f5f5f5;
  397. z-index: 5;
  398. top: 0;
  399. }
  400. .shoppingCart .labelNav .item .iconfont {
  401. font-size: 25upx;
  402. margin-right: 10upx;
  403. }
  404. .shoppingCart .nav {
  405. // width: 100%;
  406. background-color: #fff;
  407. margin: 20upx 28upx;
  408. padding: 30upx 24upx;
  409. font-size: 28upx;
  410. color: #282828;
  411. z-index: 5;
  412. border-radius: 12upx;
  413. }
  414. .shoppingCart .nav .num {
  415. margin-left: 12upx;
  416. }
  417. .shoppingCart .nav .administrate {
  418. font-size: 26upx;
  419. color: #282828;
  420. width: 110upx;
  421. height: 46upx;
  422. border-radius: 24upx;
  423. border: 1px solid #CCCCCC;
  424. }
  425. .shoppingCart .noCart {
  426. margin-top: 171upx;
  427. background-color: #fff;
  428. padding-top: 0.1upx;
  429. }
  430. .shoppingCart .noCart .pictrue {
  431. width: 414upx;
  432. height: 336upx;
  433. margin: 78upx auto 56upx auto;
  434. }
  435. .shoppingCart .noCart .pictrue image {
  436. width: 100%;
  437. height: 100%;
  438. }
  439. .shoppingCart .list {
  440. // margin: 20upx 28upx;
  441. }
  442. .shoppingCart .list .item {
  443. padding: 25upx 30upx;
  444. background-color: #fff;
  445. // margin-bottom: 15upx;
  446. }
  447. .shoppingCart .list .item .picTxt {
  448. // width: 627upx;
  449. position: relative;
  450. }
  451. .shoppingCart .list .item .picTxt .pictrue {
  452. width: 132upx;
  453. height: 132upx;
  454. }
  455. .shoppingCart .list .item .picTxt .pictrue image {
  456. width: 100%;
  457. height: 100%;
  458. border-radius: 6upx;
  459. }
  460. .shoppingCart .list .item .picTxt .text {
  461. width: 420upx;
  462. font-size: 28upx;
  463. color: #282828;
  464. margin-left: 20upx;
  465. }
  466. .shoppingCart .list .item .picTxt .text .reColor {
  467. color: #999;
  468. width: 80%;
  469. }
  470. .shoppingCart .list .item .picTxt .text .title {
  471. display: flex;
  472. justify-content: space-between;
  473. font-size: 20upx;
  474. font-weight: 600;
  475. .bluecol{
  476. color: #1890FF;
  477. }
  478. .orangcol{
  479. color: #FF7E00;
  480. }
  481. .graycol{
  482. color: #CCCCCC;
  483. }
  484. }
  485. .shoppingCart .list .item .picTxt .text .title .top {
  486. width: 70%;
  487. white-space: nowrap;
  488. overflow: hidden;
  489. text-overflow: ellipsis;
  490. white-space: nowrap;
  491. font-size: 28upx;
  492. font-weight: 400;
  493. }
  494. .shoppingCart .list .item .picTxt .text .reElection {
  495. margin-top: 20upx;
  496. }
  497. .shoppingCart .list .item .picTxt .text .reElection .title {
  498. font-size: 24upx;
  499. }
  500. .shoppingCart .list .item .picTxt .text .reElection .reBnt {
  501. width: 120upx;
  502. height: 46upx;
  503. border-radius: 23upx;
  504. font-size: 26upx;
  505. }
  506. .shoppingCart .list .item .picTxt .text .infor {
  507. font-size: 24upx;
  508. color: #868686;
  509. margin-top: 8upx;
  510. }
  511. .shoppingCart .list .item .picTxt .text .money {
  512. font-size: 30upx;
  513. color: #282828;
  514. margin-top: 20upx;
  515. font-weight: 600;
  516. font-family: PingFangSC-Semibold, PingFang SC;
  517. }
  518. .shoppingCart .list .item .picTxt .carnum {
  519. height: 47upx;
  520. position: absolute;
  521. bottom: 7upx;
  522. right: 0;
  523. }
  524. .shoppingCart .list .item .picTxt .carnum view {
  525. border: 1upx solid #a4a4a4;
  526. width: 66upx;
  527. text-align: center;
  528. height: 100%;
  529. line-height: 40upx;
  530. font-size: 28upx;
  531. color: #a4a4a4;
  532. }
  533. .shoppingCart .list .item .picTxt .carnum .reduce {
  534. border-right: 0;
  535. border-radius: 30upx 0 0 30upx;
  536. }
  537. .shoppingCart .list .item .picTxt .carnum .reduce.on {
  538. border-color: #e3e3e3;
  539. color: #dedede;
  540. }
  541. .shoppingCart .list .item .picTxt .carnum .plus {
  542. border-left: 0;
  543. border-radius: 0 30upx 30upx 0;
  544. }
  545. .shoppingCart .list .item .picTxt .carnum .num {
  546. color: #282828;
  547. }
  548. .shoppingCart .list .item .picTxt .carnum .num0 {
  549. color: #a4a4a4;
  550. }
  551. .shoppingCart .list .item .picTxt .carnum .nums {
  552. color: #282828;
  553. }
  554. .shoppingCart .invalidGoods {
  555. background-color: #fff;
  556. }
  557. .shoppingCart .invalidGoods .goodsNav {
  558. width: 100%;
  559. height: 66upx;
  560. padding: 0 30upx;
  561. box-sizing: border-box;
  562. font-size: 28upx;
  563. color: #282828;
  564. }
  565. .shoppingCart .invalidGoods .goodsNav .iconfont {
  566. color: #424242;
  567. font-size: 28upx;
  568. margin-right: 17upx;
  569. }
  570. .shoppingCart .invalidGoods .goodsNav .del {
  571. font-size: 26upx;
  572. color: #999;
  573. }
  574. .shoppingCart .invalidGoods .goodsNav .del .icon-shanchu1 {
  575. color: #999;
  576. font-size: 33upx;
  577. vertical-align: -2upx;
  578. margin-right: 8upx;
  579. }
  580. .shoppingCart .invalidGoods .goodsList .item {
  581. padding: 20upx 30upx;
  582. border-top: 1upx solid #f5f5f5;
  583. }
  584. .shoppingCart .invalidGoods .goodsList .item .invalid {
  585. font-size: 22upx;
  586. color: #fff;
  587. width: 70upx;
  588. height: 36upx;
  589. background-color: #aaa;
  590. border-radius: 3upx;
  591. text-align: center;
  592. line-height: 36upx;
  593. }
  594. .shoppingCart .invalidGoods .goodsList .item .pictrue {
  595. width: 140upx;
  596. height: 140upx;
  597. }
  598. .shoppingCart .invalidGoods .goodsList .item .pictrue image {
  599. width: 100%;
  600. height: 100%;
  601. border-radius: 6upx;
  602. }
  603. .shoppingCart .invalidGoods .goodsList .item .text {
  604. width: 433upx;
  605. font-size: 28upx;
  606. color: #999;
  607. height: 140upx;
  608. }
  609. .shoppingCart .invalidGoods .goodsList .item .text .name {
  610. width: 100%;
  611. }
  612. .shoppingCart .invalidGoods .goodsList .item .text .infor {
  613. font-size: 24upx;
  614. }
  615. .shoppingCart .invalidGoods .goodsList .item .text .end {
  616. font-size: 26upx;
  617. color: #bbb;
  618. }
  619. .shoppingCart .footer {
  620. // z-index: 999;
  621. width: 100%;
  622. height: 100upx;
  623. background-color: #fafafa;
  624. position: fixed;
  625. padding: 0 30upx;
  626. box-sizing: border-box;
  627. border-top: 1upx solid #eee;
  628. bottom: 0upx;
  629. }
  630. .shoppingCart .footer.on {
  631. // #ifndef H5
  632. bottom: 0upx;
  633. // #endif
  634. }
  635. .shoppingCart .footer .checkAll {
  636. font-size: 28upx;
  637. color: #282828;
  638. margin-left: 16upx;
  639. }
  640. // .shoppingCart .footer checkbox .wx-checkbox-input{background-color:#fafafa;}
  641. .shoppingCart .footer .money {
  642. font-size: 30upx;
  643. width: 214upx;
  644. height: 70upx;
  645. background: #1890FF;
  646. border-radius: 50upx;
  647. font-weight: 400;
  648. color: #FFFFFF;
  649. line-height: 70upx;
  650. }
  651. .shoppingCart .footer .placeOrder {
  652. color: #fff;
  653. font-size: 30upx;
  654. width: 226upx;
  655. height: 70upx;
  656. border-radius: 50upx;
  657. text-align: center;
  658. line-height: 70upx;
  659. margin-left: 22upx;
  660. }
  661. .shoppingCart .footer .button .bnt {
  662. font-size: 28upx;
  663. color: #999;
  664. border-radius: 50upx;
  665. border: 1px solid #999;
  666. width: 160upx;
  667. height: 60upx;
  668. text-align: center;
  669. line-height: 60upx;
  670. }
  671. .shoppingCart .footer .button form~form {
  672. margin-left: 17upx;
  673. }
  674. .uni-p-b-96 {
  675. height: 96upx;
  676. }
  677. </style>
  678. <style scoped lang="scss">
  679. .writeoff{
  680. opacity: 0.6;
  681. }
  682. .he{
  683. display: flex;
  684. justify-content: space-between;
  685. .txt{
  686. font-size: 22upx;
  687. }
  688. }
  689. .xuan{
  690. width: 40upx;
  691. height: 40upx;
  692. border: 2upx solid #CCCCCC;
  693. border-radius: 30upx;
  694. }
  695. .noxuan{
  696. cursor: not-allowed;
  697. }
  698. .q{background-color: #4276F6;line-height: 40upx;color: #FFF; font-size:24upx;text-align: center;}
  699. .dui{line-height: 40upx;color: #FFF; font-size:24upx;text-align: center;}
  700. .box{
  701. position: fixed;
  702. top: 0;
  703. bottom: 0;
  704. width: 100%;
  705. height: 100%;
  706. z-index: 10;
  707. background-color: #78797a;
  708. .small_box{
  709. padding-bottom: 46upx;
  710. width: 480upx;
  711. background: #FFFFFF;
  712. border-radius: 12upx;
  713. margin-top: 360upx;
  714. margin-left: 136upx;
  715. image{width: 100%;height: 228upx;}
  716. .content{
  717. // height: 200upx;
  718. text-align: center;
  719. .font{
  720. margin-top: 52upx;
  721. margin-bottom: 8upx;
  722. font-size: 36upx;
  723. font-weight: 600;
  724. color: #333333;
  725. }
  726. .small_font{
  727. font-size: 28upx;
  728. font-weight: 400;
  729. color: #666666;
  730. margin-bottom: 50upx;
  731. }
  732. }
  733. .btn{
  734. width: 398upx;
  735. margin: 0 auto;
  736. text-align: center;
  737. height: 80upx;
  738. line-height: 80upx;
  739. font-size: 30upx;
  740. color: #FFFFFF;
  741. background: linear-gradient(270deg, #4276F6 0%, #00ACF8 100%);
  742. border-radius: 20px;
  743. }
  744. .btn_no{
  745. color: #999999;
  746. margin-top: 28upx;
  747. text-align: center;
  748. font-size: 30upx;
  749. }
  750. }
  751. }
  752. .shoppingCart .content{
  753. margin: 20upx 28upx;
  754. border-radius: 12upx;
  755. margin-bottom: 200upx;
  756. .list_top{
  757. background-color: #FFFFFF;
  758. font-size: 28upx;
  759. color: #333333;
  760. height: 90upx;
  761. line-height: 90upx;
  762. padding-left: 24upx;
  763. border-bottom: 2upx solid #EEEEEE;
  764. .bluefont{color: #1890FF;display: inline-block;margin: 0upx 10upx;}
  765. .garyfont{color: #999999;}
  766. }
  767. }
  768. </style>