Compare commits
3 Commits
d7b061fba9
...
8294a578b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8294a578b3 | ||
|
|
5abfd87a3a | ||
|
|
dda0155105 |
24
pages.json
24
pages.json
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://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" :
|
||||||
|
|||||||
@ -42,15 +42,22 @@
|
|||||||
<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>
|
||||||
@ -74,6 +81,7 @@
|
|||||||
activeKey: 0,
|
activeKey: 0,
|
||||||
pageNum:1,
|
pageNum:1,
|
||||||
totalPages:0,
|
totalPages:0,
|
||||||
|
imageUrl:null,
|
||||||
tabList: [{
|
tabList: [{
|
||||||
id: 0,
|
id: 0,
|
||||||
title: '全部订单'
|
title: '全部订单'
|
||||||
@ -168,7 +176,24 @@
|
|||||||
text: res.data.code_url
|
text: res.data.code_url
|
||||||
})
|
})
|
||||||
}, 60)
|
}, 60)
|
||||||
|
setTimeout(()=>{
|
||||||
|
that.convertToImage()
|
||||||
|
|
||||||
|
}, 500)
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
convertToImage() {
|
||||||
|
|
||||||
|
uni.canvasToTempFilePath({
|
||||||
|
|
||||||
|
canvasId: 'myQrcode',
|
||||||
|
success: function(res) {
|
||||||
|
// 在H5平台下,tempFilePath 为 base64
|
||||||
|
this.imageUrl = res.tempFilePath.replace(/[\r\n]/g, "")
|
||||||
|
console.log(this.imageUrl,200);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} ,
|
} ,
|
||||||
popupChange({show}) {
|
popupChange({show}) {
|
||||||
|
|||||||
@ -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 ' +'1c734ee940d94a9fbbedf7422c866bb8'
|
config.header['Authorization'] = 'Bearer ' +'6e753c0a509e4d01bde4f315f6a39ceb'
|
||||||
}
|
}
|
||||||
// get请求映射params参数
|
// get请求映射params参数
|
||||||
if (config.params) {
|
if (config.params) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user