|
@@ -4,7 +4,7 @@
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">名头</text>
|
|
|
<view class="con-list">
|
|
|
- <text @click="navToDetailPage">{{deptList.procurementPlanNo}}</text>
|
|
|
+ <text @click="navToDetailPage">{{deptList.seller}}<text class='tip_text cuIcon-right'></text></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -21,9 +21,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
- <text class="tit">出货量(吨)</text>
|
|
|
+ <text class="tit">出售量(吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请输入采购重量,如1000" name="input" v-model="deptList.plannedSaleVolume"></input>
|
|
|
+ <input placeholder="请输入出售重量,如1000" name="input" v-model="deptList.plannedSaleVolume"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -50,7 +50,7 @@
|
|
|
<view class="c-row b-b" v-if="this.typesIndex == 0">
|
|
|
<text class="tit">单价(元/吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写单价" name="input" v-model="deptList.unitPrice"></input>
|
|
|
+ <input placeholder="请填写单价" name="input" v-model="deptList.salePrice"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b" v-if="this.typesIndex == 1">
|
|
@@ -76,14 +76,24 @@
|
|
|
<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="请输入卖方手机号" name="input" v-model="deptList.sellerPhone"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row ">
|
|
|
+ <!-- <view class="c-row ">
|
|
|
<text class="validate">获取验证码</text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写6位短信验证码" name="input" v-model="deptList.title1"></input>
|
|
|
</view>
|
|
|
+ </view> -->
|
|
|
+
|
|
|
+ <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
|
|
|
+ <button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
|
+ class='getcode'>{{sendText}}</button>
|
|
|
+ <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
+ <view class="con-list">
|
|
|
+ <input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="buylow">
|
|
@@ -94,49 +104,49 @@
|
|
|
style="font-size: 14px; ">完善更多信息<text
|
|
|
style="font-size: 10px; color: #AFB3BF;">(选填,可由客服人员代为完善)</text></text>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">水分(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">容重(g/L)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">热损伤(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">杂质(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">霉变粒(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">不完整粒(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">蛋白(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">粒型 </text>
|
|
|
<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
|
|
|
<view class="con-list">
|
|
@@ -144,7 +154,7 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">品级 </text>
|
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -153,7 +163,7 @@
|
|
|
</picker>
|
|
|
</view>
|
|
|
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">产出年份</text>
|
|
|
<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -161,7 +171,7 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row b-b">
|
|
|
<text class="tit">包装方式</text>
|
|
|
<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -169,13 +179,13 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view v-if='!checked&&baoIndex==2||!checked&&baoIndex==3' class="c-row b-b">
|
|
|
+ <view v-if='checked&&baoIndex!=0' class="c-row b-b">
|
|
|
<text class="tit">袋装备注</text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='!checked' class="c-row b-b">
|
|
|
+ <view v-if='checked' class="c-row ">
|
|
|
<text class="tit">运费承担方</text>
|
|
|
<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -201,13 +211,13 @@
|
|
|
typesType: ["现货", "期货"],
|
|
|
typesIndex: 0,
|
|
|
deptList: {
|
|
|
+ salePlanType:'现货',
|
|
|
salePlanTypeKey:0,
|
|
|
grainKey:0,
|
|
|
gradeKey:0,
|
|
|
packingTypeKey:0,
|
|
|
freightPayerKey:-1,
|
|
|
- priceType: "定价采购",
|
|
|
- procurementPlanType: "现货",
|
|
|
+ priceType: "定价销售",
|
|
|
grain: "塔粮",
|
|
|
grade: "不限(默认)",
|
|
|
outputYear: "2020",
|
|
@@ -223,24 +233,31 @@
|
|
|
province: true,
|
|
|
city: true,
|
|
|
},
|
|
|
- checked: true,
|
|
|
- insertProcurementPlanInfo: {},
|
|
|
- liIndex: 0,
|
|
|
+ checked: false,
|
|
|
+ insertSalePlanInfo: {},
|
|
|
+ liIndex: -1,
|
|
|
liType: ['塔粮', '筛粮', '中粒', '大粒'],
|
|
|
- pinIndex: 0,
|
|
|
- pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
|
|
|
- nianIndex: 3,
|
|
|
+ pinIndex: -1,
|
|
|
+ pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
|
+ nianIndex: -1,
|
|
|
nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
|
|
|
'2011'
|
|
|
],
|
|
|
show: false,
|
|
|
show1: false,
|
|
|
- region: '请选择收货地区',
|
|
|
+ region: '请选择发货地区',
|
|
|
+ regions: "",
|
|
|
region1: '请选择产地',
|
|
|
- baoIndex: 0,
|
|
|
- baoType: ['不限(默认)', '散装', '大袋', '小袋'],
|
|
|
+ region2 :"",
|
|
|
+ baoIndex: -1,
|
|
|
+ baoType: ['散装', '大袋', '小袋'],
|
|
|
chengIndex: -1,
|
|
|
- chengType: ['可议', '买方承担', '卖方承担']
|
|
|
+ chengType: ['可议', '买方承担', '卖方承担'],
|
|
|
+ codestatus: false,
|
|
|
+ sendDisabled: false,
|
|
|
+ sendText: '获取验证码',
|
|
|
+ verifyCode:"",
|
|
|
+ verification:true,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -248,7 +265,7 @@
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
if (options.customerName) {
|
|
|
- this.deptList.procurementPlanNo = options.customerName
|
|
|
+ this.deptList.seller = options.customerName
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -258,9 +275,9 @@
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
if (res.data.data.customerTypeFlag == 1) {
|
|
|
- that.$set(this.deptList, 'procurementPlanNo', res.data.data.customerName)
|
|
|
+ that.$set(this.deptList, 'seller', res.data.data.customerName)
|
|
|
} else {
|
|
|
- that.$set(this.deptList, 'procurementPlanNo', res.data.data.compName)
|
|
|
+ that.$set(this.deptList, 'seller', res.data.data.compName)
|
|
|
}
|
|
|
this.goods = res.data.data
|
|
|
}
|
|
@@ -268,11 +285,82 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ // async amendprice() {
|
|
|
+ // var that = this
|
|
|
+ // this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
+ // phone: this.deptList.buyerPhone,
|
|
|
+ // verifyCode: this.verifyCode
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.data.code == 200) {
|
|
|
+ // } else {
|
|
|
+ // that.verification = false
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.data.message,
|
|
|
+ // icon: 'none',
|
|
|
+ // duration: 2000
|
|
|
+ // })
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch(res => {
|
|
|
+ // that.verification = false
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.data.message,
|
|
|
+ // icon: 'none',
|
|
|
+ // duration: 2000
|
|
|
+ // })
|
|
|
+ // return false
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ getcode() {
|
|
|
+ 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', {
|
|
|
+ phone: that.deptList.sellerPhone
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.sendDisabled = true
|
|
|
+ let sec = 60
|
|
|
+ let interval = setInterval(() => {
|
|
|
+ sec--;
|
|
|
+ that.sendText = sec + 's后重发'
|
|
|
+ if (sec <= 0) {
|
|
|
+ that.sendDisabled = false
|
|
|
+ that.sendText = "获取验证码"
|
|
|
+ clearInterval(interval)
|
|
|
+ }
|
|
|
+ }, 1000)
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入正确的手机号',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
regionpicker(e) {
|
|
|
this.deptList.sendPrivate = e.province.label
|
|
|
this.deptList.sendCity = e.city.label
|
|
|
this.deptList.sendArea = e.area.label
|
|
|
this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
|
|
|
+ this.regions = e.province.label + '-' + e.city.label + '-' + e.area.label
|
|
|
},
|
|
|
regionchange() {
|
|
|
this.show = true
|
|
@@ -281,6 +369,7 @@
|
|
|
this.deptList.outputPrivate = e.province.label
|
|
|
this.deptList.outputCity = e.city.label
|
|
|
this.region1 = e.province.label + '-' + e.city.label
|
|
|
+ this.region2 = e.province.label + '-' + e.city.label
|
|
|
},
|
|
|
regionchange1() {
|
|
|
this.show1 = true
|
|
@@ -294,7 +383,7 @@
|
|
|
this.deptList.salePlanTypeKey = e.detail.value+1
|
|
|
this.deptList.salePlanType = this.typesType[this.typesIndex];
|
|
|
if (this.typesIndex == 0) {
|
|
|
- this.deptList.priceType = '定价采购'
|
|
|
+ this.deptList.priceType = '定价销售'
|
|
|
} else {
|
|
|
this.deptList.priceType = '期货盘面价+基差'
|
|
|
}
|
|
@@ -325,16 +414,16 @@
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptList.plannedSaleVolume) {
|
|
|
- this.$api.msg('出货量不能为空')
|
|
|
+ this.$api.msg('出售量不能为空')
|
|
|
return
|
|
|
}
|
|
|
if (this.deptList.plannedSaleVolume > 100000 || this.deptList.plannedSaleVolume < 1) {
|
|
|
- this.$api.msg('出货量输入错误')
|
|
|
+ this.$api.msg('出售量输入错误')
|
|
|
return
|
|
|
}
|
|
|
if (this.deptList.plannedSaleVolume.indexOf('.') != -1) {
|
|
|
if (this.deptList.plannedSaleVolume.split('.')[1].length > 2) {
|
|
|
- this.$api.msg('出货量输入错误')
|
|
|
+ this.$api.msg('出售量输入错误')
|
|
|
return
|
|
|
}
|
|
|
}
|
|
@@ -361,16 +450,16 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.deptList.salePlanType == '现货') {
|
|
|
- if (!this.deptList.unitPrice) {
|
|
|
+ if (!this.deptList.salePrice) {
|
|
|
this.$api.msg('单价不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptList.unitPrice > 100000 || this.deptList.unitPrice < 1) {
|
|
|
+ if (this.deptList.salePrice > 100000 || this.deptList.salePrice < 1) {
|
|
|
this.$api.msg('单价输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptList.unitPrice.indexOf('.') != -1) {
|
|
|
- if (this.deptList.unitPrice.split('.')[1].length > 2) {
|
|
|
+ if (this.deptList.salePrice.indexOf('.') != -1) {
|
|
|
+ if (this.deptList.salePrice.split('.')[1].length > 2) {
|
|
|
this.$api.msg('单价输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -391,12 +480,27 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (!this.regions) {
|
|
|
+ this.$api.msg('发货地区不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.region2) {
|
|
|
+ this.$api.msg('产地不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
if (!this.deptList.sellerPhone) {
|
|
|
this.$api.msg('卖方手机号不能为空')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if (this.deptList.sellerPhone.length!=11) {
|
|
|
+ this.$api.msg('卖方手机号输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.verifyCode){
|
|
|
+ this.$api.msg('验证码不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.checked == false) {
|
|
|
if (this.deptList.waterContent && this.deptList.waterContent < 1 ||
|
|
|
this.deptList.waterContent && this.deptList.waterContent > 40) {
|
|
@@ -470,40 +574,78 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.insertProcurementPlanInfo = this.deptList
|
|
|
- this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
|
|
|
- this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
|
- this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
- this.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', this
|
|
|
- .insertProcurementPlanInfo).then(res => {
|
|
|
+ // if(this.amendprice() == false){
|
|
|
+ // this.$api.msg('验证码输入有误!')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ var that=this
|
|
|
+ this.insertSalePlanInfo = this.deptList
|
|
|
+ this.insertSalePlanInfo.basisPrice = this.insertSalePlanInfo.basisPrice
|
|
|
+ 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
|
|
|
+ }).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- uni.showToast({
|
|
|
- title: "发布成功",
|
|
|
- icon: 'none',
|
|
|
- })
|
|
|
- // setTimeout(() => {
|
|
|
- // uni.navigateBack({})
|
|
|
- // }, 1000)
|
|
|
- this.deptList = {}
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/release/release`
|
|
|
- })
|
|
|
- } else {
|
|
|
+ that.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', that.insertSalePlanInfo).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ uni.showToast({
|
|
|
+ title: "发布成功",
|
|
|
+ icon: 'none',
|
|
|
+ })
|
|
|
+ // setTimeout(() => {
|
|
|
+ // uni.navigateBack({})
|
|
|
+ // }, 1000)
|
|
|
+ that.deptList = {}
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/release/release`
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else if(res.data.code=='11003'){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '验证码不正确',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else {
|
|
|
uni.showToast({
|
|
|
title: res.data.message,
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
+ return
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
|
- title: res.errmsg,
|
|
|
+ title: res.data.message,
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
+ return
|
|
|
});
|
|
|
+ // this.insertProcurementPlanInfo = this.deptList
|
|
|
+ // this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
|
|
|
+ // this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
|
+ // this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
},
|
|
|
liChange(e) {
|
|
|
this.liIndex = e.detail.value
|
|
@@ -529,6 +671,33 @@
|
|
|
this.deptList.packingTypeKey = e.detail.value
|
|
|
this.deptList.packingType = this.baoType[this.baoIndex];
|
|
|
},
|
|
|
+ getdate() {
|
|
|
+ var date = new Date()
|
|
|
+ var year = date.getFullYear() //获取完整的年份(4位)
|
|
|
+ var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
|
|
|
+ var datetime = date.getDate() //获取当前日(1-31)
|
|
|
+ if (mouth < 10) {
|
|
|
+ mouth = '0' + mouth
|
|
|
+ }
|
|
|
+ if (datetime < 10) {
|
|
|
+ datetime = '0' + datetime
|
|
|
+ }
|
|
|
+ return year + mouth + datetime
|
|
|
+ },
|
|
|
+ verifyinit() {
|
|
|
+ var arr = []
|
|
|
+ for (var i = 48; i < 123; i++) {
|
|
|
+ if (i > 57 && i < 65) continue
|
|
|
+ if (i > 90 && i < 97) continue
|
|
|
+ arr.push(String.fromCharCode(i))
|
|
|
+ }
|
|
|
+ arr.sort(function() {
|
|
|
+ return Math.random() - 0.5
|
|
|
+ })
|
|
|
+ arr.length = 4
|
|
|
+
|
|
|
+ return arr.join('')
|
|
|
+ },
|
|
|
chengChange(e) {
|
|
|
this.chengIndex = e.detail.value
|
|
|
this.chengtypes = this.chengType[this.chengIndex];
|
|
@@ -573,13 +742,11 @@
|
|
|
padding-right: 20rpx;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
-
|
|
|
.buyup {
|
|
|
background-color: #FFFFFF;
|
|
|
border-radius: 20px;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
-
|
|
|
.buylow {
|
|
|
background-color: #FFFFFF;
|
|
|
border-radius: 20px;
|
|
@@ -592,7 +759,6 @@
|
|
|
background-color: #22C572;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
-
|
|
|
.validate {
|
|
|
width: 100px;
|
|
|
height: 32px;
|
|
@@ -603,4 +769,21 @@
|
|
|
text-align: center;
|
|
|
line-height: 30px;
|
|
|
}
|
|
|
+ .getcode {
|
|
|
+ font-size: 14px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ color: #AFB3BF;
|
|
|
+ background: #F5F6F9;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ }
|
|
|
+ .getcode.active {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ .getcode.active {
|
|
|
+ background: #22C572;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
</style>
|