|
@@ -28,7 +28,7 @@
|
|
|
<span class="name">{{ item.name }}</span>
|
|
<span class="name">{{ item.name }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex" @click="chooseProduct(item.id, index)">
|
|
<div class="flex" @click="chooseProduct(item.id, index)">
|
|
|
- <span class="orderSn" v-if="order_no[item.id]">{{ order_no[item.id] }}</span>
|
|
|
|
|
|
|
+ <span class="orderSn" v-if="order_no[item.id]">{{ JSON.parse(order_no[item.id]).order_no }}</span>
|
|
|
<span class="tip" v-else>{{ $t('lang331') }}</span>
|
|
<span class="tip" v-else>{{ $t('lang331') }}</span>
|
|
|
<!-- <van-checkbox :name="item.id" icon-size="16px" checked-color="#21926F"> </van-checkbox> -->
|
|
<!-- <van-checkbox :name="item.id" icon-size="16px" checked-color="#21926F"> </van-checkbox> -->
|
|
|
<div :class="[order_no[item.id] ? 'checkbox checkbox-active' : 'checkbox']">
|
|
<div :class="[order_no[item.id] ? 'checkbox checkbox-active' : 'checkbox']">
|
|
@@ -58,7 +58,7 @@
|
|
|
<span :class="[radio == item ? 'radio-active' : '']">
|
|
<span :class="[radio == item ? 'radio-active' : '']">
|
|
|
{{ item.order_no }}
|
|
{{ item.order_no }}
|
|
|
</span>
|
|
</span>
|
|
|
- <van-radio :name="item.order_no" icon-size="18px" checked-color="#21926f"></van-radio>
|
|
|
|
|
|
|
+ <van-radio :name="JSON.stringify(item)" icon-size="18px" checked-color="#21926f"></van-radio>
|
|
|
</div>
|
|
</div>
|
|
|
</van-radio-group>
|
|
</van-radio-group>
|
|
|
<div class="nodata" v-else>
|
|
<div class="nodata" v-else>
|
|
@@ -151,6 +151,12 @@ export default {
|
|
|
if (JSON.stringify(this.order_no) == '{}') {
|
|
if (JSON.stringify(this.order_no) == '{}') {
|
|
|
return this.$toast(this.$t('lang330'));
|
|
return this.$toast(this.$t('lang330'));
|
|
|
}
|
|
}
|
|
|
|
|
+ let order_id = {};
|
|
|
|
|
+ for (const key in this.order_no) {
|
|
|
|
|
+ const value = JSON.parse(this.order_no[key]);
|
|
|
|
|
+ order_id[key] = value.id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (this.pay_type == -1) {
|
|
if (this.pay_type == -1) {
|
|
|
return this.$toast(this.$t('lang470'));
|
|
return this.$toast(this.$t('lang470'));
|
|
|
}
|
|
}
|
|
@@ -163,7 +169,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
_this.show = true
|
|
_this.show = true
|
|
|
- let params = { pledge_id: _this.$route.query.id, pay_type: _this.pay_type, order_no: Object.assign({}, _this.order_no) };
|
|
|
|
|
|
|
+ let params = { pledge_id: _this.$route.query.id, pay_type: _this.pay_type, order_id: order_id };
|
|
|
homeApi.createPledge(params).then(res => {
|
|
homeApi.createPledge(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
_this.show = false
|
|
_this.show = false
|