Commit 68b046b071f886a92ab075585f3ac69ce2f8db76
1 parent
7780815c
1
Showing
4 changed files
with
333 additions
and
209 deletions
lvdao-miniapp/pages/home/home.vue
| 1 | <template> | 1 | <template> |
| 2 | <view class="page"> | 2 | <view class="page"> |
| 3 | <view style="position: absolute; top: 0; width: 100%;"> | 3 | <view style="position: absolute; top: 0; width: 100%;"> |
| 4 | - <image :src="$imgUrl('/bg.png')" class="top-img" mode="aspectFill"></image> | 4 | + <image :src="$imgUrl('/bg.png')" class="top-img" mode="aspectFill"></image> |
| 5 | </view> | 5 | </view> |
| 6 | <view class="head" :style="'background-color: rgba(38,197,112,'+(scrollTop/50)+');'"> | 6 | <view class="head" :style="'background-color: rgba(38,197,112,'+(scrollTop/50)+');'"> |
| 7 | <view class="logo-title"> | 7 | <view class="logo-title"> |
| 8 | - <image :src="$imgUrl('/logo.png')" ></image> | 8 | + <image :src="$imgUrl('/logo.png')"></image> |
| 9 | + <u-icon @click="smcode" style="margin-left: 20rpx;" name="scan" color="#fff" size="38"></u-icon> | ||
| 9 | </view> | 10 | </view> |
| 10 | <view class="title"> | 11 | <view class="title"> |
| 11 | </view> | 12 | </view> |
| @@ -32,9 +33,9 @@ | @@ -32,9 +33,9 @@ | ||
| 32 | <view class="notice-right"> | 33 | <view class="notice-right"> |
| 33 | <view class="notice-right-content" @click="gaozhi(item)" v-for="(item,index) in procedureData"> | 34 | <view class="notice-right-content" @click="gaozhi(item)" v-for="(item,index) in procedureData"> |
| 34 | <view class="notice-icon">公告</view> | 35 | <view class="notice-icon">公告</view> |
| 35 | - <view class="notice-text" style="padding-top:4rpx"> {{item.announcementTitle}}</view> | 36 | + <view class="notice-text" style="padding-top:4rpx"> {{item.announcementTitle}}</view> |
| 36 | </view> | 37 | </view> |
| 37 | - </view> | 38 | + </view> |
| 38 | </view> | 39 | </view> |
| 39 | </view> | 40 | </view> |
| 40 | 41 | ||
| @@ -42,7 +43,7 @@ | @@ -42,7 +43,7 @@ | ||
| 42 | <view class="wallet-info"> | 43 | <view class="wallet-info"> |
| 43 | <view class="list" @click="shops"> | 44 | <view class="list" @click="shops"> |
| 44 | <view class="icon"> | 45 | <view class="icon"> |
| 45 | - <image :src="$imgUrl('/home2.png')"></image> | 46 | + <image :src="$imgUrl('/home2.png')"></image> |
| 46 | </view> | 47 | </view> |
| 47 | <view class="title"> | 48 | <view class="title"> |
| 48 | <text>租商铺</text> | 49 | <text>租商铺</text> |
| @@ -66,13 +67,13 @@ | @@ -66,13 +67,13 @@ | ||
| 66 | </view> | 67 | </view> |
| 67 | <view class="list" @click="wuye"> | 68 | <view class="list" @click="wuye"> |
| 68 | <view class="icon"> | 69 | <view class="icon"> |
| 69 | - <image :src="$imgUrl('/home4.png')"></image> | 70 | + <image :src="$imgUrl('/home4.png')"></image> |
| 70 | </view> | 71 | </view> |
| 71 | <view class="title"> | 72 | <view class="title"> |
| 72 | <text>物业缴费</text> | 73 | <text>物业缴费</text> |
| 73 | </view> | 74 | </view> |
| 74 | </view> | 75 | </view> |
| 75 | -<!-- <view class="list" @click="gopath('/pagesA/hxlist/hxlist')"> | 76 | + <!-- <view class="list" @click="gopath('/pagesA/hxlist/hxlist')"> |
| 76 | <view class="icon"> | 77 | <view class="icon"> |
| 77 | <image :src="$imgUrl('/home4.png')"></image> | 78 | <image :src="$imgUrl('/home4.png')"></image> |
| 78 | </view> | 79 | </view> |
| @@ -226,30 +227,34 @@ | @@ -226,30 +227,34 @@ | ||
| 226 | <view class="cardHome"> | 227 | <view class="cardHome"> |
| 227 | <view class="card_home"> | 228 | <view class="card_home"> |
| 228 | <view class="card_title">热点租赁信息</view> | 229 | <view class="card_title">热点租赁信息</view> |
| 229 | - <view class="card_more" @click="goList">查看更多 <u-icon name="arrow-right" size="28"></u-icon></view> | 230 | + <view class="card_more" @click="goList">查看更多 <u-icon name="arrow-right" size="28"></u-icon></view> |
| 230 | </view> | 231 | </view> |
| 231 | - <view style="width:50%;margin-top:10px;" > | ||
| 232 | - <u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#0FBB59" @change="tabsChange" :current="current"></u-tabs-swiper> | ||
| 233 | - | 232 | + <view style="width:50%;margin-top:10px;"> |
| 233 | + <u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" active-color="#0FBB59" | ||
| 234 | + @change="tabsChange" :current="current"></u-tabs-swiper> | ||
| 235 | + | ||
| 234 | </view> | 236 | </view> |
| 235 | <view style="width:100%;margin-top:10px;" class="other-business"> | 237 | <view style="width:100%;margin-top:10px;" class="other-business"> |
| 236 | <view v-if="tableData.length == 0" style="padding: 50rpx 0;text-align: center;">暂无数据</view> | 238 | <view v-if="tableData.length == 0" style="padding: 50rpx 0;text-align: center;">暂无数据</view> |
| 237 | - <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120" > | ||
| 238 | - <view v-for="(item, index) in tableData" :key="index" class="scroll-view-item_H" @click="details(item)"> | 239 | + <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120"> |
| 240 | + <view v-for="(item, index) in tableData" :key="index" class="scroll-view-item_H" | ||
| 241 | + @click="details(item)"> | ||
| 239 | <view class="business-card"> | 242 | <view class="business-card"> |
| 240 | - <u-image :showLoading="true" :src="imgurl + (item.displayMainImage || item.locationDiagram || item.displayImage) | getimgurl" width="100%" height="210rpx" border-radius="20"></u-image> | 243 | + <u-image :showLoading="true" |
| 244 | + :src="imgurl + (item.displayMainImage || item.locationDiagram || item.displayImage) | getimgurl" | ||
| 245 | + width="100%" height="210rpx" border-radius="20"></u-image> | ||
| 241 | <view class="business-card-title"> | 246 | <view class="business-card-title"> |
| 242 | {{ item.shopName || item.advertisingName || item.venueName}} | 247 | {{ item.shopName || item.advertisingName || item.venueName}} |
| 243 | </view> | 248 | </view> |
| 244 | - <!-- <view class="business-card-item">租金:¥<span>{{item.id * 10}}</span>/月</view> | 249 | + <!-- <view class="business-card-item">租金:¥<span>{{item.id * 10}}</span>/月</view> |
| 245 | <view class="business-card-item">面积:<span>{{item.actualUsableArea?item.actualUsableArea:'55.4'}}</span>/m2</view> --> | 250 | <view class="business-card-item">面积:<span>{{item.actualUsableArea?item.actualUsableArea:'55.4'}}</span>/m2</view> --> |
| 246 | - <!-- <view class="introduce" v-if='item.detailedLocation && item.advertisingType== undefined '> | 251 | + <!-- <view class="introduce" v-if='item.detailedLocation && item.advertisingType== undefined '> |
| 247 | <image :src="$imgUrl('/kefu.png')"></image> | 252 | <image :src="$imgUrl('/kefu.png')"></image> |
| 248 | <text class="one-omit" v-if='item.shopName'>{{item.detailedLocation}}</text> | 253 | <text class="one-omit" v-if='item.shopName'>{{item.detailedLocation}}</text> |
| 249 | <text class="one-omit" v-else><u-parse :html="item.description" ></u-parse></text> | 254 | <text class="one-omit" v-else><u-parse :html="item.description" ></u-parse></text> |
| 250 | </view> --> | 255 | </view> --> |
| 251 | <view class="introduce" v-if='item.advertisingType'> | 256 | <view class="introduce" v-if='item.advertisingType'> |
| 252 | - <text>类型:</text> | 257 | + <text>类型:</text> |
| 253 | <text class="one-omit">{{item.advertisingType}}</text> | 258 | <text class="one-omit">{{item.advertisingType}}</text> |
| 254 | </view> | 259 | </view> |
| 255 | </view> | 260 | </view> |
| @@ -257,64 +262,73 @@ | @@ -257,64 +262,73 @@ | ||
| 257 | </scroll-view> | 262 | </scroll-view> |
| 258 | </view> | 263 | </view> |
| 259 | </view> | 264 | </view> |
| 260 | - | 265 | + |
| 261 | <view class="cardHome"> | 266 | <view class="cardHome"> |
| 262 | <view class="card_home"> | 267 | <view class="card_home"> |
| 263 | <view class="card_title">商家活动信息</view> | 268 | <view class="card_title">商家活动信息</view> |
| 264 | - <view class="card_more" @click="goDetail('/pages/participation/participation')">查看更多 <u-icon name="arrow-right" size="28"></u-icon></view> | 269 | + <view class="card_more" @click="goDetail('/pages/participation/participation')">查看更多 <u-icon |
| 270 | + name="arrow-right" size="28"></u-icon></view> | ||
| 265 | </view> | 271 | </view> |
| 266 | <view style="width:100%;margin-top:10px;" class="other-business"> | 272 | <view style="width:100%;margin-top:10px;" class="other-business"> |
| 267 | - <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120" > | ||
| 268 | - <view v-for="(item, index) in activity" :key="index" class="scroll-view-item_H" @click="toDetail(item.id, '/pages/activityDetail/activityDetail')" > | 273 | + <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120"> |
| 274 | + <view v-for="(item, index) in activity" :key="index" class="scroll-view-item_H" | ||
| 275 | + @click="toDetail(item.id, '/pages/activityDetail/activityDetail')"> | ||
| 269 | <view class="business-card"> | 276 | <view class="business-card"> |
| 270 | - <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" border-radius="20"></u-image> | 277 | + <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" |
| 278 | + border-radius="20"></u-image> | ||
| 271 | <view class="business-card-title"> | 279 | <view class="business-card-title"> |
| 272 | {{item.activityName || '标题'}} | 280 | {{item.activityName || '标题'}} |
| 273 | </view> | 281 | </view> |
| 274 | <view class="huo-card-item">活动时间:<span>{{item.startTime}}</span></view> | 282 | <view class="huo-card-item">活动时间:<span>{{item.startTime}}</span></view> |
| 275 | <view class="huo-card-item">参与人数:<span>{{item.maxParticipants}}</span></view> | 283 | <view class="huo-card-item">参与人数:<span>{{item.maxParticipants}}</span></view> |
| 276 | - | 284 | + |
| 277 | </view> | 285 | </view> |
| 278 | </view> | 286 | </view> |
| 279 | </scroll-view> | 287 | </scroll-view> |
| 280 | </view> | 288 | </view> |
| 281 | </view> | 289 | </view> |
| 282 | - | 290 | + |
| 283 | <view class="cardHome"> | 291 | <view class="cardHome"> |
| 284 | <view class="card_home"> | 292 | <view class="card_home"> |
| 285 | <view class="card_title">营销推广活动</view> | 293 | <view class="card_title">营销推广活动</view> |
| 286 | - <view class="card_more" @click="goDetail('/pages/marketing/marketingList/marketingList')">查看更多 <u-icon name="arrow-right" size="28"></u-icon></view> | ||
| 287 | - | 294 | + <view class="card_more" @click="goDetail('/pages/marketing/marketingList/marketingList')">查看更多 |
| 295 | + <u-icon name="arrow-right" size="28"></u-icon></view> | ||
| 296 | + | ||
| 288 | </view> | 297 | </view> |
| 289 | <view style="width:100%;margin-top:10px;" class="other-business"> | 298 | <view style="width:100%;margin-top:10px;" class="other-business"> |
| 290 | - <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120" > | ||
| 291 | - | ||
| 292 | - <view v-for="(item, index) in yingxiaoData" :key="item.id" class="scroll-view-item_H" @click="toDetail(item.id, '/pages/marketing/marketingDetail/marketingDetail')"> | 299 | + <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120"> |
| 300 | + | ||
| 301 | + <view v-for="(item, index) in yingxiaoData" :key="item.id" class="scroll-view-item_H" | ||
| 302 | + @click="toDetail(item.id, '/pages/marketing/marketingDetail/marketingDetail')"> | ||
| 293 | <view class="business-card"> | 303 | <view class="business-card"> |
| 294 | - | ||
| 295 | - <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" border-radius="20"></u-image> | 304 | + |
| 305 | + <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" | ||
| 306 | + border-radius="20"></u-image> | ||
| 296 | <view class="business-card-title"> | 307 | <view class="business-card-title"> |
| 297 | {{item.title}} | 308 | {{item.title}} |
| 298 | </view> | 309 | </view> |
| 299 | <view class="huo-card-item">活动日期:<span>{{item.startTime}}至{{item.endTime}}</span></view> | 310 | <view class="huo-card-item">活动日期:<span>{{item.startTime}}至{{item.endTime}}</span></view> |
| 300 | - | ||
| 301 | - | 311 | + |
| 312 | + | ||
| 302 | </view> | 313 | </view> |
| 303 | </view> | 314 | </view> |
| 304 | </scroll-view> | 315 | </scroll-view> |
| 305 | </view> | 316 | </view> |
| 306 | </view> | 317 | </view> |
| 307 | - | 318 | + |
| 308 | <view class="cardHome"> | 319 | <view class="cardHome"> |
| 309 | <view class="card_home"> | 320 | <view class="card_home"> |
| 310 | <view class="card_title">商务合作</view> | 321 | <view class="card_title">商务合作</view> |
| 311 | - <view class="card_more" @click="goDetail('/pages/business/businessList/businessList')">查看更多 <u-icon name="arrow-right" size="28"></u-icon></view> | 322 | + <view class="card_more" @click="goDetail('/pages/business/businessList/businessList')">查看更多 <u-icon |
| 323 | + name="arrow-right" size="28"></u-icon></view> | ||
| 312 | </view> | 324 | </view> |
| 313 | <view style="width:100%;margin-top:10px;" class="other-business"> | 325 | <view style="width:100%;margin-top:10px;" class="other-business"> |
| 314 | - <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120" > | ||
| 315 | - <view v-for="(item, index) in shangwuData" :key="item.id" class="scroll-view-item_H" @click="toDetailTwo(item, '/pages/business/businessDetail/businessDetail')"> | 326 | + <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="120"> |
| 327 | + <view v-for="(item, index) in shangwuData" :key="item.id" class="scroll-view-item_H" | ||
| 328 | + @click="toDetailTwo(item, '/pages/business/businessDetail/businessDetail')"> | ||
| 316 | <view class="business-card"> | 329 | <view class="business-card"> |
| 317 | - <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" border-radius="20"></u-image> | 330 | + <u-image :showLoading="true" :src="imgurl+item.coverImage" width="100%" height="210rpx" |
| 331 | + border-radius="20"></u-image> | ||
| 318 | <view class="business-card-title"> | 332 | <view class="business-card-title"> |
| 319 | {{item.title}} | 333 | {{item.title}} |
| 320 | </view> | 334 | </view> |
| @@ -325,9 +339,43 @@ | @@ -325,9 +339,43 @@ | ||
| 325 | </view> | 339 | </view> |
| 326 | </view> | 340 | </view> |
| 327 | </view> | 341 | </view> |
| 328 | - | 342 | + |
| 329 | <!-- tabbar --> | 343 | <!-- tabbar --> |
| 330 | <tabbar :tabBarShow="0"></tabbar> | 344 | <tabbar :tabBarShow="0"></tabbar> |
| 345 | + <u-popup class="userForm" v-model="isshow" mode="center" border-radius="20" :closeable="true" width="90%"> | ||
| 346 | + <view style="padding: 30rpx;"> | ||
| 347 | + <view style="padding: 10rpx;"> | ||
| 348 | + <view class="title" style="text-align: center;">核销信息</view> | ||
| 349 | + <view style="display: flex;align-items: center;padding-top: 30rpx;"> | ||
| 350 | + <view style="font-size: 28rpx;">名称:</view> | ||
| 351 | + <view style="font-size: 28rpx;font-weight: 700;">{{hxinfo.resourceName}}</view> | ||
| 352 | + </view> | ||
| 353 | + <view style="display: flex;align-items: center;padding-top: 30rpx;"> | ||
| 354 | + <view style="font-size: 28rpx;">预约时间:</view> | ||
| 355 | + <view style="font-size: 28rpx;font-weight: 700;">{{hxinfo.reservationTime}}</view> | ||
| 356 | + </view> | ||
| 357 | + <view style="display: flex;align-items: center;padding-top: 30rpx;"> | ||
| 358 | + <view style="font-size: 28rpx;">人数:</view> | ||
| 359 | + <view style="font-size: 28rpx;font-weight: 700;">{{hxinfo.numberOfPeople}}</view> | ||
| 360 | + </view> | ||
| 361 | + <view style="display: flex;align-items: center;padding-top: 30rpx;"> | ||
| 362 | + <view style="font-size: 28rpx;">联系人:</view> | ||
| 363 | + <view style="font-size: 28rpx;font-weight: 700;">{{hxinfo.contactPerson}}</view> | ||
| 364 | + </view> | ||
| 365 | + <view style="display: flex;align-items: center;padding-top: 30rpx;"> | ||
| 366 | + <view style="font-size: 28rpx;">手机号:</view> | ||
| 367 | + <view style="font-size: 28rpx;font-weight: 700;display: flex;width: 70%;flex-wrap: wrap;"> | ||
| 368 | + <view style="overflow: hidden;max-width: 80%;">{{hxinfo.contactNumber}}</view> | ||
| 369 | + <u-icon @click="call(hxinfo.contactNumber)" style="margin-left: 20rpx;" name="phone" color="#19be6b" size="32"></u-icon> | ||
| 370 | + </view> | ||
| 371 | + </view> | ||
| 372 | + <view style="display: flex;justify-content: space-around;padding-top: 40rpx;"> | ||
| 373 | + <u-button size="medium" @click="isshow = false">取消</u-button> | ||
| 374 | + <u-button size="medium" type="success" @click="submit">确认</u-button> | ||
| 375 | + </view> | ||
| 376 | + </view> | ||
| 377 | + </view> | ||
| 378 | + </u-popup> | ||
| 331 | </view> | 379 | </view> |
| 332 | </template> | 380 | </template> |
| 333 | 381 | ||
| @@ -339,28 +387,34 @@ | @@ -339,28 +387,34 @@ | ||
| 339 | }, | 387 | }, |
| 340 | data() { | 388 | data() { |
| 341 | return { | 389 | return { |
| 390 | + isshow: false, | ||
| 342 | scrollTop: 0, | 391 | scrollTop: 0, |
| 343 | OrderType: 0, | 392 | OrderType: 0, |
| 344 | tableData: [], | 393 | tableData: [], |
| 345 | - procedureData:[],//公告 | 394 | + procedureData: [], //公告 |
| 346 | pageindex: { | 395 | pageindex: { |
| 347 | - pageNumber: 1, | ||
| 348 | - pageSize: 10, | 396 | + pageNumber: 1, |
| 397 | + pageSize: 10, | ||
| 349 | }, | 398 | }, |
| 350 | - swiperList: [],//轮播 | ||
| 351 | - zujin:[ | ||
| 352 | - {price:'4800'}, | ||
| 353 | - {price:'3400'}, | ||
| 354 | - {price:'3000'} | 399 | + swiperList: [], //轮播 |
| 400 | + zujin: [{ | ||
| 401 | + price: '4800' | ||
| 402 | + }, | ||
| 403 | + { | ||
| 404 | + price: '3400' | ||
| 405 | + }, | ||
| 406 | + { | ||
| 407 | + price: '3000' | ||
| 408 | + } | ||
| 355 | ], | 409 | ], |
| 356 | - biaoqian:[ | 410 | + biaoqian: [ |
| 357 | // {name:'4800'}, | 411 | // {name:'4800'}, |
| 358 | // {price:'3400'}, | 412 | // {price:'3400'}, |
| 359 | // {price:'3000'} | 413 | // {price:'3000'} |
| 360 | ], | 414 | ], |
| 361 | show: false, | 415 | show: false, |
| 362 | - xuanval:0, | ||
| 363 | - xuanList:['区域','租金','默认排序','筛选'], | 416 | + xuanval: 0, |
| 417 | + xuanList: ['区域', '租金', '默认排序', '筛选'], | ||
| 364 | list: [{ | 418 | list: [{ |
| 365 | name: '商铺' | 419 | name: '商铺' |
| 366 | }, | 420 | }, |
| @@ -371,11 +425,12 @@ | @@ -371,11 +425,12 @@ | ||
| 371 | name: '广告位' | 425 | name: '广告位' |
| 372 | } | 426 | } |
| 373 | ], | 427 | ], |
| 374 | - current:0, | ||
| 375 | - yingxiaoData:[], | ||
| 376 | - shangwuData:[], | ||
| 377 | - activity:[], | ||
| 378 | - imgurl:'' | 428 | + current: 0, |
| 429 | + yingxiaoData: [], | ||
| 430 | + shangwuData: [], | ||
| 431 | + activity: [], | ||
| 432 | + imgurl: '', | ||
| 433 | + hxinfo: {} | ||
| 379 | } | 434 | } |
| 380 | }, | 435 | }, |
| 381 | onLoad() { | 436 | onLoad() { |
| @@ -396,59 +451,97 @@ | @@ -396,59 +451,97 @@ | ||
| 396 | this.onCouponTab(0) | 451 | this.onCouponTab(0) |
| 397 | }, | 452 | }, |
| 398 | methods: { | 453 | methods: { |
| 399 | - getALL(){ | 454 | + submit() { |
| 455 | + let c1 = { | ||
| 456 | + id:this.hxinfo.id, | ||
| 457 | + checkId: uni.getStorageSync('user').phone | ||
| 458 | + } | ||
| 459 | + this.$http.sendRequest('/trafficPush/confirmVerification', 'POST', c1,1).then(res1 => { | ||
| 460 | + console.log(res1); | ||
| 461 | + }) | ||
| 462 | + }, | ||
| 463 | + call(e) { | ||
| 464 | + uni.makePhoneCall({ | ||
| 465 | + phoneNumber: e | ||
| 466 | + }); | ||
| 467 | + }, | ||
| 468 | + smcode() { | ||
| 469 | + let that = this | ||
| 470 | + uni.scanCode({ | ||
| 471 | + success: function(res) { | ||
| 472 | + console.log('条码类型:' + res.scanType); | ||
| 473 | + console.log('条码内容:' + res.result); | ||
| 474 | + // uni.request({ | ||
| 475 | + // url: res.result, | ||
| 476 | + // success: (res) => { | ||
| 477 | + // console.log(JSON.stringify(res.data)); | ||
| 478 | + // that.hxinfo = res.data | ||
| 479 | + // } | ||
| 480 | + // }); | ||
| 481 | + let url = res.result.split('?') | ||
| 482 | + let urlObj = url[1].split('=') | ||
| 483 | + console.log(urlObj[1]); | ||
| 484 | + that.$http.sendRequest('/trafficPush/verificationInformation', 'POST', {sceneId:urlObj[1]},1).then(res1 => { | ||
| 485 | + console.log(res1); | ||
| 486 | + that.hxinfo = res1.data.data | ||
| 487 | + that.isshow = true | ||
| 488 | + }) | ||
| 489 | + } | ||
| 490 | + }); | ||
| 491 | + }, | ||
| 492 | + getALL() { | ||
| 400 | let pagesize = { | 493 | let pagesize = { |
| 401 | pageNumber: 1, | 494 | pageNumber: 1, |
| 402 | pageSize: 2 | 495 | pageSize: 2 |
| 403 | } | 496 | } |
| 404 | - let actPages = { | 497 | + let actPages = { |
| 405 | pageNumber: 0, | 498 | pageNumber: 0, |
| 406 | pageSize: 10, | 499 | pageSize: 10, |
| 407 | - reviewStatus:'2', | ||
| 408 | - orderingRule:3 | 500 | + reviewStatus: '2', |
| 501 | + orderingRule: 3 | ||
| 409 | } | 502 | } |
| 410 | let shopAct = { | 503 | let shopAct = { |
| 411 | - auditStatus:'3', | 504 | + auditStatus: '3', |
| 412 | pageNumber: 0, | 505 | pageNumber: 0, |
| 413 | pageSize: 10, | 506 | pageSize: 10, |
| 414 | - orderingRule:3 | 507 | + orderingRule: 3 |
| 415 | } | 508 | } |
| 416 | let shanghu = { | 509 | let shanghu = { |
| 417 | - status:'1', | 510 | + status: '1', |
| 418 | pageNumber: 0, | 511 | pageNumber: 0, |
| 419 | pageSize: 10, | 512 | pageSize: 10, |
| 420 | } | 513 | } |
| 421 | - // 公告 | ||
| 422 | - this.$http.sendRequest('/cereAnnouncement/queryByPage', 'POST', pagesize,1).then(res => { | ||
| 423 | - this.procedureData = res.data.data.content.slice(-2) | ||
| 424 | - }) | ||
| 425 | - // 轮播图 | ||
| 426 | - this.$http.sendRequest('/cereCarouselImage/queryByPage', 'POST', this.pageindex,1).then(res => { | ||
| 427 | - this.swiperList =res.data.data.content | ||
| 428 | - }) | ||
| 429 | - // 营销推广活动 | ||
| 430 | - this.$http.sendRequest('/cereMarketingActivity/queryByPage', 'POST',actPages,1).then(res => { | ||
| 431 | - this.yingxiaoData =res.data.data.content | ||
| 432 | - }) | ||
| 433 | - // 商务合作 | ||
| 434 | - this.$http.sendRequest('/cereBusinessCooperation/queryByPage', 'POST', shanghu,1).then(res => { | ||
| 435 | - this.shangwuData =res.data.data.content | ||
| 436 | - }) | ||
| 437 | - // 商家活动 | ||
| 438 | - this.$http.sendRequest('/cereActivityApplication/queryByPage', 'POST',shopAct,1).then(res => { | ||
| 439 | - this.activity = res.data.data.content | ||
| 440 | - }) | 514 | + // 公告 |
| 515 | + this.$http.sendRequest('/cereAnnouncement/queryByPage', 'POST', pagesize, 1).then(res => { | ||
| 516 | + this.procedureData = res.data.data.content.slice(-2) | ||
| 517 | + }) | ||
| 518 | + // 轮播图 | ||
| 519 | + this.$http.sendRequest('/cereCarouselImage/queryByPage', 'POST', this.pageindex, 1).then(res => { | ||
| 520 | + this.swiperList = res.data.data.content | ||
| 521 | + }) | ||
| 522 | + // 营销推广活动 | ||
| 523 | + this.$http.sendRequest('/cereMarketingActivity/queryByPage', 'POST', actPages, 1).then(res => { | ||
| 524 | + this.yingxiaoData = res.data.data.content | ||
| 525 | + }) | ||
| 526 | + // 商务合作 | ||
| 527 | + this.$http.sendRequest('/cereBusinessCooperation/queryByPage', 'POST', shanghu, 1).then(res => { | ||
| 528 | + this.shangwuData = res.data.data.content | ||
| 529 | + }) | ||
| 530 | + // 商家活动 | ||
| 531 | + this.$http.sendRequest('/cereActivityApplication/queryByPage', 'POST', shopAct, 1).then(res => { | ||
| 532 | + this.activity = res.data.data.content | ||
| 533 | + }) | ||
| 441 | }, | 534 | }, |
| 442 | onCouponTab(type) { | 535 | onCouponTab(type) { |
| 443 | let pagesize = { | 536 | let pagesize = { |
| 444 | pageNumber: 0, | 537 | pageNumber: 0, |
| 445 | pageSize: 10, | 538 | pageSize: 10, |
| 446 | - publishStatus:'2' | 539 | + publishStatus: '2' |
| 447 | } | 540 | } |
| 448 | this.current = type | 541 | this.current = type |
| 449 | if (type == 0) { | 542 | if (type == 0) { |
| 450 | pagesize.pageNumber = 0 | 543 | pagesize.pageNumber = 0 |
| 451 | - this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', pagesize,1).then(res => { | 544 | + this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', pagesize, 1).then(res => { |
| 452 | //成功回调 | 545 | //成功回调 |
| 453 | this.tableData = res.data.data.content | 546 | this.tableData = res.data.data.content |
| 454 | }).catch(err => { | 547 | }).catch(err => { |
| @@ -456,18 +549,18 @@ | @@ -456,18 +549,18 @@ | ||
| 456 | //请求失败 | 549 | //请求失败 |
| 457 | }) | 550 | }) |
| 458 | } else if (type == 1) { | 551 | } else if (type == 1) { |
| 459 | - this.$http.sendRequest('/cereBasicInformationVenue/queryByPage', 'POST', pagesize,1).then(res => { | 552 | + this.$http.sendRequest('/cereBasicInformationVenue/queryByPage', 'POST', pagesize, 1).then(res => { |
| 460 | //成功回调 | 553 | //成功回调 |
| 461 | this.tableData = res.data.data.content | 554 | this.tableData = res.data.data.content |
| 462 | }).catch(err => { | 555 | }).catch(err => { |
| 463 | console.log(err) | 556 | console.log(err) |
| 464 | //请求失败 | 557 | //请求失败 |
| 465 | }) | 558 | }) |
| 466 | - | 559 | + |
| 467 | } else if (type == 2) { | 560 | } else if (type == 2) { |
| 468 | pagesize.pageNumber = 0 | 561 | pagesize.pageNumber = 0 |
| 469 | // pagesize.advertisingType = '线上广告位' | 562 | // pagesize.advertisingType = '线上广告位' |
| 470 | - this.$http.sendRequest('/cereAdvertisingInformation/likeGet', 'POST', pagesize,1).then(res => { | 563 | + this.$http.sendRequest('/cereAdvertisingInformation/likeGet', 'POST', pagesize, 1).then(res => { |
| 471 | //成功回调 | 564 | //成功回调 |
| 472 | this.tableData = res.data.data.content | 565 | this.tableData = res.data.data.content |
| 473 | }).catch(err => { | 566 | }).catch(err => { |
| @@ -491,13 +584,13 @@ | @@ -491,13 +584,13 @@ | ||
| 491 | uni.navigateTo({ | 584 | uni.navigateTo({ |
| 492 | url: `${path}?item=${item}` | 585 | url: `${path}?item=${item}` |
| 493 | }) | 586 | }) |
| 494 | - | 587 | + |
| 495 | }, | 588 | }, |
| 496 | - toDetailTwo(item, path){ | ||
| 497 | - let items = JSON.stringify(item) | ||
| 498 | - uni.navigateTo({ | ||
| 499 | - url: `${path}?item=${items}` | ||
| 500 | - }) | 589 | + toDetailTwo(item, path) { |
| 590 | + let items = JSON.stringify(item) | ||
| 591 | + uni.navigateTo({ | ||
| 592 | + url: `${path}?item=${items}` | ||
| 593 | + }) | ||
| 501 | }, | 594 | }, |
| 502 | goDetail(path) { | 595 | goDetail(path) { |
| 503 | uni.navigateTo({ | 596 | uni.navigateTo({ |
| @@ -509,96 +602,96 @@ | @@ -509,96 +602,96 @@ | ||
| 509 | url: '/pages/advertisement/advertisement' | 602 | url: '/pages/advertisement/advertisement' |
| 510 | }) | 603 | }) |
| 511 | }, | 604 | }, |
| 512 | - gaozhi(item){ | 605 | + gaozhi(item) { |
| 513 | // let items = JSON.stringify(item) | 606 | // let items = JSON.stringify(item) |
| 514 | // uni.navigateTo({ | 607 | // uni.navigateTo({ |
| 515 | // url: `/pages/procedureDetail/procedureDetail?item=${items}` | 608 | // url: `/pages/procedureDetail/procedureDetail?item=${items}` |
| 516 | // }) | 609 | // }) |
| 517 | - uni.setStorageSync('gghd',item); | 610 | + uni.setStorageSync('gghd', item); |
| 518 | let items = item | 611 | let items = item |
| 519 | uni.navigateTo({ | 612 | uni.navigateTo({ |
| 520 | url: `/pages/procedure/procedure?item=${items.id}` | 613 | url: `/pages/procedure/procedure?item=${items.id}` |
| 521 | }) | 614 | }) |
| 522 | - | 615 | + |
| 523 | }, | 616 | }, |
| 524 | - details(item) { | ||
| 525 | - let items = JSON.stringify(item) | ||
| 526 | - if(this.current == 0 || this.current == 1){ | ||
| 527 | - uni.navigateTo({ | ||
| 528 | - url: `/pages/details/details?item=${items}` | ||
| 529 | - }) | ||
| 530 | - }else{ | ||
| 531 | - uni.navigateTo({ | ||
| 532 | - url: `/pages/advertisementDetail/advertisementDetail?item=${items}` | ||
| 533 | - }) | ||
| 534 | - } | ||
| 535 | - | ||
| 536 | - }, | ||
| 537 | - setList(val){ | ||
| 538 | - | 617 | + details(item) { |
| 618 | + let items = JSON.stringify(item) | ||
| 619 | + if (this.current == 0 || this.current == 1) { | ||
| 620 | + uni.navigateTo({ | ||
| 621 | + url: `/pages/details/details?item=${items}` | ||
| 622 | + }) | ||
| 623 | + } else { | ||
| 624 | + uni.navigateTo({ | ||
| 625 | + url: `/pages/advertisementDetail/advertisementDetail?item=${items}` | ||
| 626 | + }) | ||
| 627 | + } | ||
| 628 | + | ||
| 629 | + }, | ||
| 630 | + setList(val) { | ||
| 631 | + | ||
| 539 | this.xuanval = val | 632 | this.xuanval = val |
| 540 | console.log(this.tableData) | 633 | console.log(this.tableData) |
| 541 | - if(val == 0){ | ||
| 542 | - const filteredTableData = this.tableData.filter(item => item.hasOwnProperty('belongingRegion')); | ||
| 543 | - | ||
| 544 | - // 提取 belongingRegion 字段并进行去重 | ||
| 545 | - const labeledBelongingRegions = filteredTableData.map(item => ({ | ||
| 546 | - label: item.belongingRegion | ||
| 547 | - })); | ||
| 548 | - | ||
| 549 | - const uniqueBelongingRegions = [...new Set(labeledBelongingRegions)]; | 634 | + if (val == 0) { |
| 635 | + const filteredTableData = this.tableData.filter(item => item.hasOwnProperty('belongingRegion')); | ||
| 636 | + | ||
| 637 | + // 提取 belongingRegion 字段并进行去重 | ||
| 638 | + const labeledBelongingRegions = filteredTableData.map(item => ({ | ||
| 639 | + label: item.belongingRegion | ||
| 640 | + })); | ||
| 641 | + | ||
| 642 | + const uniqueBelongingRegions = [...new Set(labeledBelongingRegions)]; | ||
| 550 | console.log(uniqueBelongingRegions) | 643 | console.log(uniqueBelongingRegions) |
| 551 | - this.list = uniqueBelongingRegions | ||
| 552 | - }else if(val == 1){ | 644 | + this.list = uniqueBelongingRegions |
| 645 | + } else if (val == 1) { | ||
| 553 | this.list = [] | 646 | this.list = [] |
| 554 | - }else if(val == 2){ | 647 | + } else if (val == 2) { |
| 555 | this.list = [] | 648 | this.list = [] |
| 556 | } | 649 | } |
| 557 | this.show = true | 650 | this.show = true |
| 558 | }, | 651 | }, |
| 559 | confirm(val) { | 652 | confirm(val) { |
| 560 | - let page = { | ||
| 561 | - pageNumber: 1, | ||
| 562 | - pageSize: 10, | ||
| 563 | - belongingRegion:val[0].label | ||
| 564 | - } | ||
| 565 | - this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', page, 1).then(res => { | ||
| 566 | - //成功回调 | ||
| 567 | - this.tableData = res.data.data.content | ||
| 568 | - }) | ||
| 569 | - | 653 | + let page = { |
| 654 | + pageNumber: 1, | ||
| 655 | + pageSize: 10, | ||
| 656 | + belongingRegion: val[0].label | ||
| 657 | + } | ||
| 658 | + this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', page, 1).then(res => { | ||
| 659 | + //成功回调 | ||
| 660 | + this.tableData = res.data.data.content | ||
| 661 | + }) | ||
| 662 | + | ||
| 570 | }, | 663 | }, |
| 571 | - tabsChange(itme){ | 664 | + tabsChange(itme) { |
| 572 | console.log(itme) | 665 | console.log(itme) |
| 573 | this.onCouponTab(itme) | 666 | this.onCouponTab(itme) |
| 574 | }, | 667 | }, |
| 575 | - gopath(e){ | 668 | + gopath(e) { |
| 576 | uni.navigateTo({ | 669 | uni.navigateTo({ |
| 577 | url: e | 670 | url: e |
| 578 | }) | 671 | }) |
| 579 | - | 672 | + |
| 580 | }, | 673 | }, |
| 581 | - wuye(){ | 674 | + wuye() { |
| 582 | uni.navigateTo({ | 675 | uni.navigateTo({ |
| 583 | url: `/pages/propertyPay/propertyPayList/propertyPayList` | 676 | url: `/pages/propertyPay/propertyPayList/propertyPayList` |
| 584 | }) | 677 | }) |
| 585 | - | 678 | + |
| 586 | }, | 679 | }, |
| 587 | - piaowu(){ | 680 | + piaowu() { |
| 588 | uni.navigateTo({ | 681 | uni.navigateTo({ |
| 589 | url: `/pages/ticketBooking/ticketBooking` | 682 | url: `/pages/ticketBooking/ticketBooking` |
| 590 | }) | 683 | }) |
| 591 | }, | 684 | }, |
| 592 | - goList(){ | ||
| 593 | - if(this.current == 0){ | 685 | + goList() { |
| 686 | + if (this.current == 0) { | ||
| 594 | uni.navigateTo({ | 687 | uni.navigateTo({ |
| 595 | url: `/pages/shops/shops` | 688 | url: `/pages/shops/shops` |
| 596 | }) | 689 | }) |
| 597 | - }else if(this.current == 1){ | 690 | + } else if (this.current == 1) { |
| 598 | uni.navigateTo({ | 691 | uni.navigateTo({ |
| 599 | url: `/pages/field/field` | 692 | url: `/pages/field/field` |
| 600 | }) | 693 | }) |
| 601 | - }else{ | 694 | + } else { |
| 602 | uni.navigateTo({ | 695 | uni.navigateTo({ |
| 603 | url: `/pages/advertisement/advertisement` | 696 | url: `/pages/advertisement/advertisement` |
| 604 | }) | 697 | }) |
| @@ -610,4 +703,18 @@ | @@ -610,4 +703,18 @@ | ||
| 610 | 703 | ||
| 611 | <style scoped lang="scss"> | 704 | <style scoped lang="scss"> |
| 612 | @import 'home.scss'; | 705 | @import 'home.scss'; |
| 706 | + | ||
| 707 | + .userForm { | ||
| 708 | + margin: 0 40rpx; | ||
| 709 | + | ||
| 710 | + .form-box { | ||
| 711 | + padding: 18rpx 30rpx; | ||
| 712 | + | ||
| 713 | + } | ||
| 714 | + | ||
| 715 | + .title { | ||
| 716 | + font-size: 32rpx; | ||
| 717 | + font-weight: 700; | ||
| 718 | + } | ||
| 719 | + } | ||
| 613 | </style> | 720 | </style> |
| 614 | \ No newline at end of file | 721 | \ No newline at end of file |
lvdao-miniapp/pages/questionnaire/questionnaire.scss
| @@ -47,7 +47,7 @@ | @@ -47,7 +47,7 @@ | ||
| 47 | display: flex; | 47 | display: flex; |
| 48 | justify-content: center; | 48 | justify-content: center; |
| 49 | align-items: center; | 49 | align-items: center; |
| 50 | - width: 25%; | 50 | + // width: 25%; |
| 51 | height: 100%; | 51 | height: 100%; |
| 52 | text { | 52 | text { |
| 53 | font-size: 26rpx; | 53 | font-size: 26rpx; |
lvdao-miniapp/pages/questionnaire/questionnaire.vue
| 1 | <template> | 1 | <template> |
| 2 | <view class="page"> | 2 | <view class="page"> |
| 3 | -<!-- <view class="head-search"> | 3 | + <!-- <view class="head-search"> |
| 4 | <u-search bg-color="#fff" placeholder="请输入关键词" v-model="query.title" :show-action="false" @search="search"></u-search> | 4 | <u-search bg-color="#fff" placeholder="请输入关键词" v-model="query.title" :show-action="false" @search="search"></u-search> |
| 5 | <u-button type="success" @click="search">搜索</u-button> | 5 | <u-button type="success" @click="search">搜索</u-button> |
| 6 | </view> --> | 6 | </view> --> |
| 7 | - <view style="margin: 20rpx 0;background-color: #FFFFFF;border-radius: 18rpx;border: 2rpx solid #E8E8E8; margin: 22rpx 24rpx;overflow: hidden;" > | ||
| 8 | - <u-search :action-style="{'background':'#19be6b','color':'#fff','height':'32px','line-height':'32px','border-radius':'18rpx'}" bg-color="#fff" placeholder="请输入关键词" v-model="query.title" action-text="搜索" @clear="search" @search="search" @custom="search"></u-search> | 7 | + <view |
| 8 | + style="margin: 20rpx 0;background-color: #FFFFFF;border-radius: 18rpx;border: 2rpx solid #E8E8E8; margin: 22rpx 24rpx;overflow: hidden;"> | ||
| 9 | + <u-search | ||
| 10 | + :action-style="{'background':'#19be6b','color':'#fff','height':'32px','line-height':'32px','border-radius':'18rpx'}" | ||
| 11 | + bg-color="#fff" placeholder="请输入关键词" v-model="query.title" action-text="搜索" @clear="search" | ||
| 12 | + @search="search" @custom="search"></u-search> | ||
| 9 | </view> | 13 | </view> |
| 10 | <view class="screen-list"> | 14 | <view class="screen-list"> |
| 11 | <view class="list" @click="show = true"> | 15 | <view class="list" @click="show = true"> |
| 12 | - <text>问卷类型</text> | ||
| 13 | - <image :src="$imgUrl('/down.png')"></image> | ||
| 14 | - <u-select v-model="show" :list="areList" @confirm="(v) => {queryChange('questionnaireType', v)}"></u-select> | 16 | + <text>{{query.questionnaireType?query.questionnaireType:'问卷类型'}}</text> |
| 17 | + <image :src="$imgUrl('/down.png')"></image> | ||
| 18 | + <u-select v-model="show" :list="areList" | ||
| 19 | + @confirm="(v) => {queryChange('questionnaireType', v)}"></u-select> | ||
| 15 | </view> | 20 | </view> |
| 16 | <!-- <view class="list" @click="setList(1)"> | 21 | <!-- <view class="list" @click="setList(1)"> |
| 17 | <text>最新发布</text> | 22 | <text>最新发布</text> |
| 18 | <image :src="$imgUrl('/down.png')"></image> | 23 | <image :src="$imgUrl('/down.png')"></image> |
| 19 | </view> --> | 24 | </view> --> |
| 20 | </view> | 25 | </view> |
| 21 | - | 26 | + |
| 22 | <view class="list-scorll"> | 27 | <view class="list-scorll"> |
| 23 | <!-- @click="go(`/pages/questionnaire/questDetail/questDetail?detail=${JSON.stringify(item)}`)" --> | 28 | <!-- @click="go(`/pages/questionnaire/questDetail/questDetail?detail=${JSON.stringify(item)}`)" --> |
| 24 | <view class='listbox' v-for="(item,index) in tableData" @click="goview(item)"> | 29 | <view class='listbox' v-for="(item,index) in tableData" @click="goview(item)"> |
| 25 | - <view class="img"> | ||
| 26 | - <image :src="$img+item.coverImage"></image> | ||
| 27 | - </view> | ||
| 28 | - <view class="info"> | ||
| 29 | - <view class="title" >{{item.title}}</view> | ||
| 30 | - <view class="info-item">填写时长:<span>{{item.estimatedTime}}分钟</span></view> | ||
| 31 | - <view class="info-item">填写时段:<span>{{item.startDate}}至{{item.endDate}}</span></view> | ||
| 32 | - <view class="info-item">问卷类型:<span>{{item.questionnaireType}}</span></view> | ||
| 33 | - </view> | 30 | + <view class="img"> |
| 31 | + <image :src="imgurl+item.coverImage"></image> | ||
| 32 | + </view> | ||
| 33 | + <view class="info"> | ||
| 34 | + <view class="title">{{item.title}}</view> | ||
| 35 | + <view class="info-item">填写时长:<span>{{item.estimatedTime}}分钟</span></view> | ||
| 36 | + <view class="info-item">填写时段:<span>{{item.startDate}}至{{item.endDate}}</span></view> | ||
| 37 | + <view class="info-item">问卷类型:<span>{{item.questionnaireType}}</span></view> | ||
| 38 | + </view> | ||
| 34 | </view> | 39 | </view> |
| 35 | </view> | 40 | </view> |
| 36 | - <!-- <view style="height: 120rpx;"></view> | 41 | + <view v-if="tableData.length == 0" style="text-align: center;margin-top: 50rpx;color: #555555;font-size: 24rpx;"> 暂无数据</view> |
| 42 | + <!-- <view style="height: 120rpx;"></view> | ||
| 37 | <view class="page-footer"> | 43 | <view class="page-footer"> |
| 38 | <u-button type="success" @click="createWen">创建问卷</u-button> | 44 | <u-button type="success" @click="createWen">创建问卷</u-button> |
| 39 | </view> --> | 45 | </view> --> |
| @@ -45,40 +51,53 @@ | @@ -45,40 +51,53 @@ | ||
| 45 | data() { | 51 | data() { |
| 46 | return { | 52 | return { |
| 47 | show: false, | 53 | show: false, |
| 48 | - areList: [ | ||
| 49 | - {value: '物业问卷', label: '物业问卷'}, | ||
| 50 | - {value: '招商问卷', label: '招商问卷'}, | ||
| 51 | - {value: '满意度问卷', label: '满意度问卷'}, | ||
| 52 | - {value: '社会调查问卷', label: '社会调查问卷'}, | 54 | + areList: [{ |
| 55 | + value: '物业问卷', | ||
| 56 | + label: '物业问卷' | ||
| 57 | + }, | ||
| 58 | + { | ||
| 59 | + value: '招商问卷', | ||
| 60 | + label: '招商问卷' | ||
| 61 | + }, | ||
| 62 | + { | ||
| 63 | + value: '满意度问卷', | ||
| 64 | + label: '满意度问卷' | ||
| 65 | + }, | ||
| 66 | + { | ||
| 67 | + value: '社会调查问卷', | ||
| 68 | + label: '社会调查问卷' | ||
| 69 | + }, | ||
| 53 | ], // 区域列表 | 70 | ], // 区域列表 |
| 54 | query: { | 71 | query: { |
| 55 | questionnaireType: '', | 72 | questionnaireType: '', |
| 56 | title: '', | 73 | title: '', |
| 57 | - pageNumber: 0, | ||
| 58 | - pageSize: 10, | ||
| 59 | - publishPort:'商家端' | 74 | + pageNumber: 0, |
| 75 | + pageSize: 10, | ||
| 76 | + publishPort: '商家端' | ||
| 60 | }, | 77 | }, |
| 61 | - tableData:[], | ||
| 62 | - pagesize:{ | ||
| 63 | - pageNumber: 0, | ||
| 64 | - pageSize: 10, | ||
| 65 | - publishPort:'商家端' | ||
| 66 | - } | 78 | + tableData: [], |
| 79 | + pagesize: { | ||
| 80 | + pageNumber: 0, | ||
| 81 | + pageSize: 10, | ||
| 82 | + publishPort: '商家端' | ||
| 83 | + }, | ||
| 84 | + imgurl:'' | ||
| 67 | }; | 85 | }; |
| 68 | }, | 86 | }, |
| 69 | mounted() { | 87 | mounted() { |
| 88 | + this.imgurl = this.$img | ||
| 70 | this.getAll() | 89 | this.getAll() |
| 71 | - | 90 | + |
| 72 | }, | 91 | }, |
| 73 | - methods:{ | ||
| 74 | - getAll(){ | ||
| 75 | - | ||
| 76 | - this.$http.sendRequest('/cereQuestionnaireTable/queryByPage', 'POST', this.pagesize,1).then(res => { | 92 | + methods: { |
| 93 | + getAll() { | ||
| 94 | + | ||
| 95 | + this.$http.sendRequest('/cereQuestionnaireTable/queryByPage', 'POST', this.pagesize, 1).then(res => { | ||
| 77 | //成功回调 | 96 | //成功回调 |
| 78 | this.tableData = res.data.data.content | 97 | this.tableData = res.data.data.content |
| 79 | }) | 98 | }) |
| 80 | }, | 99 | }, |
| 81 | - go(urls){ | 100 | + go(urls) { |
| 82 | uni.navigateTo({ | 101 | uni.navigateTo({ |
| 83 | url: urls | 102 | url: urls |
| 84 | }) | 103 | }) |
| @@ -88,25 +107,19 @@ | @@ -88,25 +107,19 @@ | ||
| 88 | this.search(); | 107 | this.search(); |
| 89 | }, | 108 | }, |
| 90 | search() { | 109 | search() { |
| 91 | - this.$http.sendRequest('/cereQuestionnaireTable/queryByPage', 'POST', this.query,1).then(res => { | 110 | + this.$http.sendRequest('/cereQuestionnaireTable/queryByPage', 'POST', this.query, 1).then(res => { |
| 92 | //成功回调 | 111 | //成功回调 |
| 93 | this.tableData = res.data.data.content | 112 | this.tableData = res.data.data.content |
| 94 | - this.query = { | ||
| 95 | - questionnaireType: '', | ||
| 96 | - title: '', | ||
| 97 | - pageNumber: 1, | ||
| 98 | - pageSize: 2 | ||
| 99 | - } | ||
| 100 | }) | 113 | }) |
| 101 | }, | 114 | }, |
| 102 | - createWen(){ | 115 | + createWen() { |
| 103 | uni.navigateTo({ | 116 | uni.navigateTo({ |
| 104 | url: '/pages/createQuestionnaire/createQuestionnaire' | 117 | url: '/pages/createQuestionnaire/createQuestionnaire' |
| 105 | }) | 118 | }) |
| 106 | }, | 119 | }, |
| 107 | - goview(item){ | 120 | + goview(item) { |
| 108 | const host = `${window.location.protocol}//${window.location.host}` | 121 | const host = `${window.location.protocol}//${window.location.host}` |
| 109 | - let wenjuanUrl = `${host}/cdwlMall/meh5/pages_category_page1/question/question?ids=${item.id}` | 122 | + let wenjuanUrl = `${host}/cdwlMall/meh5/pages_category_page1/question/question?ids=${item.id}` |
| 110 | // const host = 'https://jy.scjysm.asia:18086/cdwlMall/meh5/' | 123 | // const host = 'https://jy.scjysm.asia:18086/cdwlMall/meh5/' |
| 111 | // const host = 'http://localhost:8080/cdwlMall/meh5/' | 124 | // const host = 'http://localhost:8080/cdwlMall/meh5/' |
| 112 | // let wenjuanUrl = `${host}pages_category_page1/question/question?ids=${item.id}` | 125 | // let wenjuanUrl = `${host}pages_category_page1/question/question?ids=${item.id}` |
| @@ -119,5 +132,5 @@ | @@ -119,5 +132,5 @@ | ||
| 119 | </script> | 132 | </script> |
| 120 | 133 | ||
| 121 | <style scoped lang="scss"> | 134 | <style scoped lang="scss"> |
| 122 | -@import 'questionnaire.scss'; | ||
| 123 | -</style> | 135 | + @import 'questionnaire.scss'; |
| 136 | +</style> | ||
| 124 | \ No newline at end of file | 137 | \ No newline at end of file |
lvdao-miniapp/utils/request.js
| @@ -16,8 +16,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -16,8 +16,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | ||
| 16 | if(baseUrl == 1){ | 16 | if(baseUrl == 1){ |
| 17 | // bases = 'http://172.16.61.125:9003/' + url; | 17 | // bases = 'http://172.16.61.125:9003/' + url; |
| 18 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; | 18 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; |
| 19 | - bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; | ||
| 20 | - // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; | 19 | + // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; |
| 20 | + bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; | ||
| 21 | 21 | ||
| 22 | // bases = 'http://192.168.2.230:9003' + url; | 22 | // bases = 'http://192.168.2.230:9003' + url; |
| 23 | // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; | 23 | // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; |
| @@ -25,8 +25,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -25,8 +25,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | }else if(baseUrl == 3){ | 27 | }else if(baseUrl == 3){ |
| 28 | - // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; | ||
| 29 | - bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url; | 28 | + bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; |
| 29 | + // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url; | ||
| 30 | // bases = 'http://192.168.2.107:9007' + url; | 30 | // bases = 'http://192.168.2.107:9007' + url; |
| 31 | // bases = 'http://192.168.2.230:9007' + url; | 31 | // bases = 'http://192.168.2.230:9007' + url; |
| 32 | 32 | ||
| @@ -34,8 +34,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -34,8 +34,8 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | ||
| 34 | // bases = 'http://172.16.61.125:9004/' + url; | 34 | // bases = 'http://172.16.61.125:9004/' + url; |
| 35 | // bases = 'http://172.16.61.48/business-server' + url; | 35 | // bases = 'http://172.16.61.48/business-server' + url; |
| 36 | // bases = 'http://172.16.61.123/cdwlMall/business-server' + url; | 36 | // bases = 'http://172.16.61.123/cdwlMall/business-server' + url; |
| 37 | - // bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url; | ||
| 38 | - bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url; | 37 | + bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url; |
| 38 | + // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url; | ||
| 39 | // bases = 'http://192.168.2.230:9004' + url; | 39 | // bases = 'http://192.168.2.230:9004' + url; |
| 40 | // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url; | 40 | // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url; |
| 41 | 41 | ||
| @@ -110,17 +110,21 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -110,17 +110,21 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | ||
| 110 | }) | 110 | }) |
| 111 | break; | 111 | break; |
| 112 | case '500': | 112 | case '500': |
| 113 | - uni.showModal({ | ||
| 114 | - title: '登录提示', | ||
| 115 | - content: '系统错误,请重新登录!', | ||
| 116 | - success:ress => { | ||
| 117 | - if (ress.confirm) { | ||
| 118 | - uni.redirectTo({ | ||
| 119 | - url:'/pages/login/login' | ||
| 120 | - }) | ||
| 121 | - } | ||
| 122 | - } | 113 | + uni.showToast({ |
| 114 | + icon:'none', | ||
| 115 | + title:res.data.msg?res.data.msg:'系统错误,请重新登录!' | ||
| 123 | }) | 116 | }) |
| 117 | + // uni.showModal({ | ||
| 118 | + // title: '登录提示', | ||
| 119 | + // content: res.data.msg?res.data.msg:'系统错误,请重新登录!', | ||
| 120 | + // success:ress => { | ||
| 121 | + // if (ress.confirm) { | ||
| 122 | + // uni.redirectTo({ | ||
| 123 | + // url:'/pages/login/login' | ||
| 124 | + // }) | ||
| 125 | + // } | ||
| 126 | + // } | ||
| 127 | + // }) | ||
| 124 | break; | 128 | break; |
| 125 | 129 | ||
| 126 | default: | 130 | default: |