|
@@ -20,7 +20,7 @@
|
|
|
</div>
|
|
|
<div class="docs_phone">
|
|
|
<van-cell-group>
|
|
|
- <van-field v-model="tel" type="tel" label="手机号码" placeholder="请输入手机号码" />
|
|
|
+ <van-field v-model="tel" type="number" label="手机号码" placeholder="请输入手机号码" />
|
|
|
</van-cell-group>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -41,41 +41,40 @@
|
|
|
<button class="apply_button" :disabled="!this.checked" @click="exchange()">确定兑换</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <RechargeHave></RechargeHave>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { Component, Vue } from 'vue-property-decorator'
|
|
|
import { Checkbox, CheckboxGroup, Field, CellGroup } from 'vant'
|
|
|
-import { mapActions, mapMutations } from 'vuex'
|
|
|
-import RechargeHave from '../../components/RechargeHave.vue'
|
|
|
+import { mapActions } from 'vuex'
|
|
|
+import { getDocPay } from '../../api/main'
|
|
|
@Component({
|
|
|
name: 'purchase-page',
|
|
|
components: {
|
|
|
- RechargeHave,
|
|
|
[Checkbox.name]: Checkbox,
|
|
|
[CheckboxGroup.name]: CheckboxGroup,
|
|
|
[Field.name]: Field,
|
|
|
[CellGroup.name]: CellGroup
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapMutations({
|
|
|
- saveLogout: 'logout/setLogout'
|
|
|
- }),
|
|
|
...mapActions({
|
|
|
- sureLogout: 'logout/sureLogout'
|
|
|
+ getDocPay: 'main/getDocPay'
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
export default class extends Vue {
|
|
|
- protected sureLogout!: any
|
|
|
- protected saveLogout!: any
|
|
|
+ // protected getDocPay!: any
|
|
|
checked = false
|
|
|
- tel = 1
|
|
|
+ tel = ''
|
|
|
$router: any
|
|
|
+
|
|
|
+ // 确定兑换
|
|
|
exchange () {
|
|
|
- this.$router.push('/purchasesuccess')
|
|
|
+ getDocPay({ docId: 'RJ82241sM3DyHwrupW7w', phone: '18439509554' }).then((res: any) => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ // this.$router.push('/purchasesuccess')
|
|
|
}
|
|
|
|
|
|
// 剑鱼标讯服务条款
|