mfxx.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view>
  3. <view style="padding: 30rpx;">
  4. <view v-if="lx==0">
  5. <view v-for="(item, index) in goodlist" :key="index" style="margin-bottom:20rpx;" >
  6. <view class="b1" style="border-radius: 10rpx 10rpx 0 0;font-size: 30rpx;">
  7. <text style="float: left;color:#f1a325;">{{item.type}}</text>
  8. </view>
  9. <view style="background: #fff;padding: 20rpx;font-size: 30rpx;line-height: 200%;">
  10. <view v-if="item.type=='银行卡支付'">开户行:{{item.khh}}<text class="copy" @click="copy(item.khh)">复制</text></view>
  11. <view>账户名称:{{item.zhmc}}<text class="copy" @click="copy(item.zhmc)">复制</text></view>
  12. <view v-if="item.type=='USDT支付'">手机账号:{{item.sjh}}<text class="copy" @click="copy(item.sjh)">复制</text></view>
  13. <view v-if="item.type=='银行卡支付' || item.type=='支付宝支付' || item.type=='拍拍宝'">账号:{{item.skzh}}<text class="copy" @click="copy(item.skzh)">复制</text></view>
  14. <view v-if="item.type=='银行卡支付'">开户行地址:{{item.fhh}}<text class="copy" @click="copy(item.fhh)">复制</text></view>
  15. <view v-if="item.type=='微信支付'">收款码:
  16. <view>
  17. <image :src="item.skm" style="width: 150rpx;height: 150rpx;" @click="viewimg(item.skm)">
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view v-if="lx==1">
  24. <view style="margin-bottom:20rpx;" >
  25. <view class="b1" style="border-radius: 10rpx 10rpx 0 0;font-size: 30rpx;">
  26. <text style="float: left;color:#f1a325;">拍拍宝</text>
  27. </view>
  28. <view style="background: #fff;padding: 20rpx;font-size: 30rpx;line-height: 200%;">
  29. <view>账户名称:{{ppb.xm}}<text class="copy" @click="copy(ppb.xm)">复制</text></view>
  30. <view>手机账号:{{ppb.sjh}}<text class="copy" @click="copy(ppb.sjh)">复制</text></view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. uid:0,
  42. userinfo:[],
  43. goodlist:[],
  44. lx:0,
  45. ppb:[]
  46. }
  47. },
  48. methods: {
  49. copy(text){
  50. uni.setClipboardData({
  51. data:text,
  52. success: function () {
  53. console.log('success');
  54. }
  55. });
  56. },
  57. viewimg(path) {
  58. uni.previewImage({
  59. urls: [path],
  60. longPressActions: {
  61. itemList: ['发送给朋友', '保存图片', '收藏'],
  62. success: function(data) {
  63. // console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  64. },
  65. fail: function(err) {
  66. // console.log(err.errMsg);
  67. }
  68. }
  69. });
  70. },
  71. sklist(){
  72. var data = new Object();
  73. data.uid = this.uid;
  74. this.$api
  75. .MhGetModel(data, 'user/sklist')
  76. .then(res => {
  77. this.goodlist = res.data.data;
  78. this.ppb = res.data.ppb;
  79. })
  80. .catch(err => {
  81. // console.log('request fail', JSON.stringify(err));
  82. });
  83. },
  84. skm(skm){
  85. uni.navigateTo({
  86. url: '/pages/shoukuan/cktp?src='+skm
  87. });
  88. }
  89. },
  90. onLoad(o,lx) {
  91. this.uid = o.id;
  92. this.lx = o.lx;
  93. this.sklist()
  94. }
  95. }
  96. </script>
  97. <style>
  98. page{padding: 15rpx;background: #98a737;background-attachment: fixed !important;
  99. background-repeat: no-repeat !important;}
  100. .b1 {
  101. overflow: hidden;
  102. padding: 10rpx 15rpx;
  103. color: #f1a325;
  104. background: #fff0d5;
  105. border: 1rpx solid #ffdcbc;
  106. }
  107. .copy{background: #98a737;font-size: 26rpx;color: #fff;padding: 5rpx 10rpx;margin-left: 30rpx;border-radius: 10rpx;}
  108. </style>