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.
 
 
 

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