Commit 5fdde65d authored by 潘永坪's avatar 潘永坪

支付宝小程序兼容

parent b9a2c7f3
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
} }
}, },
deep: true, deep: true,
immediate: true immediate: false
} }
}, },
data() { data() {
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
<text class="bottom-title"> <text class="bottom-title">
证件号 证件号
</text> </text>
<!-- <input v-model.trim="credentialNumber" placeholder="请输入证件号码,必填"/> -->
<input v-model.trim="credentialNumber" :placeholder="placeholderText" /> <input v-model.trim="credentialNumber" :placeholder="placeholderText" />
</view> </view>
<view> <view>
...@@ -118,11 +117,10 @@ export default { ...@@ -118,11 +117,10 @@ export default {
} }
}, },
deep: true, deep: true,
immediate: true immediate: false
}, },
credential: {//该产品对应联系人可以添加的证件类型 credential: {//该产品对应联系人可以添加的证件类型
handler(newValue, oldValue) { handler(newValue, oldValue) {
if(newValue){
this.credentialList=newValue.split(',')||[] this.credentialList=newValue.split(',')||[]
this.credentialList.forEach((item,index)=>{ this.credentialList.forEach((item,index)=>{
//转化成数字类型,防止上面证件类型,编辑选择身份证时出现bug //转化成数字类型,防止上面证件类型,编辑选择身份证时出现bug
...@@ -143,11 +141,10 @@ export default { ...@@ -143,11 +141,10 @@ export default {
} }
if(this.credentialList.length>1){ if(this.credentialList.length>1){
this.placeholderText='请输入证件号码,必填' this.placeholderText='请输入证件号码,必填'
}
} }
}, },
deep: true, deep: true,
immediate: true immediate: false
} }
}, },
methods: { methods: {
......
...@@ -470,7 +470,9 @@ export default { ...@@ -470,7 +470,9 @@ export default {
this.orderSource = this.$commonjs.getKey(option,'orderSource')|| '' this.orderSource = this.$commonjs.getKey(option,'orderSource')|| ''
this.thirdOpenid = this.$commonjs.getKey(option,'thirdOpenid')|| '' //第三方openid this.thirdOpenid = this.$commonjs.getKey(option,'thirdOpenid')|| '' //第三方openid
this.productId = this.$commonjs.getKey(option,'productId') || '' this.productId = this.$commonjs.getKey(option,'productId') || ''
setTimeout(()=>{
this.initData() //页面初始化数据 this.initData() //页面初始化数据
},1000)
this.docQuery = uni.createSelectorQuery().in(this) this.docQuery = uni.createSelectorQuery().in(this)
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment