Compare commits

..

No commits in common. "8294a578b3f0c9588f44381312110346f3ee3eb9" and "d7b061fba944e260526fcaca5a008a98e6f49bf1" have entirely different histories.

3 changed files with 17 additions and 42 deletions

View File

@ -1,17 +1,17 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
// { {
// "path": "pages/index/index", "path": "pages/index/index",
// "style": { "style": {
// "navigationBarTitleText": "uni-app" "navigationBarTitleText": "uni-app"
// } }
// }, },
// { {
// "path": "pages/login/login", "path": "pages/login/login",
// "style": { "style": {
// "navigationBarTitleText": "uni-app" "navigationBarTitleText": "uni-app"
// } }
// }, },
{ {
"path" : "pages/home/home", "path" : "pages/home/home",
"style" : "style" :

View File

@ -42,22 +42,15 @@
<view @click="gotoEvaluate(item)" class="evaluate" >评价订单</view> <view @click="gotoEvaluate(item)" class="evaluate" >评价订单</view>
</view> </view>
</view> </view>
</view>
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0" @change="popupChange">
<view style="padding: 30rpx;border-radius:20rpx;width: 600rpx;background-color: #fff;display: flex;align-items: center;row-gap: 10rpx;flex-direction: column;">
<canvas style="width:200px; height: 200px; z-index: 9999999;margin: 40px auto;" <canvas style="width:200px; height: 200px; z-index: 9999999;margin: 40px auto;"
canvas-id="myQrcode"></canvas> canvas-id="myQrcode"></canvas>
<view class="popup-title">收款码</view>
</view>
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0" @change="popupChange">
<view style="padding: 30rpx;border-radius:20rpx;width: 600rpx;background-color: #fff;display: flex;align-items: center;row-gap: 10rpx;flex-direction: column;">
<div>11{{imageUrl}}</div>
<img style="width: 200px; height: 200px;" :src="imageUrl" />
<view class="popup-title">长按扫一扫支付</view>
</view> </view>
</uni-popup> </uni-popup>
<img style="width: ;" src="/static/images/pay.png" alt="" />
</view> </view>
<tabBarVue msg="2"></tabBarVue> <tabBarVue msg="2"></tabBarVue>
@ -81,7 +74,6 @@
activeKey: 0, activeKey: 0,
pageNum:1, pageNum:1,
totalPages:0, totalPages:0,
imageUrl:null,
tabList: [{ tabList: [{
id: 0, id: 0,
title: '全部订单' title: '全部订单'
@ -176,24 +168,7 @@
text: res.data.code_url text: res.data.code_url
}) })
}, 60) }, 60)
setTimeout(()=>{
that.convertToImage()
}, 500)
})
},
convertToImage() {
uni.canvasToTempFilePath({
canvasId: 'myQrcode',
success: function(res) {
// H5tempFilePath base64
this.imageUrl = res.tempFilePath.replace(/[\r\n]/g, "")
console.log(this.imageUrl,200);
}
}) })
}, },
popupChange({show}) { popupChange({show}) {

View File

@ -14,7 +14,7 @@ const request = config => {
if (getToken() && !isToken) { if (getToken() && !isToken) {
config.header['Authorization'] = 'Bearer ' + getToken() config.header['Authorization'] = 'Bearer ' + getToken()
}else{ }else{
config.header['Authorization'] = 'Bearer ' +'6e753c0a509e4d01bde4f315f6a39ceb' config.header['Authorization'] = 'Bearer ' +'1c734ee940d94a9fbbedf7422c866bb8'
} }
// get请求映射params参数 // get请求映射params参数
if (config.params) { if (config.params) {