orderdetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. <template>
  2. <view>
  3. <view v-if="list.sendWay != 2"
  4. style="height: 140upx;background: #FFFFFF;margin-top: 30upx; padding: 10upx;border-radius: 15upx;width: 95%;margin-left: 20upx;">
  5. <view style="display: flex;margin: 15upx 0 0 20upx;">
  6. <image src="/static/image/address.png"
  7. style="width: 70upx; height: 70upx;margin-top: 10upx;"></image>
  8. <view style="margin-left: 20upx;width: 80%;">
  9. <view style="display: flex;align-items: center;">
  10. <view style="font-size: 32upx;color: #333333;">{{list.consignee}}</view>
  11. <view style="font-size: 28upx;color: #999999;margin-left: 10upx;">{{list.mobile}}</view>
  12. </view>
  13. <view
  14. style="margin-top: 10upx;font-size: 26upx;color: #333333;width: 90%;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
  15. {{list.provinces}}{{list.detail}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view
  21. style="height: 320upx;background: #FFFFFF;margin-top: 30upx; padding: 10upx;border-radius: 15upx;width: 95%;margin-left: 20upx;">
  22. <view style="display: flex;">
  23. <view style="padding: 20upx 0 0upx 30upx;width: 75%;text-align: left;color: #000;font-size: 28upx;">
  24. {{list.createAt}}
  25. </view>
  26. <view style="padding: 20upx 0 0upx 0upx;width: 20%;text-align: right;color: #05C25C;font-size: 28upx;">
  27. {{list.status}}
  28. </view>
  29. </view>
  30. <view style="display: flex;padding: 20upx 10upx;" @tap='goOrderDetail(list.goodsId)'>
  31. <image :src="list.img" style="width: 30%;height: 190upx;margin-left: 20upx;"></image>
  32. <view style="margin-left: 20upx;width: 68%;">
  33. <view
  34. style="font-size: 30upx;color: #333333;width: 90%;height: 80upx;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;">
  35. {{list.title}}
  36. </view>
  37. <view style="display: flex;height: 50upx;margin-top: 70upx;">
  38. <view style="display: flex;width: 50%;">
  39. <view style="font-size: 30upx;color: #333333;">¥ {{list.price}}</view>
  40. <view style="font-size: 24upx;color: #666666;padding-top: 7upx;padding-left: 10upx;">
  41. ×{{list.number}}</view>
  42. </view>
  43. <view
  44. style="font-size: 26upx;color: #333333;padding: 0 0 10upx 20upx;width: 40%;text-align: right;">
  45. 总金额: ¥{{list.payMoney}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view
  51. style="height: max-content;background: #FFFFFF;margin-top: 30upx; padding: 10upx;border-radius: 15upx;width: 95%;margin-left: 20upx;margin-bottom: 150upx;">
  52. <view style="display: flex;padding: 20upx;align-items: center;"
  53. v-if="list.postagePrice != null && list.sendWay != 2">
  54. <view style="font-size: 26upx;color: #333333;width: 25%;">运费</view>
  55. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;width: 70%;">
  56. {{list.postagePrice == 0 ? '包邮' : list.postagePrice + '元'}}
  57. </view>
  58. </view>
  59. <view style="display: flex;padding: 20upx;align-items: center;" @tap="copy(list.orderNum)">
  60. <view style="font-size: 26upx;color: #333333;width: 25%;">订单编号</view>
  61. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;width: 70%;">{{list.orderNum}}
  62. <u-icon name="file-text"></u-icon>
  63. </view>
  64. </view>
  65. <view style="display: flex;padding: 20upx;align-items: center;">
  66. <view style="font-size: 26upx;color: #333333;width: 25%;">配送方式</view>
  67. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;width: 70%;">
  68. {{list.sendWay == 2 ? '自取' : '快递'}}
  69. </view>
  70. </view>
  71. <view style="display: flex;padding: 20upx;align-items: center;">
  72. <view style="font-size: 26upx;color: #333333;width: 25%;">下单时间</view>
  73. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;width: 70%;">{{list.createAt}}</view>
  74. </view>
  75. <view style="display: flex;padding: 20upx;align-items: center;" v-if="state != 5 && list.descrition">
  76. <view style="font-size: 26upx;color: #333333;width: 25%;">订单备注</view>
  77. <view style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;">{{list.descrition}}</view>
  78. </view>
  79. <view style="display: flex;padding: 20upx;align-items: center;" v-if="list.sendWay == 2 && adminShopName">
  80. <view style="font-size: 26upx;color: #333333;width: 25%;">商家名称</view>
  81. <view style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;">{{adminShopName}}</view>
  82. </view>
  83. <view style="display: flex;padding: 20upx;align-items: center;" @tap="bindGps"
  84. v-if="list.sendWay == 2 && adminShopAddress">
  85. <view style="font-size: 26upx;color: #333333;width: 25%;">商家地址</view>
  86. <view style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;align-items: center;">
  87. {{adminShopAddress}}
  88. <u-icon name="map"></u-icon>
  89. </view>
  90. </view>
  91. <view style="display: flex;padding: 20upx;align-items: center;" @click="bindphone(adminShopPhone)"
  92. v-if="list.sendWay == 2 && adminShopPhone">
  93. <view style="font-size: 26upx;color: #333333;width: 25%;">商家电话</view>
  94. <view style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;">{{adminShopPhone}}
  95. <u-icon name="phone"></u-icon>
  96. </view>
  97. </view>
  98. <view style="display: flex;padding: 20upx;align-items: center;" v-if="state != 5">
  99. <view v-if="state < 2" style="font-size: 26upx;color: #333333;width: 25%;">支付状态</view>
  100. <view v-if="state >= 2" style="font-size: 26upx;color: #333333;width: 25%;">支付方式</view>
  101. <view style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;">{{payWay}}</view>
  102. </view>
  103. <view style="display: flex;padding: 20upx;align-items: center;" @click="getDuihuanma(list.virtualId)"
  104. v-if="list.virtualId && state < 5">
  105. <view style="font-size: 26upx;color: #333333;width: 25%;">兑换码</view>
  106. <view style="font-size: 26upx;color: #FC0B17;margin-left: 10upx;width: 70%;">点击查看详情</view>
  107. </view>
  108. <view style="display: flex;padding: 20upx;align-items: center;" v-if="refundCheck">
  109. <view style="font-size: 26upx;color: #333333;width: 25%;">退款原因</view>
  110. <input type="text" style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;"
  111. v-model="refund" placeholder="请输入退款原因" :disabled="state === 6 || state === 7 ? true : false" />
  112. </view>
  113. <view style="display: flex;padding: 20upx;align-items: center;" v-if="refusedRefund">
  114. <view style="font-size: 26upx;color: #333333;width: 25%;">拒绝退款原因</view>
  115. <input type="text" style="width: 70%;font-size: 26upx;color: #333333;margin-left: 10upx;"
  116. v-model="refusedRefund" disabled="true" />
  117. </view>
  118. <view style="padding: 20upx;" v-if="expList.length > 0">
  119. <view>
  120. <view style="display: flex;">
  121. <view style="font-size: 26upx;color: #333333;width: 25%;">{{expName}}</view>
  122. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;width: 70%;">
  123. {{list.expressNumber}}
  124. </view>
  125. </view>
  126. <view style="width: 100%;margin-top: 20upx;">
  127. <view style="margin-top: 20upx;" v-for="(item,index) in expList" :key='index'>
  128. <view style="width: 100%;margin-top: 10upx;">
  129. <text>{{item.time}}:</text>
  130. <text style="margin-left: 20upx;">{{item.status}}</text>
  131. <!-- <view style="width: 40%;">{{item.time}}:</view>
  132. <view style="font-size: 26upx;color: #333333;margin-left: 10upx;">{{item.status}}</view> -->
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <!-- 淘口令分享 -->
  140. <simpleModal ref="simpleModalTkl" @maskClose="TklmaskClose">
  141. <view class="buy-box-title">兑换码</view>
  142. <view class="buy-box-center" style="width: 700upx;">
  143. <view class="code-cent">
  144. <div class="cente-text">
  145. <div>
  146. <view class="textarea">
  147. 【商品】{{ duihuanList.title }}
  148. <br />
  149. 【链接】{{ duihuanList.linkUrl }}
  150. <br />
  151. 【兑换码】{{ duihuanList.content }}
  152. </view>
  153. </div>
  154. </div>
  155. </view>
  156. <view style="display: flex;width: 100%;">
  157. <view class="buy-btn-copy" style="width: 40%;" @tap="goWeb">一键打开</view>
  158. <view class="buy-btn-copy" style="width: 40%;" v-bind:class="[copyTklStatus ? 'active' : '', '']"
  159. @tap="copyTklWenAns">{{ copyTklStatus ? '已复制到剪切板' : '一键复制' }}</view>
  160. </view>
  161. </view>
  162. </simpleModal>
  163. <view
  164. style="text-align: center;position: fixed;bottom: 0upx;background-color: #FFFFFF;width: 100%;height: 100upx;justify-content: center;overflow: hidden;"
  165. v-if="state < 5">
  166. <view style="display: flex;text-align: center;width: max-content;float: right;">
  167. <view class='view_button' @tap='goMaijia(list)'>联系卖家</view>
  168. <view v-if="state === 3" style="color: #05C25C;border: 1px solid #05C25C;" class='view_button'
  169. @tap='goconfirm(list)'>确认收货</view>
  170. <view v-if="state === 3 && isExpress != 2" class='view_button' @tap='getWuLiu(list)'>查看物流</view>
  171. <view v-if="state === 2" class='view_button' @tap='goRemind(list)'>提醒发货</view>
  172. <view v-if="state === 2 && isRefund != 2 && isExpress != 2" class='view_button' @tap='gorefund(list)'>退款
  173. </view>
  174. <view v-if="state === 4" class='view_button' @tap='gopinglun(list)'>去评价</view>
  175. <view v-if="state === 1" class='view_button' @tap='gocancle(list)'>取消订单</view>
  176. <view v-if="state === 1" style="color: #05C25C;border: 1px solid #05C25C;" class='view_button'
  177. @tap='goPay(list)'>去支付</view>
  178. </view>
  179. </view>
  180. </view>
  181. </template>
  182. <script>
  183. import simpleModal from '@/components/simple-pro/customModal.vue';
  184. export default {
  185. components: {
  186. simpleModal
  187. },
  188. data() {
  189. return {
  190. adminShopName: '',
  191. adminShopAddress: '',
  192. adminShopPhone: '',
  193. latitude: 0,
  194. longitude: 0,
  195. state: '-1',
  196. isRefund: 0,
  197. payWay: '',
  198. id: 0,
  199. refusedRefund: '',
  200. expName: '',
  201. refund: '',
  202. isExpress: 0,
  203. copyTklStatus: false,
  204. refundCheck: false,
  205. duihuanList: {},
  206. list: {},
  207. expList: []
  208. }
  209. },
  210. onLoad(d) {
  211. this.adminShopName = this.$queue.getData('adminShopName');
  212. this.adminShopAddress = this.$queue.getData('adminShopAddress');
  213. this.adminShopPhone = this.$queue.getData('adminShopPhone');
  214. let adminShopJW = this.$queue.getData('adminShopJW');
  215. if (adminShopJW) {
  216. adminShopJW = adminShopJW.split(',');
  217. if (adminShopJW.length > 0) {
  218. this.longitude = adminShopJW[0];
  219. this.latitude = adminShopJW[1];
  220. }
  221. }
  222. if (d.id) {
  223. this.id = d.id;
  224. this.getListById(d.id);
  225. }
  226. },
  227. methods: {
  228. copy(num) {
  229. uni.setClipboardData({
  230. data: num,
  231. success: r => {
  232. this.$queue.showToast('复制成功');
  233. }
  234. });
  235. },
  236. // 一键导航
  237. bindGps() {
  238. uni.openLocation({
  239. latitude: Number(this.latitude) - 0, //要去的纬度-地址
  240. longitude: Number(this.longitude) - 0, //要去的经度-地址
  241. name: this.adminShopName, //地址名称
  242. address: this.adminShopAddress, //详细地址名称
  243. success: function() {
  244. console.log('导航成功');
  245. },
  246. fail: function(error) {
  247. console.log(error)
  248. }
  249. });
  250. },
  251. // 拨打电话
  252. bindphone(phone) {
  253. let that = this
  254. uni.showModal({
  255. title: '提示',
  256. content: '是否拨打电话',
  257. success: function(res) {
  258. if (res.confirm) {
  259. console.log('用户点击确定', phone);
  260. uni.makePhoneCall({
  261. phoneNumber: phone //仅为示例
  262. });
  263. } else if (res.cancel) {
  264. console.log('用户点击取消');
  265. }
  266. }
  267. });
  268. },
  269. gopinglun(item) {
  270. uni.redirectTo({
  271. url: '../my/pinglun?ordersId=' + item.id
  272. });
  273. },
  274. goWeb() {
  275. //#ifdef APP-PLUS
  276. uni.navigateTo({
  277. url: '/pages/member/webview?url=' + this.duihuanList.linkUrl
  278. });
  279. //#endif
  280. //#ifdef H5
  281. window.location.href = this.duihuanList.linkUrl
  282. //#endif
  283. },
  284. getDuihuanma(id) {
  285. this.$Request.getT('/app/selfGoodsVirtual/find?id=' + id).then(res => {
  286. if (res.status === 0) {
  287. this.duihuanList = res.data;
  288. this.$refs.simpleModalTkl.show({
  289. showConfirmButton: false
  290. });
  291. }
  292. });
  293. },
  294. copyTklWenAns: function() {
  295. uni.setClipboardData({
  296. data: this.duihuanList.content,
  297. success: r => {
  298. this.$queue.showToast('复制成功')
  299. this.copyTklStatus = true;
  300. }
  301. });
  302. },
  303. TklmaskClose: function(e) {
  304. this.$refs.simpleModalTkl.hide();
  305. this.copyTklStatus = false;
  306. },
  307. TklmaskShow: function(e) {
  308. },
  309. goRemind(item) {
  310. this.$Request.getT('/app/orders/remind?ordersId=' + item.id).then(res => {
  311. if (res.status === 0) {
  312. this.$queue.showToast('已提醒商家及时发货,请注意查收');
  313. } else {
  314. this.$queue.showToast(res.msg);
  315. }
  316. });
  317. },
  318. goOrderDetail(id) {
  319. uni.navigateTo({
  320. url: '../index/commoditydetail?ordersId=' + id
  321. });
  322. },
  323. gorefund(list) {
  324. if (this.refundCheck) {
  325. if (this.refund != undefined && this.refund != '') {} else {
  326. uni.showToast({
  327. icon: 'none',
  328. title: '退款原因不能为空'
  329. });
  330. return;
  331. }
  332. uni.showModal({
  333. title: '温馨提示',
  334. content: '确定要取消订单并退款吗?',
  335. showCancel: true,
  336. cancelText: '取消',
  337. confirmText: '确认',
  338. success: res => {
  339. if (res.confirm) {
  340. this.$Request.getT('/app/orders/refund?ordersId=' + list.id + '&refund=' + this
  341. .refund).then(res => {
  342. if (res.status === 0) {
  343. this.getListById(this.id);
  344. } else {
  345. this.$queue.showToast(res.msg);
  346. }
  347. });
  348. }
  349. }
  350. });
  351. } else {
  352. this.refundCheck = true;
  353. }
  354. },
  355. goMaijia(list) {
  356. let kefu = this.$queue.getData('kefu'); // 用户端联系方式 1 手机号 2企业微信
  357. let kefuPhone = this.$queue.getData('kefuPhone');
  358. let userId = this.$queue.getData('userId');
  359. if (userId) {
  360. if (kefu == 1) {
  361. uni.makePhoneCall({
  362. phoneNumber: kefuPhone //仅为示例
  363. });
  364. } else {
  365. // #ifdef MP-WEIXIN
  366. let that = this
  367. try {
  368. wx.openCustomerServiceChat({
  369. extInfo: {
  370. url: that.$queue.getData('kefuUrl')
  371. },
  372. corpId: that.$queue.getData('kefuAppId'),
  373. success(res) {},
  374. fail(res) {
  375. console.error(res)
  376. }
  377. })
  378. } catch (error) {
  379. console.error("catchcatch" + error)
  380. uni.showToast({
  381. title: '请更新至微信最新版本'
  382. });
  383. }
  384. // #endif
  385. // #ifndef MP-WEIXIN
  386. let url = this.$queue.getData('kefuUrl');
  387. if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1) {
  388. uni.navigateTo({
  389. url
  390. });
  391. } else {
  392. //#ifndef H5
  393. uni.navigateTo({
  394. url: '/pages/index/webView?url=' + url
  395. });
  396. //#endif
  397. //#ifdef H5
  398. window.location.href = url;
  399. //#endif
  400. }
  401. // #endif
  402. }
  403. } else {
  404. uni.showModal({
  405. title: '提示',
  406. content: '您还未登录,请先登录',
  407. success: function(res) {
  408. if (res.confirm) {
  409. console.log('用户点击确定');
  410. uni.navigateTo({
  411. url: '/pages/public/login'
  412. })
  413. } else if (res.cancel) {
  414. console.log('用户点击取消');
  415. }
  416. }
  417. })
  418. }
  419. },
  420. getWuLiu(list) {
  421. this.$queue.showLoading('查询中...');
  422. this.$Request.getT('/app/orders/findExpress?expressNumber=' + list.expressNumber).then(res => {
  423. if (res.status === 0) {
  424. uni.hideLoading();
  425. this.expList = [];
  426. //快递公司名称
  427. this.expName = res.data.result.expName;
  428. if (res.data.result.list.length > 0) {
  429. res.data.result.list.forEach(d => {
  430. this.expList.push(d);
  431. });
  432. } else {
  433. this.$queue.showToast("暂无货运信息");
  434. }
  435. } else {
  436. uni.hideLoading();
  437. this.$queue.showToast(res.msg);
  438. }
  439. });
  440. // this.$Request.getT('/orders/findExpress?expressNumber=557031772301836').then(res => {
  441. // if (res.status === 0) {
  442. // let data = JSON.parse(res.data);
  443. // this.expName = data.result.expName;
  444. // this.expList = [];
  445. // //快递公司名称
  446. // if (data) {
  447. // this.expList = data.result.list;
  448. // console.log(JSON.stringify(this.expList))
  449. // } else {
  450. // this.$queue.showToast("暂无货运信息");
  451. // }
  452. // } else {
  453. // this.$queue.showToast(res.msg);
  454. // }
  455. // });
  456. },
  457. gocancle(list) {
  458. uni.showModal({
  459. title: '温馨提示',
  460. content: '确定要取消此订单吗?',
  461. showCancel: true,
  462. cancelText: '取消',
  463. confirmText: '确认',
  464. success: res => {
  465. if (res.confirm) {
  466. this.$Request.getT('/app/orders/cancel?id=' + list.id).then(res => {
  467. if (res.status === 0) {
  468. this.getListById(this.id);
  469. } else {
  470. this.$queue.showToast(res.msg);
  471. }
  472. });
  473. }
  474. }
  475. });
  476. },
  477. goconfirm(list) {
  478. uni.showModal({
  479. title: '温馨提示',
  480. content: '确定收到货物了吗?',
  481. showCancel: true,
  482. cancelText: '取消',
  483. confirmText: '确认',
  484. success: res => {
  485. if (res.confirm) {
  486. this.$Request.getT('/app/orders/confirm?id=' + list.id).then(res => {
  487. if (res.status === 0) {
  488. this.getListById(this.id);
  489. } else {
  490. this.$queue.showToast(res.msg);
  491. }
  492. });
  493. }
  494. }
  495. });
  496. },
  497. goPay(list) {
  498. this.$queue.setData('href', '/pages/my/orderdetail')
  499. uni.redirectTo({
  500. url: '../my/payment?money=' + list.payMoney + '&title=' + list.title + '&img=' + list.img +
  501. '&id=' + list.id
  502. });
  503. },
  504. deleteOder(id) {
  505. uni.showModal({
  506. title: '温馨提示',
  507. content: '确定要删除此订单吗?',
  508. showCancel: true,
  509. cancelText: '取消',
  510. confirmText: '确认',
  511. success: res => {
  512. if (res.confirm) {
  513. this.$Request.getT('/app/orders/delete?id=' + id).then(res => {
  514. if (res.status === 0) {
  515. uni.navigateBack();
  516. } else {
  517. this.$queue.showToast(res.msg);
  518. }
  519. });
  520. }
  521. }
  522. });
  523. },
  524. getListById(id) {
  525. uni.showLoading({
  526. title: '加载中...'
  527. });
  528. this.$Request.getT('/app/orders/find?id=' + id).then(res => {
  529. if (res.status === 0) {
  530. this.state = res.data.status;
  531. if (res.data.status === 1) {
  532. res.data.status = '待付款'
  533. } else if (res.data.status === 2) {
  534. res.data.status = '待发货'
  535. } else if (res.data.status === 3) {
  536. res.data.status = '已发货'
  537. } else if (res.data.status === 4) {
  538. res.data.status = '已收货'
  539. } else if (res.data.status === 5) {
  540. res.data.status = '已取消'
  541. } else if (res.data.status === 6) {
  542. res.data.status = '退款中'
  543. } else if (res.data.status === 7) {
  544. res.data.status = '已退款'
  545. } else if (res.data.status === 8) {
  546. res.data.status = '拒绝退款'
  547. } else if (res.data.status === 10) {
  548. res.data.status = '已评价'
  549. }
  550. if (res.data.mobile === '') {
  551. res.data.consignee = '未填写地址信息';
  552. res.data.mobile = '';
  553. }
  554. this.list = res.data;
  555. this.isRefund = res.data.isRefund;
  556. this.refusedRefund = res.data.refusedRefund;
  557. this.isExpress = res.data.isExpress;
  558. if (this.state === 6 || this.state === 7) {
  559. this.refundCheck = true;
  560. this.refund = res.data.refund;
  561. }
  562. if (res.data.payWay === 1 || res.data.payWay === 2 || res.data.payWay === 3) {
  563. this.payWay = '微信';
  564. } else if (res.data.payWay === 4 || res.data.payWay === 5) {
  565. this.payWay = '支付宝';
  566. } else if (res.data.payWay === 6) {
  567. this.payWay = '零钱';
  568. } else if (res.data.payWay === 7) {
  569. this.payWay = '积分';
  570. } else {
  571. this.payWay = '待支付';
  572. }
  573. }
  574. uni.hideLoading();
  575. });
  576. }
  577. }
  578. }
  579. </script>
  580. <style>
  581. @import '../../../../static/css/index.css';
  582. page {
  583. background: #F2F2F2;
  584. }
  585. .view_button {
  586. margin: 25upx 20upx 10upx 30upx;
  587. line-height: 60upx;
  588. font-size: 24upx;
  589. color: #333333;
  590. width: 150upx;
  591. height: 60upx;
  592. border-radius: 100upx;
  593. border: 1upx solid #bababa;
  594. }
  595. .buy-box-center .buy-btn-copy {
  596. background: linear-gradient(to left, #FF2638 0, #FF2638 100%);
  597. display: block;
  598. border-radius: 50px;
  599. line-height: 40px;
  600. height: 40px;
  601. text-align: center;
  602. color: #fff;
  603. font-size: 16px;
  604. margin-left: 20upx;
  605. width: 580upx;
  606. margin: 0 auto;
  607. margin-top: 10px;
  608. margin-bottom: 10px;
  609. }
  610. </style>