Commit 869ba920 authored by 潘永坪's avatar 潘永坪

Merge branch 'develop' of http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel into develop

parents bca175eb 40bd3c11
This diff is collapsed.
...@@ -47,9 +47,7 @@ ...@@ -47,9 +47,7 @@
</view> </view>
<view class="certificate-box" v-else-if="orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"> <view class="certificate-box" v-else-if="orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5">
<view class="box-verificationCode">验证码:{{ticketCode}}</view> <view class="box-verificationCode">验证码:{{ticketCode}}</view>
<!-- <uqrcode ref="uqrcode" canvas-id="qrcode" size="200" class="box-QRcode" :value="uqrcodeVal" :options="{ margin: 10 }" ></uqrcode> --> <canvas class="box-QRcode" canvas-id="qrcode"/>
<!--后端生成-->
<!-- <image :src="imgUrlList" style="width: 180px;height: 180px;margin: 0 auto;display: block;" v-if="imgUrlListType"></image> -->
<view class="progress-box" v-if="qrCodeType==true"> <view class="progress-box" v-if="qrCodeType==true">
<progress :percent="percentage" activeColor="#3688FF" stroke-width="3" /> <progress :percent="percentage" activeColor="#3688FF" stroke-width="3" />
</view> </view>
...@@ -142,7 +140,7 @@ ...@@ -142,7 +140,7 @@
</view> </view>
<view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1"> <view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1">
<view class="rowNumber-signOver">我的排号:</view> <view class="rowNumber-signOver">我的排号:</view>
<view class="list-value">{{item.sortNo}}<text style="font-size: 28rpx;margin-left: 8rpx;line-height: 56rpx;">({{item.projectName}})</text></view> <view class="list-value">{{item.sortNo}}<text style="font-size: 28rpx;margin-left: 8rpx;line-height: 56rpx;flex-shrink:0;">({{item.projectName}})</text></view>
</view> </view>
<view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1"> <view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1">
<view class="rowNumber-signOver">您排队号已过</view> <view class="rowNumber-signOver">您排队号已过</view>
...@@ -345,7 +343,7 @@ ...@@ -345,7 +343,7 @@
</template> </template>
<script> <script>
import uQRCode from '@/common/uqrcode4.js' import uQRCode from '@/common/js/uqrcode.js'
import UMask from '@/uview-ui/components/u-mask/u-mask.vue' import UMask from '@/uview-ui/components/u-mask/u-mask.vue'
export default { export default {
components: { components: {
...@@ -509,7 +507,6 @@ export default { ...@@ -509,7 +507,6 @@ export default {
}, },
data() { data() {
return { return {
uqrcodeVal:'',
orderDataType:false, orderDataType:false,
openId:'',//用户信息 openId:'',//用户信息
id:'',//订单ID id:'',//订单ID
...@@ -547,8 +544,6 @@ export default { ...@@ -547,8 +544,6 @@ export default {
photoType:false,//是否显示优惠券 photoType:false,//是否显示优惠券
claimStatus:1,//领取状态 0未领取 1已领取 claimStatus:1,//领取状态 0未领取 1已领取
findCouponPhoto:{},//相册优惠券 findCouponPhoto:{},//相册优惠券
imgUrlList:'',
imgUrlListType:false,
} }
}, },
onShow() { onShow() {
...@@ -585,7 +580,7 @@ export default { ...@@ -585,7 +580,7 @@ export default {
this.ifyukuaiCode = option.ifyukuaiCode||'' this.ifyukuaiCode = option.ifyukuaiCode||''
//this.id = "z00167956572219584dc15634b62cf75" //this.id = "z00167956572219584dc15634b62cf75"
this.openId = uni.getStorageSync('openid') //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ this.openId = uni.getStorageSync('openid') //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this.openId = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' //this.openId = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'
this.getDetail() this.getDetail()
}, },
onUnload() { onUnload() {
...@@ -848,22 +843,17 @@ export default { ...@@ -848,22 +843,17 @@ export default {
}else{ }else{
verifyCode=this.verifyCode verifyCode=this.verifyCode
} }
// uQRCode.make({ uQRCode.make({
// canvasId: 'qrcode', canvasId: 'qrcode',
// componentInstance: this, componentInstance: this,
// text: verifyCode, text: verifyCode,
// size: 180, size: 180,
// margin: 10, margin: 10,
// backgroundColor: '#ffffff', backgroundColor: '#ffffff',
// foregroundColor: '#000000', foregroundColor: '#000000',
// fileType: 'jpg', fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H errorCorrectLevel: uQRCode.errorCorrectLevel.H
// }) })
// this.uqrcodeVal=verifyCode
//后端生成
// var verifyCodeURL = encodeURI(verifyCode)
// this.imgUrlList = 'http://pay.tuyoyoo.com/distribution/c/'+verifyCodeURL+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlListType = true
} }
}, },
signOverFun(item){//过号遮罩显示 signOverFun(item){//过号遮罩显示
...@@ -904,23 +894,17 @@ export default { ...@@ -904,23 +894,17 @@ export default {
// height: 180, // height: 180,
// text:this.codeNo // text:this.codeNo
// }) // })
// uQRCode.make({ uQRCode.make({
// canvasId: 'qrcode', canvasId: 'qrcode',
// componentInstance: this, componentInstance: this,
// text: this.codeNo, text: this.codeNo,
// size: 180, size: 180,
// margin: 10, margin: 10,
// backgroundColor: '#ffffff', backgroundColor: '#ffffff',
// foregroundColor: '#000000', foregroundColor: '#000000',
// fileType: 'jpg', fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H errorCorrectLevel: uQRCode.errorCorrectLevel.H
// }) })
// this.uqrcodeVal=this.codeNo
//后端生成
// this.imgUrlListType = false
// var verifyCodeURL = 'http://pay.tuyoyoo.com/distribution/c/'+this.codeNo+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlList = encodeURI(verifyCodeURL)
// this.imgUrlListType = true
} }
this.percentage+=1 this.percentage+=1
if(this.percentage>=100){ if(this.percentage>=100){
...@@ -1316,6 +1300,7 @@ export default { ...@@ -1316,6 +1300,7 @@ export default {
line-height: 56rpx; line-height: 56rpx;
font-weight: bold; font-weight: bold;
margin-right: 40rpx; margin-right: 40rpx;
flex-shrink:0;
} }
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value, .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value,
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value2, .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value2,
...@@ -1323,6 +1308,9 @@ export default { ...@@ -1323,6 +1308,9 @@ export default {
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value3{ .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value3{
color:#fff; color:#fff;
} }
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value{
flex-shrink:0;
}
.order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum, .order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum,
.order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum2{ .order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum2{
background-color: #fff; background-color: #fff;
...@@ -1344,8 +1332,8 @@ export default { ...@@ -1344,8 +1332,8 @@ export default {
.order-certificate .certificate-box .box-QRcode { .order-certificate .certificate-box .box-QRcode {
display: block; display: block;
width: 200px; width: 180px;
height: 200px; height: 180px;
margin: 0 auto; margin: 0 auto;
} }
.order-certificate .certificate-box .box-QRcode2{ .order-certificate .certificate-box .box-QRcode2{
......
...@@ -47,7 +47,11 @@ ...@@ -47,7 +47,11 @@
</view> </view>
<view class="certificate-box" v-else-if="orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"> <view class="certificate-box" v-else-if="orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5">
<view class="box-verificationCode">验证码:{{ticketCode}}</view> <view class="box-verificationCode">验证码:{{ticketCode}}</view>
<canvas class="box-QRcode" canvas-id="qrcode"/> <!-- <uqrcode ref="uqrcode" canvas-id="qrcode" size="200" class="box-QRcode" :value="uqrcodeVal" :options="{ margin: 10 }" ></uqrcode> -->
<!--后端生成-->
<!-- <image :src="imgUrlList" style="width: 180px;height: 180px;margin: 0 auto;display: block;" v-if="imgUrlListType"></image> -->
<!--显示图片用的标签-->
<image class="code_view" :src="imagePath" v-if="imgTypeShow"></image>
<view class="progress-box" v-if="qrCodeType==true"> <view class="progress-box" v-if="qrCodeType==true">
<progress :percent="percentage" activeColor="#3688FF" stroke-width="3" /> <progress :percent="percentage" activeColor="#3688FF" stroke-width="3" />
</view> </view>
...@@ -140,7 +144,7 @@ ...@@ -140,7 +144,7 @@
</view> </view>
<view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1"> <view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1">
<view class="rowNumber-signOver">我的排号:</view> <view class="rowNumber-signOver">我的排号:</view>
<view class="list-value">{{item.sortNo}}<text style="font-size: 28rpx;margin-left: 8rpx;line-height: 56rpx;flex-shrink:0;">({{item.projectName}})</text></view> <view class="list-value">{{item.sortNo}}<text style="font-size: 28rpx;margin-left: 8rpx;line-height: 56rpx;flex-shrink: 0;">({{item.projectName}})</text></view>
</view> </view>
<view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1"> <view class="rowNumber-list rowNumber-list2" v-if="item.config.paPassedNumEnable==1">
<view class="rowNumber-signOver">您排队号已过</view> <view class="rowNumber-signOver">您排队号已过</view>
...@@ -343,7 +347,8 @@ ...@@ -343,7 +347,8 @@
</template> </template>
<script> <script>
import uQRCode from '@/common/js/uqrcode.js' // import uQRCode from '@/common/uqrcode4.js'
import QRCode from '@/common/weapp-qrcode.js'
import UMask from '@/uview-ui/components/u-mask/u-mask.vue' import UMask from '@/uview-ui/components/u-mask/u-mask.vue'
export default { export default {
components: { components: {
...@@ -507,6 +512,7 @@ export default { ...@@ -507,6 +512,7 @@ export default {
}, },
data() { data() {
return { return {
uqrcodeVal:'',
orderDataType:false, orderDataType:false,
openId:'',//用户信息 openId:'',//用户信息
id:'',//订单ID id:'',//订单ID
...@@ -544,6 +550,10 @@ export default { ...@@ -544,6 +550,10 @@ export default {
photoType:false,//是否显示优惠券 photoType:false,//是否显示优惠券
claimStatus:1,//领取状态 0未领取 1已领取 claimStatus:1,//领取状态 0未领取 1已领取
findCouponPhoto:{},//相册优惠券 findCouponPhoto:{},//相册优惠券
imgUrlList:'',
imgUrlListType:false,
imagePath:'',//图片接受地址
imgTypeShow:true,//是否展示图片
} }
}, },
onShow() { onShow() {
...@@ -843,19 +853,36 @@ export default { ...@@ -843,19 +853,36 @@ export default {
}else{ }else{
verifyCode=this.verifyCode verifyCode=this.verifyCode
} }
uQRCode.make({ // uQRCode.make({
canvasId: 'qrcode', // canvasId: 'qrcode',
componentInstance: this, // componentInstance: this,
text: verifyCode, // text: verifyCode,
size: 180, // size: 180,
margin: 10, // margin: 10,
backgroundColor: '#ffffff', // backgroundColor: '#ffffff',
foregroundColor: '#000000', // foregroundColor: '#000000',
fileType: 'jpg', // fileType: 'jpg',
errorCorrectLevel: uQRCode.errorCorrectLevel.H // errorCorrectLevel: uQRCode.errorCorrectLevel.H
}) // })
// this.uqrcodeVal=verifyCode
//后端生成
// var verifyCodeURL = encodeURI(verifyCode)
// this.imgUrlList = 'http://pay.tuyoyoo.com/distribution/c/'+verifyCodeURL+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlListType = true
this.createCode(verifyCode)
} }
}, },
createCode(showCode) {//创建二维码
var imgData = QRCode.drawImg(showCode, {
typeNumber: 3,//码点大小 1-40,数字越大,码点越小,二维码会显得越密集
errorCorrectLevel: 'H',//纠错等级 H等级最高(30%) 简单来说,就是二维码被覆盖了多少仍然能被识别出来 详见qrcode.js
size: 180
})
console.log(imgData)
this.imgTypeShow = false
this.imagePath = imgData
this.imgTypeShow = true
},
signOverFun(item){//过号遮罩显示 signOverFun(item){//过号遮罩显示
this.overSignedData = {} this.overSignedData = {}
this.overSignedData = item this.overSignedData = item
...@@ -894,17 +921,24 @@ export default { ...@@ -894,17 +921,24 @@ export default {
// height: 180, // height: 180,
// text:this.codeNo // text:this.codeNo
// }) // })
uQRCode.make({ // uQRCode.make({
canvasId: 'qrcode', // canvasId: 'qrcode',
componentInstance: this, // componentInstance: this,
text: this.codeNo, // text: this.codeNo,
size: 180, // size: 180,
margin: 10, // margin: 10,
backgroundColor: '#ffffff', // backgroundColor: '#ffffff',
foregroundColor: '#000000', // foregroundColor: '#000000',
fileType: 'jpg', // fileType: 'jpg',
errorCorrectLevel: uQRCode.errorCorrectLevel.H // errorCorrectLevel: uQRCode.errorCorrectLevel.H
}) // })
// this.uqrcodeVal=this.codeNo
//后端生成
// this.imgUrlListType = false
// var verifyCodeURL = 'http://pay.tuyoyoo.com/distribution/c/'+this.codeNo+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlList = encodeURI(verifyCodeURL)
// this.imgUrlListType = true
this.createCode(this.codeNo)
} }
this.percentage+=1 this.percentage+=1
if(this.percentage>=100){ if(this.percentage>=100){
...@@ -1300,7 +1334,6 @@ export default { ...@@ -1300,7 +1334,6 @@ export default {
line-height: 56rpx; line-height: 56rpx;
font-weight: bold; font-weight: bold;
margin-right: 40rpx; margin-right: 40rpx;
flex-shrink:0;
} }
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value, .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value,
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value2, .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value2,
...@@ -1308,9 +1341,6 @@ export default { ...@@ -1308,9 +1341,6 @@ export default {
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value3{ .order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value3{
color:#fff; color:#fff;
} }
.order-queueUp .queueUp-rowNumber3 .rowNumber-list .list-value{
flex-shrink:0;
}
.order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum, .order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum,
.order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum2{ .order-queueUp .queueUp-rowNumber3 .rowNumber-takeNum2{
background-color: #fff; background-color: #fff;
...@@ -1332,8 +1362,8 @@ export default { ...@@ -1332,8 +1362,8 @@ export default {
.order-certificate .certificate-box .box-QRcode { .order-certificate .certificate-box .box-QRcode {
display: block; display: block;
width: 180px; width: 200px;
height: 180px; height: 200px;
margin: 0 auto; margin: 0 auto;
} }
.order-certificate .certificate-box .box-QRcode2{ .order-certificate .certificate-box .box-QRcode2{
...@@ -1567,4 +1597,10 @@ export default { ...@@ -1567,4 +1597,10 @@ export default {
} }
} }
} }
.code_view{
display: block;
width: 180px;
height: 180px;
margin: 0 auto;
}
</style> </style>
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