express.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960
  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. <view class="" style="width: 40rpx;height:40rpx;position: relative;">
  12. <u-badge :absolute='true' :offset="[0,-8]" :type="type" max="99" :value="unReadCount"></u-badge>
  13. <image @click="tochat" src="../../static/images/index/xiaoxi.png" mode=""
  14. style="width: 40rpx;height: 40rpx;">
  15. </image>
  16. </view>
  17. <image @click="counter" src="../../static/images/index/compile.png" mode=""
  18. style="width: 40rpx;height: 40rpx;margin-left: 22rpx;"></image>
  19. <image src="../../static/images/index/dianhua.png" mode=""
  20. style="width: 40rpx;height: 40rpx;margin-left: 22rpx;" @click="callphone"></image>
  21. </view>
  22. <view class="u-nav-slot" slot="center" style="width: 320rpx;">
  23. <u-subsection bgColor='rgba(248, 50, 36, 0.1)' activeColor='#F83224' inactiveColor='#222'
  24. :list="list" :current="current" @change="sectionChange"></u-subsection>
  25. </view>
  26. </u-navbar>
  27. <!-- 地址 -->
  28. <view class="address">
  29. <view class="left u-flex" style="display: flex;">
  30. <view class="u-row-between left" style="display: flex;flex-direction: column;">
  31. <image src="../../static/express/ji.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
  32. <image @click="changeadd" src="../../static/express/change.png"
  33. style='width: 40rpx;;height:40rpx ;' mode="">
  34. </image>
  35. </view>
  36. <view class=" u-row-between left"
  37. style="flex: 1;margin-left: 28rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08) ;display: flex;">
  38. <view v-if="JSON.stringify(topadd)=='{}'" class="u-row-between " style="" @click="send">
  39. <view class="pople">{{i18n.sender}}</view>
  40. <view class="jiadd" style="margin-top: 14rpx;">{{i18n.informat}}</view>
  41. </view>
  42. <view v-else class="u-row-between " style="" @click="send">
  43. <view class="">
  44. <text class="topname">{{topadd.name}}</text>
  45. <text class="topaddress"
  46. style="margin-left: 8rpx;">{{replacePhoneToStar(topadd.mobile)}}</text>
  47. </view>
  48. <view class="topaddress" style="margin-top: 14rpx;">{{topadd.full_address}}</view>
  49. </view>
  50. <view class="u-flex" @click.stop="addbook(1)">
  51. <view class="" style="color: rgba(151, 151, 151, 1);">|</view>
  52. <text class="right">{{i18n.addressbook}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="left u-flex"
  57. style="display: flex;margin-top: 26rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08)">
  58. <view class="u-row-between left" style="display: flex;flex-direction: column;">
  59. <image src="../../static/express/shou.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
  60. <!-- <image src="../../static/express/change.png" style='width: 40rpx;;height:40rpx ;' mode=""> -->
  61. </image>
  62. </view>
  63. <view class=" u-row-between left" style="flex: 1;margin-left: 28rpx;display: flex;">
  64. <view v-if="JSON.stringify(bottomadd)=='{}'" class="u-row-between " style="" @click="recipirnt">
  65. <view class="pople">{{i18n.recipient}}</view>
  66. <view class="jiadd" style="margin-top: 14rpx;">{{i18n.informate}}</view>
  67. </view>
  68. <view v-else class="u-row-between " style="" @click="recipirnt">
  69. <view class="">
  70. <text class="topname">{{bottomadd.name}}</text>
  71. <text class="topaddress"
  72. style="margin-left: 8rpx;">{{replacePhoneToStar(bottomadd.mobile)}}</text>
  73. </view>
  74. <view class="topaddress" style="margin-top: 14rpx;">{{bottomadd.full_address}}</view>
  75. </view>
  76. <view class="u-flex" @click.stop="addbook(0)">
  77. <view class="" style="color: rgba(151, 151, 151, 1);">|</view>
  78. <text class="right">{{i18n.addressbook}}</text>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 物品信息 -->
  83. <view class="info u-flex u-row-between">
  84. <view class="u-flex">
  85. <text class="wupin">{{i18n.item}}</text>
  86. <view class="mast">{{i18n.required}}</view>
  87. </view>
  88. <view v-if="JSON.stringify(goodinfo)==='{}'" class="u-flex" @click='goods'>
  89. <view class="change">{{i18n.selection}}</view>
  90. <image src="../../static/express/next1.png"
  91. style="width: 28rpx;height: 28rpx;margin-left: 6rpx;" mode=""></image>
  92. </view>
  93. <view v-else class="goodname" @click='goods'>
  94. {{goodinfo.goodname}},{{goodinfo.weight}}kg
  95. </view>
  96. </view>
  97. <!-- 跨境物流 -->
  98. <view class="info u-flex u-row-between">
  99. <view class="u-flex">
  100. <text class="wupin">{{i18n.flow}}</text>
  101. </view>
  102. <view class="u-flex" @click="changewu">
  103. <!-- <text class="change" style="color: rgba(248, 50, 36, 1);">{{i18n.selection}}</text> -->
  104. <text class="change"
  105. style="color: rgba(248, 50, 36, 1);">{{leftname?leftname+' | '+rightname : i18n.selection}}</text>
  106. <image v-if="leftname==''" src="../../static/express/next1.png"
  107. style="width: 28rpx;height: 28rpx;margin-left: 6rpx;" mode=""></image>
  108. </view>
  109. </view>
  110. <!-- 去寄件 -->
  111. <view class="" style="margin-top: 34rpx;">
  112. <view class="mail" @click="todev">
  113. {{i18n.mail}}
  114. </view>
  115. </view>
  116. <view class="bottom u-flex u-row-between">
  117. <button
  118. style="background-color: transparent;padding-left: 0 !important;padding-right: 0 !important;margin: 0 !important;"
  119. open-type="share" class="u-flex">
  120. <image src="../../static/express/share.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  121. <text class="friend">{{i18n.share}}</text>
  122. </button>
  123. <view class="friend">|</view>
  124. <view class="u-flex" @click="counter">
  125. <image src="/static/images/index/compile.png" style="width: 36rpx;height: 36rpx;" mode="">
  126. </image>
  127. <text class="friend">{{i18n.compute}}</text>
  128. </view>
  129. </view>
  130. </view>
  131. <!-- 我的包裹 -->
  132. <view class="parcel">
  133. <view class="u-flex u-row-between">
  134. <view class="myparcel">
  135. <text>{{i18n.mine}}</text>
  136. <text style="color: rgba(248, 50, 36, 1);">{{i18n.parcel}}</text>
  137. </view>
  138. <view class="add u-flex">
  139. <image src="../../static/express/add.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  140. <text class="addtext" @click="toparcel">{{i18n.addsign}}</text>
  141. </view>
  142. </view>
  143. <view class="u-flex u-row-around" style="margin-top: 44rpx;">
  144. <view class="flexc" @click="pack('to_transit')">
  145. <view class="" style="position: relative;width: 68rpx;height: 68rpx;">
  146. <u-badge :absolute='true' :offset="[0,-15]" :type="type" max="99"
  147. :value="transit"></u-badge>
  148. <image src="/static/express/address.png" style='width:68rpx;height:68rpx' mode="">
  149. </image>
  150. </view>
  151. <text style='margin-top:16rpx' class="bao">{{i18n.deliver}}</text>
  152. </view>
  153. <view class="flexc" style="position: relative;" @click="pack('transit_receipt')">
  154. <view class="" style="position: relative;width: 68rpx;height: 68rpx;">
  155. <u-badge :absolute='true' :offset="[0,-15]" :type="type" max="99"
  156. :value="receipt"></u-badge>
  157. <image src="/static/express/sign.png" style='width:68rpx;height:68rpx' mode=""></image>
  158. </view>
  159. <text style='margin-top:16rpx' class="bao">{{i18n.Sign}}</text>
  160. </view>
  161. <view class="flexc" style="position: relative;" @click="pack('to_overseas')">
  162. <view class="" style="position: relative;width: 68rpx;height: 68rpx;">
  163. <u-badge :absolute='true' :offset="[0,-15]" :type="type" max="99"
  164. :value="overseas"></u-badge>
  165. <image src="../../static/express/send.png" style='width:68rpx;height:68rpx' mode=""></image>
  166. </view>
  167. <text style='margin-top:16rpx' class="bao">{{i18n.overseas}}</text>
  168. </view>
  169. </view>
  170. </view>
  171. <!-- 拼包 -->
  172. <view class="u-flex u-row-between" style="margin-top: 32rpx;">
  173. <view class="u-flex">
  174. <text class="hai">{{i18n.parceling}}</text>
  175. <image style="width: 180rpx;height: 32rpx;" src="/static/express/label.png" mode=""></image>
  176. </view>
  177. <view class="u-flex">
  178. <text class="more" @click="more">{{i18n.more}}</text>
  179. <image src="../../static/express/next2.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
  180. </view>
  181. </view>
  182. <!-- 拼包数据 -->
  183. <view class="label" v-for="(item,idx) in expressList" :key="idx">
  184. <view class="" style="display: flex;">
  185. <view class="left flexc">
  186. <text class="bourn">{{i18n.destination}}</text>
  187. <view class="addres">{{item.containerBase.country_name}}</view>
  188. <view class="addres">{{item.containerBase.province_name}}</view>
  189. </view>
  190. <view class="" style="flex: 1;margin-left: 20rpx;">
  191. <view class="u-flex u-row-between">
  192. <view class="">
  193. <text class='bigtitle' v-if="item.type=='normal'">{{i18n.Ordinary}}</text>
  194. <text class='bigtitle' v-else>{{i18n.Special}}</text>
  195. <text style="margin: 0 8rpx;">|</text>
  196. <text v-if="language =='zh-CN'" class='bigtitle'>{{item.transportType.name_cn}}</text>
  197. <text v-if="language =='en-US'" class='bigtitle'>{{item.transportType.name_en}}</text>
  198. <text v-if="language =='es-ES'" class='bigtitle'>{{item.transportType.name_es}}</text>
  199. <text v-if="language =='it-IT'" class='bigtitle'>{{item.transportType.name_ita}}</text>
  200. </view>
  201. <view class="mon">
  202. <text class="timeb">{{i18n.price}}</text>
  203. <text>¥</text>
  204. <text v-if="item.price" style="font-size: 32rpx;">{{item.price.slice(0,-3)}}</text>
  205. <text v-if="item.price">{{item.price.slice(-3)}}</text>
  206. </view>
  207. </view>
  208. <view class="" style="margin-top: 34rpx;">
  209. <u-line-progress activeColor='rgba(255, 21, 21, 1)' :percentage="item.progress" height="6"
  210. :showText="false"></u-line-progress>
  211. </view>
  212. <view class="u-flex u-row-between" style="margin-top: 20rpx;">
  213. <view class="u-flex">
  214. <view class="">
  215. <text class='timeb'>{{i18n.already}} </text>
  216. <text class='timeb' style='color:rgba(255, 21, 21, 1)'>{{item.used_weight}}kg</text>
  217. </view>
  218. <text style="margin: 0 8rpx;">|</text>
  219. <view class="">
  220. <text class='timeb'>{{i18n.residue}} </text>
  221. <text class='timeb'
  222. style='color:rgba(255, 21, 21, 1)'>{{item.residual_weight}}kg</text>
  223. </view>
  224. </view>
  225. <view class="">
  226. <text class="timeb">{{i18n.plan}}{{item.progress}}%</text>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. <view class="u-flex u-row-between" style="margin-top: 32rpx;">
  232. <text class="timea">{{i18n.start}}:{{item.begin_date}}/{{i18n.cut}}:{{item.end_date}}</text>
  233. <view class="pinb" @click="toaccount(item)">{{i18n.goparceling}}</view>
  234. </view>
  235. </view>
  236. </view>
  237. <u-popup round='28' :show="logshow" @close="close">
  238. <view class="pop">
  239. <kj-flow :language="language" :goodstype="goodinfo.goodtype" ref="child" :province_id='province_id'
  240. @success='success' @close='close()' :leftchangea='leftchange' :rightchangea='rightchange'
  241. :typeida='typeid'></kj-flow>
  242. </view>
  243. </u-popup>
  244. <!-- <u-button @click="show = true">打开</u-button> -->
  245. <view class="" style="height: 160rpx;"></view>
  246. <kj-tabbar :value1=0></kj-tabbar>
  247. </view>
  248. </template>
  249. <script>
  250. import {
  251. conn,
  252. } from '@/utils/WebIM';
  253. export default {
  254. data() {
  255. return {
  256. //顶部分段器
  257. list: [],
  258. current: 0,
  259. type: "error",
  260. percentage: 50, //进度条
  261. logshow: false, //物流选择
  262. status_collection: '', //我的包裹选择值
  263. transit: 0, //发往中转点
  264. receipt: 0, //中转已签收
  265. overseas: 0, //正发往海外
  266. topadd: {}, //新建寄件人
  267. bottomadd: {}, //新建收件人
  268. province_id: '',
  269. leftname: '',
  270. rightname: '',
  271. container_id: '', //货柜列表
  272. language: 'zh-CN',
  273. goodinfo: {}, //物品信息
  274. unit_price: '',
  275. expressList: [],
  276. leftchange: '',
  277. rightchange: '',
  278. typeid: '',
  279. unReadCount: 0
  280. }
  281. },
  282. onLoad(options) {
  283. this.list = [this.i18n.border, this.i18n.shop]
  284. if (options.current) {
  285. this.current = options.current
  286. }
  287. },
  288. onShow() {
  289. this.list[0] = this.i18n.border
  290. this.list[1] = this.i18n.shop
  291. // uni.setNavigationBarTitle({
  292. // title: this.i18n.setup
  293. // })
  294. this.express() //获取包裹数量
  295. if (uni.getStorageSync('language') != '') {
  296. this.language = uni.getStorageSync('language')
  297. }
  298. this.getexpress()
  299. this.getlist()
  300. },
  301. computed: {
  302. i18n() {
  303. return this.$t('index')
  304. }
  305. },
  306. methods: {
  307. getlist() {
  308. this.unReadCount = 0
  309. conn.getServerConversations({
  310. pageSize: 50,
  311. cursor: ''
  312. }).then((res) => {
  313. console.log(res);
  314. res.data.conversations.forEach((item) => {
  315. this.unReadCount += item.unReadCount
  316. })
  317. })
  318. },
  319. onShareAppMessage(res) {
  320. if (res.from === 'button') { // 来自页面内分享按钮
  321. console.log(res.target)
  322. }
  323. return {
  324. title: this.i18n.border,
  325. path: '/pages/express/express'
  326. }
  327. },
  328. callphone() {
  329. uni.$u.http.get('/api/config', {
  330. params: {
  331. module: 'basic'
  332. }
  333. }).then((res) => {
  334. console.log(res);
  335. uni.makePhoneCall({
  336. phoneNumber: res.service_mobile
  337. })
  338. }).catch(() => {
  339. })
  340. },
  341. //价格计算
  342. calculate() {
  343. uni.$u.http.get('/api/express-order/calculate', {
  344. params: {
  345. container_id: this.container_id, // 是 String 货柜ID
  346. weight: this.goodinfo.weight, //是 String 重量(kg)
  347. length: this.goodinfo.length, //是 String 长(m)
  348. width: this.goodinfo.width, //是 String 宽(m)
  349. height: this.goodinfo.height, //是 String 高(m)
  350. type: this.goodinfo.goodtype //是 String 商品类型: normal.普通商品,
  351. }
  352. }).then((res) => {
  353. console.log(res);
  354. uni.navigateTo({
  355. url: "/pageB/delivery?goodinfo=" + encodeURIComponent(JSON.stringify(this
  356. .goodinfo)) +
  357. "&topadd=" + encodeURIComponent(JSON.stringify(
  358. this.topadd)) + "&bottom=" + encodeURIComponent(JSON.stringify(this
  359. .bottomadd)) +
  360. '&leftname=' + this
  361. .leftname + "&rightname=" + this.rightname + "&container_id=" + this
  362. .container_id +
  363. "&unit_price=" + this.unit_price + '&all=' + res
  364. })
  365. }).catch(() => {
  366. })
  367. },
  368. //拼包列表
  369. getexpress() {
  370. uni.$u.http.get('/api/express-group-package', {
  371. params: {
  372. is_page: 0,
  373. page: 1,
  374. limit: 3,
  375. transport_type_id: "",
  376. container_base_id: '',
  377. type: '',
  378. }
  379. }).then((res) => {
  380. this.expressList = res
  381. }).catch(() => {
  382. })
  383. },
  384. //跨境物流选择
  385. success(msg) {
  386. this.logshow = false
  387. this.leftname = msg.leftname
  388. this.container_id = msg.dateid
  389. this.rightname = msg.rightname
  390. this.unit_price = msg.unit_price
  391. this.leftchange = msg.leftchange
  392. this.rightchange = msg.rightchange
  393. this.typeid = msg.typeid
  394. },
  395. //物流选择
  396. changewu() {
  397. var that = this
  398. if (this.province_id) {
  399. this.logshow = true
  400. setTimeout(() => {
  401. console.log('2222222', this.$refs.child);
  402. that.$refs.child.transport();
  403. }, 800)
  404. } else {
  405. this.$u.toast(this.i18n.selectcity)
  406. }
  407. },
  408. //改变地址
  409. changeadd() {
  410. var a = {}
  411. a = this.topadd
  412. this.topadd = this.bottomadd
  413. this.bottomadd = a
  414. this.province_id = this.bottomadd.province_id
  415. },
  416. //正则匹配手机号
  417. replacePhoneToStar: function(phone) {
  418. if (phone) {
  419. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  420. }
  421. },
  422. //地址薄
  423. addbook(index) {
  424. var that = this
  425. uni.navigateTo({
  426. url: "/pageC/addressManagement/addressManagement?tabs=" + index,
  427. events: {
  428. getadd(res) {
  429. if (index == 1) {
  430. that.topadd = res
  431. console.log('topadd', that.topadd);
  432. } else {
  433. that.bottomadd = res
  434. console.log('bottom', that.bottomadd);
  435. that.province_id = that.bottomadd.province_id
  436. }
  437. }
  438. }
  439. })
  440. },
  441. //我的包裹
  442. express() {
  443. uni.$u.http.get('/api/express-order/status-count', {}).then((res) => {
  444. console.log(res);
  445. this.overseas = res.to_overseas
  446. this.receipt = res.transit_receipt
  447. this.transit = res.to_transit
  448. }).catch(() => {
  449. })
  450. },
  451. todev() {
  452. if (JSON.stringify(this.topadd) === '{}') {
  453. this.$u.toast('请填写寄件人地址')
  454. } else if (JSON.stringify(this.bottomadd) === '{}') {
  455. this.$u.toast('请填写收件人地址')
  456. } else if (JSON.stringify(this.goodinfo) === '{}') {
  457. this.$u.toast('请填写物品信息')
  458. } else if (this.leftname == '') {
  459. this.$u.toast('请选择物流方式')
  460. } else {
  461. this.calculate()
  462. }
  463. },
  464. count() {
  465. uni.navigateTo({
  466. url: '/pageB/account'
  467. })
  468. },
  469. pack(index) {
  470. uni.navigateTo({
  471. // url: '/pageB/myPackage?index=' + index
  472. url: "/pageC/myPackage/myPackage?type=" + index,
  473. })
  474. },
  475. more() {
  476. uni.navigateTo({
  477. url: '/pageB/list/list'
  478. })
  479. },
  480. //拼包快递
  481. toaccount(info) {
  482. uni.navigateTo({
  483. url: '/pageB/ParcelExpress?expressinfo=' + encodeURIComponent(JSON.stringify(info))
  484. })
  485. },
  486. //物流计算器
  487. counter() {
  488. uni.navigateTo({
  489. url: '/pageA/counter'
  490. })
  491. },
  492. //消息
  493. tochat() {
  494. uni.navigateTo({
  495. url: '/pageA/chat/news'
  496. })
  497. },
  498. //物品信息
  499. goods() {
  500. var that = this
  501. if (JSON.stringify(this.goodinfo) == '{}') {
  502. uni.navigateTo({
  503. url: '/pageB/goods',
  504. events: {
  505. goodinfo: function(res) {
  506. console.log('goodinfo', res);
  507. that.goodinfo = res
  508. }
  509. }
  510. })
  511. } else {
  512. uni.navigateTo({
  513. url: '/pageB/goods?goodinfo=' + encodeURIComponent(JSON.stringify(this.goodinfo)),
  514. events: {
  515. goodinfo: function(res) {
  516. that.goodinfo = res
  517. console.log(res);
  518. }
  519. }
  520. })
  521. }
  522. },
  523. //寄件人信息
  524. send() {
  525. var that = this
  526. if (JSON.stringify(that.topadd) == '{}') {
  527. uni.navigateTo({
  528. url: '/pageC/addEditAddress/addEditAddress',
  529. events: {
  530. topadd: function(res) {
  531. // console.log(res);
  532. that.topadd = res
  533. }
  534. }
  535. })
  536. } else {
  537. var that = this
  538. uni.navigateTo({
  539. url: '/pageC/addEditAddress/addEditAddress?id=' + that.topadd.id,
  540. events: {
  541. topadd: function(res) {
  542. // console.log(res);
  543. that.topadd = res
  544. }
  545. }
  546. })
  547. }
  548. },
  549. recipirnt() {
  550. var that = this
  551. if (JSON.stringify(that.bottomadd) == '{}') {
  552. console.log(11111);
  553. uni.navigateTo({
  554. url: '/pageB/recipientinfo',
  555. events: {
  556. bottomadd: function(res) {
  557. console.log(res);
  558. that.bottomadd = res
  559. }
  560. }
  561. })
  562. } else {
  563. console.log(22222222);
  564. uni.navigateTo({
  565. url: '/pageB/recipientinfo?id=' + that.bottomadd.id,
  566. events: {
  567. bottomadd: function(res) {
  568. console.log(res);
  569. that.bottomadd = res
  570. }
  571. }
  572. })
  573. }
  574. },
  575. close() {
  576. this.logshow = false
  577. },
  578. //分段器切换
  579. sectionChange(index) {
  580. this.current = index;
  581. console.log(index);
  582. if (this.current == 1) {
  583. uni.switchTab({
  584. url: '/pages/index/index?current=1'
  585. })
  586. this.current = 0
  587. }
  588. },
  589. toparcel() {
  590. uni.navigateTo({
  591. url: '/pageB/parcel'
  592. })
  593. }
  594. }
  595. }
  596. </script>
  597. <style lang="scss" scoped>
  598. button {
  599. border: 0rpx solid rgba(0, 0, 0, 1) !important;
  600. }
  601. page {
  602. background-color: rgba(0, 0, 0, 0)
  603. }
  604. .bao {
  605. font-family: PingFangSC, PingFang SC;
  606. font-weight: 400;
  607. font-size: 26rpx;
  608. color: #222222;
  609. line-height: 36rpx;
  610. text-align: center;
  611. font-style: normal;
  612. }
  613. .goodname {
  614. font-family: SFPro, SFPro;
  615. font-weight: 400;
  616. font-size: 28rpx;
  617. color: #222222;
  618. line-height: 32rpx;
  619. text-align: left;
  620. font-style: normal;
  621. }
  622. .topname {
  623. font-family: PingFangSC, PingFang SC;
  624. font-weight: 500;
  625. font-size: 30rpx;
  626. color: #222222;
  627. line-height: 42rpx;
  628. text-align: left;
  629. font-style: normal;
  630. }
  631. .topaddress {
  632. font-family: PingFangSC, PingFang SC;
  633. font-weight: 400;
  634. font-size: 26rpx;
  635. color: #777777;
  636. line-height: 36rpx;
  637. text-align: left;
  638. font-style: normal;
  639. }
  640. .pop {
  641. font-family: PingFangSC, PingFang SC;
  642. font-weight: 500;
  643. font-size: 36rpx;
  644. color: #333333;
  645. line-height: 50rpx;
  646. text-align: left;
  647. font-style: normal;
  648. padding: 32rpx 28rpx 0 0;
  649. box-sizing: border-box;
  650. }
  651. .mon {
  652. font-family: HarmonyOS_Sans_Medium;
  653. font-size: 20rpx;
  654. color: #F83224;
  655. line-height: 26rpx;
  656. text-align: left;
  657. font-style: normal;
  658. font-weight: 600;
  659. }
  660. .bigtitle {
  661. font-family: PingFangSC, PingFang SC;
  662. font-weight: 600;
  663. font-size: 28rpx;
  664. color: #222222;
  665. line-height: 40rpx;
  666. text-align: left;
  667. font-style: normal;
  668. }
  669. .timeb {
  670. font-family: PingFangSC, PingFang SC;
  671. font-weight: 400;
  672. font-size: 22rpx;
  673. color: #666666;
  674. line-height: 32rpx;
  675. text-align: left;
  676. font-style: normal;
  677. }
  678. .timea {
  679. font-family: PingFangSC, PingFang SC;
  680. font-weight: 400;
  681. font-size: 22rpx;
  682. color: #555555;
  683. line-height: 32rpx;
  684. text-align: left;
  685. font-style: normal;
  686. }
  687. .pinb {
  688. width: 148rpx;
  689. height: 64rpx;
  690. background: #FF1515;
  691. border-radius: 42rpx;
  692. font-family: PingFangSC, PingFang SC;
  693. font-weight: 500;
  694. font-size: 28rpx;
  695. color: #FFFFFF;
  696. line-height: 64rpx;
  697. text-align: center;
  698. font-style: normal;
  699. }
  700. .label {
  701. margin-top: 20rpx;
  702. width: 702rpx;
  703. // height: 288rpx;
  704. background: #FFFFFF;
  705. border-radius: 16rpx;
  706. padding: 32rpx 20rpx;
  707. box-sizing: border-box;
  708. .left {
  709. width: 144rpx;
  710. height: 144rpx;
  711. background: #F5F5F5;
  712. border-radius: 8rpx;
  713. .bourn {
  714. font-family: PingFangSC, PingFang SC;
  715. font-weight: 400;
  716. font-size: 20rpx;
  717. color: #222222;
  718. line-height: 28rpx;
  719. text-align: left;
  720. font-style: normal;
  721. }
  722. .addres {
  723. font-family: PingFangSC, PingFang SC;
  724. font-weight: 500;
  725. font-size: 28rpx;
  726. color: #222222;
  727. line-height: 40rpx;
  728. text-align: left;
  729. font-style: normal;
  730. }
  731. }
  732. }
  733. .flexc {
  734. display: flex;
  735. flex-direction: column;
  736. justify-content: center;
  737. align-items: center;
  738. }
  739. .hai {
  740. font-family: PingFangSC, PingFang SC;
  741. font-weight: 600;
  742. font-size: 32rpx;
  743. color: #222222;
  744. line-height: 44rpx;
  745. text-align: left;
  746. font-style: normal;
  747. margin-right: 10rpx;
  748. }
  749. .more {
  750. font-family: PingFangSC, PingFang SC;
  751. font-weight: 400;
  752. font-size: 24rpx;
  753. color: #F83224;
  754. line-height: 34rpx;
  755. text-align: left;
  756. font-style: normal;
  757. }
  758. .parcel {
  759. width: 702rpx;
  760. // height: 260rpx;
  761. background: #FFFFFF;
  762. border-radius: 16rpx;
  763. margin-top: 20rpx;
  764. padding: 24rpx;
  765. box-sizing: border-box;
  766. .myparcel {
  767. font-family: PingFangSC, PingFang SC;
  768. font-weight: 600;
  769. font-size: 28rpx;
  770. color: #222222;
  771. line-height: 40rpx;
  772. text-align: left;
  773. font-style: normal;
  774. }
  775. .add {
  776. // width: 240rpx;
  777. height: 48rpx;
  778. background: rgba(248, 50, 36, 0.06);
  779. border-radius: 24rpx;
  780. .addtext {
  781. font-family: PingFangSC, PingFang SC;
  782. font-weight: 600;
  783. font-size: 20rpx;
  784. color: #000000;
  785. line-height: 28rpx;
  786. text-align: left;
  787. font-style: normal;
  788. }
  789. }
  790. }
  791. .address {
  792. width: 702rpx;
  793. // height: 776rpx;
  794. background: #FFFFFF;
  795. border-radius: 20rpx;
  796. padding: 48rpx 24rpx 36rpx;
  797. box-sizing: border-box;
  798. margin-top: 38rpx;
  799. .bottom {
  800. padding: 0 76rpx;
  801. box-sizing: border-box;
  802. margin-top: 48rpx;
  803. .friend {
  804. font-family: PingFangSC, PingFang SC;
  805. font-weight: 400;
  806. font-size: 28rpx;
  807. color: #555555;
  808. line-height: 40rpx;
  809. text-align: left;
  810. font-style: normal;
  811. margin-left: 12rpx;
  812. }
  813. }
  814. .mail {
  815. width: 646rpx;
  816. height: 84rpx;
  817. background: #F83224;
  818. box-shadow: 0rpx 16rpx 40rpx -12rpx rgba(255, 21, 21, 0.5);
  819. border-radius: 44rpx;
  820. font-family: PingFangSC, PingFang SC;
  821. font-weight: 500;
  822. font-size: 32rpx;
  823. color: #FFFFFF;
  824. line-height: 84rpx;
  825. text-align: center;
  826. font-style: normal;
  827. }
  828. .info {
  829. height: 100rpx;
  830. border-bottom: 2rpx solid rgba(151, 151, 151, 0.08);
  831. .wupin {
  832. font-family: PingFangSC, PingFang SC;
  833. font-weight: 400;
  834. font-size: 28rpx;
  835. color: #333333;
  836. line-height: 40rpx;
  837. text-align: left;
  838. font-style: normal;
  839. }
  840. .change {
  841. font-family: PingFangSC, PingFang SC;
  842. font-weight: 400;
  843. font-size: 28rpx;
  844. color: #666666;
  845. line-height: 40rpx;
  846. text-align: left;
  847. font-style: normal;
  848. }
  849. .mast {
  850. // width: 62rpx;
  851. height: 30rpx;
  852. border-radius: 16rpx;
  853. border: 1rpx solid #F83224;
  854. font-family: PingFangSC, PingFang SC;
  855. font-weight: 400;
  856. font-size: 20rpx;
  857. color: #FF1515;
  858. line-height: 30rpx;
  859. text-align: center;
  860. font-style: normal;
  861. margin-left: 12rpx;
  862. padding: 0 4rpx;
  863. box-sizing: border-box;
  864. }
  865. }
  866. .left {
  867. height: 128rpx;
  868. .pople {
  869. font-family: PingFangSC, PingFang SC;
  870. font-weight: 500;
  871. font-size: 30rpx;
  872. color: #222222;
  873. line-height: 42rpx;
  874. text-align: left;
  875. font-style: normal;
  876. }
  877. .jiadd {
  878. font-family: PingFangSC, PingFang SC;
  879. font-weight: 400;
  880. font-size: 26rpx;
  881. color: #777777;
  882. line-height: 36rpx;
  883. text-align: left;
  884. font-style: normal;
  885. }
  886. .right {
  887. font-family: PingFangSC, PingFang SC;
  888. font-weight: 600;
  889. font-size: 26rpx;
  890. color: #222222;
  891. line-height: 36rpx;
  892. text-align: left;
  893. font-style: normal;
  894. margin-left: 18rpx;
  895. }
  896. }
  897. }
  898. // ::v-deep .u-navbar__content.data-v-1194bf80 {
  899. // background-color: rgba(0, 0, 0, 0) !important;
  900. // }
  901. // ::v-deep .u-status-bar.data-v-13f16680 {
  902. // background-color: rgba(0, 0, 0, 0) !important;
  903. // }
  904. ::v-deep .u-subsection--button.data-v-b14d3440 {
  905. /* padding: 6rpx 34rpx !important; */
  906. border-radius: 64rpx !important;
  907. }
  908. ::v-deep .u-subsection--button__bar.data-v-b14d3440 {
  909. border-radius: 32rpx !important;
  910. }
  911. </style>