express.vue 26 KB

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