Commit fec7db5e authored by youjie's avatar youjie

no message

parent d8ca4625
......@@ -7,7 +7,7 @@
.Title{
}
.orcodeImg img{
.orcodeImg image{
width: 500rpx;
height: 500rpx;
}
......@@ -22,6 +22,17 @@
border-right: 1px solid #ddd;
color: #8C8C8C;
}
.swiper {
height: 500rpx;
}
.swiper-item {
display: block;
height: 500rpx;
}
.swiper-list {
margin-top: 40rpx;
margin-bottom: 0;
}
</style>
<template>
......@@ -32,11 +43,18 @@
@close="close" :z-index="9999">
<view class="orcodeBox">
<view class="Title PY30 color000 column justify-center items-center">
<text class="fz28">领队小程序码(1/1</text>
<text class="fz24">KJKSWDGGHFHGV</text>
<text class="fz28">领队小程序码({{current+1}}/{{list.length}}</text>
<text class="fz24">{{ list[current].TCNUMS }}</text>
</view>
<view class="orcodeImg row items-center justify-center PX40">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868977886703780.png"/>
<swiper indicator-dots circular style="height:500rpx;width:500rpx"
:current="current" @change="changeHandler">
<swiper-item v-for="(item, index) in list" :key="index">
<image mode="aspectFit" :src="item.Url" />
</swiper-item>
</swiper>
<!-- <img :src="list[0].Url"/> -->
<!-- <image :src="list[0].Url" style="width: 500rpx;height: 500rpx;"/> -->
</view>
<view class="SureBox row MT40">
<view class="flex1 PY20 text-center" @click="close">取消</view>
......@@ -47,19 +65,26 @@
</template>
<script>
export default {
props:['title'],
props:['TCIDs'],
data() {
return {
currencyVisible: true,
textarea: '',
list: [],
current: 0,
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500,
BaseInfo: [],
}
},
watch: {
title:{
TCIDs:{
handler(newVal,oldVal){
this.list = []
this.getTem(newVal)
},
deep: true,
deep: false,
immediate:true,
}
},
......@@ -67,6 +92,39 @@ export default {
this.currencyVisible = true
},
methods: {
changeHandler(i) {
this.current = i.detail.current;
},
getTem(TCIDs){
uni.showLoading()
this.apipost("dmcstatistics_post_GetExtendLeaderAllStatics",{
TCIDs: TCIDs,
NewCombinationNum: ''
}, (res) => {
if (res.resultCode == 1) {
this.BaseInfo = res.data.BaseInfo
let TCIDs = this.TCIDs.split(',')
TCIDs.forEach(x => {
this.init(x)
});
}
})
},
async init(x){
await this.apipostQrCode("", {
"tcID": x
}, (res) => {
if (res.resultCode == 1) {
let findIndex = this.BaseInfo.findIndex(item => item.TCIDS == x)
this.list.push({
Url:'data:image/png;base64,' + res.data,
TCID:x,
TCNUMS:this.BaseInfo[findIndex].TCNUMS
})
uni.hideLoading()
}
})
},
close(){
this.currencyVisible = false
this.$emit('close')
......@@ -120,11 +178,11 @@ export default {
}
})
} else {
that.$refs.uTips.show({
title: "保存失败,请稍后重试",
type: "error",
duration: "2300",
});
uni.showToast({
title: '保存失败,请稍后重试',
icon: 'none',
duration: 2000
})
}
},
complete: function() {
......@@ -134,11 +192,11 @@ export default {
},
fail: function(e) {
console.log(e);
that.$refs.uTips.show({
title: "生成失败,请稍后重试",
type: "error",
duration: "2300",
});
uni.showToast({
title: '生成失败,请稍后重试',
icon: 'none',
duration: 2000
})
},
},
this
......
......@@ -216,7 +216,7 @@
:current="currentId"
:currencyList="currencyList"
@close="close" @change="popupCurrency"></currencyBottom>
<QRCode v-if="showQRCode"></QRCode>
<QRCode v-if="showQRCode" @close="close" :TCIDs="msg.TCIDs"></QRCode>
</view>
</template>
<script>
......@@ -312,6 +312,7 @@ export default {
},
close(){
this.currencyVisible = false
this.showQRCode = false
},
popupCurrency(value){
this.currencyVisible = false
......
......@@ -34,7 +34,8 @@
</view>
<view class="opiSurTitle row justify-between PX30 PY20 fz24">
<view v-for="item in titles"
:class="[msg.type==item.id?'active':'']">
:class="[msg.type==item.id?'active':'']"
@click="newType(item.id)">
{{ item.name }}({{ item.num }})
</view>
</view>
......@@ -42,14 +43,15 @@
:enable-back-to-top="true" :enable-flex="true"
style="overflow: hidden;">
<view class="PX30">
<view v-for="item in 20"
<view v-for="item in list"
class="opiSurListCenter fz28 PX20 PY20 MT20 MB30 row justify-between">
<view>名字</view>
<view>未评分</view>
<view>{{ item.GuestName }}</view>
<view>{{ item.ScoreNum>0?item.ScoreNum:'未评分' }}</view>
</view>
<u-empty v-if="list.length==0" text="暂无数据" mode="data" padding-top="20"></u-empty>
</view>
<view style="height: 50rpx;"></view>
<view style="height: 20rpx;"></view>
</scroll-view>
</view>
......@@ -63,19 +65,24 @@ export default {
data() {
return {
pageTitle: '意见调查',
showVisible: false,
titles:[
{name:'全部',id:1,num:37},
{name:'已评分',id:2,num:12},
{name:'未评分',id:3,num:25},
{name:'全部',id:1,num:0},
{name:'已评分',id:2,num:0},
{name:'未评分',id:3,num:0},
],
msg:{
type: 1
}
type: 1,
TCIDs: '',
},
list: [],
datas: {},
}
},
onLoad(option){
if(option.TCIDs){
this.msg.TCIDs = option.TCIDs
this.init()
}
},
created() {
......@@ -84,9 +91,33 @@ export default {
},
methods: {
showPassengerInfo(){
this.showVisible = true
}
newType(id){
this.msg.type = id
if(id==1) this.list = JSON.parse(JSON.stringify(this.datas.objAll))
else if(id==2) this.list = JSON.parse(JSON.stringify(this.datas.objScore))
else if(id==3) this.list = JSON.parse(JSON.stringify(this.datas.objNoScore))
},
init() {
uni.showLoading()
this.apipost("survey_post_GetTotalListAPP", this.msg, (res) => {
if (res.resultCode == 1) {
this.datas = res.data;
this.list = JSON.parse(JSON.stringify(this.datas.objAll))
this.titles[0].num = this.datas.objAll.length
this.titles[1].num = this.datas.objScore.length
this.titles[2].num = this.datas.objNoScore.length
uni.hideLoading()
}
}, (failed) => {
uni.hideLoading()
uni.showToast({
title: failed.message,
icon: "none",
});
}, (error) => {
uni.hideLoading()
})
},
},
}
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment