5bd03939 by 杨炀

no message

1 parent c3c91799
...@@ -70,20 +70,21 @@ const request = function(req) { ...@@ -70,20 +70,21 @@ const request = function(req) {
70 resolve(data) 70 resolve(data)
71 } else { 71 } else {
72 if (!excludeUrls.includes(req.url)) { 72 if (!excludeUrls.includes(req.url)) {
73 if(data.msg){ 73 if (data.msg) {
74 uni.showModal({ 74 // uni.showModal({
75 content: data.msg, 75 // content: data.msg,
76 success: function(res) { 76 // success: function(res) {
77 77
78 } 78 // }
79 // })
80 uni.showToast({
81 title: data.msg,
82 icon: 'none',
83 duration: 3000
79 }) 84 })
80 } 85 }
81 uni.hideLoading() 86 uni.hideLoading()
82 // uni.showToast({ 87
83 // title: data.msg,
84 // icon: 'none',
85 // duration: 3000
86 // })
87 } 88 }
88 89
89 // 登录超时 90 // 登录超时
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 4
5 // staging 5 // staging
6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/"; 6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
7 const baseUrl_api = "http://192.168.1.95:8787"; 7 const baseUrl_api = "http://192.168.1.11:8787";
8 8
9 export default { 9 export default {
10 baseUrl_api 10 baseUrl_api
......
1 <template> 1 <template>
2 <view> 2 <view>
3 <!-- 机构会员 --> 3 <!-- 机构会员 -->
4 <view class="searchbar">
5 <uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
6 v-model="query.name" placeholder="搜索会员名称" @blur="getList" @clear="getList">
7 </uni-easyinput>
8 </view>
4 <view class="wBox"> 9 <view class="wBox">
5 <!-- 成员 --> 10 <!-- 成员 -->
6 <view class="userlist"> 11 <view class="userlist">
7 <view class="item" v-for="n in list"> 12 <view class="item" v-for="n in list" @click="goDetail(n)">
8 <view class="photobox"> 13 <view class="photobox">
9 <view class="colorful">{{n.name?.slice(0,1)}}</view> 14 <view class="colorful">{{n.name?.slice(0,1)}}</view>
10 </view> 15 </view>
...@@ -79,6 +84,11 @@ ...@@ -79,6 +84,11 @@
79 total.value = res.total 84 total.value = res.total
80 }) 85 })
81 } 86 }
87 function goDetail(n){
88 uni.navigateTo({
89 url: `/pages/personalVip/detail?perId=${n.perId}`
90 })
91 }
82 </script> 92 </script>
83 93
84 <style lang="scss" scoped> 94 <style lang="scss" scoped>
...@@ -88,4 +98,20 @@ ...@@ -88,4 +98,20 @@
88 font-size: 26rpx; 98 font-size: 26rpx;
89 color: #999; 99 color: #999;
90 } 100 }
101 .searchbar {
102 display: flex;
103 align-items: center;
104 padding: 25rpx;
105 box-sizing: border-box;
106
107 :deep(.uni-easyinput .uni-easyinput__content) {
108 border-radius: 35rpx;
109 border: none;
110 height: 70rpx;
111 }
112
113 :deep(.uni-easyinput__content-input) {
114 font-size: 26rpx;
115 }
116 }
91 </style> 117 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 </uni-easyinput> 7 </uni-easyinput>
8 </view> 8 </view>
9 <view class="vipData"> 9 <view class="vipData">
10 <view> <text>{{ forms?.total }}</text></view> 10 <view><text>{{ forms?.total }}</text></view>
11 <view>有效会员 <text>{{ forms?.effective }}</text></view> 11 <view>有效会员 <text>{{ forms?.effective }}</text></view>
12 <view>过期会员 <text>{{ forms?.expired }}</text></view> 12 <view>过期会员 <text>{{ forms?.expired }}</text></view>
13 <view>即将过期会员 <text>{{ forms?.soon }}</text></view> 13 <view>即将过期会员 <text>{{ forms?.soon }}</text></view>
...@@ -73,10 +73,14 @@ ...@@ -73,10 +73,14 @@
73 }) 73 })
74 74
75 function getList() { 75 function getList() {
76 uni.showLoading({
77 title:'加载中'
78 })
76 console.log(current.value,currentTabName.value,query.value.dType) 79 console.log(current.value,currentTabName.value,query.value.dType)
77 api.getGroupVipList(query.value).then(res => { 80 api.getGroupVipList(query.value).then(res => {
78 infoList.value = res.rows 81 infoList.value = res.rows
79 total.value = res.total 82 total.value = res.total
83 uni.hideLoading()
80 }) 84 })
81 } 85 }
82 function getGroupInfo(){ 86 function getGroupInfo(){
......
...@@ -418,4 +418,5 @@ ...@@ -418,4 +418,5 @@
418 :deep(.uni-section .uni-section-header){ 418 :deep(.uni-section .uni-section-header){
419 padding: 0 30rpx; 419 padding: 0 30rpx;
420 } 420 }
421
421 </style> 422 </style>
...\ No newline at end of file ...\ No newline at end of file
......
1 <template> 1 <template>
2 <view class="mainbox"> 2 <view class="mainbox">
3 <view class="photobox"> 3 <view class="photobox">
4 <image class="photo" v-if="form.photo" :src="config.baseUrl_api + form.photo" mode='widthFix'></image> 4 <image class="photo" v-if="form.photo" :src="form.photo" mode='widthFix'></image>
5 <view class="colorful" v-else>{{form.name?.slice(0,1)}}</view> 5 <view class="colorful" v-else>{{form.name?.slice(0,1)}}</view>
6 </view> 6 </view>
7 <uni-list> 7 <uni-list>
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
49 if(form.value.cityId){ 49 if(form.value.cityId){
50 getRegionsList(form.value.cityId) 50 getRegionsList(form.value.cityId)
51 } 51 }
52 if(form.photo&&form.photo.indexOf('http')==-1){
53 form.photo = config.baseUrl_api + form.photo
54 }
52 }) 55 })
53 }) 56 })
54 function getRegionsList(cityId){ 57 function getRegionsList(cityId){
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 <image class="icon" v-else src="@/static/member/dx.png" /> 15 <image class="icon" v-else src="@/static/member/dx.png" />
16 </view> 16 </view>
17 <view class="photobox"> 17 <view class="photobox">
18 <image class="photo" v-if="n.photo" :src="config.baseUrl_api+n.photo" mode='aspectFill'></image> 18 <image class="photo" v-if="n.photo" :src="n.photo" mode='aspectFill'></image>
19 <view class="colorful" v-else>{{n.name.slice(0,1)}}</view> 19 <view class="colorful" v-else>{{n.name.slice(0,1)}}</view>
20 </view> 20 </view>
21 <view @click="handleInfo(n)"> 21 <view @click="handleInfo(n)">
...@@ -84,6 +84,11 @@ ...@@ -84,6 +84,11 @@
84 function getList() { 84 function getList() {
85 api.selectPageList(queryParams.value).then(res => { 85 api.selectPageList(queryParams.value).then(res => {
86 list.value = res.rows 86 list.value = res.rows
87 for(var l of list.value){
88 if(l.photo&&l.photo.indexOf('http')==-1){
89 l.photo = config.baseUrl_api + l.photo
90 }
91 }
87 total.value = res.total 92 total.value = res.total
88 }) 93 })
89 } 94 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!