mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-25 04:37:22 +08:00
【新增】付款界面【余额支付】说明调整为展示剩余余额。
This commit is contained in:
@@ -11,8 +11,11 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="coreshop-text-grey">{{ item.name }}</view>
|
<view class="coreshop-text-grey">{{ item.name }}</view>
|
||||||
<view class="coreshop-text-gray coreshop-font-sm flex coreshop-text-left">
|
<view class="coreshop-text-gray coreshop-font-sm flex coreshop-text-left">
|
||||||
<view class="u-line-1">
|
<view class="u-line-1 coreshop-text-red" v-if="item.code == 'balancepay'">
|
||||||
{{ item.memo }}
|
当前余额:{{userInfo.balance}}元
|
||||||
|
</view>
|
||||||
|
<view class="u-line-1" v-else>
|
||||||
|
{{item.memo}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -36,6 +39,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapMutations, mapActions, mapState } from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
// 如果是商品订单此参数必须
|
// 如果是商品订单此参数必须
|
||||||
@@ -73,6 +77,19 @@
|
|||||||
popShow: false
|
popShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
userInfo: state => state.userInfo,
|
||||||
|
}),
|
||||||
|
userInfo: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.userInfo;
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$store.commit('userInfo', val);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getPayments();
|
this.getPayments();
|
||||||
console.log('类型:' + this.type);
|
console.log('类型:' + this.type);
|
||||||
|
|||||||
Reference in New Issue
Block a user