在线人数

main^2
syt 2 months ago
parent 22329c539d
commit 6d51fc93c5
  1. 16
      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: "",
yrenlianlist:[],
jqrllist:[],
userxixin:{}
userxixin:{},
type: ""
}
},
onLoad() {
onLoad(o) {
this.top = uni.getSystemInfoSync().statusBarHeight
this.type = o.type
this.memberInfo()
},
methods: {
@ -74,7 +76,7 @@
qudbtn(){
// this.$refs.popup.close('center')
// var tjlist=[...this.yrenlianlist,...this.jqrllist]
const that = this;
uni.uploadFile({
url: that.ymurl+'/api/uploadFile',
filePath: that.path,
@ -98,9 +100,13 @@
});
setTimeout(function(){
if(that.type == 'order'){
uni.navigateBack({delta:1})
}else{
uni.switchTab({
url:'/pages/user/index'
})
}
},2000)
}
})
@ -146,9 +152,13 @@
});
setTimeout(function(){
if(that.type == 'order'){
uni.navigateBack({delta:1})
}else{
uni.switchTab({
url:'/pages/user/index'
})
}
},2000)
}
})

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

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

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

@ -11,7 +11,7 @@
<view class="mendian" @click="gengx">
<image class="img" :src="userxixin.avatar?userxixin.avatar:avatar" mode=""></image>
<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>
<view class="xinxi" v-else>
@ -240,7 +240,11 @@
margin-left: 26rpx;
width: 365rpx;
}
.xinxi text{
font-size: 26rpx;
color: #F8A617;
margin-left: 20rpx;
}
.renlbtn {
width: 200rpx;
height: 80rpx;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Loading…
Cancel
Save