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

sjx

parent bbe45d8c
...@@ -355,4 +355,13 @@ ...@@ -355,4 +355,13 @@
.mb-20{ .mb-20{
margin-bottom: 15upx; 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 @@ ...@@ -187,16 +187,18 @@
<!-- 底部分享弹窗 --> <!-- 底部分享弹窗 -->
<uni-popup :show="showshare" style="z-index: 99;" :type="type" @change="change"> <uni-popup :show="showshare" style="z-index: 99;" :type="type" @change="change">
<view class="childboxmain"> <view class="childboxmain">
<view class="titlebox flex ali-c jus-b"> <view class="titlebox">
<view class="title">选择参与优惠的商品</view> <view class="ali-c jus-b" style="margin-bottom: 20upx;">
<image class="imgs" @tap="showshare=false" src="/static/news/plicons.png" mode=""></image> <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> </view>
<!-- scroll scroll-left="120" --> <!-- scroll scroll-left="120" -->
<!-- @scroll="" --> <!-- @scroll="" -->
<scroll-view class="scroll-view_H" style="height: 50vh;" scroll-y="true" > <scroll-view class="scroll-view_H" style="height: 50vh;" scroll-y="true" >
<view class="chindlist "> <view class="chindlist ">
<checkbox-group class="flex ali-c flex-wrap chilidlistbox" @change="radioChange2" v-model="parameter.goods_id"> <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"> <label class="flex ali-c jus-b itemlable" v-for="(item,index) in shoplist" :key="index">
<view class="itemname">{{item.product_name}}</view> <view class="itemname">{{item.product_name}}</view>
...@@ -205,7 +207,8 @@ ...@@ -205,7 +207,8 @@
</view> </view>
</label> </label>
</checkbox-group> </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> </view>
</scroll-view> </scroll-view>
<view class="submitbtns active" @tap="showshare=false" >确定</view> <view class="submitbtns active" @tap="showshare=false" >确定</view>
...@@ -251,6 +254,7 @@ ...@@ -251,6 +254,7 @@
}, },
data() { data() {
return { return {
keywords:'',
xianshi:true, xianshi:true,
istruesub:true, istruesub:true,
tabactive:1, tabactive:1,
...@@ -315,7 +319,17 @@ ...@@ -315,7 +319,17 @@
}, },
methods:{ 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(){ colesedit(){
this.parameter={ this.parameter={
...@@ -343,10 +357,11 @@ ...@@ -343,10 +357,11 @@
//接口start //接口start
//获取商城商品 //获取商城商品
async shop_goodsFun(){ async shop_goodsFun(keywords){
this.pages++;
let res = await couponGoods({ let res = await couponGoods({
page:this.pages, page:this.pages,
keywords:this.keywords
}); });
...@@ -369,8 +384,9 @@ ...@@ -369,8 +384,9 @@
if(res.code==0){ if(res.code==0){
if( list.length!=0){ if( list.length!=0){
this.shoplist = [...this.shoplist,...list]; this.shoplist = [...this.shoplist,...list];
this.xianshi = true;
}else{ }else{
this.$api.msg("没有更多了~"); // this.$api.msg("没有更多了~");
this.isallshow = true; this.isallshow = true;
this.xianshi = false; 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