express.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. <template>
  2. <!-- 商城 -->
  3. <view class="" style="padding: 0 24rpx;">
  4. <view style="position: relative;padding-bottom: 20rpx;">
  5. <!-- 自定义导航栏 -->
  6. <image src="../../static/images/index/back.png"
  7. style="width: 750rpx;height: 1200rpx;position: absolute;top: 0;z-index: -1;left:-24rpx;" mode="">
  8. </image>
  9. <u-navbar bgColor='rgba(255, 215,215, 1)' :placeholder='true' :safeAreaInsetTop="true">
  10. <view class="u-nav-slot" slot="left" style="display: flex;">
  11. <image @click="tochat" src="../../static/images/index/xiaoxi.png" mode=""
  12. style="width: 40rpx;height: 40rpx;">
  13. </image>
  14. <image @click="counter" src="../../static/images/index/compile.png" mode=""
  15. style="width: 40rpx;height: 40rpx;margin-left: 22rpx;"></image>
  16. <image src="../../static/images/index/dianhua.png" mode=""
  17. style="width: 40rpx;height: 40rpx;margin-left: 22rpx;"></image>
  18. </view>
  19. <view class="u-nav-slot" slot="center" style="width: 226rpx;">
  20. <u-subsection bgColor='rgba(248, 50, 36, 0.1)' activeColor='#F83224' inactiveColor='#222'
  21. :list="list" :current="current" @change="sectionChange"></u-subsection>
  22. </view>
  23. </u-navbar>
  24. <!-- 地址 -->
  25. <view class="address">
  26. <view class="left u-flex" style="display: flex;">
  27. <view class="u-row-between left" style="display: flex;flex-direction: column;">
  28. <image src="../../static/express/ji.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
  29. <image src="../../static/express/change.png" style='width: 40rpx;;height:40rpx ;' mode="">
  30. </image>
  31. </view>
  32. <view class=" u-row-between left"
  33. style="flex: 1;margin-left: 28rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08) ;display: flex;">
  34. <view class="u-row-between " style="" @click="send">
  35. <view class="pople">{{i18n.sender}}</view>
  36. <view class="jiadd" style="margin-top: 14rpx;">{{i18n.informat}}</view>
  37. </view>
  38. <view class="u-flex">
  39. <view class="" style="color: rgba(151, 151, 151, 1);">|</view>
  40. <text class="right">{{i18n.addressbook}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="left u-flex"
  45. style="display: flex;margin-top: 26rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08)">
  46. <view class="u-row-between left" style="display: flex;flex-direction: column;">
  47. <image src="../../static/express/shou.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
  48. <!-- <image src="../../static/express/change.png" style='width: 40rpx;;height:40rpx ;' mode=""> -->
  49. </image>
  50. </view>
  51. <view class=" u-row-between left" style="flex: 1;margin-left: 28rpx;display: flex;">
  52. <view class="u-row-between " style="" @click="recipirnt">
  53. <view class="pople">{{i18n.recipient}}</view>
  54. <view class="jiadd" style="margin-top: 14rpx;">{{i18n.informate}}</view>
  55. </view>
  56. <view class="u-flex">
  57. <view class="" style="color: rgba(151, 151, 151, 1);">|</view>
  58. <text class="right">{{i18n.addressbook}}</text>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 物品信息 -->
  63. <view class="info u-flex u-row-between">
  64. <view class="u-flex">
  65. <text class="wupin">{{i18n.item}}</text>
  66. <view class="mast">{{i18n.required}}</view>
  67. </view>
  68. <view class="u-flex" @click='goods'>
  69. <view class="change">{{i18n.selection}}</view>
  70. <image src="../../static/express/next1.png"
  71. style="width: 28rpx;height: 28rpx;margin-left: 6rpx;" mode=""></image>
  72. </view>
  73. </view>
  74. <!-- 跨境物流 -->
  75. <view class="info u-flex u-row-between">
  76. <view class="u-flex">
  77. <text class="wupin">{{i18n.flow}}</text>
  78. </view>
  79. <view class="u-flex" @click="logshow=true">
  80. <text class="change" style="color: rgba(248, 50, 36, 1);">{{i18n.selection}}</text>
  81. <image src="../../static/express/next1.png"
  82. style="width: 28rpx;height: 28rpx;margin-left: 6rpx;" mode=""></image>
  83. </view>
  84. </view>
  85. <!-- 去寄件 -->
  86. <view class="" style="margin-top: 34rpx;">
  87. <view class="mail" @click="todev">
  88. {{i18n.mail}}
  89. </view>
  90. </view>
  91. <view class="bottom u-flex u-row-between">
  92. <view class="u-flex">
  93. <image src="../../static/express/share.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  94. <text class="friend">{{i18n.share}}</text>
  95. </view>
  96. <view class="friend">|</view>
  97. <view class="u-flex" @click="counter">
  98. <image src="/static/images/index/compile.png" style="width: 36rpx;height: 36rpx;" mode="">
  99. </image>
  100. <text class="friend">{{i18n.compute}}</text>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 我的包裹 -->
  105. <view class="parcel">
  106. <view class="u-flex u-row-between">
  107. <view class="myparcel">
  108. <text>{{i18n.mine}}</text>
  109. <text style="color: rgba(248, 50, 36, 1);">{{i18n.parcel}}</text>
  110. </view>
  111. <view class="add u-flex">
  112. <image src="../../static/express/add.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  113. <text class="addtext" @click="toparcel">{{i18n.addsign}}</text>
  114. </view>
  115. </view>
  116. <view class="u-flex u-row-around" style="margin-top: 44rpx;">
  117. <view class="flexc" style="position: relative;" @click="pack(0)">
  118. <!-- <view class="" style="position: absolute;top: 0;right: 0;"> -->
  119. <u-badge :absolute='true' :offset="[0,10]" :type="type" max="99" :value="value"></u-badge>
  120. <!-- </view> -->
  121. <image src="/static/express/address.png" style='width:68rpx;height:68rpx' mode=""></image>
  122. <text style='margin-top:16rpx'>{{i18n.deliver}}</text>
  123. </view>
  124. <view class="flexc" style="position: relative;" @click="pack(1)">
  125. <u-badge :absolute='true' :offset="[0,10]" :type="type" max="99" :value="value"></u-badge>
  126. <image src="/static/express/sign.png" style='width:68rpx;height:68rpx' mode=""></image>
  127. <text style='margin-top:16rpx'>{{i18n.Sign}}</text>
  128. </view>
  129. <view class="flexc" style="position: relative;" @click="pack(2)">
  130. <u-badge :absolute='true' :offset="[0,10]" :type="type" max="99" :value="value"></u-badge>
  131. <image src="../../static/express/send.png" style='width:68rpx;height:68rpx' mode=""></image>
  132. <text style='margin-top:16rpx'>{{i18n.overseas}}</text>
  133. </view>
  134. </view>
  135. </view>
  136. <!-- 拼包 -->
  137. <view class="u-flex u-row-between" style="margin-top: 32rpx;">
  138. <view class="u-flex">
  139. <text class="hai">{{i18n.parceling}}</text>
  140. <image style="width: 180rpx;height: 32rpx;" src="/static/express/label.png" mode=""></image>
  141. </view>
  142. <view class="u-flex">
  143. <text class="more" @click="more">{{i18n.more}}</text>
  144. <image src="../../static/express/next2.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
  145. </view>
  146. </view>
  147. <!-- 拼包数据 -->
  148. <view class="label">
  149. <view class="" style="display: flex;">
  150. <view class="left flexc">
  151. <text class="bourn">目的地</text>
  152. <view class="addres">澳大利亚</view>
  153. </view>
  154. <view class="" style="flex: 1;margin-left: 20rpx;">
  155. <view class="u-flex u-row-between">
  156. <view class="">
  157. <text class='bigtitle'>特殊包裹</text>
  158. <text style="margin: 0 8rpx;">|</text>
  159. <text class='bigtitle'>海运散货</text>
  160. </view>
  161. <view class="mon">
  162. <text class="timeb">{{i18n.price}}</text>
  163. <text>¥</text>
  164. <text style="font-size: 32rpx;">28</text>
  165. <text>.00</text>
  166. </view>
  167. </view>
  168. <view class="" style="margin-top: 34rpx;">
  169. <u-line-progress activeColor='rgba(255, 21, 21, 1)' :percentage="percentage" height="6"
  170. :showText="false"></u-line-progress>
  171. </view>
  172. <view class="u-flex u-row-between" style="margin-top: 20rpx;">
  173. <view class="u-flex">
  174. <view class="">
  175. <text class='timeb'>{{i18n.already}} </text>
  176. <text class='timeb' style='color:rgba(255, 21, 21, 1)'>200kg</text>
  177. </view>
  178. <text style="margin: 0 8rpx;">|</text>
  179. <view class="">
  180. <text class='timeb'>{{i18n.residue}} </text>
  181. <text class='timeb' style='color:rgba(255, 21, 21, 1)'>400kg</text>
  182. </view>
  183. </view>
  184. <view class="">
  185. <text class="timeb">{{i18n.plan}}50%</text>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <view class="u-flex u-row-between" style="margin-top: 32rpx;">
  191. <text class="timea">{{i18n.start}}:2023-12-31/{{i18n.cut}}:2023-12-31</text>
  192. <view class="pinb" @click="toaccount">{{i18n.goparceling}}</view>
  193. </view>
  194. </view>
  195. </view>
  196. <u-popup round='28' :show="logshow" @close="close">
  197. <view class="pop">
  198. <kj-flow @success='success' @close='logshow=false'></kj-flow>
  199. </view>
  200. </u-popup>
  201. <!-- <u-button @click="show = true">打开</u-button> -->
  202. <view class="" style="height: 160rpx;"></view>
  203. <kj-tabbar :value1=0></kj-tabbar>
  204. </view>
  205. </template>
  206. <script>
  207. export default {
  208. data() {
  209. return {
  210. //顶部分段器
  211. list: [],
  212. current: 0,
  213. type: "error",
  214. value: 1, //徽标数量
  215. percentage: 50, //进度条
  216. logshow: false, //物流选择
  217. status_collection:'',//我的包裹选择值
  218. }
  219. },
  220. onLoad(options) {
  221. this.list = [this.i18n.border, this.i18n.shop]
  222. if (options.current) {
  223. this.current = options.current
  224. }
  225. },
  226. onShow() {
  227. this.list[0] = this.i18n.border
  228. this.list[1] = this.i18n.shop
  229. uni.setNavigationBarTitle({
  230. title: this.i18n.setup
  231. })
  232. },
  233. computed: {
  234. i18n() {
  235. return this.$t('index')
  236. }
  237. },
  238. methods: {
  239. //我的包裹
  240. express(id) {
  241. uni.$u.http.get('/api/express-order', {
  242. params: {
  243. container_id:'',
  244. status_collection:''
  245. }
  246. }).then((res) => {
  247. this.recomlist = this.recomlist.concat(res.data)
  248. this.last_page = res.last_page
  249. }).catch(() => {
  250. })
  251. },
  252. todev() {
  253. uni.navigateTo({
  254. url: "/pageB/delivery"
  255. })
  256. },
  257. count() {
  258. uni.navigateTo({
  259. url: '/pageB/account'
  260. })
  261. },
  262. pack(index) {
  263. uni.navigateTo({
  264. url: '/pageB/myPackage?index=' + index
  265. })
  266. },
  267. more() {
  268. uni.navigateTo({
  269. url: '/pageB/list/list'
  270. })
  271. },
  272. //拼包快递
  273. toaccount() {
  274. uni.navigateTo({
  275. url: '/pageB/ParcelExpress'
  276. })
  277. },
  278. //物流计算器
  279. counter() {
  280. uni.navigateTo({
  281. url: '/pageA/counter'
  282. })
  283. },
  284. //消息
  285. tochat() {
  286. uni.navigateTo({
  287. url: '/pageA/chat/news'
  288. })
  289. },
  290. //物品信息
  291. goods() {
  292. uni.navigateTo({
  293. url: '/pageB/goods'
  294. })
  295. },
  296. //寄件人信息
  297. send() {
  298. uni.navigateTo({
  299. url: '/pageB/Senderinfor'
  300. })
  301. },
  302. recipirnt() {
  303. uni.navigateTo({
  304. url: '/pageB/recipientinfo'
  305. })
  306. },
  307. success() {
  308. this.logshow = false
  309. },
  310. close() {
  311. this.logshow = false
  312. },
  313. //分段器切换
  314. sectionChange(index) {
  315. this.current = index;
  316. console.log(index);
  317. if (this.current == 1) {
  318. uni.switchTab({
  319. url: '/pages/index/index?current=1'
  320. })
  321. this.current = 0
  322. }
  323. },
  324. toparcel() {
  325. uni.navigateTo({
  326. url: '/pageB/parcel'
  327. })
  328. }
  329. }
  330. }
  331. </script>
  332. <style lang="scss" scoped>
  333. page {
  334. background-color: rgba(0, 0, 0, 0)
  335. }
  336. .pop {
  337. font-family: PingFangSC, PingFang SC;
  338. font-weight: 500;
  339. font-size: 36rpx;
  340. color: #333333;
  341. line-height: 50rpx;
  342. text-align: left;
  343. font-style: normal;
  344. padding: 32rpx 28rpx 0 0;
  345. box-sizing: border-box;
  346. }
  347. .mon {
  348. font-family: HarmonyOS_Sans_Medium;
  349. font-size: 20rpx;
  350. color: #F83224;
  351. line-height: 26rpx;
  352. text-align: left;
  353. font-style: normal;
  354. }
  355. .bigtitle {
  356. font-family: PingFangSC, PingFang SC;
  357. font-weight: 600;
  358. font-size: 28rpx;
  359. color: #222222;
  360. line-height: 40rpx;
  361. text-align: left;
  362. font-style: normal;
  363. }
  364. .timeb {
  365. font-family: PingFangSC, PingFang SC;
  366. font-weight: 400;
  367. font-size: 22rpx;
  368. color: #666666;
  369. line-height: 32rpx;
  370. text-align: left;
  371. font-style: normal;
  372. }
  373. .timea {
  374. font-family: PingFangSC, PingFang SC;
  375. font-weight: 400;
  376. font-size: 22rpx;
  377. color: #555555;
  378. line-height: 32rpx;
  379. text-align: left;
  380. font-style: normal;
  381. }
  382. .pinb {
  383. width: 148rpx;
  384. height: 64rpx;
  385. background: #FF1515;
  386. border-radius: 42rpx;
  387. font-family: PingFangSC, PingFang SC;
  388. font-weight: 500;
  389. font-size: 28rpx;
  390. color: #FFFFFF;
  391. line-height: 64rpx;
  392. text-align: center;
  393. font-style: normal;
  394. }
  395. .label {
  396. margin-top: 20rpx;
  397. width: 702rpx;
  398. height: 288rpx;
  399. background: #FFFFFF;
  400. border-radius: 16rpx;
  401. padding: 32rpx 20rpx;
  402. box-sizing: border-box;
  403. .left {
  404. width: 144rpx;
  405. height: 144rpx;
  406. background: #F5F5F5;
  407. border-radius: 8rpx;
  408. .bourn {
  409. font-family: PingFangSC, PingFang SC;
  410. font-weight: 400;
  411. font-size: 20rpx;
  412. color: #222222;
  413. line-height: 28rpx;
  414. text-align: left;
  415. font-style: normal;
  416. }
  417. .addres {
  418. font-family: PingFangSC, PingFang SC;
  419. font-weight: 500;
  420. font-size: 28rpx;
  421. color: #222222;
  422. line-height: 40rpx;
  423. text-align: left;
  424. font-style: normal;
  425. }
  426. }
  427. }
  428. .flexc {
  429. display: flex;
  430. flex-direction: column;
  431. justify-content: center;
  432. align-items: center;
  433. }
  434. .hai {
  435. font-family: PingFangSC, PingFang SC;
  436. font-weight: 600;
  437. font-size: 32rpx;
  438. color: #222222;
  439. line-height: 44rpx;
  440. text-align: left;
  441. font-style: normal;
  442. margin-right: 10rpx;
  443. }
  444. .more {
  445. font-family: PingFangSC, PingFang SC;
  446. font-weight: 400;
  447. font-size: 24rpx;
  448. color: #F83224;
  449. line-height: 34rpx;
  450. text-align: left;
  451. font-style: normal;
  452. }
  453. .parcel {
  454. width: 702rpx;
  455. // height: 260rpx;
  456. background: #FFFFFF;
  457. border-radius: 16rpx;
  458. margin-top: 20rpx;
  459. padding: 24rpx;
  460. box-sizing: border-box;
  461. .myparcel {
  462. font-family: PingFangSC, PingFang SC;
  463. font-weight: 600;
  464. font-size: 28rpx;
  465. color: #222222;
  466. line-height: 40rpx;
  467. text-align: left;
  468. font-style: normal;
  469. }
  470. .add {
  471. // width: 240rpx;
  472. height: 48rpx;
  473. background: rgba(248, 50, 36, 0.06);
  474. border-radius: 24rpx;
  475. .addtext {
  476. font-family: PingFangSC, PingFang SC;
  477. font-weight: 600;
  478. font-size: 20rpx;
  479. color: #000000;
  480. line-height: 28rpx;
  481. text-align: left;
  482. font-style: normal;
  483. }
  484. }
  485. }
  486. .address {
  487. width: 702rpx;
  488. // height: 776rpx;
  489. background: #FFFFFF;
  490. border-radius: 20rpx;
  491. padding: 48rpx 24rpx 36rpx;
  492. box-sizing: border-box;
  493. margin-top: 38rpx;
  494. .bottom {
  495. padding: 0 76rpx;
  496. box-sizing: border-box;
  497. margin-top: 48rpx;
  498. .friend {
  499. font-family: PingFangSC, PingFang SC;
  500. font-weight: 400;
  501. font-size: 28rpx;
  502. color: #555555;
  503. line-height: 40rpx;
  504. text-align: left;
  505. font-style: normal;
  506. margin-left: 12rpx;
  507. }
  508. }
  509. .mail {
  510. width: 646rpx;
  511. height: 84rpx;
  512. background: #F83224;
  513. box-shadow: 0rpx 16rpx 40rpx -12rpx rgba(255, 21, 21, 0.5);
  514. border-radius: 44rpx;
  515. font-family: PingFangSC, PingFang SC;
  516. font-weight: 500;
  517. font-size: 32rpx;
  518. color: #FFFFFF;
  519. line-height: 84rpx;
  520. text-align: center;
  521. font-style: normal;
  522. }
  523. .info {
  524. height: 100rpx;
  525. border-bottom: 2rpx solid rgba(151, 151, 151, 0.08);
  526. .wupin {
  527. font-family: PingFangSC, PingFang SC;
  528. font-weight: 400;
  529. font-size: 28rpx;
  530. color: #333333;
  531. line-height: 40rpx;
  532. text-align: left;
  533. font-style: normal;
  534. }
  535. .change {
  536. font-family: PingFangSC, PingFang SC;
  537. font-weight: 400;
  538. font-size: 28rpx;
  539. color: #666666;
  540. line-height: 40rpx;
  541. text-align: left;
  542. font-style: normal;
  543. }
  544. .mast {
  545. // width: 62rpx;
  546. height: 30rpx;
  547. border-radius: 16rpx;
  548. border: 1rpx solid #F83224;
  549. font-family: PingFangSC, PingFang SC;
  550. font-weight: 400;
  551. font-size: 20rpx;
  552. color: #FF1515;
  553. line-height: 30rpx;
  554. text-align: center;
  555. font-style: normal;
  556. margin-left: 12rpx;
  557. padding: 0 4rpx;
  558. box-sizing: border-box;
  559. }
  560. }
  561. .left {
  562. height: 128rpx;
  563. .pople {
  564. font-family: PingFangSC, PingFang SC;
  565. font-weight: 500;
  566. font-size: 30rpx;
  567. color: #222222;
  568. line-height: 42rpx;
  569. text-align: left;
  570. font-style: normal;
  571. }
  572. .jiadd {
  573. font-family: PingFangSC, PingFang SC;
  574. font-weight: 400;
  575. font-size: 26rpx;
  576. color: #777777;
  577. line-height: 36rpx;
  578. text-align: left;
  579. font-style: normal;
  580. }
  581. .right {
  582. font-family: PingFangSC, PingFang SC;
  583. font-weight: 500;
  584. font-size: 26rpx;
  585. color: #222222;
  586. line-height: 36rpx;
  587. text-align: left;
  588. font-style: normal;
  589. margin-left: 18rpx;
  590. }
  591. }
  592. }
  593. // ::v-deep .u-navbar__content.data-v-1194bf80 {
  594. // background-color: rgba(0, 0, 0, 0) !important;
  595. // }
  596. // ::v-deep .u-status-bar.data-v-13f16680 {
  597. // background-color: rgba(0, 0, 0, 0) !important;
  598. // }
  599. ::v-deep .u-subsection--button.data-v-b14d3440 {
  600. /* padding: 6rpx 34rpx !important; */
  601. border-radius: 64rpx !important;
  602. }
  603. ::v-deep .u-subsection--button__bar.data-v-b14d3440 {
  604. border-radius: 32rpx !important;
  605. }
  606. </style>