代码整改

main
123456 1 month ago
parent e30f644eb4
commit e9a6d00d6e
  1. 2
      api/index.js
  2. 28
      pages/dongtai/detail.vue
  3. 6
      pages/dongtai/index.vue
  4. 40
      pages/index/index.vue
  5. 22
      pages/peiwan/detail.vue
  6. 19
      pages/peiwan/index.vue
  7. 10
      pages/user/index.vue
  8. 14
      pages/users/center/index.vue
  9. 4
      pages/users/chat/index.vue
  10. 10
      pages/users/recharge/index.vue
  11. 12
      pages/xiaoxi/fangke.vue
  12. 12
      pages/xiaoxi/index.vue
  13. 6
      unpackage/dist/build/app-plus/app-service.js
  14. 6
      unpackage/dist/build/app-plus/app-view.js
  15. 2
      unpackage/dist/build/app-plus/pages/pipei/shipin/detail.js
  16. 2
      unpackage/dist/build/app-plus/pages/users/renzheng/camera.js
  17. 2644
      unpackage/dist/dev/app-plus/app-service.js
  18. 3506
      unpackage/dist/dev/app-plus/app-view.js

@ -449,7 +449,7 @@ const api = {
})
},
//查询用户余额-(用于判断余额是否足够)
userBalanceasd(data){
userBalance(data){
return request({
url: 'api/user/userBalance',
method: 'post',

@ -34,7 +34,10 @@
<image src="@/static/fenxiang.png"></image>分享
</view>
</view>
<view class="fr" @click="openPage(4)" v-if="info.userid != userInfo.id">搭讪</view>
<view class="fr" @click="openPage(19)" v-if="pageType == 2">举报</view>
<template v-else>
<view class="fr" @click="openPage(4)" v-if="info.userid != userInfo.id">搭讪</view>
</template>
</view>
</view>
</view>
@ -131,7 +134,8 @@
userInfo: {},
replyId: -1,
author: "",
obj: {}
obj: {},
pageType: -1,
};
},
onLoad(o) {
@ -151,6 +155,13 @@
that.isCoins = res
})
},
onShow() {
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
openPage(index,obj){
const that = this;
@ -201,6 +212,14 @@
}else if(index == 9){
this.obj = obj
this.toDianzanasd(-1);
}else if(index == 19){
if(this.userInfo.realnameFlag == 0 || this.userInfo.faceFlag == 0 || this.userInfo.phoneFlag == 0){
this.isPopup = true
return ;
}
uni.navigateTo({
url: "/pages/users/feedback/index?type=1&id="+this.id
})
}
},
previewImage(i){
@ -412,11 +431,6 @@
line-height: 42rpx;
margin-top: 20rpx;
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
}
.a{
display: flex;

@ -40,7 +40,8 @@
<image src="@/static/fenxiang.png"></image>分享
</view>
</view>
<view class="fr" @click.stop="openPageasd(5,a.userid)">搭讪</view>
<view class="fr" v-if="pageType == 1" @click.stop="openPageasd(5,a.userid)">搭讪</view>
<view class="fr" v-if="pageType == 2" @click.stop="openPageasd(3,a.id)">举报</view>
</view>
</view>
<view style="margin-top: 25rpx;">
@ -65,6 +66,7 @@
data() {
return {
info: {},
pageType: -1,
isDashan: false,
isShare: false,
isPopup: false,
@ -189,7 +191,7 @@
return ;
}
uni.navigateTo({
url: "/pages/dongtai/add"
url: "/pages/users/feedback/index?type=1&id="+id
})
}else if(index == 4){
if(this.userInfo.realnameFlag == 0 || this.userInfo.faceFlag == 0 || this.userInfo.phoneFlag == 0){

@ -34,15 +34,15 @@
</view>
</view>
<view v-if="pageType == 2" class="home-menu">
<view class="item" @click="openPage(1)">
<view class="item" @click="openPage(11)">
<image src="@/static/1.png"></image>
<view class="txt">周边旅游</view>
</view>
<view class="item" @click="openPage(2)">
<view class="item" @click="openPage(11)">
<image src="@/static/2.png"></image>
<view class="txt">语音分享</view>
</view>
<view class="item" @click="openPage(3)">
<view class="item" @click="openPage(11)">
<image src="@/static/3.png"></image>
<view class="txt">视频分享</view>
</view>
@ -96,8 +96,8 @@
<view class="home-dongtai">
<u-waterfall ref="uWaterfall1" v-model="dongtaiList">
<template v-slot:left="{leftList}">
<view class="item" v-for="(item, index) in leftList" :key="index" @click="toDetails(item.id)">
<image class="img" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<view class="item item1" v-for="(item, index) in leftList" :key="index" @click="toDetails(item.id)">
<image class="img" mode="widthFix" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<view class="title">{{item.content}}</view>
<view class="user">
<image class="avatar" :src="item.faceImage"></image>
@ -106,9 +106,9 @@
</view>
</template>
<template v-slot:right="{rightList}">
<view class="item" v-for="(item, index) in rightList" :key="index" @click="toDetails(item.id)">
<view class="item item2" v-for="(item, index) in rightList" :key="index" @click="toDetails(item.id)">
<!-- 这里编写您的内容item为您传递给v-model的数组元素 -->
<image class="img" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<image class="img" mode="widthFix" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<view class="title">{{item.content}}</view>
<view class="user">
<image class="avatar" :src="item.faceImage"></image>
@ -385,7 +385,7 @@
},
//
async userBalanceasd() {
const { code, data } = await this.$api.userBalanceasd({
const { code, data } = await this.$api.userBalance({
userId: uni.getStorageSync("userInfo").id
})
if(code == 200){
@ -679,6 +679,14 @@
uni.navigateTo({
url: "/pages/peiwan/detail?id="+id
})
}else if(index == 11){
if(this.userInfo.realnameFlag == 0 || this.userInfo.faceFlag == 0 || this.userInfo.phoneFlag == 0){
this.isPopup = true
return ;
}
uni.navigateTo({
url: "/pages/dongtai/add"
})
}else if(index == 7){
if(this.userInfo.realnameFlag == 0 || this.userInfo.faceFlag == 0 || this.userInfo.phoneFlag == 0){
this.isPopup = true
@ -901,6 +909,13 @@
width: 340rpx;
margin: 0 auto;
margin-top: 20rpx;
background-color: #FFFFFF;
&1{
margin-left: 25rpx;
}
&2{
margin-right: 25rpx;
}
.img{
width: 100%;
border-radius: 20rpx;
@ -909,9 +924,18 @@
font-weight: 500;
font-size: 28rpx;
color: #333333;
max-height: 90rpx;
line-height: 45rpx;
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
padding: 10rpx;
}
.user{
padding: 10rpx;
display: flex;
align-items: center;
font-weight: 500;

@ -81,10 +81,10 @@
<image src="@/static/dingwei.png"></image>距离{{distance}}km
</view>
</view>
<view class="list" v-if="sellerServiceList && sellerServiceList.length > 0">
<view class="item" :class="clickIndex == idx?'item-active':(a.type==1?'item-on':'')" v-for="(a,idx) in sellerServiceList" :key="idx">
<view class="name">{{a.name}}</view>
<view class="price">{{a.price}}</view>
<view class="list" v-if="sellerServiceList && sellerServiceList.length > 0 && sellerServiceList[0]">
<view class="item" :class="clickIndex == idx?'item-active':(a&&a.type?(a.type==1?'item-on':''):'')" v-for="(a,idx) in sellerServiceList" :key="idx">
<view class="name">{{a&&a.name?a.name:''}}</view>
<view class="price">{{a&&a.price?a.price:""}}</view>
</view>
<view class="empty" v-if="sellerServiceList && sellerServiceList.length == 0">
<image src="@/static/empty.png"></image>
@ -126,7 +126,7 @@
<image src="@/static/fenxiang.png"></image>分享
</view>
</view>
<view class="fr">搭讪</view>
<view class="fr" v-if="pageType == 1">搭讪</view>
</view>
</view>
</view>
@ -134,7 +134,7 @@
</view>
<view class="user-fd" v-if="current == 0">
<view class="item" @click="openPage(1)">{{userInfo.isCare== 1?'已关注':'+关注'}}</view>
<view class="item item-on" @click="openPage(3)">
<view class="item item-on" @click="openPage(3)" v-if="pageType == 1">
<image src="@/static/dashan-xin.png"></image>搭讪
</view>
<view class="item item-on" @click="openPage(2)">
@ -143,7 +143,7 @@
</view>
<view class="user-fd" v-if="current == 1 && (sellerServiceList && sellerServiceList.length >0)">
<view class="item" @click="openPage(1)">{{userInfo.isCare == 1?'已关注':'+关注'}}</view>
<view class="items" @click="openPage(4,userInfo.id)">
<view class="items" @click="openPage(4,userInfo.id)" v-if="pageType == 1">
<image src="@/static/peiwan-rili.png"></image>立即约玩
</view>
</view>
@ -186,7 +186,8 @@
articleList: [],
distance: 0,
sellerServiceList: [],
id: ""
id: "",
pageType: -1
};
},
onPageScroll(e) {
@ -224,6 +225,11 @@
},
onShow() {
this.getMeUserInfo();
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
//

@ -44,7 +44,7 @@
<template v-if="pageType == 2">
<view class="home-lists">
<view class="item" v-for="(item,i) in dongtaiList" :key="i" @click="toDetails(item.id)">
<image class="img" mode="aspectFill" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<image class="img" mode="widthFix" v-if="item.imgurl[0]" :src="item.imgurl[0]"></image>
<view class="title">{{item.content}}</view>
<view class="user">
<view class="fl">
@ -482,14 +482,20 @@
overflow: hidden;
.img{
width: 700rpx;
height: 380rpx;
}
.title{
padding: 10rpx 25rpx;
font-weight: 500;
font-size: 28rpx;
color: #333333;
max-height: 90rpx;
line-height: 45rpx;
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
padding: 10rpx;
}
.user{
padding: 10rpx 25rpx;
@ -499,6 +505,13 @@
font-weight: 500;
font-size: 24rpx;
color: #999999;
padding: 10rpx;
flex: 1;
.fl{
flex: 1;
display: flex;
align-items: center;
}
.avatar{
width: 30rpx;
height: 30rpx;

@ -46,7 +46,7 @@
</view>
</view>
</view>
<view class="d">
<view class="d" v-if="pageType == 1">
<view class="item" @click="openPageasd(9)">
<image src="@/static/qianbao.png"></image>我的钱包
</view>
@ -55,7 +55,7 @@
</view>
</view>
</view>
<view class="user-menu">
<view class="user-menu" v-if="pageType == 1">
<view class="title">
我的订单
<view class="more" @click="openPageasd(11,0)">
@ -91,7 +91,7 @@
</view>
</view>
</view>
<view class="user-menu1" v-if="userInfo.role == 2">
<view class="user-menu1" v-if="userInfo.role == 2 && pageType == 1">
<view class="title">
陪玩师订单
<view class="more" @click="openPageasd(12,0)">
@ -133,7 +133,7 @@
<view class="item" @click="openPageasd(14)">
<image src="@/static/icon-user-02.png"></image>认证中心<view v-if="(userInfo.realnameFlag == 1&& userInfo.faceFlag == 1&& userInfo.phoneFlag == 1)" class="status">已认证</view>
</view>
<view class="item" @click="openPageasd(15)">
<view class="item" @click="openPageasd(15)" v-if="pageType == 1">
<image src="@/static/icon-user-03.png"></image>陪玩设置
</view>
<view class="item" @click="openPageasd(16)">
@ -149,7 +149,7 @@
<view class="item" @click="openPageasd(17)">
<image src="@/static/icon-user-05.png"></image>邀请好友
</view>
<view class="item" @click="openPageasd(18)">
<view class="item" @click="openPageasd(18)" v-if="pageType == 1">
<image src="@/static/icon-user-06.png"></image>我的团队
</view>
<view class="item" @click="openPageasd(19)">

@ -20,6 +20,7 @@
</view>
<view class="b" v-if="userInfo.memberflag==0">开通会员尊享酷炫好玩会员特权</view>
</view>
<template v-if="pageType == 1">
<view class="title" v-if="userInfo.memberflag>=1">您的特权</view>
<view class="content" v-if="userInfo.memberflag>=1">
<view class="item">
@ -59,6 +60,7 @@
</view>
</view>
</view>
</template>
<view class="title">{{userInfo.memberflag==0?'开通会员':'续费会员'}}</view>
<scroll-view scroll-x class="kaitong">
<view class="item" v-for="(a,i) in list" :class="tabIndex == i?'item-on':''" @click="tabItem(i)">
@ -69,6 +71,7 @@
<!-- <view class="e">{{a.name}}</view> -->
</view>
</scroll-view>
<template v-if="pageType == 1">
<view class="title" v-if="list && list.length > 0">会员特权</view>
<view class="content" v-if="list && list.length > 0">
<view class="item">
@ -108,6 +111,7 @@
</view>
</view>
</view>
</template>
<view class="title">支付方式</view>
<view class="pay" v-if="payInfo && payInfo.length >= 1">
<template v-for="(a,i) in payInfo">
@ -168,7 +172,8 @@
payInfo: [],
payType: "",
huiyuanInfo: {},
productList: []
productList: [],
pageType: -1
};
},
onReady() {
@ -178,6 +183,13 @@
this.getList();
this.getConfigData();
},
onShow() {
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
openPage(index) {
if(index == 1){

@ -29,7 +29,9 @@
<view class="one">
<view class="title">{{userInfo.realname?userInfo.nickname:userInfo.nickname}}</view>
<view class="vip" v-if="userInfo.memberflag>=1">VIP{{userInfo.memberflag}}</view>
<view class="peiwam" v-if="userInfo.role == 2">陪玩师</view>
<template v-if="pageType == 1">
<view class="peiwam" v-if="userInfo.role == 2">陪玩师</view>
</template>
<image class="sex" v-if="userInfo.sex ==2" src="@/static/peiwan-nv.png"></image>
<image class="sex" v-else src="@/static/peiwan-nan.png"></image>
</view>

@ -77,7 +77,8 @@
payInfo: [],
obj: {},
paysIndex: 0,
productList: []
productList: [],
pageType: -1
}
},
onReady() {
@ -89,6 +90,13 @@
uni.$on("closeSharePopup",res=>{
that.isPopup = false;
})
},
onShow() {
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
toOpen(o,i) {

@ -12,7 +12,7 @@
<view class="name" v-else><image src="@/static/name.png"></image></view>
<view class="desc">{{a.declaration}}</view>
</view>
<view class="btn" @click.stop="toDash(a.userid)">搭讪</view>
<view class="btn" v-if="pageType == 1" @click.stop="toDash(a.userid)">搭讪</view>
</view>
</view>
<view class="empty" v-if="isShow">
@ -37,7 +37,8 @@
isShow: false,
list: [],
userInfo: {},
info: {}
info: {},
pageType: -1
};
},
onLoad() {
@ -53,6 +54,13 @@
})
that.getList();
that.userInfo = uni.getStorageSync("userInfo")
},
onShow() {
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
async getList() {

@ -22,7 +22,7 @@
</view>
</view>
<view class="xiaoxi-list">
<view class="item" v-if="current == 0" @click="openPage('/pages/xiaoxi/dashan')">
<view class="item" v-if="current == 0 && pageType == 1" @click="openPage('/pages/xiaoxi/dashan')">
<view class="pic"><image src="@/static/dashan.png"><view class="num" v-if="count">{{count<=99?count:"+99"}}</view></image></view>
<view class="info">
<view class="name">搭讪消息</view>
@ -81,14 +81,20 @@
backgroundColor: '#dd524d'
}
}
]
],
pageType: -1
}
},
onShow() {
this.getList();
this.dashaCount();
this.getXiaoxiList();
this.watchSocket();
this.watchSocket();
if(uni.getSystemInfoSync().platform == 'ios'){
this.pageType = (uni.getStorageSync("pageType")?uni.getStorageSync("pageType"):1)
}else{
this.pageType = 1
}
},
methods: {
watchSocket() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save