logistics.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <template>
  2. <view class="receive">
  3. <view class="qxz">兑换成功</view>
  4. <view class="wl-box">
  5. <view class="ckwl">物流信息</view>
  6. <view v-if="status==1" v-for="(item,index) in talk" :key="index" class="wlbcz">
  7. <view class="timebcz">{{item.time}}</view>
  8. <view>{{item.context}}</view>
  9. </view>
  10. <view v-if="status==2">
  11. <view class="kuaidi" @click="copy">{{kd_company}}<text style="color: #2434C6;margin: 0 22rpx;" selectable="true">{{kd_number}}</text><image src="/static/copy.png"></image></view>
  12. <view class="set_box" v-for="(item,index) in talk" :key="index">
  13. <view class="set_time">
  14. <view>{{item.mmdd}}</view>
  15. <view style="font-size: 22rpx;">{{item.hhss}}</view>
  16. </view>
  17. <!-- 步骤条 -->
  18. <view class="set-1">
  19. <view class="set-2">
  20. <view class="tlak_o">
  21. <view class="docter like_">
  22. <view class="doc_say like_o">
  23. <view class="doc_talk like_talk">
  24. <text selectable="true">{{item.context}}</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view v-if="status==3" v-for="(item,index) in talk" :key="index">
  34. <view class="kuaidi" @click="copy">{{kd_company}}<text style="color: #2434C6;margin: 0 22rpx;" selectable="true">{{kd_number}}</text><image src="/static/copy.png"></image></view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import clipboard from "@/components/ican-clipBoard_0.38/ican-clipBoard.js"
  41. export default {
  42. data() {
  43. return {
  44. talk: [],
  45. param: {
  46. card_id:'',
  47. card_pwd: ''
  48. },
  49. status: 0,
  50. kd_company:'',
  51. kd_number: '',
  52. }
  53. },
  54. onLoad() {
  55. var _this = this
  56. _this.param.card_id = uni.getStorageSync("card_id");
  57. _this.param.card_pwd = uni.getStorageSync("card_pwd");
  58. _this.$GET_FUN('/addons/pickup/pickupapi/getKuaidiInfo', _this.param, res => {
  59. if (res.data.code == 1) {
  60. this.status = res.data.data.status
  61. this.talk = res.data.data.list
  62. this.kd_company = res.data.data.kd_company
  63. this.kd_number = res.data.data.kd_number
  64. for(let i=0; i<this.talk.length; i++) {
  65. let mmdd = this.talk[i].time.slice(5,10)
  66. this.talk[i].mmdd = mmdd
  67. let hhss = this.talk[i].time.slice(11,16)
  68. this.talk[i].hhss = hhss
  69. }
  70. }else {
  71. uni.showToast({
  72. title: res.data.msg,
  73. icon: 'none'
  74. });
  75. }
  76. });
  77. },
  78. methods: {
  79. copy() {
  80. clipboard.setText(this.kd_number);
  81. uni.showToast({
  82. title: '复制成功',
  83. icon: 'none'
  84. });
  85. }
  86. }
  87. }
  88. </script>
  89. <style lang="scss">
  90. .receive {
  91. line-height: 1;
  92. background: linear-gradient(to top ,#FDC2B9 ,#FCC295);
  93. padding-bottom: 30rpx;
  94. min-height: 93vh;
  95. }
  96. .qxz {
  97. font-size: 36rpx;
  98. color: #1A1A1A;
  99. font-weight: bold;
  100. text-align: center;
  101. padding: 82rpx 0 52rpx;
  102. }
  103. .wl-box {
  104. background: #fff;
  105. margin: 0 15px;
  106. border-radius:24rpx;
  107. padding: 78rpx 40rpx 73rpx;
  108. box-sizing: border-box;
  109. }
  110. .ckwl {
  111. font-size: 32rpx;
  112. color: #1A1A1A;
  113. font-weight: bold;
  114. text-align: center;
  115. padding: 0rpx 0 78rpx;
  116. }
  117. .wlbcz {
  118. font-size: 32rpx;
  119. color: #1A1A1A;
  120. font-weight:500;
  121. text-align: center;
  122. }
  123. .timebcz {
  124. font-size: 26rpx;
  125. margin-bottom: 20rpx;
  126. }
  127. .kuaidi {
  128. font-size: 26rpx;
  129. color: #1A1A1A;
  130. font-weight: 500;
  131. margin-bottom: 102rpx;
  132. }
  133. .kuaidi image {
  134. display: inline-block;
  135. width: 27rpx;
  136. height: 27rpx;
  137. }
  138. .set_box {
  139. // width: 100%;
  140. // height: 100%;
  141. display: flex;
  142. flex-direction: row;
  143. position: relative;
  144. left: -20rpx;
  145. width: 640rpx;
  146. }
  147. /* 左侧时间 */
  148. .set_time {
  149. width: 15%;
  150. position: relative;
  151. line-height: 1.5;
  152. text-align: right;
  153. top: -24rpx;
  154. view {
  155. width: 120%;
  156. // position: absolute;
  157. // margin-top: 60rpx;
  158. // right: -40rpx;
  159. color: #000000;
  160. font-size: 28rpx;
  161. }
  162. }
  163. /* 右侧内容 */
  164. .set-1 {
  165. width: 88%;
  166. }
  167. .set-2 {
  168. min-height: 100rpx;
  169. border-radius: 10rpx;
  170. width: 84%;
  171. margin-left: 84rpx;
  172. // margin-top: 60rpx;
  173. // padding-right: 10rpx;
  174. position: relative;
  175. .tlak_o {
  176. width: 100%;
  177. position: relative;
  178. top: -24rpx;
  179. // min-height: 300rpx;
  180. padding-bottom: 20rpx;
  181. .like_ {
  182. width: 100%;
  183. min-height: 120rpx;
  184. .like_o {
  185. width: 100%;
  186. height: 100%;
  187. .like_h {
  188. color: #999999;
  189. .name_ {
  190. margin-right: 20rpx;
  191. font-size: 32rpx;
  192. }
  193. .time_ {
  194. font-size: 24rpx;
  195. }
  196. }
  197. .like_talk {
  198. width: 100%;
  199. // min-height: 100rpx;
  200. // margin: 0 30rpx;
  201. text {
  202. color: #1A1A1A;
  203. line-height: 1.5;
  204. font-size: 26rpx;
  205. font-weight: 500;
  206. }
  207. .like_img {
  208. width: 100%;
  209. min-height: 100rpx;
  210. display: flex;
  211. justify-content: flex-start;
  212. flex-wrap: wrap;
  213. image {
  214. width: 30%;
  215. height: 180rpx;
  216. margin-bottom: 20rpx;
  217. margin-right: 2%;
  218. }
  219. }
  220. }
  221. }
  222. }
  223. }
  224. }
  225. .set-2::after {
  226. content: '';
  227. /* 必须存在如果没有图标就留空 */
  228. top: -20rpx;
  229. /* 定位 距离*/
  230. border-left: #999999 1px dashed;
  231. /* 横线颜色 */
  232. left: -44rpx;
  233. /* 定位 距离*/
  234. height: 100%;
  235. /* 高度 */
  236. position: absolute;
  237. /* 定位 */
  238. }
  239. .set-2::before {
  240. content: "\e64d";
  241. /* 必须存在如果没有图标就留空 */
  242. color: #666666;
  243. /* 设置颜色 */
  244. position: absolute;
  245. /* 定位 */
  246. left: -54rpx;
  247. top: 2rpx;
  248. /* 移动到左边 */
  249. font-weight: bold;
  250. /* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  251. font-family: "iconfont" !important;
  252. /* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  253. font-size: 14rpx;
  254. /* 图标大小 */
  255. font-style: normal;
  256. /* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  257. -webkit-font-smoothing: antialiased;
  258. /* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  259. -moz-osx-font-smoothing: grayscale;
  260. /* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  261. }
  262. @font-face {
  263. font-family: "iconfont";
  264. src: url('//at.alicdn.com/t/font_1337773_f06f5a7las.eot?t=1565581133395');
  265. /* IE9 */
  266. src: url('//at.alicdn.com/t/font_1337773_f06f5a7las.eot?t=1565581133395#iefix') format('embedded-opentype'),
  267. /* IE6-IE8 */
  268. url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAOIAAsAAAAAB8QAAAM7AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDMgqCRIIjATYCJAMUCwwABCAFhG0HZhvNBsiemjwJqJERRCC3tX4YOM4iqNbCnr29uw8wKGBUsUAKqDyCjY5HcEzCALron1wr8wDk8hKBFpIc5yaXfWZJoIBIQkF1KlvVqWuFfZ3c/CBw0p8fcMJJsQY6uIuEMk8188LgXgfHTJceiXlrm0tGajTgaMCz2T6yyf5BXh+Ef9BdxMSIS9cTaKmvYGbzFhRXA1sZ2C0QO7cRAdhadnmkNTSEqufYLM4qNdKx9AJn+M/Hb2OiQVIWwL6rNufIIP1bj29voaZspAiK/byITqLAaEAmdvX6d7KQ+dEstCw2tjQL0FJDkvZald8e//3y+WglCIaW0E/e5R8vERWvuTWY5RYy3/ywXBtKXBEF395EBN++FCQ8V5CWsmEt4CBgHMz1Ad8rde7s2LbD7oUhT3l+eWHbhxwOB+LFrfkVL7I3FIAWdpdWvfHiYt8FltYWdzy1Pz/WfPhQ/elT7efPvUJiVlRsIj8+18X3az7+5Wb48vVrbnvo7OndVe1cPc55k2ebWG7OmMgYX01bT3vJnNlJWtemes0mn3vI/PJl80NQQqVErfcH/Ys5Fy3evrVoyyZNDLSq/cp5EyYsKTbb69bD/+5fmPs/cFwxG9ABoCNdTY+AKrwdi2npHk0Xu4vMH/Q7Wl+4+Yftkv83kMHXTiVutOlsnh68ZYPZit+hmDmRSxVwlDnvxvI8WOq3gz4VCy3xE8Id/d7H2GV2M6Ghi4ak1gcKDYORGTsaSq2Mg0rDTGhplLyTW+mEsRC5BUYadyC0dwpJWw+h0N53ZMb+glJX/6DSPgpoaUN4nLOVobGtZdYuJHAkQ7EbqiVqwMjF7UVrJSKKTmCmitNrETOpUzAiNLxZykMGxPY4wNRBIjnHEDOqh7nOzZBOR6GRUQ2SeKiKc2NiWBju+6JQieqBvbkYRMAhMkjUDVKTUAaYzufsW99fCSEUOgI20rMQr4UwJurloQihwmcg8/SGWT3v8hKTDkQkjsMgjKH0oFzHi+hgnoKM/VtpIBIulGpF1ihRmDcLz9WHnm/Uv0BZNAD40zJSFJGjjEq77dsEg1ahKoF2qbupYvP0KNS2e69WbmucSNZAOpEa5XpUagAAAA==') format('woff2'),
  269. url('//at.alicdn.com/t/font_1337773_f06f5a7las.woff?t=1565581133395') format('woff'),
  270. url('//at.alicdn.com/t/font_1337773_f06f5a7las.ttf?t=1565581133395') format('truetype'),
  271. /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  272. url('//at.alicdn.com/t/font_1337773_f06f5a7las.svg?t=1565581133395#iconfont') format('svg');
  273. /* iOS 4.1- */
  274. }
  275. .iconfont {
  276. font-family: "iconfont" !important;
  277. font-size: 16px;
  278. font-style: normal;
  279. -webkit-font-smoothing: antialiased;
  280. -moz-osx-font-smoothing: grayscale;
  281. }
  282. .icon-yuandian:before {
  283. content: "\e64d";
  284. }
  285. .icon-dingweiweizhi:before {
  286. content: "\e619";
  287. }
  288. </style>