detail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <template>
  2. <div>
  3. <div class="detail-layout">
  4. <div class="detail-header">
  5. <div class="c-title">确认订单</div>
  6. <i @click="backHandle" class="iconfont icon-shang"></i>
  7. </div>
  8. <edit
  9. :name="'收货信息'"
  10. @clickOper="handleOper('addressStatus')"
  11. :oper="addressStatus?'编辑':'保存'"
  12. :isActive="addressStatus"
  13. class="edit-item"
  14. >
  15. <div class="address" slot="show">
  16. <p>
  17. <span>陈志广</span>
  18. <span>13211064273</span>
  19. </p>
  20. <p class="p-desc">广东省珠海市唐家高新区港湾1号港11四维时代科技</p>
  21. </div>
  22. <div class="address edit-address" slot="edit">
  23. <div class="input-con">
  24. <input type="text" placeholder="姓名">
  25. <input type="text" placeholder="电话">
  26. </div>
  27. <div class="input-con">
  28. <input type="text" placeholder="广东省">
  29. <input type="text" placeholder="珠海市">
  30. <input type="text" placeholder="唐家湾镇">
  31. </div>
  32. <div class="input-con address-input">
  33. <input type="text" placeholder="港湾1号">
  34. </div>
  35. </div>
  36. </edit>
  37. <div class="pay-type">
  38. <div class="title">支付方式</div>
  39. <div class="body">
  40. <div class="pay-tag" :class="{'tag-active':paytype==='alipay'}" @click="paytype='alipay'">
  41. <img src="@/assets/images/ali-pay.png" class="t-icon" alt>
  42. <span>支付宝</span>
  43. <img src="@/assets/images/tag-icon.png" class="t-click" alt>
  44. </div>
  45. <div class="pay-tag" :class="{'tag-active':paytype==='wechat'}" @click="paytype='wechat'">
  46. <img src="@/assets/images/wechat-pay.png" class="t-icon" alt>
  47. <span>微信支付</span>
  48. <img src="@/assets/images/tag-icon.png" class="t-click" alt>
  49. </div>
  50. <div class="pay-tag" :class="{'tag-active':paytype==='paypal'}" @click="paytype='paypal'">
  51. <img src="@/assets/images/paypal.png" class="t-icon" alt>
  52. <span>paypal</span>
  53. <img src="@/assets/images/tag-icon.png" class="t-click" alt>
  54. </div>
  55. </div>
  56. </div>
  57. <edit
  58. :name="'我的发票抬头'"
  59. @clickOper="handleOper('invoiceStatus')"
  60. :oper="invoiceStatus?'编辑':'保存'"
  61. :isActive="invoiceStatus"
  62. class="edit-item"
  63. >
  64. <div class="invoice" slot="show">
  65. <p class="p-desc">暂无信息</p>
  66. </div>
  67. <div class="invoice edit-invoice" slot="edit">
  68. <div class="select-con">
  69. <div :class="{'tag-active':invoice==='noinvoice'}" @click="invoice='noinvoice'">
  70. <span>不需要发票</span>
  71. <img src="@/assets/images/tag-icon.png" alt>
  72. </div>
  73. <div :class="{'tag-active':invoice==='normal'}" @click="invoice='normal'">
  74. <span>增值税普通发票</span>
  75. <img src="@/assets/images/tag-icon.png" alt>
  76. </div>
  77. <div :class="{'tag-active':invoice==='zengzhi'}" @click="invoice='zengzhi'">
  78. <span>增值税专用发票</span>
  79. <i></i>
  80. <img src="@/assets/images/tag-icon.png" alt>
  81. </div>
  82. </div>
  83. <div class="input-con">
  84. <input type="text" placeholder="请输入发票抬头">
  85. <input type="text" placeholder="18位的统一社会信用代码 / 税务登记号">
  86. </div>
  87. <div class="input-con">
  88. <input type="text" placeholder="注册地址">
  89. <input type="text" placeholder="注册电话">
  90. </div>
  91. <div class="input-con">
  92. <input type="text" placeholder="开户银行">
  93. <input type="text" placeholder="银行账户">
  94. </div>
  95. </div>
  96. </edit>
  97. <div class="express-type">
  98. <div class="title">物流方式</div>
  99. <img class="express-img" src="@/assets/images/sf-express.png" alt>
  100. </div>
  101. <div class="product-type">
  102. <div class="title">商品信息</div>
  103. <div class="p-info">
  104. <img src="@/assets/images/banner_pro.png" alt>
  105. <div class="p-params">
  106. <h3>四维看看 Pro</h3>
  107. <p>本机主体 x 1, 拍摄支架 x 1</p>
  108. </div>
  109. <div class="p-price">¥ 8,458</div>
  110. </div>
  111. <div class="p-detail">
  112. <div>
  113. <span>商品总价:</span>
  114. <span>¥8,458</span>
  115. </div>
  116. <div>
  117. <span>税费及其他费用:</span>
  118. <span>¥0</span>
  119. </div>
  120. <div>
  121. <span>运费:</span>
  122. <span>¥0</span>
  123. </div>
  124. <div>
  125. <span>合计:</span>
  126. <span>¥8,458</span>
  127. </div>
  128. </div>
  129. <div class="p-pay">
  130. <div class="agree">
  131. <span></span>
  132. <span>同意商城销售协议</span>
  133. </div>
  134. <div class="c-button purchase">付款</div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </template>
  140. <script>
  141. import vcenter from '@/components/vcenter'
  142. import edit from '@/components/edit'
  143. export default {
  144. data () {
  145. let products = ['asd', 'dwdwd']
  146. return {
  147. products,
  148. addressStatus: false,
  149. invoiceStatus: false,
  150. invoice: 'noinvoice',
  151. paytype: 'wechat'
  152. }
  153. },
  154. components: {
  155. vcenter,
  156. edit
  157. },
  158. methods: {
  159. backHandle () {
  160. this.$emit('backList')
  161. },
  162. handleOper (type) {
  163. this[type] = !this[type]
  164. }
  165. }
  166. }
  167. </script>
  168. <style lang="scss" scoped>
  169. $theme-color: #1fe4dc;
  170. $border-color: #e7e7e7;
  171. input {
  172. appearance: none;
  173. line-height: 36px;
  174. height: 36px;
  175. border: solid 1px $border-color;
  176. padding-left: 10px;
  177. &:focus {
  178. border: solid 1px $theme-color;
  179. }
  180. }
  181. .c-button {
  182. height: 50px;
  183. padding-top: 0;
  184. padding-bottom: 0;
  185. vertical-align: middle;
  186. margin-top: 10px;
  187. display: inline-block;
  188. background-color: #1fe4dc;
  189. text-align: center;
  190. cursor: pointer;
  191. &:first-child {
  192. width: 50px;
  193. box-sizing: border-box;
  194. }
  195. &:last-child {
  196. width: 150px;
  197. line-height: 50px;
  198. color: #000;
  199. font-size: 14px;
  200. }
  201. }
  202. .detail-layout {
  203. overflow: auto;
  204. height: 100vh;
  205. padding-bottom: 40px;
  206. .detail-header {
  207. color: #000;
  208. font-size: 16px;
  209. position: relative;
  210. .c-title {
  211. height: 70px;
  212. line-height: 70px;
  213. text-align: center;
  214. padding: 0 30px;
  215. border-bottom: 1px solid #e7e7e7;
  216. }
  217. i {
  218. position: absolute;
  219. color: #999;
  220. top: 50%;
  221. left: 30px;
  222. font-size: 24px;
  223. cursor: pointer;
  224. transform: translateY(-50%) rotate(-90deg);
  225. }
  226. }
  227. .edit-item {
  228. width: 100%;
  229. border-bottom: 0;
  230. padding: 30px;
  231. .info,
  232. .address,
  233. .invoice {
  234. margin-top: 20px;
  235. p {
  236. line-height: 36px;
  237. span {
  238. padding-right: 10px;
  239. }
  240. }
  241. .p-desc {
  242. color: #a0a0a0;
  243. line-height: 24px;
  244. }
  245. .avatar {
  246. width: 68px;
  247. height: 68px;
  248. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  249. margin: 5px 0;
  250. }
  251. .nickname {
  252. width: 126px;
  253. }
  254. }
  255. .edit-address {
  256. .input-con {
  257. input {
  258. width: 200px;
  259. line-height: 36px;
  260. height: 36px;
  261. margin: 10px 25px 10px 0;
  262. &:last-of-type {
  263. margin-right: 0;
  264. }
  265. }
  266. }
  267. .address-input {
  268. input {
  269. width: 660px;
  270. }
  271. }
  272. }
  273. .edit-invoice {
  274. .select-con {
  275. div {
  276. position: relative;
  277. cursor: pointer;
  278. width: 200px;
  279. line-height: 36px;
  280. height: 36px;
  281. margin: 10px 25px 10px 0;
  282. border: solid 1px $border-color;
  283. color: #a0a0a0;
  284. padding: 0 10px;
  285. display: inline-block;
  286. img {
  287. display: none;
  288. position: absolute;
  289. bottom: 0;
  290. right: 0;
  291. }
  292. &:last-of-type {
  293. margin-right: 0;
  294. }
  295. }
  296. .tag-active {
  297. border: solid 1px $theme-color;
  298. color: #000;
  299. img {
  300. display: inline-block;
  301. }
  302. }
  303. }
  304. .input-con {
  305. input {
  306. width: 316px;
  307. line-height: 36px;
  308. height: 36px;
  309. margin: 10px 25px 10px 0;
  310. &:last-of-type {
  311. margin-right: 0;
  312. }
  313. }
  314. }
  315. }
  316. }
  317. .pay-type,
  318. .express-type,
  319. .product-type {
  320. .title {
  321. padding: 0 30px;
  322. font-size: 16px;
  323. }
  324. .body {
  325. padding: 0 30px;
  326. .pay-tag {
  327. cursor: pointer;
  328. border: 1px solid $border-color;
  329. width: 200px;
  330. line-height: 36px;
  331. height: 36px;
  332. margin-top: 20px;
  333. position: relative;
  334. span {
  335. margin-left: 36px;
  336. display: inline-block;
  337. text-align: center;
  338. padding-left: 60px;
  339. }
  340. img {
  341. position: absolute;
  342. }
  343. .t-icon {
  344. width: 36px;
  345. height: 36px;
  346. padding: 6px;
  347. left: 0;
  348. border-right: 1px solid $border-color;
  349. }
  350. .t-click {
  351. right: 0;
  352. bottom: 0;
  353. display: none;
  354. }
  355. }
  356. .tag-active {
  357. border: 1px solid $theme-color;
  358. span {
  359. color: #000;
  360. }
  361. .t-icon {
  362. border-right: 1px solid $theme-color;
  363. }
  364. .t-click {
  365. display: inline-block;
  366. }
  367. }
  368. }
  369. .express-img {
  370. padding: 30px;
  371. }
  372. .p-info {
  373. border-bottom: 1px solid $border-color;
  374. padding: 20px 30px;
  375. min-height: 80px;
  376. display: flex;
  377. justify-content: space-between;
  378. align-items: center;
  379. position: relative;
  380. img {
  381. width: 30px;
  382. flex-shrink: 0;
  383. }
  384. .p-params {
  385. padding-left: 30px;
  386. vertical-align: middle;
  387. position: absolute;
  388. top: 50%;
  389. left: 50px;
  390. transform: translateY(-50%);
  391. h3 {
  392. font-weight: normal;
  393. }
  394. p {
  395. color: #ddd;
  396. margin-top: 5px;
  397. }
  398. }
  399. }
  400. .p-detail {
  401. padding: 30px;
  402. & > div {
  403. display: flex;
  404. height: 30px;
  405. line-height: 30px;
  406. font-size: 16px;
  407. justify-content: space-between;
  408. span {
  409. &:last-child {
  410. display: inline-block;
  411. width: 80px;
  412. }
  413. }
  414. }
  415. }
  416. .p-pay{
  417. padding: 0 30px;
  418. display: flex;
  419. justify-content: space-between;
  420. align-items: center;
  421. .agree{
  422. cursor: pointer;
  423. span{
  424. color: #a0a0a0;
  425. vertical-align: middle;
  426. &:first-child{
  427. border: solid 1px $border-color;
  428. display: inline-block;
  429. width: 16px;
  430. height: 16px;
  431. }
  432. }
  433. }
  434. }
  435. }
  436. }
  437. </style>