Commit e005f939 authored by FE-安焕焕's avatar FE-安焕焕 👣

修复手机格式校验

parent 47d1200e
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
</div> </div>
</template> </template>
<script> <script>
// import { registeredEvents } from '@/utils/sa';
import PayCardItem from './PayCardItem.vue'; import PayCardItem from './PayCardItem.vue';
export default { export default {
name: 'PayGroupCard', name: 'PayGroupCard',
......
...@@ -144,17 +144,6 @@ export default { ...@@ -144,17 +144,6 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
// &::before,
// &::after {
// content: ' ';
// flex-shrink: 0;
// display: block;
// width: @padding-sm;
// height: 97px;
// }
// &::after {
// width: @padding-unit;
// }
&-item { &-item {
height: 97px; height: 97px;
width: 95px; width: 95px;
......
...@@ -67,8 +67,8 @@ export default { ...@@ -67,8 +67,8 @@ export default {
computed: { computed: {
disabled() { disabled() {
return ( return (
(this.spuInfo.rechargeAccountType !== 2 && !this.account) || (this.spuInfo.rechargeAccountType !== 2 &&
(this.spuInfo.type !== 101 && !isPhone(this.account)) || (!this.account || (this.spuInfo.type !== 101 && !isPhone(this.account)))) ||
!this.skuList.length || !this.skuList.length ||
!this.skuInfo.hasStock !this.skuInfo.hasStock
); );
...@@ -163,11 +163,6 @@ export default { ...@@ -163,11 +163,6 @@ export default {
this.showLoading = false; this.showLoading = false;
}, },
goOrder: throttle(async function() { goOrder: throttle(async function() {
// if (!this.account && this.spuInfo.rechargeAccountType !== 2)
// return this.$toast.fail('请填写账号!');
// if (this.spuInfo.type !== 101 && !isPhone(this.account)) {
// return this.$toast.fail('请填写正确的手机号!');
// }
if (!this.skuInfo.skuNo) return this.$toast.fail('请选择类型!'); if (!this.skuInfo.skuNo) return this.$toast.fail('请选择类型!');
this.$track.registeredEvents('h5_OtherRechargePageRechargeNowClick', { this.$track.registeredEvents('h5_OtherRechargePageRechargeNowClick', {
classify_name: this.spuData[this.currentTab - 1].name, classify_name: this.spuData[this.currentTab - 1].name,
......
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