Browse Source

增加轮播图点击跳转示例,修改提交订单报错的问题

zyh
gaoxs 5 years ago
parent
commit
05fa6064f3
  1. 2
      pages/home/index.vue
  2. 3
      pages/order/OrderSubmission/index.vue

2
pages/home/index.vue

@ -13,7 +13,7 @@
<swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular >
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
<swiper-item>
<view @click="item.url ? $yrouter.push('/' + item.url) : ''" class="swiper-item">
<view @click="goRoll(item)" class="swiper-item">
<image :src="item.pic" />
</view>
</swiper-item>

3
pages/order/OrderSubmission/index.vue

@ -522,6 +522,7 @@ export default {
if (this.$deviceType == "app") {
from.from = "app";
}
console.log(this.storeItems, this.systemStore);
createOrder(this.orderGroupInfo.orderKey, {
realName: this.contacts,
phone: this.contactsTel,
@ -536,7 +537,7 @@ export default {
from: this.from,
mark: this.mark || "",
shippingType: parseInt(shipping_type) + 1,
storeId: this.storeItems.id || this.systemStore.id,
storeId: this.storeItems ? this.storeItems.id : this.systemStore.id,
...from
})
.then(res => {

Loading…
Cancel
Save