mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:23:27 +08:00
【新增】付款界面【余额支付】说明调整为展示剩余余额。
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user