You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

177 lines
4.7 KiB

  1. <template>
  2. <view class="boox">
  3. <view class="title">
  4. 数智工牌
  5. </view>
  6. <view class="booximg">
  7. <!-- <image class="img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/guidepage.png" mode=""></image> -->
  8. <image class="img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images1.png" mode=""></image>
  9. </view>
  10. <view class="center-dingwei">
  11. <view style="height: 44rpx;display: flex;margin-left: 213rpx;">
  12. <image style="width: 44rpx;height: 44rpx;" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png" mode=""></image>
  13. <view style="line-height: 44rpx;margin-left: 10rpx;font-size: 32rpx;color: #333333;">智能语音转写</view>
  14. </view>
  15. <view style="height: 44rpx;display: flex;margin-left: 213rpx;margin-top: 20rpx;">
  16. <image style="width: 44rpx;height: 44rpx;" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png" mode=""></image>
  17. <view style="line-height: 44rpx;margin-left: 10rpx;font-size: 32rpx;color: #333333;">高效的判客机制</view>
  18. </view>
  19. <view style="height: 44rpx;display: flex;margin-left: 213rpx;margin-top: 20rpx;">
  20. <image style="width: 44rpx;height: 44rpx;" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png" mode=""></image>
  21. <view style="line-height: 44rpx;margin-left: 10rpx;font-size: 32rpx;color: #333333;">全方位的客户跟进</view>
  22. </view>
  23. <view style="height: 44rpx;display: flex;margin-left: 213rpx;margin-top: 20rpx;">
  24. <image style="width: 44rpx;height: 44rpx;" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png" mode=""></image>
  25. <view style="line-height: 44rpx;margin-left: 10rpx;font-size: 32rpx;color: #333333;">专业的经济管家</view>
  26. </view>
  27. <view style="height: 44rpx;display: flex;margin-left: 213rpx;margin-top: 20rpx;">
  28. <image style="width: 44rpx;height: 44rpx;" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png" mode=""></image>
  29. <view style="line-height: 44rpx;margin-left: 10rpx;font-size: 32rpx;color: #333333;">在线实时沟通</view>
  30. </view>
  31. </view>
  32. <view @click="bindWxBLogin" class="button">
  33. <view class="view">
  34. 立即去登录
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. var app = getApp();
  41. var config = require("../../config");
  42. export default {
  43. data() {
  44. return {
  45. name:"",
  46. path:'/pages/index/index',
  47. pathurl:'/pages/index/index',
  48. pathur2:'/pages/index/customer',
  49. pathur3:'/pages/center/prohibited/index',
  50. };
  51. },
  52. onLoad(opts) {
  53. this.name=opts.loginName ||'';
  54. let stat=opts.path||'';
  55. if(stat==1){
  56. this.path=this.pathur3;
  57. }else if(stat==2){
  58. this.path=this.pathur2;
  59. }else{
  60. this.path=this.pathurl;
  61. }
  62. },
  63. onShow: function() {
  64. if(this.name==''){
  65. uni.request({
  66. url: config.service.verify,
  67. method: "GET",
  68. header: {
  69. 'content-type': 'application/json',
  70. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  71. },
  72. success: (data) => {
  73. if (data.data.code == 10000) {
  74. uni.switchTab({
  75. url: '/pages/index/index'
  76. });
  77. }
  78. }
  79. })
  80. }else{
  81. var userInfo=uni.getStorageSync('weapp_session_userInfo_data');
  82. if(userInfo){
  83. console.log(userInfo.loginName)
  84. if(this.name==userInfo.loginName){
  85. uni.request({
  86. url: config.service.verify,
  87. method: "GET",
  88. header: {
  89. 'content-type': 'application/json',
  90. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  91. },
  92. success: (data) => {
  93. if (data.data.code == 10000) {
  94. uni.switchTab({
  95. url:this.path
  96. });
  97. }
  98. }
  99. })
  100. }else{
  101. console.log("不是本人")
  102. }
  103. }else{
  104. console.log("没有用户信息")
  105. }
  106. }
  107. },
  108. methods: {
  109. bindWxBLogin() {
  110. wx.navigateTo({
  111. url: '/pages/login/index'
  112. });
  113. }
  114. }
  115. };
  116. </script>
  117. <style lang="scss">
  118. .boox{
  119. width: 100vw;
  120. height: 100vh;
  121. position: relative;
  122. .title {
  123. width: 100%;
  124. position: absolute;
  125. left: 0rpx;
  126. top: 100rpx;
  127. text-align: center;
  128. color: #FFFFFF;
  129. font-size: 32rpx;
  130. font-weight: 500;
  131. z-index: 1000;
  132. }
  133. .booximg{
  134. width: 100vw;
  135. height: 96vh;
  136. .img{
  137. width: 100%;
  138. height: 100%;
  139. }
  140. }
  141. .center-dingwei{
  142. width: 100%;
  143. position: absolute;
  144. left: 0rpx;
  145. bottom:230rpx;
  146. }
  147. .button {
  148. width: 100%;
  149. position: absolute;
  150. left: 0rpx;
  151. bottom:80rpx;
  152. .view{
  153. width: 630rpx;
  154. height: 86rpx;
  155. margin: 0 auto;
  156. background: #2671E2;
  157. box-shadow: 0px 2rpx 20rpx 0rpx rgba(38, 113, 226, 0.5);
  158. border-radius: 49rpx;
  159. color: #FFFFFF;
  160. text-align: center;
  161. line-height: 86rpx;
  162. font-size: 32rpx;
  163. }
  164. }
  165. }
  166. </style>