Commit fec7db5e authored by youjie's avatar youjie

no message

parent d8ca4625
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.Title{ .Title{
} }
.orcodeImg img{ .orcodeImg image{
width: 500rpx; width: 500rpx;
height: 500rpx; height: 500rpx;
} }
...@@ -22,6 +22,17 @@ ...@@ -22,6 +22,17 @@
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
color: #8C8C8C; color: #8C8C8C;
} }
.swiper {
height: 500rpx;
}
.swiper-item {
display: block;
height: 500rpx;
}
.swiper-list {
margin-top: 40rpx;
margin-bottom: 0;
}
</style> </style>
<template> <template>
...@@ -32,11 +43,18 @@ ...@@ -32,11 +43,18 @@
@close="close" :z-index="9999"> @close="close" :z-index="9999">
<view class="orcodeBox"> <view class="orcodeBox">
<view class="Title PY30 color000 column justify-center items-center"> <view class="Title PY30 color000 column justify-center items-center">
<text class="fz28">领队小程序码(1/1</text> <text class="fz28">领队小程序码({{current+1}}/{{list.length}}</text>
<text class="fz24">KJKSWDGGHFHGV</text> <text class="fz24">{{ list[current].TCNUMS }}</text>
</view> </view>
<view class="orcodeImg row items-center justify-center PX40"> <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>
<view class="SureBox row MT40"> <view class="SureBox row MT40">
<view class="flex1 PY20 text-center" @click="close">取消</view> <view class="flex1 PY20 text-center" @click="close">取消</view>
...@@ -47,19 +65,26 @@ ...@@ -47,19 +65,26 @@
</template> </template>
<script> <script>
export default { export default {
props:['title'], props:['TCIDs'],
data() { data() {
return { return {
currencyVisible: true, currencyVisible: true,
textarea: '', list: [],
current: 0,
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500,
BaseInfo: [],
} }
}, },
watch: { watch: {
title:{ TCIDs:{
handler(newVal,oldVal){ handler(newVal,oldVal){
this.list = []
this.getTem(newVal)
}, },
deep: true, deep: false,
immediate:true, immediate:true,
} }
}, },
...@@ -67,6 +92,39 @@ export default { ...@@ -67,6 +92,39 @@ export default {
this.currencyVisible = true this.currencyVisible = true
}, },
methods: { 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(){ close(){
this.currencyVisible = false this.currencyVisible = false
this.$emit('close') this.$emit('close')
...@@ -120,11 +178,11 @@ export default { ...@@ -120,11 +178,11 @@ export default {
} }
}) })
} else { } else {
that.$refs.uTips.show({ uni.showToast({
title: "保存失败,请稍后重试", title: '保存失败,请稍后重试',
type: "error", icon: 'none',
duration: "2300", duration: 2000
}); })
} }
}, },
complete: function() { complete: function() {
...@@ -134,11 +192,11 @@ export default { ...@@ -134,11 +192,11 @@ export default {
}, },
fail: function(e) { fail: function(e) {
console.log(e); console.log(e);
that.$refs.uTips.show({ uni.showToast({
title: "生成失败,请稍后重试", title: '生成失败,请稍后重试',
type: "error", icon: 'none',
duration: "2300", duration: 2000
}); })
}, },
}, },
this this
......
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
:current="currentId" :current="currentId"
:currencyList="currencyList" :currencyList="currencyList"
@close="close" @change="popupCurrency"></currencyBottom> @close="close" @change="popupCurrency"></currencyBottom>
<QRCode v-if="showQRCode"></QRCode> <QRCode v-if="showQRCode" @close="close" :TCIDs="msg.TCIDs"></QRCode>
</view> </view>
</template> </template>
<script> <script>
...@@ -312,6 +312,7 @@ export default { ...@@ -312,6 +312,7 @@ export default {
}, },
close(){ close(){
this.currencyVisible = false this.currencyVisible = false
this.showQRCode = false
}, },
popupCurrency(value){ popupCurrency(value){
this.currencyVisible = false this.currencyVisible = false
......
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
</view> </view>
<view class="opiSurTitle row justify-between PX30 PY20 fz24"> <view class="opiSurTitle row justify-between PX30 PY20 fz24">
<view v-for="item in titles" <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 }}) {{ item.name }}({{ item.num }})
</view> </view>
</view> </view>
...@@ -42,14 +43,15 @@ ...@@ -42,14 +43,15 @@
:enable-back-to-top="true" :enable-flex="true" :enable-back-to-top="true" :enable-flex="true"
style="overflow: hidden;"> style="overflow: hidden;">
<view class="PX30"> <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"> class="opiSurListCenter fz28 PX20 PY20 MT20 MB30 row justify-between">
<view>名字</view> <view>{{ item.GuestName }}</view>
<view>未评分</view> <view>{{ item.ScoreNum>0?item.ScoreNum:'未评分' }}</view>
</view> </view>
<u-empty v-if="list.length==0" text="暂无数据" mode="data" padding-top="20"></u-empty>
</view> </view>
<view style="height: 50rpx;"></view> <view style="height: 20rpx;"></view>
</scroll-view> </scroll-view>
</view> </view>
...@@ -63,19 +65,24 @@ export default { ...@@ -63,19 +65,24 @@ export default {
data() { data() {
return { return {
pageTitle: '意见调查', pageTitle: '意见调查',
showVisible: false,
titles:[ titles:[
{name:'全部',id:1,num:37}, {name:'全部',id:1,num:0},
{name:'已评分',id:2,num:12}, {name:'已评分',id:2,num:0},
{name:'未评分',id:3,num:25}, {name:'未评分',id:3,num:0},
], ],
msg:{ msg:{
type: 1 type: 1,
} TCIDs: '',
},
list: [],
datas: {},
} }
}, },
onLoad(option){ onLoad(option){
if(option.TCIDs){
this.msg.TCIDs = option.TCIDs
this.init()
}
}, },
created() { created() {
...@@ -84,9 +91,33 @@ export default { ...@@ -84,9 +91,33 @@ export default {
}, },
methods: { methods: {
showPassengerInfo(){ newType(id){
this.showVisible = true 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> </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