增加轮播图点击跳转示例,修改提交订单报错的问题
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
<swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular >
|
<swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular >
|
||||||
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
|
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
|
||||||
<swiper-item>
|
<swiper-item>
|
||||||
<view @click="item.url ? $yrouter.push('/' + item.url) : ''" class="swiper-item">
|
<view @click="goRoll(item)" class="swiper-item">
|
||||||
<image :src="item.pic" />
|
<image :src="item.pic" />
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
|
@ -522,6 +522,7 @@ export default {
|
|||||||
if (this.$deviceType == "app") {
|
if (this.$deviceType == "app") {
|
||||||
from.from = "app";
|
from.from = "app";
|
||||||
}
|
}
|
||||||
|
console.log(this.storeItems, this.systemStore);
|
||||||
createOrder(this.orderGroupInfo.orderKey, {
|
createOrder(this.orderGroupInfo.orderKey, {
|
||||||
realName: this.contacts,
|
realName: this.contacts,
|
||||||
phone: this.contactsTel,
|
phone: this.contactsTel,
|
||||||
@ -536,7 +537,7 @@ export default {
|
|||||||
from: this.from,
|
from: this.from,
|
||||||
mark: this.mark || "",
|
mark: this.mark || "",
|
||||||
shippingType: parseInt(shipping_type) + 1,
|
shippingType: parseInt(shipping_type) + 1,
|
||||||
storeId: this.storeItems.id || this.systemStore.id,
|
storeId: this.storeItems ? this.storeItems.id : this.systemStore.id,
|
||||||
...from
|
...from
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
Reference in New Issue
Block a user