picked.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <template>
  2. <view class="container">
  3. <view class="top">
  4. <view class="top-tit">
  5. <image src="https://shicai.liuniu946.com/img/img26.png" class="tit-img"></image>
  6. <text class="tit-tit" v-if="shopinfo.status==0 && shopinfo.pink_status==3">已退款</text>
  7. <text class="tit-tit" v-if="shopinfo.status==0 && shopinfo.pink_status!=3">未发货</text>
  8. <text class="tit-tit" v-if="shopinfo.status==1">待收货</text>
  9. <text class="tit-tit" v-if="shopinfo.status==2">已收货,待评价</text>
  10. <text class="tit-tit" v-if="shopinfo.status==3">交易完成</text>
  11. </view>
  12. <view class="top-content">
  13. <!-- <view class="content">
  14. <text class="bContent">【自提时间】</text>2020年7月5日13:00-16:00
  15. </view> -->
  16. <view class="content">
  17. <text class="bContent">【自提地点】</text>
  18. {{shopinfo.pink_address.province + shopinfo.pink_address.city + shopinfo.pink_address.district + shopinfo.pink_address.detail}}
  19. </view>
  20. <view class="content" v-if="shopinfo.pink_status!==1&&shopinfo.isPinkT==1 && shopinfo.pink_type == 'AA团'">
  21. <text class="bContent">【本单邀请奖】</text>
  22. <!-- <text style="color: #FF1E29;">{{shopinfo.pepole_prize * (poplist.length + 1) || '0'}}</text> -->
  23. <text style="color: #FF1E29;">{{shopinfo.pepole_prize || '0'}}</text>
  24. </view>
  25. <view class="content" v-if="shopinfo.pink_status!==1&&shopinfo.isPinkT==1 && shopinfo.pink_type == '达人团' ">
  26. <text class="bContent">【团长佣金】</text>
  27. <text style="color: #FF1E29;">{{shopinfo.brokerage_prize || '0'}}</text>
  28. </view>
  29. <view class="content" v-if="shopinfo.isPinkT==0">
  30. <text class="bContent">【团长信息】</text>{{shopinfo.pink_address.real_name}}
  31. </view>
  32. <view class="content" v-if="shopinfo.isPinkT==0">
  33. <text class="bContent">【团长电话】</text>{{shopinfo.pink_address.phone}}
  34. </view>
  35. </view>
  36. </view>
  37. <view class="info">
  38. <view class="info-top">
  39. <view class="top-left">
  40. <view class="img-box">
  41. <image :src="goodsinfo.image" class="left-img"></image>
  42. <image v-if="shopinfo.pink_type == 'AA团'" class="biaozhiT" src="https://shicai.liuniu946.com/img/img69.png"></image>
  43. <image v-if="shopinfo.pink_type == '达人团'" class="biaozhiT" src="https://shicai.liuniu946.com/img/img70.png"></image>
  44. </view>
  45. <view class="left-box">
  46. <view class="left-tit">
  47. {{goodsinfo.store_name}}
  48. </view>
  49. <!-- <view class="left">
  50. 规格:10枚
  51. </view> -->
  52. <view class="left">
  53. 单价:¥{{goodsinfo.price}}
  54. </view>
  55. <view class="left">
  56. 数量:{{cart_info.cart_num}}
  57. </view>
  58. </view>
  59. </view>
  60. <!-- <view class="top-right">
  61. ¥0
  62. </view> -->
  63. </view>
  64. <view class="info-pic">
  65. <view class="pic-left">
  66. 商品总额
  67. </view>
  68. <view class="pic-right">
  69. ¥{{shopinfo.total_price}}
  70. </view>
  71. </view>
  72. <view class="info-pic">
  73. <view class="pic-left">
  74. 到货时间
  75. </view>
  76. <view class="pic-right red">
  77. {{shopinfo.mark}}
  78. </view>
  79. </view>
  80. <!-- <view class="info-pic">
  81. <view class="pic-left">
  82. 实际付款
  83. </view>
  84. <view class="pic-right red">
  85. ¥{{shopinfo.pay_price}}
  86. </view>
  87. </view> -->
  88. </view>
  89. <view class="pop-info-box" v-if="shopinfo.isPinkT==1">
  90. <view class="pop-tit">
  91. 参与人信息:全部团员确认收货后,即可领取全部佣金
  92. </view>
  93. <view class="pop" v-for="(item,index) in poplist" :key='index'>
  94. <image :src="item.avatar" class="avatar"></image>
  95. <view class="pop-right flex">
  96. <view class="right-left">
  97. <view class="left-top">
  98. <text class="nickname">
  99. {{item.real_name}}
  100. </text>
  101. <text class="phone">
  102. {{item.user_phone}}
  103. </text>
  104. </view>
  105. <view class="left-bottom" v-if="item.mark">
  106. {{item.mark }}
  107. </view>
  108. <view class="left-bottom left-none" v-else>
  109. 11111
  110. </view>
  111. </view>
  112. <view class="right-right">
  113. <view class="red" v-if="item.status == 0">
  114. 未发货
  115. </view>
  116. <view class="red" v-if="item.status == 1">
  117. 待收货
  118. </view>
  119. <view class="green" v-if="item.status == 2">
  120. 已收货
  121. </view>
  122. <view class="green" v-if="item.status == 3">
  123. 交易完成
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="type-box">
  130. <view class="box"><text class="box-left">订单编号:</text><text class="box-right">{{shopinfo.order_id}}</text></view>
  131. <view class="box"><text class="box-left">提交时间:</text><text class="box-right">{{shopinfo.add_time}}</text></view>
  132. <view class="box"><text class="box-left">付款时间:</text><text class="box-right">{{shopinfo.pay_time}}</text></view>
  133. <view class="box"><text class="box-left">配送类型:</text><text class="box-right">自提</text></view>
  134. <view class="box"><text class="box-left">支付方式:</text><text class="box-right">{{shopinfo.pay_type}}</text></view>
  135. <view class="box" v-if="shopinfo.isPinkT == 1">
  136. <text class="box-left">买家姓名:</text>
  137. <text class="box-right">{{shopinfo.real_name}}</text>
  138. </view>
  139. <view class="box" v-if="shopinfo.isPinkT == 1">
  140. <text class="box-left">买家电话:</text>
  141. <text class="box-right">{{shopinfo.user_phone}}</text>
  142. </view>
  143. <view class="box">
  144. <text class="box-left">订单状态:</text>
  145. <text class="box-right" v-if="shopinfo.status==0 && shopinfo.pink_status == 3">已退款</text>
  146. <text class="box-right" v-if="shopinfo.status==0 && shopinfo.pink_status != 3">未发货</text>
  147. <text class="box-right" v-if="shopinfo.status==1">待收货</text>
  148. <text class="box-right" v-if="shopinfo.status==2">已收货,待评价</text>
  149. <text class="box-right" v-if="shopinfo.status==3">交易完成</text>
  150. </view>
  151. </view>
  152. <view class="bottom">
  153. <view class="gm" @click="navTo('/pages/service/service')">
  154. 售后客服
  155. </view>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. import { orderMake } from '@/api/order.js';
  161. export default {
  162. data() {
  163. return {
  164. shopinfo:{},//订单信息
  165. goodsinfo:{},//商品信息
  166. cart_info:{},
  167. poplist: [],
  168. orderId:'',//订单id
  169. }
  170. },
  171. onLoad(options) {
  172. this.orderId = options.id;
  173. console.log(this.orderId);
  174. this.loadOrder();
  175. },
  176. methods:{
  177. //载入订单明细
  178. loadOrder(){
  179. orderMake({},this.orderId).then(({data})=>{
  180. this.shopinfo = data;
  181. this.goodsinfo = data.info[0].cart_info.productInfo;
  182. this.cart_info = data.info[0].cart_info;
  183. this.poplist = data.sub;
  184. console.log(this.cart_info);
  185. })
  186. },
  187. //跳转接口
  188. navTo(url) {
  189. uni.navigateTo({
  190. url
  191. });
  192. }
  193. }
  194. }
  195. </script>
  196. <style lang="scss">
  197. .container {
  198. padding-top: 20rpx;
  199. padding-bottom: 95rpx;
  200. .top {
  201. background-color: #FFFFFF;
  202. width: 716rpx;
  203. border-radius: 15rpx;
  204. margin: 0 auto;
  205. padding-bottom: 30rpx;
  206. .top-tit {
  207. display: flex;
  208. justify-content: center;
  209. padding-top: 38rpx;
  210. padding-bottom: 60rpx;
  211. align-items: center;
  212. .tit-img {
  213. width: 40rpx;
  214. height: 48rpx;
  215. margin-right: 15rpx;
  216. }
  217. .tit-tit {
  218. font-size: 45rpx;
  219. font-weight: bold;
  220. color: rgba(0, 0, 0, 1);
  221. }
  222. }
  223. .content {
  224. padding-left: 34rpx;
  225. padding-right: 34rpx;
  226. .bContent {
  227. font-weight: bold;
  228. }
  229. font-size:28rpx;
  230. font-weight:normal;
  231. color:rgba(0, 0, 0, 1);
  232. line-height:50rpx;
  233. }
  234. }
  235. .info {
  236. width: 714rpx;
  237. margin: 15rpx auto 0;
  238. background: rgba(255, 255, 255, 1);
  239. border-radius: 10rpx;
  240. padding: 30rpx;
  241. .info-top {
  242. display: flex;
  243. justify-content: space-between;
  244. .top-left {
  245. display: flex;
  246. .img-box {
  247. position: relative;
  248. .biaozhiT {
  249. position: absolute;
  250. top: 0;
  251. left: 0;
  252. width: 80rpx;
  253. height: 34rpx;
  254. }
  255. }
  256. .left-img {
  257. width: 137rpx;
  258. height: 137rpx;
  259. border-radius: 5rpx;
  260. margin-right: 10rpx;
  261. }
  262. .left-box {
  263. .left-tit {
  264. font-size: 27rpx;
  265. font-weight: 400;
  266. color: rgba(0, 0, 0, 1);
  267. margin-bottom: 5rpx;
  268. }
  269. .left {
  270. font-size: 23rpx;
  271. font-weight: 400;
  272. color: rgba(149, 149, 149, 1);
  273. line-height: 35rpx;
  274. }
  275. }
  276. }
  277. .top-right {
  278. font-size: 27rpx;
  279. font-weight: 400;
  280. color: rgba(0, 0, 0, 1);
  281. }
  282. }
  283. .info-pic {
  284. display: flex;
  285. justify-content: space-between;
  286. .pic-left {
  287. margin-top: 30rpx;
  288. font-size: 27rpx;
  289. font-weight: 400;
  290. color: rgba(74, 74, 74, 1);
  291. }
  292. .pic-right {
  293. margin-top: 30rpx;
  294. font-size: 27rpx;
  295. font-weight: 400;
  296. color: rgba(0, 0, 0, 1);
  297. &.red {
  298. color: #FF0A31;
  299. }
  300. }
  301. }
  302. }
  303. .type-box {
  304. width: 714rpx;
  305. margin: 20rpx auto;
  306. background: rgba(255, 255, 255, 1);
  307. border-radius: 10px;
  308. padding: 10rpx 30rpx;
  309. .box {
  310. .box-left {
  311. font-size: 27rpx;
  312. font-weight: 400;
  313. color: rgba(74, 74, 74, 1);
  314. line-height: 80rpx;
  315. }
  316. .box-right {
  317. font-size: 29rpx;
  318. font-weight: 400;
  319. color: rgba(149, 149, 149, 1);
  320. line-height: 80rpx;
  321. }
  322. }
  323. }
  324. .bottom {
  325. width: 100%;
  326. height: 95rpx;
  327. background: rgba(255, 255, 255, 1);
  328. border: 1px solid rgba(219, 219, 219, 1);
  329. padding-right: 25rpx;
  330. display: flex;
  331. align-items: center;
  332. justify-content: flex-end;
  333. position: fixed;
  334. bottom: 0;
  335. left: 0;
  336. .gm {
  337. padding: 5rpx 16rpx;
  338. font-size: 30rpx;
  339. font-weight: 400;
  340. color: rgba(0, 0, 0, 1);
  341. background: rgba(255, 255, 255, 1);
  342. border: 1px solid rgba(219, 219, 219, 1);
  343. border-radius: 30rpx;
  344. }
  345. }
  346. .pop-info-box {
  347. background-color: #FFFFFF;
  348. width: 714rpx;
  349. border-radius: 10rpx;
  350. margin: 20rpx auto;
  351. padding: 25rpx 30rpx 34rpx 30rpx;
  352. .pop-tit {
  353. font-size: 28rpx;
  354. font-weight: 500;
  355. color: rgba(255, 0, 0, 1);
  356. }
  357. .pop {
  358. display: flex;
  359. align-items: center;
  360. margin-top: 35rpx;
  361. .avatar {
  362. width: 74rpx;
  363. height: 74rpx;
  364. border-radius: 50%;
  365. margin-right: 20rpx;
  366. }
  367. .pop-right {
  368. flex: 1;
  369. border-bottom: 1px solid rgba(210,210,210,1);
  370. .right-left{
  371. width: 85%;
  372. .left-top{
  373. .nickname{
  374. font-size:28rpx;
  375. font-weight:normal;
  376. color:rgba(41,38,33,1);
  377. margin-right: 15rpx;
  378. }
  379. .phone{
  380. font-size:24rpx;
  381. font-weight:bold;
  382. color:rgba(139,139,139,1);
  383. }
  384. }
  385. .left-bottom{
  386. font-size:28rpx;
  387. font-weight:normal;
  388. color:rgba(41,38,33,1);
  389. }
  390. .left-none {
  391. opacity: 0;
  392. }
  393. }
  394. .right-right{
  395. font-size:22rpx;
  396. font-weight:bold;
  397. .green{
  398. color:rgba(51,197,91,1);
  399. }
  400. .red{
  401. color:rgba(255,10,49,1);
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. </style>