充值功能
parent
974cc504d9
commit
1b2f6e221e
|
@ -6,7 +6,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="pay-btn">
|
<div class="pay-btn">
|
||||||
<Button type="primary" @click="$router.push('/')">继续逛逛</Button>
|
<Button type="primary" @click="$router.push('/')">继续逛逛</Button>
|
||||||
<Button type="info" @click="$router.push('home/myOrder')">查看订单</Button>
|
<Button type="info" v-if="$route.query.orderType ==='RECHARGE'" @click="$router.push('/home/MoneyManagement')">查看余额</Button>
|
||||||
|
<Button type="info" v-else @click="$router.push('/home/myOrder')">查看订单</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
alt="">
|
alt="">
|
||||||
<span>微信</span>
|
<span>微信</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="support.includes('WALLET')" class="-box-item" @click="handlePay('WALLET')">
|
<div v-if="support.includes('WALLET') && $route.query.orderType !== 'RECHARGE'" class="-box-item" @click="handlePay('WALLET')">
|
||||||
<Icon custom="icomoon icon-wallet" size="60"/>
|
<Icon custom="icomoon icon-wallet" size="60"/>
|
||||||
<span>余额支付</span>
|
<span>余额支付</span>
|
||||||
<span>当前剩余({{ walletValue | unitPrice('¥') }})</span>
|
<span>当前剩余({{ walletValue | unitPrice('¥') }})</span>
|
||||||
|
|
|
@ -70,7 +70,7 @@ export default {
|
||||||
payCallback(params).then(res => {
|
payCallback(params).then(res => {
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
this.$router.push('/payDone');
|
this.$router.push({path: '/payDone', query: {orderType: this.$route.query.orderType}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,10 +159,10 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<Upload ref="upload" :show-upload-list="false" :default-file-list="baseInfoForm.goodsGalleryFiles"
|
<Upload ref="upload" :show-upload-list="false" :default-file-list="baseInfoForm.goodsGalleryFiles"
|
||||||
:on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
|
:on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
|
||||||
:on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
|
:on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
|
||||||
:before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
|
:before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
|
||||||
:headers="accessToken" style="display: inline-block;margin-left:10px;">
|
:headers="accessToken" style="display: inline-block;margin-left:10px;">
|
||||||
<div style="width: 80px; height: 80px; line-height: 80px">
|
<div style="width: 80px; height: 80px; line-height: 80px">
|
||||||
<Icon type="ios-camera" size="20"></Icon>
|
<Icon type="ios-camera" size="20"></Icon>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,9 +183,9 @@
|
||||||
<Card :bordered="true">
|
<Card :bordered="true">
|
||||||
<FormItem label="规格名:" class="sku-item-content-name">
|
<FormItem label="规格名:" class="sku-item-content-name">
|
||||||
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
||||||
placeholder="请输入规格项名称"
|
placeholder="请输入规格项名称"
|
||||||
:filter-method="filterMethod" :data="skuData"
|
:filter-method="filterMethod" :data="skuData"
|
||||||
@on-change="editSkuItem">
|
@on-change="editSkuItem">
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -441,7 +441,7 @@ export default {
|
||||||
editor,
|
editor,
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectGoodsType: {
|
selectGoodsType: { // 选择商品类型
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (val && this.baseInfoForm.goodsType) {
|
if (val && this.baseInfoForm.goodsType) {
|
||||||
this.goodsTypeWay.forEach((item) => {
|
this.goodsTypeWay.forEach((item) => {
|
||||||
|
|
Loading…
Reference in New Issue