frozen.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view class="content">
  3. <view class="frozen-bg">
  4. <view class="frozen-card">
  5. <view class="uni-media-image">
  6. <image class="uni-media-loading" src="/static/theme/default/frone.png" />
  7. </view>
  8. <view class="frozen-head">&nbsp;&nbsp;</view>
  9. <view class="frozen-head">发现趣聊帐号被盗或手机丢失,你可以冻结相遇号</view>
  10. <view class="frozen-function">
  11. <text>防止坏人窃取你的个人隐私
  12. 防止坏人冒用你的身份诈骗好友
  13. 防止坏人盗刷你的支付资金
  14. </text>
  15. </view>
  16. </view>
  17. <view class="frozen-btn">
  18. <button type="primary" :class="['landing', 'landing_true' ]" @tap="subLongin">开始冻结</button>
  19. <!-- <view :class="['landing',checkIn ? 'landing_true' : 'landing_false']" @tap="subLongin">登 陆</view> -->
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. showPassword: true,
  29. form: {
  30. username: '',
  31. password: '',
  32. }
  33. }
  34. },
  35. onLoad() {
  36. return;
  37. },
  38. computed: {
  39. checkIn(){
  40. return this.form.password != '' && this.form.username != '' && this.form.password.length > 5;
  41. }
  42. },
  43. methods: {
  44. changePassword() {
  45. this.showPassword = !this.showPassword;
  46. },
  47. delInputUsernameText(){
  48. this.form.username = ''
  49. },
  50. delInputPasswordText(){
  51. this.form.password = ''
  52. },
  53. subLongin(){
  54. let _this = this;
  55. if(!_this.checkIn){
  56. return;
  57. }
  58. _this.$httpSend({
  59. path: '/im/in/frozen',
  60. data: _this.form,
  61. success: (data) => {
  62. uni.setStorage({
  63. key: 'token',
  64. data: data.token,
  65. fail: () => {
  66. uni.showModal({
  67. content: '本地存储数据不可用!',
  68. });
  69. },
  70. success(){
  71. uni.reLaunch({
  72. url: '../chat/index',
  73. });
  74. },
  75. });
  76. }
  77. });
  78. },
  79. go_forget(){
  80. uni.navigateTo({
  81. url: '../../pages/in/forget'
  82. })
  83. },
  84. go_register(){
  85. uni.navigateTo({
  86. url: '../../pages/in/reg'
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style>
  93. .uni-media-image{
  94. padding: 10upx 10upx;
  95. margin-top: 10upx;
  96. text-align: center;
  97. }
  98. .uni-media-loading {
  99. width:150upx;
  100. height:150upx;
  101. }
  102. .landing {
  103. height: 84upx;
  104. line-height: 84upx;
  105. color: #FFFFFF;
  106. font-size: 32upx;
  107. bordor: none;
  108. border-radius: 10upx;
  109. }
  110. .landing_true {
  111. }
  112. .landing_false {
  113. background-color: #d8d8d8;
  114. }
  115. .uni-button[type=primary] {
  116. background-color: #b2e281;
  117. }
  118. .frozen-btn{
  119. padding: 10upx 20upx;
  120. margin-top: 55upx;
  121. text-align: center;
  122. }
  123. .frozen-function{
  124. font-size: 26upx;
  125. margin-top:20upx;
  126. margin-bottom: 0upx;
  127. padding: 0upx 10upx;
  128. color: #999;
  129. text-align: center;
  130. }
  131. .frozen-forget{
  132. float: left;
  133. font-size: 26upx;
  134. color: #999;
  135. }
  136. .textspace {
  137. padding: 10upx 10upx;
  138. }
  139. .frozen-register{
  140. color: #666;
  141. float: right;
  142. font-size: 26upx;
  143. }
  144. .frozen-input input{
  145. background: #F2F5F6;
  146. font-size: 28upx;
  147. padding: 10upx 25upx;
  148. height: 62upx;
  149. line-height: 62upx;
  150. border-radius: 8upx;
  151. }
  152. .frozen-margin-b{
  153. margin-bottom: 25upx;
  154. }
  155. .frozen-input{
  156. padding: 20upx 20upx;
  157. }
  158. .frozen-head{
  159. font-size: 34upx;
  160. text-align: center;
  161. padding: 25upx 10upx 25upx 10upx;
  162. }
  163. .frozen-card{
  164. background: #fff;
  165. border-radius: 12upx;
  166. padding: 10upx 25upx;
  167. /* box-shadow: 0 6upx 18upx rgba(0,0,0,0.12); */
  168. position: relative;
  169. margin-top: 100upx;
  170. }
  171. .frozen-bg {
  172. /* height: 260upx;
  173. padding: 25upx;
  174. background: linear-gradient(#FF978D, #FFBB69); */
  175. }
  176. page {
  177. background-color: #FFFFFF;
  178. }
  179. .uni-form-item .with-fun .uni-icon {
  180. text-align: center;
  181. }
  182. </style>