在线人数

main^2
syt 2 months ago
parent 22329c539d
commit 6d51fc93c5
  1. 28
      pages/face/face.vue
  2. 20
      pages/index/index.vue
  3. 19
      pages/mendainlist/mendainlist.vue
  4. 4
      pages/order/order.vue
  5. 8
      pages/user/index.vue
  6. BIN
      static/zaixian.png

@ -45,11 +45,13 @@
path: "", path: "",
yrenlianlist:[], yrenlianlist:[],
jqrllist:[], jqrllist:[],
userxixin:{} userxixin:{},
type: ""
} }
}, },
onLoad() { onLoad(o) {
this.top = uni.getSystemInfoSync().statusBarHeight this.top = uni.getSystemInfoSync().statusBarHeight
this.type = o.type
this.memberInfo() this.memberInfo()
}, },
methods: { methods: {
@ -74,7 +76,7 @@
qudbtn(){ qudbtn(){
// this.$refs.popup.close('center') // this.$refs.popup.close('center')
// var tjlist=[...this.yrenlianlist,...this.jqrllist] // var tjlist=[...this.yrenlianlist,...this.jqrllist]
const that = this;
uni.uploadFile({ uni.uploadFile({
url: that.ymurl+'/api/uploadFile', url: that.ymurl+'/api/uploadFile',
filePath: that.path, filePath: that.path,
@ -98,9 +100,13 @@
}); });
setTimeout(function(){ setTimeout(function(){
uni.switchTab({ if(that.type == 'order'){
url:'/pages/user/index' uni.navigateBack({delta:1})
}) }else{
uni.switchTab({
url:'/pages/user/index'
})
}
},2000) },2000)
} }
}) })
@ -146,9 +152,13 @@
}); });
setTimeout(function(){ setTimeout(function(){
uni.switchTab({ if(that.type == 'order'){
url:'/pages/user/index' uni.navigateBack({delta:1})
}) }else{
uni.switchTab({
url:'/pages/user/index'
})
}
},2000) },2000)
} }
}) })

