create1.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="content-box">
  3. <view class="step-box">
  4. <view class="step-1">1</view>
  5. <view style="color: #d7d7d7;font-size: 54rpx;">------</view>
  6. <view class="step-1" style="background-color:#aaaaaa;">2</view>
  7. </view>
  8. <view class="info-box">
  9. <view class="info-title-box">
  10. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  11. <text>所属支部</text>
  12. </view>
  13. <view class="info-value-box">
  14. <picker @change="bindPickerChange" :range="honorBranch" :range-key="'name'" class="select-box">
  15. <view class="uni-input">{{branchValue}}</view>
  16. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  17. </picker>
  18. </view>
  19. </view>
  20. <view style="margin-top: 15%;">
  21. <button type="primary" class="submit-bth" style="background-color: #169bd5;" @click="goStep()">下一步</button>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import md5 from "@/common/md5.js";
  27. // import pickerAddress from '@/components/liudx-pickerAddress/index.vue'
  28. // var graceChecker = require("../../../common/graceChecker.js");
  29. export default {
  30. components: {
  31. },
  32. data() {
  33. return {
  34. isAuthPhone:getApp().globalData.user_phone,
  35. branchValue:'',
  36. honorBranch:[],
  37. branchId:''
  38. }
  39. },
  40. onLoad(option) {
  41. this.honorBranch = JSON.parse(option.list);
  42. this.branchValue = this.honorBranch[0].name;
  43. this.branchId = this.honorBranch[0].id;
  44. },
  45. onShow() {
  46. },
  47. // onShareAppMessage() {
  48. // return {
  49. // title: '分销小助手',
  50. // path:'/pages/index/index?scene=' + getApp().globalData.user_id
  51. // }
  52. // },
  53. methods: {
  54. goStep(){
  55. let selectList = [{
  56. name:this.branchValue,
  57. id:this.branchId
  58. }]
  59. let length = this.honorBranch.length;
  60. uni.navigateTo({
  61. url:'./create2?list='+ JSON.stringify(selectList) + '&length=' + length
  62. })
  63. },
  64. bindPickerChange(e) {
  65. this.branchValue = this.honorBranch[e.target.value].name;
  66. this.branchId = this.honorBranch[e.target.value].id;
  67. },
  68. submitRequest(params){
  69. console.log(params)
  70. let that = this;
  71. },
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .content {
  77. &_list{
  78. display: flex;
  79. flex-direction: row;
  80. align-items: center;
  81. justify-content:space-around;
  82. &_lable{
  83. }
  84. &_content{
  85. flex: 1;
  86. width: auto;
  87. text-align: right;
  88. }
  89. }
  90. }
  91. .content-box {
  92. width: 100%;
  93. /* height: 100%; */
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. /* justify-content: center; */
  98. }
  99. .info-box {
  100. width: 90%;
  101. margin: 3% auto;
  102. display: flex;
  103. flex-direction: column;
  104. // align-items: center;
  105. // height: 180rpx;
  106. }
  107. .info-title-box {
  108. width: 20%;
  109. display: flex;
  110. align-items: center;
  111. font-size: 26rpx;
  112. }
  113. .info-title-box image{
  114. width: 15rpx;
  115. height: 15rpx;
  116. margin-right: 2%;
  117. }
  118. .info-value-box {
  119. width: 100%;
  120. }
  121. .info-value-box input {
  122. height: 88rpx;
  123. background: #f7f7f7;
  124. font-size: 26rpx;
  125. padding-left: 4%;
  126. margin: 2% auto;
  127. }
  128. .info-value-box picker {
  129. position: relative;
  130. }
  131. .info-value-box picker image {
  132. position: absolute;
  133. width: 25rpx;
  134. height: 25rpx;
  135. right: 10px;
  136. top: 30rpx;
  137. }
  138. .select-box {
  139. height: 80rpx;
  140. background: #f7f7f7;
  141. font-size: 26rpx;
  142. padding-left: 4%;
  143. margin: 2% auto;
  144. color: #888;
  145. line-height: 88rpx;
  146. }
  147. .info-gender-box {
  148. width: 75%;
  149. font-size: 28rpx;
  150. }
  151. .form-radio {
  152. transform: scale(0.6);
  153. }
  154. .padding-left-2 {
  155. // padding-left: 2%;
  156. }
  157. .margin-right-10 {
  158. margin-right: 10%;
  159. }
  160. .border-line-box {
  161. width: 100%;
  162. height: 20rpx;
  163. background: #f7f7f7;
  164. }
  165. .picker-box{
  166. display: flex;
  167. align-items: center;
  168. justify-content: space-between;
  169. height: 60rpx;
  170. line-height: 60rpx;
  171. background: #f7f7f7;
  172. height: 88rpx;
  173. line-height: 88rpx;
  174. background: #f7f7f7;
  175. font-size: 28rpx;
  176. padding-left: 4%;
  177. }
  178. .picker-class {
  179. border-radius: 10rpx;
  180. padding: 10rpx;
  181. width: 73%;
  182. font-size: 28rpx;
  183. background: #f5f5f5;
  184. }
  185. .picker-class image {
  186. width: 26rpx;
  187. height: 26rpx;
  188. }
  189. .step-box {
  190. display: flex;
  191. justify-content: space-evenly;
  192. align-items: center;
  193. width: 90%;
  194. margin: 5% 0 5% 0;
  195. }
  196. .step-1 {
  197. width: 60rpx;
  198. height: 60rpx;
  199. border-radius: 50%;
  200. background-color:#02a7f0;
  201. text-align: center;
  202. line-height: 60rpx;
  203. color: #fff;
  204. }
  205. .submit-bth {
  206. width: 200rpx;
  207. font-size: 26rpx;
  208. margin: 0 0 5% 0;
  209. color: #fff;
  210. }
  211. </style>