createOrder_bottom.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. <template>
  2. <view class="footer">
  3. <view class="price-content" >
  4. <text>合计</text>
  5. <text class="price-tip" v-if="msType*1!=4">¥</text>
  6. <text class="price">{{totalPrice}}</text>
  7. <text class="price-tip" v-if="msType*1==4">积分</text>
  8. </view>
  9. <text class="submit" @click="submit">提交订单</text>
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. props:{
  15. totalPrice:[String,Number],
  16. msType:[String,Number],
  17. ggId:[String,Number],
  18. gpId:[String,Number],
  19. },
  20. data(){
  21. return{
  22. order_num:"",
  23. isSubmit:false,
  24. isshow:true
  25. }
  26. },
  27. methods:{
  28. submit(){
  29. let _self = this
  30. _self.isshow=false
  31. uni.setStorageSync('pay_bottoms', 'false')
  32. //如果order_num 存在的时候 直接打开选择支付的按钮
  33. let parent = _self.utils.getParent.call(this);
  34. // 打开弹窗
  35. parent.$refs.payPopup.open();
  36. // 支付按钮
  37. parent.payConfirm(false);
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss">
  43. page {
  44. background: $page-color-base;
  45. padding-bottom: 100rpx;
  46. }
  47. .address-section {
  48. padding: 30rpx 0;
  49. background: #fff;
  50. position: relative;
  51. .order-content {
  52. display: flex;
  53. align-items: center;
  54. }
  55. .iconlocation {
  56. flex-shrink: 0;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. width: 90rpx;
  61. color: #888;
  62. font-size: 44rpx;
  63. }
  64. .cen {
  65. display: flex;
  66. flex-direction: column;
  67. flex: 1;
  68. font-size: 28rpx;
  69. color: $font-color-dark;
  70. }
  71. .name {
  72. font-size: 34rpx;
  73. margin-right: 24rpx;
  74. }
  75. .address {
  76. margin-top: 16rpx;
  77. margin-right: 20rpx;
  78. color: $font-color-light;
  79. }
  80. .icon-you {
  81. font-size: 32rpx;
  82. color: $font-color-light;
  83. margin-right: 30rpx;
  84. }
  85. .a-bg {
  86. position: absolute;
  87. left: 0;
  88. bottom: 0;
  89. display: block;
  90. width: 100%;
  91. height: 5rpx;
  92. }
  93. }
  94. .goods-section {
  95. margin-top: 16rpx;
  96. background: #fff;
  97. padding-bottom: 1px;
  98. .g-header {
  99. display: flex;
  100. align-items: center;
  101. height: 84rpx;
  102. padding: 0 30rpx;
  103. position: relative;
  104. }
  105. .logo {
  106. display: block;
  107. width: 50rpx;
  108. height: 50rpx;
  109. border-radius: 100px;
  110. }
  111. .name {
  112. font-size: 30rpx;
  113. color: $font-color-base;
  114. margin-left: 24rpx;
  115. }
  116. .g-item {
  117. display: flex;
  118. margin: 20rpx 30rpx;
  119. image {
  120. flex-shrink: 0;
  121. display: block;
  122. width: 140rpx;
  123. height: 140rpx;
  124. border-radius: 4rpx;
  125. }
  126. .right {
  127. flex: 1;
  128. padding-left: 24rpx;
  129. overflow: hidden;
  130. }
  131. .title {
  132. font-size: 30rpx;
  133. color: $font-color-dark;
  134. }
  135. .spec {
  136. font-size: 26rpx;
  137. color: $font-color-light;
  138. }
  139. .price-box {
  140. display: flex;
  141. align-items: center;
  142. font-size: 32rpx;
  143. color: $font-color-dark;
  144. padding-top: 10rpx;
  145. .price {
  146. margin-bottom: 4rpx;
  147. }
  148. .number{
  149. font-size: 26rpx;
  150. color: $font-color-base;
  151. margin-left: 20rpx;
  152. }
  153. }
  154. .step-box {
  155. position: relative;
  156. }
  157. }
  158. }
  159. .yt-list {
  160. margin-top: 16rpx;
  161. background: #fff;
  162. }
  163. .yt-list-cell {
  164. display: flex;
  165. align-items: center;
  166. padding: 10rpx 30rpx 10rpx 40rpx;
  167. line-height: 70rpx;
  168. position: relative;
  169. &.cell-hover {
  170. background: #fafafa;
  171. }
  172. &.b-b:after {
  173. left: 30rpx;
  174. }
  175. .cell-icon {
  176. height: 32rpx;
  177. width: 32rpx;
  178. font-size: 22rpx;
  179. color: #fff;
  180. text-align: center;
  181. line-height: 32rpx;
  182. background: #f85e52;
  183. border-radius: 4rpx;
  184. margin-right: 12rpx;
  185. &.hb {
  186. background: #ffaa0e;
  187. }
  188. &.lpk {
  189. background: #3ab54a;
  190. }
  191. }
  192. .cell-more {
  193. align-self: center;
  194. font-size: 24rpx;
  195. color: $font-color-light;
  196. margin-left: 8rpx;
  197. margin-right: -10rpx;
  198. }
  199. .cell-tit {
  200. flex: 1;
  201. font-size: 26rpx;
  202. color: $font-color-light;
  203. margin-right: 10rpx;
  204. }
  205. .cell-tip {
  206. font-size: 26rpx;
  207. color: $font-color-dark;
  208. &.disabled {
  209. color: $font-color-light;
  210. }
  211. &.active {
  212. color: $base-color;
  213. }
  214. &.red{
  215. color: $base-color;
  216. }
  217. }
  218. &.desc-cell {
  219. .cell-tit {
  220. max-width: 90rpx;
  221. }
  222. }
  223. .desc {
  224. flex: 1;
  225. font-size: $font-base;
  226. color: $font-color-dark;
  227. }
  228. }
  229. /* 支付列表 */
  230. .pay-list{
  231. padding-left: 40rpx;
  232. margin-top: 16rpx;
  233. background: #fff;
  234. .pay-item{
  235. display: flex;
  236. align-items: center;
  237. padding-right: 20rpx;
  238. line-height: 1;
  239. height: 110rpx;
  240. position: relative;
  241. }
  242. .icon-weixinzhifu{
  243. width: 80rpx;
  244. font-size: 40rpx;
  245. color: #6BCC03;
  246. }
  247. .icon-alipay{
  248. width: 80rpx;
  249. font-size: 40rpx;
  250. color: #06B4FD;
  251. }
  252. .icon-xuanzhong2{
  253. display: flex;
  254. align-items: center;
  255. justify-content: center;
  256. width: 60rpx;
  257. height: 60rpx;
  258. font-size: 40rpx;
  259. color: $base-color;
  260. }
  261. .tit{
  262. font-size: 32rpx;
  263. color: $font-color-dark;
  264. flex: 1;
  265. }
  266. }
  267. .footer{
  268. position: fixed;
  269. left: 0;
  270. bottom: 0;
  271. display: flex;
  272. align-items: center;
  273. width: 100%;
  274. height: 90rpx;
  275. justify-content: space-between;
  276. font-size: 30rpx;
  277. background-color: #fff;
  278. color: $font-color-base;
  279. box-shadow: 0 -1px 5px rgba(0,0,0,.1);
  280. .price-content{
  281. padding-left: 30rpx;
  282. }
  283. .price-tip{
  284. color: $base-color;
  285. margin-left: 8rpx;
  286. }
  287. .price{
  288. font-size: 36rpx;
  289. color: $base-color;
  290. }
  291. .submit{
  292. display:flex;
  293. align-items:center;
  294. justify-content: center;
  295. border-radius:999rpx;
  296. width: 240rpx;
  297. height: 70rpx;
  298. margin-right:30rpx;
  299. color: #fff;
  300. font-size: 28rpx;
  301. background-color: $base-color;
  302. }
  303. }
  304. /* 优惠券面板 */
  305. .mask{
  306. display: flex;
  307. align-items: flex-end;
  308. position: fixed;
  309. left: 0;
  310. top: var(--window-top);
  311. bottom: 0;
  312. width: 100%;
  313. background: rgba(0,0,0,0);
  314. z-index: 9995;
  315. transition: .3s;
  316. .mask-content{
  317. width: 100%;
  318. min-height: 30vh;
  319. max-height: 70vh;
  320. background: #f3f3f3;
  321. transform: translateY(100%);
  322. transition: .3s;
  323. overflow-y:scroll;
  324. }
  325. &.none{
  326. display: none;
  327. }
  328. &.show{
  329. background: rgba(0,0,0,.4);
  330. .mask-content{
  331. transform: translateY(0);
  332. }
  333. }
  334. }
  335. /* 优惠券列表 */
  336. .coupon-item{
  337. display: flex;
  338. flex-direction: column;
  339. margin: 20rpx 24rpx;
  340. background: #fff;
  341. .con{
  342. display: flex;
  343. align-items: center;
  344. position: relative;
  345. height: 120rpx;
  346. padding: 0 30rpx;
  347. &:after{
  348. position: absolute;
  349. left: 0;
  350. bottom: 0;
  351. content: '';
  352. width: 100%;
  353. height: 0;
  354. border-bottom: 1px dashed #f3f3f3;
  355. transform: scaleY(50%);
  356. }
  357. }
  358. .left{
  359. display: flex;
  360. flex-direction: column;
  361. justify-content: center;
  362. flex: 1;
  363. overflow: hidden;
  364. height: 100rpx;
  365. }
  366. .title{
  367. font-size: 32rpx;
  368. color: $font-color-dark;
  369. margin-bottom: 10rpx;
  370. }
  371. .time{
  372. font-size: 24rpx;
  373. color: $font-color-light;
  374. }
  375. .right{
  376. display: flex;
  377. flex-direction: column;
  378. justify-content: center;
  379. align-items: center;
  380. font-size: 26rpx;
  381. color: $font-color-base;
  382. height: 100rpx;
  383. }
  384. .price{
  385. font-size: 44rpx;
  386. color: $base-color;
  387. &:before{
  388. content: '¥';
  389. font-size: 34rpx;
  390. }
  391. }
  392. .tips{
  393. font-size: 24rpx;
  394. color: $font-color-light;
  395. line-height: 60rpx;
  396. padding-left: 30rpx;
  397. }
  398. .circle{
  399. position: absolute;
  400. left: -6rpx;
  401. bottom: -10rpx;
  402. z-index: 10;
  403. width: 20rpx;
  404. height: 20rpx;
  405. background: #f3f3f3;
  406. border-radius: 100px;
  407. &.r{
  408. left: auto;
  409. right: -6rpx;
  410. }
  411. }
  412. }
  413. </style>