@ -22,7 +22,9 @@
<view class="mddz" v-for="(item,index) in tuijianlist" :key="index"> <view class="mddz" v-for="(item,index) in tuijianlist" :key="index">
<view class="mddz1"> <view class="mddz1">
<image class="mddz1img" style="border-radius: 10rpx;" :src="item.image.url" mode=""></image> <image class="mddz1img" style="border-radius: 10rpx;" :src="item.image.url" mode=""></image>
<view class="mddz1wz">{{item.name}}</view> <view class="mddz1wz">{{item.name}}
<image src="@/static/zaixian.png"></image><text class="num">{{item.one_line_num}}</text>
</view>
</view> </view>
<view class="mddz2"> <view class="mddz2">
<view style='width:570rpx' @click="handleNavigation(item)"> <view style='width:570rpx' @click="handleNavigation(item)">
@ -105,7 +107,7 @@
console.log(res) console.log(res)
}) })
}, },
onReady() { onShow() {
this.viplist=[] this.viplist=[]
this.cardList(1) this.cardList(1)
// this.storeList(1) // this.storeList(1)
@ -270,7 +272,7 @@
} }
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.yqbtn { .yqbtn {
width: 550rpx; width: 550rpx;
height: 90rpx; height: 90rpx;
@ -487,8 +489,18 @@
font-weight: bold; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
color: #222222; color: #222222;
margin-left: 21rpx; margin-left: 15rpx;
margin-top: 12rpx; margin-top: 12rpx;
image{
width: 28rpx;
height: 28rpx;
vertical-align: middle;
}
.num{
font-size: 22rpx;
color: rgb(11, 229, 0);
font-weight: normal;
}
} }
.mddz { .mddz {

@ -13,7 +13,9 @@
<view class="mddz" v-for="(item,index) in mendainlist" :key="index"> <view class="mddz" v-for="(item,index) in mendainlist" :key="index">
<view class="mddz1" @click="xzmd(item)"> <view class="mddz1" @click="xzmd(item)">
<image class="mddz1img" :src="item.image.url" mode=""></image> <image class="mddz1img" :src="item.image.url" mode=""></image>
<view class="mddz1wz">{{item.name}}</view> <view class="mddz1wz">{{item.name}}
<image src="@/static/zaixian.png"></image><text class="num">{{item.one_line_num}}</text>
</view>
</view> </view>
<view class="mddz2"> <view class="mddz2">
<view class="mdleft" @click.stop="handleNavigation(item)"> <view class="mdleft" @click.stop="handleNavigation(item)">
@ -108,7 +110,7 @@
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.mdleft{ .mdleft{
width: 620rpx; width: 620rpx;
} }
@ -196,10 +198,19 @@
font-weight: bold; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
color: #222222; color: #222222;
margin-left: 21rpx; margin-left: 15rpx;
margin-top: 12rpx; margin-top: 12rpx;
image{
width: 28rpx;
height: 28rpx;
vertical-align: middle;
}
.num{
font-size: 22rpx;
color: rgb(11, 229, 0);
font-weight: normal;
}
} }
.mddz { .mddz {
width: 680rpx; width: 680rpx;
/* height: 152rpx; */ /* height: 152rpx; */

@ -89,7 +89,6 @@
that.vipxinxi = vipxinxi that.vipxinxi = vipxinxi
that.mandianxinxi = tuijianlist that.mandianxinxi = tuijianlist
that.top = uni.getSystemInfoSync().statusBarHeight that.top = uni.getSystemInfoSync().statusBarHeight
this.memberInfo();
}, },
onShow() { onShow() {
var xzmd = uni.getStorageSync('xzmd') var xzmd = uni.getStorageSync('xzmd')
@ -98,6 +97,7 @@
this.mandianxinxi = JSON.parse(xzmd) this.mandianxinxi = JSON.parse(xzmd)
this.mandianxinxi.id=this.mandianxinxi.store_id this.mandianxinxi.id=this.mandianxinxi.store_id
} }
this.memberInfo();
console.log('this.mandianxinxi',this.mandianxinxi); console.log('this.mandianxinxi',this.mandianxinxi);
}, },
methods: { methods: {
@ -140,7 +140,7 @@
success(res) { success(res) {
if(res.confirm){ if(res.confirm){
uni.navigateTo({ uni.navigateTo({
url: "/pages/face/face" url: "/pages/face/face?type=order"
}) })
} }
} }

@ -11,7 +11,7 @@
<view class="mendian" @click="gengx"> <view class="mendian" @click="gengx">
<image class="img" :src="userxixin.avatar?userxixin.avatar:avatar" mode=""></image> <image class="img" :src="userxixin.avatar?userxixin.avatar:avatar" mode=""></image>
<view class="xinxi" v-if="userxixin.mobile"> <view class="xinxi" v-if="userxixin.mobile">
<view class="">{{userxixin.nickname?userxixin.nickname:'微信用户'}}</view> <view class="">{{userxixin.nickname?userxixin.nickname:'微信用户'}}<text v-if="userxixin.attendance_num>=1">出勤次数{{userxixin.attendance_num}}</text></view>
<view class="">{{userxixin.mobile?userxixin.mobile:'暂无手机号'}}</view> <view class="">{{userxixin.mobile?userxixin.mobile:'暂无手机号'}}</view>
</view> </view>
<view class="xinxi" v-else> <view class="xinxi" v-else>
@ -240,7 +240,11 @@
margin-left: 26rpx; margin-left: 26rpx;
width: 365rpx; width: 365rpx;
} }
.xinxi text{
font-size: 26rpx;
color: #F8A617;
margin-left: 20rpx;
}
.renlbtn { .renlbtn {
width: 200rpx; width: 200rpx;
height: 80rpx; height: 80rpx;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Loading…
Cancel
Save