success.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view class="container">
  3. <view class="tui-bg"></view>
  4. <view class="tui-content">
  5. <view class="tui-form">
  6. <image src="/static/images/mall/dd.png" class="tui-icon"></image>
  7. <view class="tui-title">资料审核中...</view>
  8. <view class="tui-sub-title">非常感谢您对我们的支持</view>
  9. <view v-if="ptype=='member'" class="tui-btn-box">
  10. <tui-button type="danger" height="70rpx" :size="28" shape="circle" @click="gotologin()">重新登录
  11. </tui-button>
  12. </view>
  13. <view v-if="ptype=='member'" class="tui-btn-box">
  14. <tui-button type="danger" height="70rpx" :size="28" shape="circle" @click="gotoreg()">修改资料
  15. </tui-button>
  16. </view>
  17. <view class="tui-btn-box">
  18. <!-- #ifdef MP-WEIXIN -->
  19. <tui-button v-if="configkefu.minionline==1 || configkefu.minionline==3" @click="toim" type="danger" height="70rpx" :size="28" plain shape="circle">联系客服
  20. </tui-button>
  21. <tui-button v-else-if="configkefu.minionline==2" @click="toimwebview(configkefu.kefuurl)" type="danger" height="70rpx" :size="28" plain shape="circle">联系客服
  22. </tui-button>
  23. <tui-button v-else open-type="contact" type="danger" height="70rpx" :size="28" plain shape="circle">联系客服
  24. </tui-button>
  25. <!-- #endif -->
  26. <!-- #ifndef MP-WEIXIN -->
  27. <tui-button @click="toim" type="danger" height="70rpx" :size="28" plain shape="circle">联系客服
  28. </tui-button>
  29. <!-- #endif -->
  30. </view>
  31. <view class="tui-btn-box">
  32. <tui-button type="danger" height="70rpx" :size="28" plain shape="circle" @click="go()">返回首页
  33. </tui-button>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. ptype: 'member',
  44. configkefu: {},
  45. }
  46. },
  47. onLoad: function(e) {
  48. let _this = this;
  49. this.ptype = e.ptype;
  50. _this.$config.init(function() {
  51. if(_this.$config.getConf("kefu")){
  52. _this.configkefu = _this.$config.getConf("kefu");
  53. }
  54. });
  55. },
  56. methods: {
  57. gotoreg() {
  58. uni.reLaunch({
  59. url: "/pages/login/reg?ptype=" + this.ptype
  60. });
  61. },
  62. gotologin() {
  63. uni.reLaunch({
  64. url: "/pages/login/userlogin?ptype=" + this.ptype
  65. });
  66. },
  67. go(page) {
  68. uni.reLaunch({
  69. url: "/pages/index/index"
  70. });
  71. },
  72. toimwebview(url) {
  73. this.tui.href("/pages/webview/h5?url=" + url)
  74. },
  75. toim() {
  76. if (this.configkefu.minionline == 2 && this.configkefu.kefuurl) {
  77. this.tui.href(this.configkefu.kefuurl);
  78. } else if (this.configkefu.minionline == 3) {
  79. var telstr = this.configkefu.kefutel;
  80. uni.makePhoneCall({
  81. phoneNumber: telstr
  82. });
  83. } else {
  84. this.tui.href("/pages/im/h5");
  85. }
  86. },
  87. },
  88. /**
  89. * 页面相关事件处理函数--监听用户下拉动作
  90. */
  91. onPullDownRefresh: function() {
  92. setTimeout(() => {
  93. uni.stopPullDownRefresh()
  94. }, 200);
  95. },
  96. }
  97. </script>
  98. <style>
  99. .tui-bg {
  100. width: 100%;
  101. height: 260rpx;
  102. background: linear-gradient(20deg, #E41F19, #F34B0B);
  103. border-bottom-left-radius: 42rpx;
  104. }
  105. .tui-content {
  106. padding: 0 35rpx;
  107. box-sizing: border-box;
  108. }
  109. .tui-form {
  110. background: #fff;
  111. box-shadow: 0 10rpx 14rpx 0 rgba(0, 0, 0, 0.08);
  112. border-radius: 10rpx;
  113. padding-bottom: 60rpx;
  114. margin-top: -160rpx;
  115. position: relative;
  116. z-index: 10;
  117. display: flex;
  118. align-items: center;
  119. flex-direction: column;
  120. }
  121. .tui-icon {
  122. width: 100rpx;
  123. height: 100rpx;
  124. display: block;
  125. margin-top: 60rpx;
  126. }
  127. .tui-title {
  128. font-size: 42rpx;
  129. line-height: 42rpx;
  130. padding-top: 28rpx;
  131. }
  132. .tui-sub-title {
  133. color: #666666;
  134. font-size: 28rpx;
  135. line-height: 28rpx;
  136. padding-top: 20rpx;
  137. padding-bottom: 20rpx;
  138. }
  139. .tui-btn-box {
  140. width: 380rpx;
  141. align-items: center;
  142. justify-content: space-between;
  143. padding-top: 20rpx;
  144. }
  145. .tui-tips {
  146. font-size: 26rpx;
  147. padding: 48rpx 90rpx;
  148. box-sizing: border-box;
  149. text-align: justify;
  150. line-height: 48rpx;
  151. }
  152. .tui-grey {
  153. color: #555;
  154. padding-bottom: 8rpx;
  155. }
  156. .tui-light-grey {
  157. color: #888;
  158. line-height: 40rpx;
  159. }
  160. </style>