|
|
@@ -8,17 +8,12 @@
|
|
|
</div>
|
|
|
</block>
|
|
|
<div class="status-text app-size-36 app-bold">{{ pageTit }}</div>
|
|
|
- <block v-if="pageStatus == 3 || pageStatus == 4 || pageStatus == 5"></block>
|
|
|
+ <block></block>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { mapGetters } from "vuex";
|
|
|
-import wexinPay from "@/utils/pay/wxPay";
|
|
|
-import { getMerchantInfo } from "@/api/common";
|
|
|
-import { getShopUser } from "@/utils/auth";
|
|
|
-import { balancePay, wxPay } from "@/api/order";
|
|
|
export default {
|
|
|
name: "callback",
|
|
|
components: {},
|
|
|
@@ -38,39 +33,14 @@ export default {
|
|
|
merchantInfo: {}
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
- ...mapGetters({ shopUser: "getShopUser" }),
|
|
|
- isYeBtnShow() {
|
|
|
- if (this.$util.isEmpty(this.shopUser)) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- return this.shopUser.userAsset.balance > this.option.totalPrice;
|
|
|
- }
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
onLoad() {},
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.pageStatus = this.option.pageStatus;
|
|
|
- console.log("pageStatus 值发生变化");
|
|
|
- console.log(this.pageStatus);
|
|
|
this.payDiscountPrice = this.option.payDiscountPrice;
|
|
|
this.payDiscountType = this.option.payDiscountType;
|
|
|
this.initClass(this.pageStatus);
|
|
|
- getShopUser();
|
|
|
- getMerchantInfo().then(res => {
|
|
|
- this.merchantInfo = res.data;
|
|
|
- });
|
|
|
- },
|
|
|
- passwordModalClick(e) {
|
|
|
- if (e.index === 0) {
|
|
|
- this.modalCancel();
|
|
|
- } else {
|
|
|
- this._balancePay();
|
|
|
- }
|
|
|
- },
|
|
|
- modalCancel() {
|
|
|
- this.passwordModal = false;
|
|
|
- this.form.payPassword = "";
|
|
|
},
|
|
|
//初始样式
|
|
|
initClass(val) {
|