Commit b709991a authored by Mac's avatar Mac

1

parent fca1022d
<template> <template>
<div style="background-color: #f6f6f6;height: 100vh;padding-bottom: 90px; overflow: hidden;"> <div style="background-color: #f6f6f6;height: 100vh;padding-bottom: 65px; overflow: hidden;">
<view style="padding:5px 10px;"> <view style="padding:5px 10px;">
<u-search placeholder="搜索载体名称" :focus="false" :show-action="false" :clearabled="true" radius="40" v-model="searchKey" <u-search placeholder="搜索载体名称" :focus="false" :show-action="false" :clearabled="true" radius="40" v-model="searchKey"
@search="searchHandler" @custom="searchHandler" bg-color="#FFF" ></u-search> @search="searchHandler" @custom="searchHandler" bg-color="#FFF" ></u-search>
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
Developers:"", Developers:"",
StartOpenTime:"", StartOpenTime:"",
EndOpenTime:"", EndOpenTime:"",
ProjectType:0, ProjectType:1,
OrderBy:0 OrderBy:0
}, },
loading: false, loading: false,
...@@ -154,13 +154,13 @@ ...@@ -154,13 +154,13 @@
if (res.resultCode == 1) { if (res.resultCode == 1) {
// this.pageCount = res.data.pageCount // this.pageCount = res.data.pageCount
this.typeList = res.data this.typeList = res.data
if(this.msg.ProjectType ==0){ if(this.msg.ProjectType ==1){
this.msg.ProjectType = this.typeList[0].Id
}else{//指定跳入分类 }else{//指定跳入分类
this.typeList.map((x,i)=>{ this.typeList.map((x,i)=>{
if(x.Id== this.msg.ProjectType){ if(x.Id== this.msg.ProjectType){
this.active = i; this.active = i;
return
} }
}) })
} }
...@@ -177,7 +177,8 @@ ...@@ -177,7 +177,8 @@
this.request2(parms, (res) => { this.request2(parms, (res) => {
this.loading = false; this.loading = false;
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.dataList=res.data.pageData this.dataList = this.dataList.concat(res.data.pageData);
this.pageCount = res.data.pageCount
if (this.pageCount == 1) { if (this.pageCount == 1) {
this.status = "nomore"; this.status = "nomore";
} }
...@@ -188,7 +189,7 @@ ...@@ -188,7 +189,7 @@
this.active = i; this.active = i;
this.msg.ProjectType = this.typeList[i].Id; this.msg.ProjectType = this.typeList[i].Id;
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.g= []; this.dataList= [];
this.getCarrierPageList() this.getCarrierPageList()
}, },
openGood(id,type) { openGood(id,type) {
......
...@@ -361,13 +361,28 @@ ...@@ -361,13 +361,28 @@
title: '提交成功', title: '提交成功',
icon:'none' icon:'none'
}); });
uni.reLaunch({ setTimeout(()=>{
url: "/pages/kotra/firstShop/list",
}) this.showTemplate(res.data)
},500)
} }
} }
); );
}, },
//显示模板
showTemplate(template) {
uni.requestSubscribeMessage({
tmplIds: template,
complete(){
uni.reLaunch({
url: "/pages/kotra/firstShop/list",
})
},
})
},
deletebtn(){//删除 deletebtn(){//删除
this.request2( this.request2(
{ {
......
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