|
@@ -114,7 +114,12 @@
|
|
|
}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
console.log(res)
|
|
|
- uni.setStorageSync('cirlce_search_val', res.data);
|
|
|
+ if(res.data.text.length>10){
|
|
|
+ var text = res.data.text.substring(0, 10)
|
|
|
+ }else{
|
|
|
+ var text = res.data.text
|
|
|
+ }
|
|
|
+ uni.setStorageSync('cirlce_search_val', text);
|
|
|
uni.switchTab({
|
|
|
url: "/pages/circle/circle"
|
|
|
|
|
@@ -126,7 +131,12 @@
|
|
|
})
|
|
|
},
|
|
|
onSearchName(e) {
|
|
|
- uni.setStorageSync('cirlce_search_val', e);
|
|
|
+ if(e.length>10){
|
|
|
+ var text = e.substring(0, 10)
|
|
|
+ }else{
|
|
|
+ var text = e
|
|
|
+ }
|
|
|
+ uni.setStorageSync('cirlce_search_val', text);
|
|
|
uni.switchTab({
|
|
|
url:`/pages/circle/circle`
|
|
|
})
|