buySellDetail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <template>
  2. <view class="content">
  3. <view class="top-status">
  4. {{chooseItem.status | statusTitle}}
  5. </view>
  6. <view class="good-info">
  7. <view class="good-img-tit flex">
  8. <image :src="chooseItem.whole.image" mode="" class="good-img"></image>
  9. <view class="good-tit ">
  10. <view class="clamp2">
  11. {{chooseItem.whole.title}}
  12. </view>
  13. <view class="good-time">
  14. {{chooseItem.whole.add_time}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="flex good-price">
  19. <view class="">
  20. 订单总价
  21. </view>
  22. <view class="">
  23. ¥{{chooseItem.price}}
  24. </view>
  25. </view>
  26. </view>
  27. <view class="user-info">
  28. <view class="top-tit">
  29. <view class="tit-t"></view>
  30. <view class="" style="display: inline-block;">
  31. 订单信息
  32. </view>
  33. </view>
  34. <view class="info-wrap">
  35. <view class="info-tit">
  36. 订单编号:
  37. </view>
  38. <view class="info-val">{{chooseItem.order_id}}</view>
  39. </view>
  40. <view class="info-wrap">
  41. <view class="info-tit">
  42. 所属支行:
  43. </view>
  44. <view class="info-val">{{chooseItem.touser.bank_branch}}</view>
  45. </view>
  46. <view class="info-wrap">
  47. <view class="info-tit">
  48. 开户行:
  49. </view>
  50. <view class="info-val">{{chooseItem.touser.account_Bank}}</view>
  51. </view>
  52. <view class="info-wrap">
  53. <view class="info-tit">
  54. 开户名:
  55. </view>
  56. <view class="info-val">{{chooseItem.touser.bank_name}}</view>
  57. <view class="fz" @click="fz()">
  58. 复制
  59. </view>
  60. </view>
  61. <view class="info-wrap">
  62. <view class="info-tit">
  63. 银行卡号:
  64. </view>
  65. <view class="info-val">45875487854</view>
  66. <view class="fz" @click="fz()">
  67. 复制
  68. </view>
  69. </view>
  70. <view class="info-wrap">
  71. <view class="info-tit">
  72. 支付宝账号:
  73. </view>
  74. <view class="info-val">{{chooseItem.touser.alipay_no}}</view>
  75. <view class="fz" @click="fz()">
  76. 复制
  77. </view>
  78. </view>
  79. <view class="info-wrap">
  80. <view class="info-tit">
  81. 微信收款码:
  82. </view>
  83. <image :src="chooseItem.touser.wx_qr" mode="" class="info-img"></image>
  84. </view>
  85. <view class="info-wrap">
  86. <view class="info-tit">
  87. 卖家电话:
  88. </view>
  89. <view class="info-val">{{chooseItem.touser.bank_card}}</view>
  90. <view class="fz" @click="fz()">
  91. 复制
  92. </view>
  93. </view>
  94. </view>
  95. <view class="up-wrap" v-if="can_addit">
  96. <view class="up-tit">
  97. 上传凭证
  98. </view>
  99. <image src="../../static/img/upimg.png" mode="" class="upimg" v-if="upimg == ''" @click="imgsub()"></image>
  100. <image :src="upimg" mode="" class="upimg" v-else @click="imgsub()"></image>
  101. </view>
  102. <view class="apply-wrap" v-if="can_addit">
  103. <view class="apply-btn" @click="upnew">
  104. 立即支付
  105. </view>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. import { upload} from '@/api/order.js';
  111. import { upEvaluation } from '@/api/whole.js'
  112. export default {
  113. data() {
  114. return {
  115. upimg: '',
  116. chooseItem: '',
  117. can_addit: false
  118. }
  119. },
  120. onLoad(opt) {
  121. if(opt.type == 'look') {
  122. this.can_addit = false
  123. }
  124. if(opt.type == 'up') {
  125. this.can_addit = true
  126. }
  127. this.chooseItem = this.$api.prePage().chooseItem
  128. },
  129. filters: {
  130. statusTitle(val) {
  131. let str = ''
  132. switch (val) {
  133. case -2:
  134. str = '支付超时'
  135. break;
  136. case -1:
  137. str = '待支付'
  138. break;
  139. case 0:
  140. str = '待支付'
  141. break;
  142. case 1:
  143. str = '待审核'
  144. break;
  145. case 2:
  146. str = '收款'
  147. break;
  148. case 3:
  149. str = '重新发放'
  150. break;
  151. case 4:
  152. str = '完成'
  153. break;
  154. default:
  155. str = ''
  156. break
  157. }
  158. return str
  159. }
  160. },
  161. methods: {
  162. imgsub() {
  163. console.log('imgsub');
  164. upload({
  165. filename: ''
  166. }).then(data => {
  167. this.upimg = data[0].url;
  168. // this.$set(this, text, data[0].url)
  169. });
  170. },
  171. upnew() {
  172. let obj = this
  173. if(obj.upimg == '') {
  174. return obj.$api.msg('请上传凭证')
  175. }
  176. upEvaluation({
  177. id: obj.chooseItem.id,
  178. pay_evaluation: obj.upimg
  179. }).then(res => {
  180. console.log(res)
  181. })
  182. }
  183. }
  184. }
  185. </script>
  186. <style lang='scss' scoped>
  187. .top-status {
  188. width: 750rpx;
  189. height: 89rpx;
  190. line-height: 89rpx;
  191. padding-left: 20rpx;
  192. background: #FFFFFF;
  193. font-size: 32rpx;
  194. font-family: PingFang SC;
  195. font-weight: bold;
  196. color: #FF4C4C;
  197. line-height: 56rpx;
  198. }
  199. .good-info {
  200. width: 750rpx;
  201. height: 253rpx;
  202. padding: 30rpx;
  203. background: #FFFFFF;
  204. margin: 20rpx 0;
  205. .good-price {
  206. font-size: 26rpx;
  207. font-family: PingFangSC;
  208. font-weight: 500;
  209. color: #333333;
  210. padding-top: 10rpx;
  211. }
  212. .good-img-tit {
  213. justify-content: flex-start;
  214. .good-img {
  215. width: 160rpx;
  216. height: 160rpx;
  217. flex-shrink: 0;
  218. background-color: #eee;
  219. }
  220. .good-tit {
  221. height: 160rpx;
  222. padding: 20rpx 0 0;
  223. flex-shrink: 0;
  224. padding-left: 20rpx;
  225. width: 450rpx;
  226. font-size: 26rpx;
  227. font-family: PingFang SC;
  228. font-weight: 400;
  229. color: #1D2023;
  230. line-height: 40rpx;
  231. display: flex;
  232. flex-direction: column;
  233. justify-content: space-between;
  234. .good-time {
  235. font-size: 22rpx;
  236. font-family: PingFang SC;
  237. font-weight: 400;
  238. color: #999999;
  239. }
  240. }
  241. }
  242. }
  243. .user-info {
  244. padding: 20rpx 30rpx;
  245. background-color: #fff;
  246. margin: 20rpx 0;
  247. .top-tit {
  248. padding-bottom: 20rpx;
  249. .tit-t {
  250. margin-right: 8rpx;
  251. display: inline-block;
  252. width: 3rpx;
  253. height: 25rpx;
  254. background: linear-gradient(0deg, #FA2740, #FE5544);
  255. border-radius: 2rpx;
  256. font-size: 30rpx;
  257. font-family: PingFangSC;
  258. font-weight: 500;
  259. color: #333333;
  260. }
  261. }
  262. }
  263. .info-wrap {
  264. display: flex;
  265. justify-content: flex-start;
  266. align-items: flex-start;
  267. /* text-align: 80rpx; */
  268. font-size: 26rpx;
  269. font-family: PingFang SC;
  270. font-weight: 500;
  271. color: #666666;
  272. line-height: 56rpx;
  273. .info-img {
  274. width: 144rpx;
  275. height: 147rpx;
  276. background-color: #eee;
  277. }
  278. .info-tit {
  279. flex-shrink: 0;
  280. margin-right: 10rpx;
  281. }
  282. .fz {
  283. margin-left: 10rpx;
  284. text-align: center;
  285. width: 88rpx;
  286. height: 45rpx;
  287. line-height: 45rpx;
  288. background: #FFFFFF;
  289. border: 1px solid #DDDDDD;
  290. border-radius: 23rpx;
  291. }
  292. }
  293. .up-wrap {
  294. width: 750rpx;
  295. /* height: 229rpx; */
  296. background: #FFFFFF;
  297. padding: 20rpx 30rpx;
  298. .up-tit {
  299. font-size: 26rpx;
  300. font-family: PingFang SC;
  301. font-weight: 500;
  302. color: #666666;
  303. line-height: 56rpx;
  304. }
  305. .upimg {
  306. display: block;
  307. width: 150rpx;
  308. height: 150rpx;
  309. margin: auto;
  310. }
  311. }
  312. .apply-wrap {
  313. height: 200rpx;
  314. padding-top: 62rpx;
  315. .apply-btn {
  316. text-align: center;
  317. width: 560rpx;
  318. height: 80rpx;
  319. line-height: 80rpx;
  320. background: #E62129;
  321. border-radius: 40rpx;
  322. margin: auto;
  323. font-size: 30rpx;
  324. font-family: PingFang SC;
  325. font-weight: 500;
  326. color: #FFFFFF;
  327. }
  328. }
  329. </style>