zrcg.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view>
  3. <view style="text-align: center;padding-top: 150rpx;">
  4. <image src="../../static/cg1.png" style="width: 100rpx;height: 100rpx;"></image>
  5. </view>
  6. <view style="text-align: center;margin: 50rpx;margin-bottom: 100rpx;">{{data[lx]}}</view>
  7. <view style="padding: 30rpx;color: #333;font-size: 28rpx;line-height: 200%;" v-if="lx==0 || lx==1">
  8. <rich-text :nodes="ppbsm"></rich-text>
  9. </view>
  10. <view class="list">
  11. <view class="a" v-for="(item,index) in datasm">
  12. <text class="tit">{{item.key}}</text>:{{item.value}}
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. ppbsm:'',
  22. data:[
  23. '成功转入拍拍宝!',
  24. '已经成功释放!',
  25. '转账成功!'
  26. ],
  27. lx:0,
  28. datasm:[]
  29. };
  30. },
  31. onLoad(e) {
  32. this.lx=e.lx
  33. this.$api
  34. .MhPostModel(null, 'ppb/ppbsm')
  35. .then(res => {
  36. if (res.data.code != 1) {
  37. uni.showToast({
  38. title: res.data.msg,
  39. icon: 'none'
  40. });
  41. this.getCode();
  42. return;
  43. } else {
  44. this.ppbsm = res.data.data;
  45. }
  46. })
  47. if(e.lx==2){
  48. var data = new Object();
  49. data.id=e.id
  50. console.log(data)
  51. this.$api
  52. .MhPostModel(data, 'ppb/zzsm')
  53. .then(res => {
  54. this.datasm = res.data.data;
  55. })
  56. }
  57. },
  58. methods: {
  59. }
  60. };
  61. </script>
  62. <style lang="css">
  63. @import '../common/common.css';
  64. @import '../zichan/assets/style/index.rpx.css';
  65. page {
  66. padding: 15rpx;
  67. background: #f2f2f6;
  68. padding: 0;
  69. margin: 0;
  70. }
  71. .list {
  72. background: #fff;
  73. width: calc(100% - 40rpx);
  74. margin: auto;
  75. margin-top: 20rpx;
  76. padding: 20rpx 30rpx;
  77. border-radius: 10rpx;
  78. }
  79. .a {
  80. color: #585858;
  81. font-size: 28rpx;
  82. line-height: 300%;border-bottom: #a4a4a4 dotted 1rpx;
  83. }
  84. .tit{color: #a4a4a4;width: 150rpx;display: inline-block;text-align-last:justify}
  85. .a::before {
  86. content: '';
  87. width: 10rpx;display: inline-block;
  88. height: 10rpx;margin-right: 10rpx;position: relative;
  89. background: #aaaaaa;top: -5rpx;
  90. border-radius: 50%;
  91. }
  92. .b {
  93. color: #ED4545;
  94. font-weight: bold;
  95. }
  96. </style>