【新增】付款界面【余额支付】说明调整为展示剩余余额。

This commit is contained in:
大灰灰
2022-07-06 23:28:57 +08:00
parent deacd7e495
commit 4a6f285688

View File

@@ -11,8 +11,11 @@
<view class="content">
<view class="coreshop-text-grey">{{ item.name }}</view>
<view class="coreshop-text-gray coreshop-font-sm flex coreshop-text-left">
<view class="u-line-1">
{{ item.memo }}
<view class="u-line-1 coreshop-text-red" v-if="item.code == 'balancepay'">
当前余额{{userInfo.balance}}
</view>
<view class="u-line-1" v-else>
{{item.memo}}
</view>
</view>
</view>
@@ -36,6 +39,7 @@
</template>
<script>
import { mapMutations, mapActions, mapState } from 'vuex';
export default {
props: {
// 如果是商品订单此参数必须
@@ -73,6 +77,19 @@
popShow: false
}
},
computed: {
...mapState({
userInfo: state => state.userInfo,
}),
userInfo: {
get() {
return this.$store.state.userInfo;
},
set(val) {
this.$store.commit('userInfo', val);
}
},
},
mounted() {
this.getPayments();
console.log('类型:' + this.type);