index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  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' :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='infor line1'>
  63. 属性:{{ item.cart_info.productInfo.attrInfo.suk }}</view>
  64. <view class='money he'>
  65. <view>¥{{ item.cart_info.productInfo.price }}</view>
  66. <view v-if="item.is_writeoff == 1" class="txt">
  67. <view class='carnum acea-row row-center-wrapper'>
  68. <view class="reduce">-</view>
  69. <view class='num0'>0</view>
  70. <view class="plus">+</view>
  71. </view>
  72. </view>
  73. <view v-else class="txt">
  74. <view class='carnum acea-row row-center-wrapper'>
  75. <view v-if="item.surplus_num == 1" class="reduce bggary">-</view>
  76. <view v-else class="reduce" @click.stop='subCart(item,index)'>-</view>
  77. <view class='nums'>{{parseInt(item.surplus_num)}}</view>
  78. <view v-if="item.surplus_num == item.surplus_num+nums[index].num" class="plus bggary">+</view>
  79. <view v-else class="plus" @click.stop='addCart(item,index)'>+</view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. </view>
  88. </view>
  89. </view>
  90. <view class='footer acea-row row-between-wrapper'>
  91. <view>
  92. <view style="display: flex;" @change="checkboxAllChange">
  93. <!-- <input type="checkbox" @click="checkboxAllChange" v-model="isAllSelect"> -->
  94. <div class="xuan" :class="checked?'q':''" @click="checkAll" v-model="checked">
  95. <view class="iconfont icon-duihao dui"></view>
  96. </div>
  97. <!-- <div v-if="lengt == 0" class="xuan noxuan ">
  98. <view class="iconfont icon-jingyanzhi 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/distribution/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/distribution/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/distribution/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(2,{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(2)
  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(2,{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/distribution/index'
  315. })
  316. }
  317. }
  318. }
  319. }
  320. </script>
  321. <style scoped lang="scss">
  322. /deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked{
  323. border: 1px solid #007aff !important;
  324. background-color: #007aff !important;
  325. }
  326. .bggary{
  327. background-color: #dfdfdf;
  328. }
  329. .page-footer {
  330. position: fixed;
  331. bottom: 0;
  332. z-index: 30;
  333. display: flex;
  334. align-items: center;
  335. justify-content: space-around;
  336. width: 100%;
  337. height: calc(98upx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  338. height: calc(98upx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  339. box-sizing: border-box;
  340. border-top: solid 1upx #F3F3F3;
  341. background-color: #fff;
  342. box-shadow: 0px 0px 17upx 1upx rgba(206, 206, 206, 0.32);
  343. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  344. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  345. .foot-item {
  346. display: flex;
  347. width: max-content;
  348. align-items: center;
  349. justify-content: center;
  350. flex-direction: column;
  351. position: relative;
  352. .count-num {
  353. position: absolute;
  354. display: flex;
  355. justify-content: center;
  356. align-items: center;
  357. width: 40upx;
  358. height: 40upx;
  359. top: 0upx;
  360. right: -15upx;
  361. color: #fff;
  362. font-size: 20upx;
  363. background-color: #FD502F;
  364. border-radius: 50%;
  365. padding: 4upx;
  366. }
  367. }
  368. .foot-item image {
  369. height: 50upx;
  370. width: 50upx;
  371. text-align: center;
  372. margin: 0 auto;
  373. }
  374. .foot-item .txt {
  375. font-size: 24upx;
  376. &.active {}
  377. }
  378. }
  379. .shoppingCart {
  380. /* #ifdef H5 */
  381. // padding-bottom: 0;
  382. // padding-bottom: constant(safe-area-inset-bottom);
  383. // padding-bottom: env(safe-area-inset-bottom);
  384. /* #endif */
  385. }
  386. .shoppingCart .labelNav {
  387. height: 76upx;
  388. padding: 0 30upx;
  389. font-size: 22upx;
  390. color: #8c8c8c;
  391. position: fixed;
  392. left: 0;
  393. width: 100%;
  394. box-sizing: border-box;
  395. background-color: #f5f5f5;
  396. z-index: 5;
  397. top: 0;
  398. }
  399. .shoppingCart .labelNav .item .iconfont {
  400. font-size: 25upx;
  401. margin-right: 10upx;
  402. }
  403. .shoppingCart .nav {
  404. // width: 100%;
  405. background-color: #fff;
  406. margin: 20upx 28upx;
  407. padding: 30upx 24upx;
  408. font-size: 28upx;
  409. color: #282828;
  410. z-index: 5;
  411. border-radius: 12upx;
  412. }
  413. .shoppingCart .nav .num {
  414. margin-left: 12upx;
  415. }
  416. .shoppingCart .nav .administrate {
  417. font-size: 26upx;
  418. color: #282828;
  419. width: 110upx;
  420. height: 46upx;
  421. border-radius: 24upx;
  422. border: 1px solid #CCCCCC;
  423. }
  424. .shoppingCart .noCart {
  425. margin-top: 171upx;
  426. background-color: #fff;
  427. padding-top: 0.1upx;
  428. }
  429. .shoppingCart .noCart .pictrue {
  430. width: 414upx;
  431. height: 336upx;
  432. margin: 78upx auto 56upx auto;
  433. }
  434. .shoppingCart .noCart .pictrue image {
  435. width: 100%;
  436. height: 100%;
  437. }
  438. .shoppingCart .list {
  439. // margin: 20upx 28upx;
  440. }
  441. .shoppingCart .list .item {
  442. padding: 25upx 30upx;
  443. background-color: #fff;
  444. // margin-bottom: 15upx;
  445. }
  446. .shoppingCart .list .item .picTxt {
  447. // width: 627upx;
  448. position: relative;
  449. }
  450. .shoppingCart .list .item .picTxt .pictrue {
  451. width: 132upx;
  452. height: 132upx;
  453. }
  454. .shoppingCart .list .item .picTxt .pictrue image {
  455. width: 100%;
  456. height: 100%;
  457. border-radius: 6upx;
  458. }
  459. .shoppingCart .list .item .picTxt .text {
  460. width: 420upx;
  461. font-size: 28upx;
  462. color: #282828;
  463. margin-left: 20upx;
  464. }
  465. .shoppingCart .list .item .picTxt .text .reColor {
  466. color: #999;
  467. width: 60%;
  468. }
  469. .shoppingCart .list .item .picTxt .text .title {
  470. display: flex;
  471. justify-content: space-between;
  472. font-size: 20upx;
  473. font-weight: 600;
  474. .bluecol{
  475. color: #1890FF;
  476. }
  477. .orangcol{
  478. color: #FF7E00;
  479. }
  480. .graycol{
  481. color: #CCCCCC;
  482. }
  483. }
  484. .shoppingCart .list .item .picTxt .text .title .top {
  485. width: 70%;
  486. white-space: nowrap;
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. white-space: nowrap;
  490. font-size: 28upx;
  491. font-weight: 400;
  492. }
  493. .shoppingCart .list .item .picTxt .text .reElection {
  494. margin-top: 20upx;
  495. }
  496. .shoppingCart .list .item .picTxt .text .reElection .title {
  497. font-size: 24upx;
  498. }
  499. .shoppingCart .list .item .picTxt .text .reElection .reBnt {
  500. width: 120upx;
  501. height: 46upx;
  502. border-radius: 23upx;
  503. font-size: 26upx;
  504. }
  505. .shoppingCart .list .item .picTxt .text .infor {
  506. font-size: 24upx;
  507. color: #868686;
  508. margin-top: 8upx;
  509. }
  510. .shoppingCart .list .item .picTxt .text .money {
  511. font-size: 30upx;
  512. color: #282828;
  513. margin-top: 20upx;
  514. font-weight: 600;
  515. font-family: PingFangSC-Semibold, PingFang SC;
  516. }
  517. .shoppingCart .list .item .picTxt .carnum {
  518. height: 47upx;
  519. position: absolute;
  520. bottom: 7upx;
  521. right: 0;
  522. }
  523. .shoppingCart .list .item .picTxt .carnum view {
  524. border: 1upx solid #a4a4a4;
  525. width: 66upx;
  526. text-align: center;
  527. height: 100%;
  528. line-height: 40upx;
  529. font-size: 28upx;
  530. color: #a4a4a4;
  531. }
  532. .shoppingCart .list .item .picTxt .carnum .reduce {
  533. border-right: 0;
  534. border-radius: 30upx 0 0 30upx;
  535. }
  536. .shoppingCart .list .item .picTxt .carnum .reduce.on {
  537. border-color: #e3e3e3;
  538. color: #dedede;
  539. }
  540. .shoppingCart .list .item .picTxt .carnum .plus {
  541. border-left: 0;
  542. border-radius: 0 30upx 30upx 0;
  543. }
  544. .shoppingCart .list .item .picTxt .carnum .num {
  545. color: #282828;
  546. }
  547. .shoppingCart .list .item .picTxt .carnum .num0 {
  548. color: #a4a4a4;
  549. }
  550. .shoppingCart .list .item .picTxt .carnum .nums {
  551. color: #282828;
  552. }
  553. .shoppingCart .invalidGoods {
  554. background-color: #fff;
  555. }
  556. .shoppingCart .invalidGoods .goodsNav {
  557. width: 100%;
  558. height: 66upx;
  559. padding: 0 30upx;
  560. box-sizing: border-box;
  561. font-size: 28upx;
  562. color: #282828;
  563. }
  564. .shoppingCart .invalidGoods .goodsNav .iconfont {
  565. color: #424242;
  566. font-size: 28upx;
  567. margin-right: 17upx;
  568. }
  569. .shoppingCart .invalidGoods .goodsNav .del {
  570. font-size: 26upx;
  571. color: #999;
  572. }
  573. .shoppingCart .invalidGoods .goodsNav .del .icon-shanchu1 {
  574. color: #999;
  575. font-size: 33upx;
  576. vertical-align: -2upx;
  577. margin-right: 8upx;
  578. }
  579. .shoppingCart .invalidGoods .goodsList .item {
  580. padding: 20upx 30upx;
  581. border-top: 1upx solid #f5f5f5;
  582. }
  583. .shoppingCart .invalidGoods .goodsList .item .invalid {
  584. font-size: 22upx;
  585. color: #fff;
  586. width: 70upx;
  587. height: 36upx;
  588. background-color: #aaa;
  589. border-radius: 3upx;
  590. text-align: center;
  591. line-height: 36upx;
  592. }
  593. .shoppingCart .invalidGoods .goodsList .item .pictrue {
  594. width: 140upx;
  595. height: 140upx;
  596. }
  597. .shoppingCart .invalidGoods .goodsList .item .pictrue image {
  598. width: 100%;
  599. height: 100%;
  600. border-radius: 6upx;
  601. }
  602. .shoppingCart .invalidGoods .goodsList .item .text {
  603. width: 433upx;
  604. font-size: 28upx;
  605. color: #999;
  606. height: 140upx;
  607. }
  608. .shoppingCart .invalidGoods .goodsList .item .text .name {
  609. width: 100%;
  610. }
  611. .shoppingCart .invalidGoods .goodsList .item .text .infor {
  612. font-size: 24upx;
  613. }
  614. .shoppingCart .invalidGoods .goodsList .item .text .end {
  615. font-size: 26upx;
  616. color: #bbb;
  617. }
  618. .shoppingCart .footer {
  619. // z-index: 999;
  620. width: 100%;
  621. height: 100upx;
  622. background-color: #fafafa;
  623. position: fixed;
  624. padding: 0 30upx;
  625. box-sizing: border-box;
  626. border-top: 1upx solid #eee;
  627. bottom: 0upx;
  628. }
  629. .shoppingCart .footer.on {
  630. // #ifndef H5
  631. bottom: 0upx;
  632. // #endif
  633. }
  634. .shoppingCart .footer .checkAll {
  635. font-size: 28upx;
  636. color: #282828;
  637. margin-left: 16upx;
  638. }
  639. // .shoppingCart .footer checkbox .wx-checkbox-input{background-color:#fafafa;}
  640. .shoppingCart .footer .money {
  641. font-size: 30upx;
  642. width: 214upx;
  643. height: 70upx;
  644. background: #1890FF;
  645. border-radius: 50upx;
  646. font-weight: 400;
  647. color: #FFFFFF;
  648. line-height: 70upx;
  649. }
  650. .shoppingCart .footer .placeOrder {
  651. color: #fff;
  652. font-size: 30upx;
  653. width: 226upx;
  654. height: 70upx;
  655. border-radius: 50upx;
  656. text-align: center;
  657. line-height: 70upx;
  658. margin-left: 22upx;
  659. }
  660. .shoppingCart .footer .button .bnt {
  661. font-size: 28upx;
  662. color: #999;
  663. border-radius: 50upx;
  664. border: 1px solid #999;
  665. width: 160upx;
  666. height: 60upx;
  667. text-align: center;
  668. line-height: 60upx;
  669. }
  670. .shoppingCart .footer .button form~form {
  671. margin-left: 17upx;
  672. }
  673. .uni-p-b-96 {
  674. height: 96upx;
  675. }
  676. </style>
  677. <style scoped lang="scss">
  678. .writeoff{
  679. opacity: 0.6;
  680. }
  681. .he{
  682. display: flex;
  683. justify-content: space-between;
  684. .txt{
  685. font-size: 22upx;
  686. }
  687. }
  688. .xuan{
  689. width: 40upx;
  690. height: 40upx;
  691. border: 2upx solid #CCCCCC;
  692. border-radius: 30upx;
  693. }
  694. .noxuan{
  695. cursor: not-allowed;
  696. }
  697. .q{background-color: #4276F6;line-height: 40upx;color: #FFF; font-size:24upx;text-align: center;}
  698. .dui{line-height: 40upx;color: #FFF; font-size:24upx;text-align: center;}
  699. .box{
  700. position: fixed;
  701. top: 0;
  702. bottom: 0;
  703. width: 100%;
  704. height: 100%;
  705. z-index: 10;
  706. background-color: #78797a;
  707. .small_box{
  708. padding-bottom: 46upx;
  709. width: 480upx;
  710. background: #FFFFFF;
  711. border-radius: 12upx;
  712. margin-top: 360upx;
  713. margin-left: 136upx;
  714. image{width: 100%;height: 228upx;}
  715. .content{
  716. // height: 200upx;
  717. text-align: center;
  718. .font{
  719. margin-top: 52upx;
  720. margin-bottom: 8upx;
  721. font-size: 36upx;
  722. font-weight: 600;
  723. color: #333333;
  724. }
  725. .small_font{
  726. font-size: 28upx;
  727. font-weight: 400;
  728. color: #666666;
  729. margin-bottom: 50upx;
  730. }
  731. }
  732. .btn{
  733. width: 398upx;
  734. margin: 0 auto;
  735. text-align: center;
  736. height: 80upx;
  737. line-height: 80upx;
  738. font-size: 30upx;
  739. color: #FFFFFF;
  740. background: linear-gradient(270deg, #4276F6 0%, #00ACF8 100%);
  741. border-radius: 20px;
  742. }
  743. .btn_no{
  744. color: #999999;
  745. margin-top: 28upx;
  746. text-align: center;
  747. font-size: 30upx;
  748. }
  749. }
  750. }
  751. .shoppingCart .content{
  752. margin: 20upx 28upx;
  753. border-radius: 12upx;
  754. margin-bottom: 200upx;
  755. .list_top{
  756. background-color: #FFFFFF;
  757. font-size: 28upx;
  758. color: #333333;
  759. height: 90upx;
  760. line-height: 90upx;
  761. padding-left: 24upx;
  762. border-bottom: 2upx solid #EEEEEE;
  763. .bluefont{color: #1890FF;display: inline-block;margin: 0upx 10upx;}
  764. .garyfont{color: #999999;}
  765. }
  766. }
  767. </style>