jufubao-forms 1.0.2-beta1 → 1.0.2-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.2-beta1",
3
+ "version": "1.0.2-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -122,25 +122,15 @@
122
122
 
123
123
 
124
124
  <xd-dialog :show.sync="isShowDialog" title="请输入验证码" :showCloseIcon="false">
125
- <xd-form
126
- label-align="left"
127
- content-align="left"
128
- label-position="left"
129
- :paddingBetween="0"
130
- >
131
- <xd-form-item label="" :labelWidth="1" content-align="left" :paddingBetween="0">
132
- <view class="valid_wrap">
133
- <xd-form-input v-model="valid_code" placeholder="请输入验证码" style="width: 300rpx;"></xd-form-input>
134
- <view class="capture" @click="switchValidToken">
135
- <image
136
- style="width: 100%;height:100%"
137
- :src="validImageAPIUrl + '?image_width=180&image_height=80&token='+ valid_token"
138
- />
139
- </view>
140
- </view>
141
- </xd-form-item>
142
- </xd-form>
143
-
125
+ <view class="valid_wrap">
126
+ <input v-model="valid_code" placeholder="请输入验证码" class="valid_input"></input>
127
+ <view class="capture" @click="switchValidToken">
128
+ <image
129
+ style="width: 100%;height:100%"
130
+ :src="validImageAPIUrl + '?image_width=180&image_height=80&token='+ valid_token"
131
+ />
132
+ </view>
133
+ </view>
144
134
  <view slot="btn">
145
135
  <xd-button type="primary" width="400rpx" @click="doCheckValidCode">提交</xd-button>
146
136
  </view>
@@ -200,7 +190,7 @@
200
190
  renderForm: "renderForm",
201
191
  form_id: "",
202
192
  foreign_id: "",
203
- isShowDialog: false,
193
+ isShowDialog: true,
204
194
  validImageAPIUrl: "",
205
195
  valid_token: "",
206
196
  valid_code: "",
@@ -757,6 +747,12 @@
757
747
  display: flex;
758
748
  align-items: center;
759
749
  border: 1px solid #DDD;
750
+ .valid_input{
751
+ width: 300rpx;
752
+ text-align: left;
753
+ padding-left: 20rpx;
754
+ flex: 1;
755
+ }
760
756
  }
761
757
  .capture{
762
758
  width: 180rpx;
@@ -64,7 +64,9 @@
64
64
  <view class="bottom_fixed" :style="fixedBottom">
65
65
  <xd-button type="primary" :disabled="curIndex === 0"
66
66
  :style="[fixedButtonStyle]" @click="handlePrev">上一题</xd-button>
67
- <xd-button type="primary" :disabled="curQA.required && (!qaValue || qaValue.length === 0)"
67
+ <xd-button v-if="curQA.required && (!qaValue || qaValue.length === 0)" type="primary" :disabled="true"
68
+ :style="[fixedButtonStyle]" @click="handleNext">{{isLastQA ? '确认提交':'下一题'}}</xd-button>
69
+ <xd-button type="primary" :disabled="false" v-else
68
70
  :style="[fixedButtonStyle]" @click="handleNext">{{isLastQA ? '确认提交':'下一题'}}</xd-button>
69
71
  </view>
70
72
  </view>