提交
This commit is contained in:
parent
205176ee94
commit
8a1c6b012d
@ -17,7 +17,7 @@
|
|||||||
<navigator url="/pages/columnGoods/goods_search/index" hover-class="none" class="search_content flex_a_c_j_sb">
|
<navigator url="/pages/columnGoods/goods_search/index" hover-class="none" class="search_content flex_a_c_j_sb">
|
||||||
<view class="flex_a_c">
|
<view class="flex_a_c">
|
||||||
<view class="iconfont icon-sousuo"></view>
|
<view class="iconfont icon-sousuo"></view>
|
||||||
<input type="text" v-model="keyword" placeholder="搜索产品或店铺">
|
<input type="text" v-model="keyword" placeholder="搜索产品或店铺" disabled>
|
||||||
</view>
|
</view>
|
||||||
<button class="search_btn">搜索</button>
|
<button class="search_btn">搜索</button>
|
||||||
</navigator>
|
</navigator>
|
||||||
|
@ -350,11 +350,14 @@
|
|||||||
const data = { cart_id: selectValue }
|
const data = { cart_id: selectValue }
|
||||||
this.popUpShow = true
|
this.popUpShow = true
|
||||||
createtApi(data).then(res => {
|
createtApi(data).then(res => {
|
||||||
|
console.log("createtApi", res.data);
|
||||||
|
if (res.data.status == "error") return Toast('生成二维码失败')
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
console.log("res", res.data);
|
|
||||||
this.payCodeUrl = res.data.config;
|
this.payCodeUrl = res.data.config;
|
||||||
this.$refs.qrcode._makeCode()
|
this.$refs.qrcode._makeCode()
|
||||||
}
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
console.log('err-createtApi', err);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 扫码结束
|
// 扫码结束
|
||||||
|
@ -11,7 +11,14 @@
|
|||||||
<view class="goods">
|
<view class="goods">
|
||||||
<block v-for="(item,index) in cateGoods" :key="index">
|
<block v-for="(item,index) in cateGoods" :key="index">
|
||||||
<view class="goods_item" @click="gogogo(item)">
|
<view class="goods_item" @click="gogogo(item)">
|
||||||
<image class="goods_img" :src="item.image[0]" mode="aspectFill"></image>
|
<view style="height: 294.74rpx;">
|
||||||
|
<u--image :src="item.image[0]" width="342.11rpx" height="294.74rpx" :showLoading="true" lazyLoad fade
|
||||||
|
duration="450">
|
||||||
|
<template v-slot:loading>
|
||||||
|
<u-loading-icon color="#f5f5f5"></u-loading-icon>
|
||||||
|
</template>
|
||||||
|
</u--image>
|
||||||
|
</view>
|
||||||
<view class="botm">
|
<view class="botm">
|
||||||
<view class="title">{{item.title}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="goods_info flex_a_c">
|
<view class="goods_info flex_a_c">
|
||||||
@ -52,6 +59,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
|
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
|
||||||
import zbpSwiper from '@/components/zbpSwiper'
|
import zbpSwiper from '@/components/zbpSwiper'
|
||||||
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
import { getSlideAPI } from '@/api/lihai.js'
|
import { getSlideAPI } from '@/api/lihai.js'
|
||||||
import { graphicLstApi, getTopicList, graphicStartApi } from '@/api/community.js'
|
import { graphicLstApi, getTopicList, graphicStartApi } from '@/api/community.js'
|
||||||
import { getIndexData, getDiy } from '@/api/api.js'
|
import { getIndexData, getDiy } from '@/api/api.js'
|
||||||
@ -61,7 +69,8 @@
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
mTabbar,
|
mTabbar,
|
||||||
zbpSwiper
|
zbpSwiper,
|
||||||
|
easyLoadimage
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -77,7 +86,7 @@
|
|||||||
where: {
|
where: {
|
||||||
category_id: 0,
|
category_id: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 30
|
limit: 15
|
||||||
},
|
},
|
||||||
currentItemId: 69, // 默认获取 社区的数据 0 表示推荐 || 69 社区
|
currentItemId: 69, // 默认获取 社区的数据 0 表示推荐 || 69 社区
|
||||||
keyword: '',
|
keyword: '',
|
||||||
@ -196,7 +205,9 @@
|
|||||||
}, ...data]
|
}, ...data]
|
||||||
},
|
},
|
||||||
tabsChange(item) {
|
tabsChange(item) {
|
||||||
|
this.cateGoods = []
|
||||||
this.where.category_id = item.category_id
|
this.where.category_id = item.category_id
|
||||||
|
this.where.page = 1
|
||||||
this.getGoods()
|
this.getGoods()
|
||||||
this.street_id = item.id
|
this.street_id = item.id
|
||||||
this.tabsData.tabsActive = item.index
|
this.tabsData.tabsActive = item.index
|
||||||
@ -297,6 +308,13 @@
|
|||||||
.goods_img {
|
.goods_img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 294.74rpx;
|
height: 294.74rpx;
|
||||||
|
|
||||||
|
/deep/.easy-loadimage {
|
||||||
|
width: 100%;
|
||||||
|
height: 294.74rpx;
|
||||||
|
// border-radius: 8rpx;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.botm {
|
.botm {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user