25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

guide.vue 5.0 KiB

2 년 전
2 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view class="boox">
  3. <view class="title">
  4. {{ isPuqiang ? "数智工牌" : "AI营销辅助"}}
  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. computed: {
  53. // 是否是普强小程序
  54. isPuqiang() {
  55. return config.service.host.indexOf('xitong.pachira.cn') == -1
  56. },
  57. },
  58. onLoad(opts) {
  59. this.name=opts.loginName ||'';
  60. let stat=opts.path||'';
  61. if(stat==1){
  62. this.path=this.pathur3;
  63. }else if(stat==2){
  64. this.path=this.pathur2;
  65. }else{
  66. this.path=this.pathurl;
  67. }
  68. },
  69. onShow: function() {
  70. if(this.name==''){
  71. uni.request({
  72. url: config.service.verify,
  73. method: "GET",
  74. header: {
  75. 'content-type': 'application/json',
  76. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  77. },
  78. success: (data) => {
  79. if (data.data.code == 10000) {
  80. uni.switchTab({
  81. url: '/pages/index/index'
  82. });
  83. }
  84. }
  85. })
  86. }else{
  87. var userInfo=uni.getStorageSync('weapp_session_userInfo_data');
  88. if(userInfo){
  89. console.log(userInfo.loginName)
  90. if(this.name==userInfo.loginName){
  91. uni.request({
  92. url: config.service.verify,
  93. method: "GET",
  94. header: {
  95. 'content-type': 'application/json',
  96. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  97. },
  98. success: (data) => {
  99. if (data.data.code == 10000) {
  100. if(this.path=='/pages/center/prohibited/index'){
  101. uni.navigateTo({
  102. url:this.path
  103. });
  104. }else{
  105. uni.switchTab({
  106. url:this.path
  107. });
  108. }
  109. }
  110. }
  111. })
  112. }else{
  113. console.log("不是本人")
  114. }
  115. }else{
  116. console.log("没有用户信息")
  117. }
  118. }
  119. },
  120. methods: {
  121. bindWxBLogin() {
  122. wx.navigateTo({
  123. url: '/pages/login/index'
  124. });
  125. }
  126. }
  127. };
  128. </script>
  129. <style lang="scss">
  130. .boox{
  131. width: 100vw;
  132. height: 100vh;
  133. position: relative;
  134. .title {
  135. width: 100%;
  136. position: absolute;
  137. left: 0rpx;
  138. top: 100rpx;
  139. text-align: center;
  140. color: #FFFFFF;
  141. font-size: 32rpx;
  142. font-weight: 500;
  143. z-index: 1000;
  144. }
  145. .booximg{
  146. width: 100vw;
  147. height: 96vh;
  148. .img{
  149. width: 100%;
  150. height: 100%;
  151. }
  152. }
  153. .center-dingwei{
  154. width: 100%;
  155. position: absolute;
  156. left: 0rpx;
  157. bottom:230rpx;
  158. }
  159. .button {
  160. width: 100%;
  161. position: absolute;
  162. left: 0rpx;
  163. bottom:80rpx;
  164. .view{
  165. width: 630rpx;
  166. height: 86rpx;
  167. margin: 0 auto;
  168. background: #2671E2;
  169. box-shadow: 0px 2rpx 20rpx 0rpx rgba(38, 113, 226, 0.5);
  170. border-radius: 49rpx;
  171. color: #FFFFFF;
  172. text-align: center;
  173. line-height: 86rpx;
  174. font-size: 32rpx;
  175. }
  176. }
  177. }
  178. </style>