create1.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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($event,'education')" :range="honorBranch" class="select-box" name="education" disabled="true">
  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. }
  38. },
  39. onLoad() {
  40. //this.getTradeRequest();
  41. },
  42. onShow() {
  43. },
  44. // onShareAppMessage() {
  45. // return {
  46. // title: '分销小助手',
  47. // path:'/pages/index/index?scene=' + getApp().globalData.user_id
  48. // }
  49. // },
  50. methods: {
  51. bindDateChange(e){
  52. this.dateYear = e.target.value
  53. },
  54. bindDateMonthChange(e){
  55. this.dateMonth = this.arrayMonth[e.target.value]
  56. },
  57. change(e) {
  58. this.single = e;
  59. console.log("-change事件:", e);
  60. },
  61. goStep(){
  62. uni.navigateTo({
  63. url:'./create2'
  64. })
  65. },
  66. bindPickerChange(e,type) {
  67. let that = this;
  68. switch (type){
  69. case 'education':
  70. that.educationValue = that.educationArray[e.target.value]
  71. console.log(that.educationValue)
  72. break;
  73. case 'profession':
  74. that.professionValue = that.professionArray[e.target.value]
  75. break;
  76. case 'ends':
  77. that.endsValue = that.endsArray[e.target.value]
  78. break;
  79. }
  80. },
  81. testLength(){
  82. if(this.addressDetail.length > 25){
  83. uni.showToast({
  84. title: '详细地址应为0-25个字符',
  85. icon: 'none'
  86. });
  87. }
  88. },
  89. submitRequest(params){
  90. console.log(params)
  91. let that = this;
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .content {
  98. &_list{
  99. display: flex;
  100. flex-direction: row;
  101. align-items: center;
  102. justify-content:space-around;
  103. &_lable{
  104. }
  105. &_content{
  106. flex: 1;
  107. width: auto;
  108. text-align: right;
  109. }
  110. }
  111. }
  112. .content-box {
  113. width: 100%;
  114. /* height: 100%; */
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. /* justify-content: center; */
  119. }
  120. .info-box {
  121. width: 90%;
  122. margin: 3% auto;
  123. display: flex;
  124. flex-direction: column;
  125. // align-items: center;
  126. // height: 180rpx;
  127. }
  128. .info-title-box {
  129. width: 20%;
  130. display: flex;
  131. align-items: center;
  132. font-size: 26rpx;
  133. }
  134. .info-title-box image{
  135. width: 15rpx;
  136. height: 15rpx;
  137. margin-right: 2%;
  138. }
  139. .info-value-box {
  140. width: 100%;
  141. }
  142. .info-value-box input {
  143. height: 88rpx;
  144. background: #f7f7f7;
  145. font-size: 26rpx;
  146. padding-left: 4%;
  147. margin: 2% auto;
  148. }
  149. .info-value-box picker {
  150. position: relative;
  151. }
  152. .info-value-box picker image {
  153. position: absolute;
  154. width: 25rpx;
  155. height: 25rpx;
  156. right: 10px;
  157. top: 30rpx;
  158. }
  159. .select-box {
  160. height: 80rpx;
  161. background: #f7f7f7;
  162. font-size: 26rpx;
  163. padding-left: 4%;
  164. margin: 2% auto;
  165. color: #888;
  166. line-height: 88rpx;
  167. }
  168. .info-gender-box {
  169. width: 75%;
  170. font-size: 28rpx;
  171. }
  172. .form-radio {
  173. transform: scale(0.6);
  174. }
  175. .padding-left-2 {
  176. // padding-left: 2%;
  177. }
  178. .margin-right-10 {
  179. margin-right: 10%;
  180. }
  181. .border-line-box {
  182. width: 100%;
  183. height: 20rpx;
  184. background: #f7f7f7;
  185. }
  186. .picker-box{
  187. display: flex;
  188. align-items: center;
  189. justify-content: space-between;
  190. height: 60rpx;
  191. line-height: 60rpx;
  192. background: #f7f7f7;
  193. height: 88rpx;
  194. line-height: 88rpx;
  195. background: #f7f7f7;
  196. font-size: 28rpx;
  197. padding-left: 4%;
  198. }
  199. .picker-class {
  200. border-radius: 10rpx;
  201. padding: 10rpx;
  202. width: 73%;
  203. font-size: 28rpx;
  204. background: #f5f5f5;
  205. }
  206. .picker-class image {
  207. width: 26rpx;
  208. height: 26rpx;
  209. }
  210. .step-box {
  211. display: flex;
  212. justify-content: space-evenly;
  213. align-items: center;
  214. width: 90%;
  215. margin: 5% 0 5% 0;
  216. }
  217. .step-1 {
  218. width: 60rpx;
  219. height: 60rpx;
  220. border-radius: 50%;
  221. background-color:#02a7f0;
  222. text-align: center;
  223. line-height: 60rpx;
  224. color: #fff;
  225. }
  226. .submit-bth {
  227. width: 200rpx;
  228. font-size: 26rpx;
  229. margin: 0 0 5% 0;
  230. color: #fff;
  231. }
  232. </style>