Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

331 rader
5.6 KiB

  1. <template>
  2. <view>
  3. <view class="head">
  4. <text>智能高效客户管理平台</text>
  5. </view>
  6. <view class="input">
  7. <view class="cwjs-cells item-flex">
  8. <view class="cwjs-item center">
  9. <input type="text" v-model="username" placeholder="请输入手机号码" maxlength="11"
  10. placeholder-style='color:#AAAAAA' />
  11. </view>
  12. </view>
  13. <view class="textbox">
  14. <view class="textbox-1" @tap="bindVerification">密码登录</view>
  15. <view class="textbox-2"></view>
  16. <view class="textbox-11"></view>
  17. </view>
  18. </view>
  19. <view class="button" @tap="bindWxBLogin">获取验证码</view>
  20. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/login/footer.png" class="footer">
  21. </image>
  22. </view>
  23. </template>
  24. <script>
  25. var util = require("../../utils/util.js");
  26. var config = require("../../config");
  27. var app = getApp();
  28. export default {
  29. data() {
  30. return {
  31. username: '',
  32. role: ''
  33. };
  34. },
  35. onLoad: function(options) {
  36. this.role=options.role;
  37. },
  38. methods: {
  39. //账号密码登录
  40. bindVerification() {
  41. uni.navigateTo({
  42. url: '/pages/login/index',
  43. })
  44. },
  45. //获取验证码
  46. bindWxBLogin: function(e) {
  47. if (!(/^1[34578]\d{9}$/.test(this.username))) {
  48. util.showNone("手机号码错误");
  49. this.username='';
  50. return false;
  51. } else {
  52. if(this.role==1){
  53. uni.navigateTo({
  54. url: '/pages/login/yinzhongmalogin?username=' + this.username +
  55. '&role=' + this.role,
  56. })
  57. }else{
  58. console.log(this.role)
  59. uni.navigateTo({
  60. url: '/pages/login/Verifythelogin?username=' + this.username +
  61. '&role=' + this.role,
  62. })
  63. }
  64. }
  65. },
  66. }
  67. };
  68. </script>
  69. <style lang="scss">
  70. .cwjs-logo {
  71. display: block;
  72. width: 219rpx;
  73. height: 158rpx;
  74. margin: 54rpx auto 66rpx;
  75. }
  76. .cwjs-tips {
  77. font-size: 24rpx;
  78. padding: 80rpx 0;
  79. color: #8a8a8a;
  80. }
  81. .cwjs-form {
  82. position: relative;
  83. margin: 0;
  84. background-color: #fff;
  85. border-radius: 10px;
  86. padding: 20rpx 40rpx 113rpx;
  87. }
  88. .cwjs-cells {
  89. width: 569rpx;
  90. display: flex;
  91. flex-direction: row;
  92. justify-content: space-between;
  93. align-items: center;
  94. margin: 0 auto;
  95. height: 88rpx;
  96. overflow: hidden;
  97. border-bottom: 1rpx solid #BFC7D3;
  98. position: relative;
  99. }
  100. .center {
  101. flex: 1;
  102. }
  103. .cwjs-input {
  104. height: 48rpx;
  105. line-height: 48rpx;
  106. padding: 23rpx 23rpx 23rpx 78rpx;
  107. font-size: 28rpx;
  108. font-family: PingFangSC-Regular, PingFang SC;
  109. color: #000;
  110. }
  111. .images {
  112. display: block;
  113. width: 40rpx;
  114. height: 21rpx;
  115. margin-right: 30rpx;
  116. margin-top: 33.5rpx;
  117. }
  118. .mod-btn {
  119. position: absolute;
  120. bottom: -80rpx;
  121. left: 50%;
  122. margin-left: -80rpx;
  123. }
  124. .mod-btn .button {
  125. width: 160rpx;
  126. height: 160rpx;
  127. background: linear-gradient(180deg, rgba(116, 197, 230, 1) 0%, rgba(64, 147, 201, 1) 100%);
  128. border: 10rpx solid rgba(255, 255, 255, 1);
  129. border-radius: 100%;
  130. font-size: 36rpx;
  131. color: #fff;
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. }
  136. .mod-btn .button::after {
  137. content: ""
  138. }
  139. .retPassword {
  140. display: inline;
  141. width: auto;
  142. font-size: 28rpx;
  143. color: rgba(64, 147, 201, 1);
  144. line-height: 40rpx;
  145. float: right;
  146. }
  147. .retPassword:active {
  148. background-color: #fff;
  149. }
  150. .appliyAdmin {
  151. position: absolute;
  152. left: 50%;
  153. margin-left: -57rpx;
  154. bottom: 100rpx;
  155. width: 114rpx;
  156. font-size: 28rpx;
  157. color: rgba(255, 255, 255, 1);
  158. line-height: 40rpx;
  159. }
  160. /* 头部 */
  161. .head {
  162. width: 750rpx;
  163. height: 410rpx;
  164. background-image: url(https://qufang.oss-cn-beijing.aliyuncs.com/channelHelper/background.png);
  165. background-size: 100vw auto;
  166. background-repeat: no-repeat;
  167. }
  168. .background {
  169. width: 750rpx;
  170. height: 400rpx;
  171. position: absolute;
  172. top: -3rpx;
  173. left: 0;
  174. }
  175. .logo {
  176. width: 248upx;
  177. height: 248upx;
  178. display: block;
  179. position: absolute;
  180. top: 134rpx;
  181. left: 240.5rpx;
  182. }
  183. .head text {
  184. font-size: 34rpx;
  185. font-family: PingFangSC-Medium, PingFang SC;
  186. font-weight: 500;
  187. color: #008EF2;
  188. position: absolute;
  189. top: 300rpx;
  190. width: 100%;
  191. text-align: center;
  192. }
  193. /* 输入框 */
  194. .input {
  195. width: 100%;
  196. height: auto;
  197. padding: 0 105rpx;
  198. box-sizing: border-box;
  199. }
  200. .logo_input {
  201. width: 34rpx;
  202. height: 38rpx;
  203. position: absolute;
  204. top: 25rpx;
  205. left: 0;
  206. }
  207. /* 登录 */
  208. .button {
  209. width: 603rpx;
  210. height: 89rpx;
  211. background: rgba(72, 149, 255, 1);
  212. box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(151, 192, 255, 1);
  213. border-radius: 45rpx;
  214. text-align: center;
  215. line-height: 89rpx;
  216. color: #fff;
  217. margin: 0 auto;
  218. margin-top: 239rpx;
  219. font-size: 34rpx;
  220. }
  221. .footer {
  222. width: 100%;
  223. height: 157rpx;
  224. position: absolute;
  225. bottom: 0;
  226. left: 0;
  227. }
  228. .agreeBox {
  229. /* text-align: center; */
  230. /* width: 450rpx; */
  231. /* padding-left: 145rpx; */
  232. font-size: 28rpx;
  233. color: #88909E;
  234. margin: 0 auto;
  235. margin-top: 30rpx;
  236. position: relative;
  237. display: flex;
  238. margin-left: 83upx;
  239. }
  240. checkbox {
  241. transform: scale(0.5);
  242. }
  243. checkbox-group {
  244. display: inline;
  245. }
  246. navigator {
  247. display: inline
  248. }
  249. .agreeBox image {
  250. width: 26rpx;
  251. height: 26rpx;
  252. display: block;
  253. position: absolute;
  254. top: 9rpx;
  255. left: 18rpx;
  256. margin-right: 19rpx;
  257. }
  258. .imagesBox {
  259. width: 80rpx;
  260. height: 88rpx;
  261. }
  262. .chooseBox {
  263. width: 60rpx;
  264. height: 60rpx;
  265. }
  266. .login {
  267. text-decoration: underline;
  268. text-align: center;
  269. margin-top: 40px;
  270. color: #88909E;
  271. font-size: 28rpx;
  272. }
  273. .textbox {
  274. width: 569rpx;
  275. display: flex;
  276. margin-top: 40rpx;
  277. }
  278. .textbox-1 {
  279. width: 30%;
  280. font-size: 30rpx;
  281. color: #999999;
  282. }
  283. .textbox-11 {
  284. width: 30%;
  285. text-align: right;
  286. font-size: 30rpx;
  287. color: #999999;
  288. }
  289. .textbox-2 {
  290. width: 40%;
  291. }
  292. </style>