Commit 81132414 authored by 石家欣's avatar 石家欣

sjx

parent bbe45d8c
......@@ -355,4 +355,13 @@
.mb-20{
margin-bottom: 15upx;
}
.sousuo{
flex: 1;
height:60upx;
background:rgba(179, 179, 179,0.6);
border-radius:30upx;
padding: 0 20upx;
box-sizing: border-box;
color: #3B4144;
}
\ No newline at end of file
......@@ -187,16 +187,18 @@
<!-- 底部分享弹窗 -->
<uni-popup :show="showshare" style="z-index: 99;" :type="type" @change="change">
<view class="childboxmain">
<view class="titlebox flex ali-c jus-b">
<view class="title">选择参与优惠的商品</view>
<image class="imgs" @tap="showshare=false" src="/static/news/plicons.png" mode=""></image>
<view class="titlebox">
<view class="ali-c jus-b" style="margin-bottom: 20upx;">
<view class="title">选择参与优惠的商品</view>
<image class="imgs" @tap="showshare=false" src="/static/news/plicons.png" mode=""></image>
</view>
<input class="sousuo" @input="onKeyInput" placeholder="请输入搜索内容" />
</view>
<!-- scroll scroll-left="120" -->
<!-- @scroll="" -->
<scroll-view class="scroll-view_H" style="height: 50vh;" scroll-y="true" >
<view class="chindlist ">
<checkbox-group class="flex ali-c flex-wrap chilidlistbox" @change="radioChange2" v-model="parameter.goods_id">
<label class="flex ali-c jus-b itemlable" v-for="(item,index) in shoplist" :key="index">
<view class="itemname">{{item.product_name}}</view>
......@@ -205,7 +207,8 @@
</view>
</label>
</checkbox-group>
<view class="xiayiye title" @tap="shop_goodsFun" v-if="xianshi" >下一页>>></view>
<view class="xiayiye title" @tap="nextPage" v-if="xianshi" >下一页>>></view>
<view class="xiayiye title" @tap="nextPage" v-else >没有更多了~</view>
</view>
</scroll-view>
<view class="submitbtns active" @tap="showshare=false" >确定</view>
......@@ -251,6 +254,7 @@
},
data() {
return {
keywords:'',
xianshi:true,
istruesub:true,
tabactive:1,
......@@ -315,7 +319,17 @@
},
methods:{
// 搜索
onKeyInput: function(event) {
this.keywords = event.target.value
this.pages = 0;
this.shoplist=[];
this.shop_goodsFun();
},
nextPage:function(){
this.pages++;
this.shop_goodsFun();
},
//取消编辑
colesedit(){
this.parameter={
......@@ -343,10 +357,11 @@
//接口start
//获取商城商品
async shop_goodsFun(){
this.pages++;
async shop_goodsFun(keywords){
let res = await couponGoods({
page:this.pages,
keywords:this.keywords
});
......@@ -369,8 +384,9 @@
if(res.code==0){
if( list.length!=0){
this.shoplist = [...this.shoplist,...list];
this.xianshi = true;
}else{
this.$api.msg("没有更多了~");
// this.$api.msg("没有更多了~");
this.isallshow = true;
this.xianshi = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment