success.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="p-box">
  3. <view class="box ">
  4. <image src="../../static/img/logo.png" mode=""></image>
  5. <image src="../../static/img/2.png" mode=""></image>
  6. <view style="margin-top: 10px;">掌柜会员号:{{id}}
  7. <image style="height:12px;width:13px;display: inline-block;margin-left:5px" src="../../static/icon/gongxiang.png" mode="" @tap="aaa"></image>
  8. </view>
  9. <view>绑定手机号:{{mobile}}</view>
  10. <image style="padding-top: 12px;
  11. width: 100%;
  12. height: 330px;" src="../../static/img/1.png" mode=""></image>
  13. <image src="../../static/img/3.png" mode="" @tap="downloadApp('android')"></image>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data(){
  20. return{
  21. mobile:'',
  22. id:'',
  23. type:'',
  24. }
  25. },
  26. async onLoad(e) {
  27. let options = JSON.parse(e.data);
  28. if(e){
  29. this.id=options.id
  30. this.mobile= options.mobile //驳回内容
  31. }
  32. },
  33. methods: {
  34. aaa(){
  35. uni.setClipboardData({
  36. data: this.id
  37. })
  38. },
  39. downloadApp(typeId) {
  40. var btn = document.getElementById(typeId);
  41. this.weixinTip(btn);
  42. },
  43. // 判断是不是微信
  44. async weixinTip(ele) {
  45. var ua = navigator.userAgent;
  46. var isWeixin = !!/MicroMessenger/i.test(ua);
  47. if (isWeixin) {
  48. ele.onclick = function(e) {
  49. window.event ? window.event.returnValue = false : e.preventDefault();
  50. document.getElementById('weixin-tip').style.display = 'block';
  51. }
  52. } else {
  53. if (!!this.id) {
  54. uni.setClipboardData({
  55. data: this.id
  56. })
  57. }
  58. let pageRequest = {
  59. pageNum: 1,
  60. pageSize: 50,
  61. columnFilters: {
  62. apptype: {
  63. name: "apptype",
  64. value: "apk",
  65. },
  66. appid: {
  67. name: "appid",
  68. value: "__UNI__3FA05C4",
  69. }
  70. }
  71. };
  72. let getquote = await this.$http.post('/sysVersion/findPage', pageRequest);
  73. let url = getquote.data.content[0].path;
  74. if (getquote.code == '200') {
  75. window.open(url);
  76. } else {
  77. uni.showToast({
  78. title: getquote.msg,
  79. icon: 'none'
  80. });
  81. }
  82. }
  83. },
  84. async promotionCode() {
  85. let pageRequest={
  86. pageNum: 1,
  87. pageSize: 50,
  88. columnFilters: {
  89. apptype: {
  90. name: "apptype",
  91. value: "apk",
  92. },
  93. appid: {
  94. name: "appid",
  95. value: '__UNI__3FA05C4',
  96. }
  97. }
  98. }
  99. let res = await this.$http.post('/sysVersion/findPage', pageRequest);
  100. if (res.code == 200) {
  101. this.pathUrl = res.data.content[0].path
  102. this.workImg = QR.createQrCodeImg(res.data.content[0].path, {
  103. size: parseInt(200) //二维码大小
  104. })
  105. }
  106. },
  107. },
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .p-box{
  112. width: 100%;
  113. height: 100vh;
  114. background: url(/static/img/beijing1.png) no-repeat;
  115. background-size: 100% 100%;
  116. // background: #D0CCFB;
  117. }
  118. .box{
  119. height: 160px;
  120. width: 100%;
  121. // position: relative;
  122. background: url(/static/img/beijng2.png) no-repeat ;
  123. background-size: 100% 100%;
  124. text-align: -webkit-center;
  125. // position: relative;
  126. image{
  127. display: block;
  128. }
  129. text{
  130. font-size: 14px;
  131. color: #666666;
  132. padding-top: 5px;
  133. }
  134. image:first-child{
  135. padding-top: 52px;
  136. width: 110px;
  137. height: 20px;
  138. }
  139. image:nth-child(2){
  140. padding-top: 17px;
  141. width: 260px;
  142. height: 35px;
  143. }
  144. image:last-child{
  145. padding-top: 30px;
  146. width: 220px;
  147. height: 55px;
  148. }
  149. }
  150. </style>