Resetmima.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <view>
  3. <customNav :shownav="true" :title="$t('user.chongzhimima')" tinColor="#006AFF" jiantou="0" titledetl=''></customNav>
  4. <view class="contentV">
  5. <view class="yzmctV">
  6. <view class="xialakuangct" @click="popgjm">
  7. <text>{{guojiadaima}}</text>
  8. <image style="width: 36rpx;height: 36rpx;padding-right: 16rpx;" src="/static/imags/xiala@3x.png" mode="scaleToFill"></image>
  9. </view>
  10. <input class="noinputV" type="number" :placeholder="$t('user.qsrshouihao')" @input="phoneinput">
  11. </view>
  12. <view class="yzmctV">
  13. <input class="noinputVcode" type="text" :placeholder="$t('user.yanzhengma')" @input="smsCodeinput">
  14. <label class="yzmbt" @click="getSMScode">{{$t('user.huoquyanzhegm')}}</label>
  15. </view>
  16. <view class="yzmctV">
  17. <input class="noinputVcode" password type="text" :placeholder="$t('user.qingshezmim')" @input="denglumima">
  18. </view>
  19. <view class="yzmctV">
  20. <label class="querenBt" @click="resetMima">{{$t('user.chongzhimima')}}</label>
  21. </view>
  22. </view>
  23. <popViewGG :tips="$t('index.gjqhxz')" :show="showpop" :maskClosable="true" :isCancel="true" @chooseCancel="chooseCancel">
  24. <picker-view :indicator-style="indicatorStyle" :value="pvalue" @change="bindChange" class="picker-view">
  25. <picker-view-column>
  26. <view class="item" v-for="(item,index) in range" :key="index">{{item}}</view>
  27. </picker-view-column>
  28. </picker-view>
  29. </popViewGG>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. pvalue: [0],
  37. indicatorStyle: `height: 50px;`,
  38. range: ["+86","+84","+886"],
  39. guojiadaima:'86',
  40. showpop:false,
  41. phone:'',
  42. smsCode:'',
  43. mima:'',
  44. }
  45. },
  46. methods: {
  47. resetMima(){
  48. },
  49. bindChange (e) {
  50. var val = e.detail.value[0];
  51. this.guojiadaima=this.range[val];
  52. },
  53. popgjm(){
  54. this.showpop=true;
  55. },
  56. chooseCancel(i){
  57. this.showpop=false;
  58. },
  59. phoneinput(event){
  60. this.phone = event.target.value;
  61. },
  62. smsCodeinput(event){
  63. this.smsCode = event.target.value;
  64. },
  65. denglumima(event){
  66. this.mima = event.target.value;
  67. },
  68. getSMScode(){
  69. this.getSMScodeact();
  70. },
  71. },
  72. }
  73. </script>
  74. <style>
  75. page{
  76. background-color:white;
  77. }
  78. .contentV{
  79. display: flex;
  80. width: 92%;
  81. margin-left: 4%;
  82. flex-direction: column;
  83. justify-content: flex-start;
  84. }
  85. .titlev{
  86. width: 100%;
  87. height: 60rpx;
  88. line-height: 60rpx;
  89. font-size: 40rpx;
  90. font-weight: bold;
  91. text-align: left;
  92. }
  93. .yzmctV{
  94. display: flex;
  95. flex-direction: row;
  96. align-items: center;
  97. justify-content:flex-start;
  98. margin-top: 30rpx;
  99. width: 100%;
  100. }
  101. .yzmctVS{
  102. display: flex;
  103. flex-direction: row;
  104. align-items: center;
  105. justify-content:space-between;
  106. margin-top: 30rpx;
  107. width: 100%;
  108. }
  109. .noinputV{
  110. width: 73%;
  111. height: 80rpx;
  112. line-height: 80rpx;
  113. border-radius: 10rpx;
  114. border: 2rpx solid #F2F3F7;
  115. background-color: #F2F3F7;
  116. }
  117. .noinputVcode{
  118. width: 100%;
  119. height: 80rpx;
  120. line-height: 80rpx;
  121. border-radius: 10rpx;
  122. border: 2rpx solid #F2F3F7;
  123. background-color: #F2F3F7;
  124. }
  125. .yzmbt{
  126. color: white;
  127. font-size: 26rpx;
  128. width: 170rpx;
  129. height: 60rpx;
  130. line-height: 60rpx;
  131. text-align: center;
  132. margin-left: -190rpx;
  133. border-radius: 2rpx;
  134. background-color:#006AFF;
  135. }
  136. .yzmdl{
  137. color: white;
  138. font-size: 26rpx;
  139. width: 170rpx;
  140. height: 60rpx;
  141. line-height: 60rpx;
  142. text-align: center;
  143. margin-top: 26rpx;
  144. border-radius: 2rpx;
  145. background-color:#006AFF;
  146. }
  147. .querenBt{
  148. margin-top: 30rpx;
  149. width: 100%;
  150. height: 60rpx;
  151. line-height: 60rpx;
  152. padding: 10rpx;
  153. border-radius: 20rpx;
  154. border-width: 0px 0px 6rpx 0px;
  155. text-align: center;
  156. justify-content: center;
  157. background-color: #006AFF;
  158. color: white;
  159. box-shadow: 0px 0rpx 10rpx 0rpx #006AFF;
  160. }
  161. .linktext{
  162. font-size: 24rpx;
  163. color:skyblue;
  164. text-decoration:underline;
  165. }
  166. .notetext{
  167. color: darkgray;
  168. font-size: 24rpx;
  169. text-align: center;
  170. }
  171. .xialakuangct{
  172. display: flex;
  173. flex-direction: row;
  174. align-items: center;
  175. justify-content:space-between;
  176. padding-left: 16rpx;
  177. margin-right: 20rpx;
  178. width: 140rpx;
  179. height: 80rpx;
  180. line-height: 80rpx;
  181. border-radius: 10rpx;
  182. border: 2rpx solid #F2F3F7;
  183. background-color: #F2F3F7;
  184. }
  185. .xialakuang{
  186. width: 100%;
  187. }
  188. .lineview{
  189. display: flex;
  190. flex-direction: row;
  191. align-items: center;
  192. justify-content: center;
  193. background-color: whitesmoke;
  194. border: solid darkgray;
  195. border-width: 0px 0px 1rpx 0px;
  196. width: 80%;
  197. margin-bottom: 12rpx;
  198. }
  199. .picker-view {
  200. width: 750rpx;
  201. height: 300rpx;
  202. margin-top: 10rpx;
  203. }
  204. .item {
  205. line-height: 100rpx;
  206. text-align: center;
  207. }
  208. </style>