|
|
@@ -13,7 +13,7 @@
|
|
|
</div>
|
|
|
<div class="button">
|
|
|
<div class="tip">认证成功后点击下方“我已认证”按钮进行确认</div>
|
|
|
- <button class="btn" @click="getAuth(da)">我已认证</button>
|
|
|
+ <button class="btn" @click="setAuth">我已认证</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -26,23 +26,41 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
datainfo: {},
|
|
|
- da:""
|
|
|
+ params: {
|
|
|
+ contract_no: "",
|
|
|
+ mobile: "",
|
|
|
+ merchant_no: "",
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- getAuth(da) {
|
|
|
- post("v1/lakala/getAuth", da).then((res) => {
|
|
|
- if (res.code == 0) {
|
|
|
- this.datainfo = res.data;
|
|
|
+ getAuth() {
|
|
|
+ post("v1/lakala/getAuth", { merchant_no: this.params.merchant_no }).then(
|
|
|
+ (res) => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.datainfo = res.data;
|
|
|
+ }
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
+ },
|
|
|
+ setAuth() {
|
|
|
+ // if (this.datainfo.auth_status.b2b == 1 && this.datainfo.auth_status.scha == 1) {
|
|
|
+ // return this.$toast("您已完成认证")
|
|
|
+ // } else {
|
|
|
+ post("v1/lakala/setLedgerMer", this.params).then((res) => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.$toast("操作成功,认证审核需1~2个工作日,请耐心等待")
|
|
|
+ uni.navigateBack({ delta: 1 })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // }
|
|
|
},
|
|
|
},
|
|
|
|
|
|
onLoad(da) {
|
|
|
- this.da = da
|
|
|
- this.getAuth(da);
|
|
|
+ this.params = da;
|
|
|
+ this.getAuth();
|
|
|
},
|
|
|
mounted() {},
|
|
|
};
|