|
@@ -76,7 +76,7 @@
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">卖方手机号</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请输入卖方手机号" name="input" v-model="deptList.sellerPhone"></input>
|
|
|
+ <input placeholder="请输入卖方手机号" @input='phoneinput' name="input" v-model="deptList.sellerPhone"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="c-row ">
|
|
@@ -312,7 +312,14 @@
|
|
|
// return false
|
|
|
// });
|
|
|
// },
|
|
|
+ phoneinput(e){
|
|
|
+ console.log(e)
|
|
|
+ if(e.detail.value.length==11){
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
getcode() {
|
|
|
+ console.log(1111)
|
|
|
var that = this
|
|
|
if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.deptList.sellerPhone)) {
|
|
|
this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
|
|
@@ -584,9 +591,14 @@
|
|
|
this.insertSalePlanInfo.commonId = this.userInfo.id
|
|
|
this.insertSalePlanInfo.salePlanNo='XSJH'+this.getdate()+this.verifyinit()
|
|
|
this.insertSalePlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
- this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
- phone: this.deptList.sellerPhone,
|
|
|
- verifyCode: this.verifyCode
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定发布交易信息?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
+ phone: that.deptList.sellerPhone,
|
|
|
+ verifyCode: that.verifyCode
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
that.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', that.insertSalePlanInfo).then(res => {
|
|
@@ -642,6 +654,11 @@
|
|
|
})
|
|
|
return
|
|
|
});
|
|
|
+ } else if (res.cancel) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }});
|
|
|
+
|
|
|
// this.insertProcurementPlanInfo = this.deptList
|
|
|
// this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
|
|
|
// this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
@@ -736,7 +753,6 @@
|
|
|
-webkit-box-direction: normal;
|
|
|
-webkit-flex-direction: column;
|
|
|
flex-direction: column;
|
|
|
- color: #AFB3BF;
|
|
|
line-height: 40rpx;
|
|
|
text-align: right;
|
|
|
padding-right: 20rpx;
|