This commit is contained in:
cc_zbp 2023-06-03 17:18:56 +08:00
parent 205176ee94
commit 8a1c6b012d
3 changed files with 28 additions and 7 deletions

View File

@ -17,7 +17,7 @@
<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="iconfont icon-sousuo"></view>
<input type="text" v-model="keyword" placeholder="搜索产品或店铺">
<input type="text" v-model="keyword" placeholder="搜索产品或店铺" disabled>
</view>
<button class="search_btn">搜索</button>
</navigator>
@ -83,7 +83,7 @@
watch: {
location: {
handler(newVal, oldVal) {
if(newVal.address_component?.street) this.street = newVal.address_component.street
if (newVal.address_component?.street) this.street = newVal.address_component.street
},
immediate: true
}
@ -91,7 +91,7 @@
created() {
this.getBanner()
this.Area()
if(this.location.address_component?.street) this.street = this.location.address_component.street
if (this.location.address_component?.street) this.street = this.location.address_component.street
},
methods: {
swiperClick(item) {

View File

@ -350,11 +350,14 @@
const data = { cart_id: selectValue }
this.popUpShow = true
createtApi(data).then(res => {
console.log("createtApi", res.data);
if (res.data.status == "error") return Toast('生成二维码失败')
if (res.status === 200) {
console.log("res", res.data);
this.payCodeUrl = res.data.config;
this.$refs.qrcode._makeCode()
}
}).catch(err => {
console.log('err-createtApi', err);
})
},
//

View File

@ -11,7 +11,14 @@
<view class="goods">
<block v-for="(item,index) in cateGoods" :key="index">
<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="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
@ -52,6 +59,7 @@
<script>
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
import zbpSwiper from '@/components/zbpSwiper'
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
import { getSlideAPI } from '@/api/lihai.js'
import { graphicLstApi, getTopicList, graphicStartApi } from '@/api/community.js'
import { getIndexData, getDiy } from '@/api/api.js'
@ -61,7 +69,8 @@
export default {
components: {
mTabbar,
zbpSwiper
zbpSwiper,
easyLoadimage
},
data() {
return {
@ -77,7 +86,7 @@
where: {
category_id: 0,
page: 1,
limit: 30
limit: 15
},
currentItemId: 69, // 0 || 69
keyword: '',
@ -196,7 +205,9 @@
}, ...data]
},
tabsChange(item) {
this.cateGoods = []
this.where.category_id = item.category_id
this.where.page = 1
this.getGoods()
this.street_id = item.id
this.tabsData.tabsActive = item.index
@ -297,6 +308,13 @@
.goods_img {
width: 100%;
height: 294.74rpx;
/deep/.easy-loadimage {
width: 100%;
height: 294.74rpx;
// border-radius: 8rpx;
position: relative;
}
}
.botm {