详情开发
This commit is contained in:
@@ -48,6 +48,10 @@ export default {
|
|||||||
paymemeberIn(data) { //充值
|
paymemeberIn(data) { //充值
|
||||||
return uni.api.post("/pay/memeberIn", data);
|
return uni.api.post("/pay/memeberIn", data);
|
||||||
},
|
},
|
||||||
|
// 支付
|
||||||
|
payOrderPay(data){
|
||||||
|
return uni.api.post("/pay/orderPay", data);
|
||||||
|
},
|
||||||
paymodfiyOrderInfo(data) { //查询订单支付状态
|
paymodfiyOrderInfo(data) { //查询订单支付状态
|
||||||
return uni.api.post("/pay/modfiyOrderInfo", data);
|
return uni.api.post("/pay/modfiyOrderInfo", data);
|
||||||
},
|
},
|
||||||
|
|||||||
1201
components/tki-qrcode/qrcode.js
Normal file
1201
components/tki-qrcode/qrcode.js
Normal file
File diff suppressed because it is too large
Load Diff
210
components/tki-qrcode/tki-qrcode.vue
Normal file
210
components/tki-qrcode/tki-qrcode.vue
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
<template xlang="wxml" minapp="mpvue">
|
||||||
|
<view class="tki-qrcode">
|
||||||
|
<!-- #ifndef MP-ALIPAY -->
|
||||||
|
<canvas class="tki-qrcode-canvas" :canvas-id="cid" :style="{width:cpSize+'px',height:cpSize+'px'}" />
|
||||||
|
<!-- #endif -->
|
||||||
|
<!-- #ifdef MP-ALIPAY -->
|
||||||
|
<canvas :id="cid" :width="cpSize" :height="cpSize" class="tki-qrcode-canvas" />
|
||||||
|
<!-- #endif -->
|
||||||
|
<image v-show="show" :src="result" :style="{width:cpSize+'px',height:cpSize+'px'}" />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import QRCode from "./qrcode.js"
|
||||||
|
let qrcode
|
||||||
|
export default {
|
||||||
|
name: "tki-qrcode",
|
||||||
|
props: {
|
||||||
|
cid: {
|
||||||
|
type: String,
|
||||||
|
default: 'tki-qrcode-canvas'
|
||||||
|
},
|
||||||
|
size: {
|
||||||
|
type: Number,
|
||||||
|
default: 200
|
||||||
|
},
|
||||||
|
unit: {
|
||||||
|
type: String,
|
||||||
|
default: 'upx'
|
||||||
|
},
|
||||||
|
show: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
val: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
background: {
|
||||||
|
type: String,
|
||||||
|
default: '#ffffff'
|
||||||
|
},
|
||||||
|
foreground: {
|
||||||
|
type: String,
|
||||||
|
default: '#000000'
|
||||||
|
},
|
||||||
|
pdground: {
|
||||||
|
type: String,
|
||||||
|
default: '#000000'
|
||||||
|
},
|
||||||
|
icon: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
iconSize: {
|
||||||
|
type: Number,
|
||||||
|
default: 40
|
||||||
|
},
|
||||||
|
lv: {
|
||||||
|
type: Number,
|
||||||
|
default: 3
|
||||||
|
},
|
||||||
|
onval: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
loadMake: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
usingComponents: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
showLoading: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
loadingText: {
|
||||||
|
type: String,
|
||||||
|
default: '二维码生成中'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
result: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
_makeCode() {
|
||||||
|
let that = this
|
||||||
|
if (!this._empty(this.val)) {
|
||||||
|
qrcode = new QRCode({
|
||||||
|
context: that, // 上下文环境
|
||||||
|
canvasId:that.cid, // canvas-id
|
||||||
|
usingComponents: that.usingComponents, // 是否是自定义组件
|
||||||
|
showLoading: that.showLoading, // 是否显示loading
|
||||||
|
loadingText: that.loadingText, // loading文字
|
||||||
|
text: that.val, // 生成内容
|
||||||
|
size: that.cpSize, // 二维码大小
|
||||||
|
background: that.background, // 背景色
|
||||||
|
foreground: that.foreground, // 前景色
|
||||||
|
pdground: that.pdground, // 定位角点颜色
|
||||||
|
correctLevel: that.lv, // 容错级别
|
||||||
|
image: that.icon, // 二维码图标
|
||||||
|
imageSize: that.iconSize,// 二维码图标大小
|
||||||
|
cbResult: function (res) { // 生成二维码的回调
|
||||||
|
that._result(res)
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '二维码内容不能为空',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_clearCode() {
|
||||||
|
this._result('')
|
||||||
|
qrcode.clear()
|
||||||
|
},
|
||||||
|
_saveCode() {
|
||||||
|
let that = this;
|
||||||
|
if (this.result != "") {
|
||||||
|
uni.saveImageToPhotosAlbum({
|
||||||
|
filePath: that.result,
|
||||||
|
success: function () {
|
||||||
|
uni.showToast({
|
||||||
|
title: '二维码保存成功',
|
||||||
|
icon: 'success',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_result(res) {
|
||||||
|
this.result = res;
|
||||||
|
this.$emit('result', res)
|
||||||
|
},
|
||||||
|
_empty(v) {
|
||||||
|
let tp = typeof v,
|
||||||
|
rt = false;
|
||||||
|
if (tp == "number" && String(v) == "") {
|
||||||
|
rt = true
|
||||||
|
} else if (tp == "undefined") {
|
||||||
|
rt = true
|
||||||
|
} else if (tp == "object") {
|
||||||
|
if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
|
||||||
|
} else if (tp == "string") {
|
||||||
|
if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
|
||||||
|
} else if (tp == "function") {
|
||||||
|
rt = false
|
||||||
|
}
|
||||||
|
return rt
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
size: function (n, o) {
|
||||||
|
if (n != o && !this._empty(n)) {
|
||||||
|
this.cSize = n
|
||||||
|
if (!this._empty(this.val)) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this._makeCode()
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
val: function (n, o) {
|
||||||
|
if (this.onval) {
|
||||||
|
if (n != o && !this._empty(n)) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this._makeCode()
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
cpSize() {
|
||||||
|
if(this.unit == "upx"){
|
||||||
|
return uni.upx2px(this.size)
|
||||||
|
}else{
|
||||||
|
return this.size
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted: function () {
|
||||||
|
if (this.loadMake) {
|
||||||
|
if (!this._empty(this.val)) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this._makeCode()
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.tki-qrcode {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.tki-qrcode-canvas {
|
||||||
|
position: fixed;
|
||||||
|
top: -99999upx;
|
||||||
|
left: -99999upx;
|
||||||
|
z-index: -99999;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,104 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="Box">
|
||||||
2
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/Meituanquan.png"
|
||||||
|
style="width: 39.46rpx;height: 40rpx;" mode=""></image>
|
||||||
|
<text>美团券</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
{{info.expDate}}
|
||||||
|
</view>
|
||||||
|
<button v-if="info.refundAble=='1'" class="buttonStyle" @click="makephone(info.phone)">申请退款</button>
|
||||||
|
<view style="height: 2rpx;width: 100%;background-color: #EFEFEF;margin-top: 16rpx;"> </view>
|
||||||
|
<view class="rightStyle" v-for="(item,i) in info.coupons" >
|
||||||
|
<text>
|
||||||
|
{{item.couponNo}}
|
||||||
|
</text>
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/QRcode.png" v-if="info.status=='unused'"
|
||||||
|
style="width: 39.46rpx;height: 40rpx;margin-right: 50rpx;" mode="" @click="openQR"></image>
|
||||||
|
<text v-else>已退款</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
makephone(e) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: e
|
||||||
|
});
|
||||||
|
},
|
||||||
|
openQR() {
|
||||||
|
this.$emit('clickEvent')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonStyle {
|
||||||
|
position: absolute;
|
||||||
|
right: 58rpx;
|
||||||
|
top: 56rpx;
|
||||||
|
width: 180rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
line-height: 70rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||||
|
border: 2rpx solid #E8E8E8;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightStyle {
|
||||||
|
.df(space-between);
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,103 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="Box">
|
||||||
3
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/shangdian.png"
|
||||||
|
style="width: 40rpx;height: 36.44rpx;" mode=""></image>
|
||||||
|
<text>商家信息</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
{{info.shopName}}
|
||||||
|
</view>
|
||||||
|
<view class="addreeStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/dingwei.png"
|
||||||
|
style="width: 17.9rpx;height: 22rpx;margin-right: 6rpx;" mode=""></image>{{info.distances}}km |
|
||||||
|
{{info.address}}
|
||||||
|
</view>
|
||||||
|
<view class="rightStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/dianhua.png" @click="makephone(info.phone)"
|
||||||
|
style="width: 39.46rpx;height: 40rpx;margin-right: 50rpx;" mode=""></image>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
makephone(e) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: e
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonStyle {
|
||||||
|
width: 158rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||||
|
border: 2rpx solid #E8E8E8;
|
||||||
|
position: absolute;
|
||||||
|
right: 58rpx;
|
||||||
|
top: 56rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.addreeStyle {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-top: 22rpx;
|
||||||
|
.df;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightStyle {
|
||||||
|
position: absolute;
|
||||||
|
right: 30rpx;
|
||||||
|
top: 126rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
127
pages/group_order/components/groupOrderInfo.vue
Normal file
127
pages/group_order/components/groupOrderInfo.vue
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<template>
|
||||||
|
<view class="Box">
|
||||||
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/sfmoney.png"
|
||||||
|
style="width: 28.29rpx;height: 31.93rpx;" mode=""></image>
|
||||||
|
<text>订单信息</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>订</text> <text>单</text> <text>号:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.orderNo}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>手</text> <text>机</text> <text>号:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.phone}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>付</text> <text>款</text> <text>时</text> <text>间:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.payTime}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>数</text> <text>量:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.number}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>总</text> <text>价:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.orderAmount}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>优</text> <text>惠</text> <text>明</text> <text>细:</text>
|
||||||
|
</view>
|
||||||
|
<text style="color: #FF4C11;">{{info.saveAmount}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>待</text><text>支</text> <text>付:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.payAmount}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ['info'],
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
.df(flex-start, stretch);
|
||||||
|
margin-top: 16rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
|
||||||
|
>view {
|
||||||
|
>text {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
margin-right: 50rpx;
|
||||||
|
width: 120rpx;
|
||||||
|
.df(space-between)
|
||||||
|
}
|
||||||
|
|
||||||
|
>text {
|
||||||
|
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333333;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,131 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="Box">
|
||||||
6
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/sfmoney.png"
|
||||||
|
style="width: 28.29rpx;height: 31.93rpx;" mode=""></image>
|
||||||
|
<text>实付金额</text>
|
||||||
|
<text>¥{{info.payAmount}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>订</text> <text>单</text> <text>号:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.orderNo}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>手</text> <text>机</text> <text>号:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.phone}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>付</text> <text>款</text> <text>时</text> <text>间:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.payTime}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>数</text> <text>量:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.number}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>总</text> <text>价:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.orderAmount}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
<text>实</text> <text>付:</text>
|
||||||
|
</view>
|
||||||
|
<text>{{info.payAmount}}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {}
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
.df(flex-start, stretch);
|
||||||
|
margin-top: 16rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
|
||||||
|
>view {
|
||||||
|
>text {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
margin-right: 50rpx;
|
||||||
|
width: 120rpx;
|
||||||
|
.df(space-between)
|
||||||
|
}
|
||||||
|
|
||||||
|
>text {
|
||||||
|
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333333;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,152 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="Box">
|
||||||
5
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/dengpao.png"
|
||||||
|
style="width: 33.19rpx;height: 43.92rpx;" mode=""></image>
|
||||||
|
<text>温馨提示</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
有效期:
|
||||||
|
</view>
|
||||||
|
<text>{{info.notice.dateUsed}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
使用时间:
|
||||||
|
</view>
|
||||||
|
<text>{{info.notice.availableTime}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view>
|
||||||
|
使用规则:
|
||||||
|
</view>
|
||||||
|
<text>{{info.notice.invoiceInfo}}</text>
|
||||||
|
</view>
|
||||||
|
<view @click="clickEvent" class="lookstyle" v-if="islook">
|
||||||
|
查看更多<u-icon name="arrow-down" color="#575B66" size="28"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view class="More" v-else>
|
||||||
|
{{info.notice.usageRules}}
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
islook: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
clickEvent() {
|
||||||
|
this.islook = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
.df(flex-start, stretch);
|
||||||
|
margin-top: 16rpx;
|
||||||
|
|
||||||
|
>view {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
width: 120rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.More {
|
||||||
|
margin-left: 119rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.buttonStyle {
|
||||||
|
width: 158rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||||
|
border: 2rpx solid #E8E8E8;
|
||||||
|
position: absolute;
|
||||||
|
right: 58rpx;
|
||||||
|
top: 56rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.addreeStyle {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-top: 22rpx;
|
||||||
|
.df;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightStyle {
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333;
|
||||||
|
.df(space-between);
|
||||||
|
|
||||||
|
>view>text {
|
||||||
|
margin-left: 8rpx;
|
||||||
|
color: #999999;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lookstyle {
|
||||||
|
width: 100%;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
.df(center);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,110 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="Box">
|
||||||
4
|
<view class="fontStyle">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/canyin.png"
|
||||||
|
style="width: 40rpx;height: 36.44rpx;" mode=""></image>
|
||||||
|
<text>到店吃套餐</text>
|
||||||
|
</view>
|
||||||
|
<view v-for="(item ,i ) in info.tagVos" :key="i">
|
||||||
|
<view class="content">
|
||||||
|
{{item.title}} {{item.goods.length}} 选 {{item.number}}
|
||||||
|
</view>
|
||||||
|
<view class="rightStyle" v-for="(ele,index) in item.goods" :key="index">
|
||||||
|
<view>
|
||||||
|
{{ele.name}} <text>({{ele.unitName}})</text>
|
||||||
|
</view>
|
||||||
|
<text>¥{{ele.lowPrice}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
makephone(e) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: e
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.Box {
|
||||||
|
width: 750rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
.df;
|
||||||
|
|
||||||
|
>text {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 12rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonStyle {
|
||||||
|
width: 158rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||||
|
border: 2rpx solid #E8E8E8;
|
||||||
|
position: absolute;
|
||||||
|
right: 58rpx;
|
||||||
|
top: 56rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.addreeStyle {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-top: 22rpx;
|
||||||
|
.df;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightStyle {
|
||||||
|
margin-top: 16rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333;
|
||||||
|
.df(space-between);
|
||||||
|
|
||||||
|
>view>text {
|
||||||
|
margin-left: 8rpx;
|
||||||
|
color: #999999;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,22 +1,82 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="title">
|
||||||
1
|
<text class="fontStyle">{{info.proName}}</text>
|
||||||
|
<view class="titleBox">
|
||||||
|
<image :src="info.proImg" mode="" style="width: 102rpx;height: 102rpx;border-radius: 12rpx 12rpx 12rpx 12rpx;"></image>
|
||||||
|
<view class="ml-20 rightText">
|
||||||
|
<view >
|
||||||
|
{{info.avaTime}}
|
||||||
|
</view>
|
||||||
|
<view style="margin-top: 8rpx;">{{info.proDetail}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="moneyStyle">
|
||||||
|
<text class="moneys">¥{{info.orderAmount}}</text>
|
||||||
|
<u-icon name="arrow-right" color="#000" size="28"></u-icon>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
props: ['info'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less">
|
||||||
|
.title {
|
||||||
|
width: 750rpx;
|
||||||
|
height: 206rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||||
|
padding: 32rpx 64rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
</style>
|
.fontStyle {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleBox {
|
||||||
|
.df();
|
||||||
|
|
||||||
|
.rightText {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.moneyStyle {
|
||||||
|
position: absolute;
|
||||||
|
right: 30rpx;
|
||||||
|
top: 80rpx;
|
||||||
|
.df();
|
||||||
|
.moneys{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml-20 {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.df(@start: flex-start, @position: center) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: @start;
|
||||||
|
align-items: @position;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -2,27 +2,57 @@
|
|||||||
<!-- 团购订单详情 -->
|
<!-- 团购订单详情 -->
|
||||||
<view>
|
<view>
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<groupTitle></groupTitle>
|
<groupTitle :info="listinfo"></groupTitle>
|
||||||
<!-- 券 -->
|
<!-- 券
|
||||||
<groupCoupons></groupCoupons>
|
if (e == 'closed') return '已完成'
|
||||||
|
else if (e == 'unpaid') return '待付款'
|
||||||
|
else if (e == 'unused') return '待使用'
|
||||||
|
else if (e == 'refund') return '已退款'
|
||||||
|
else if (e == 'cancelled') return '已取消'
|
||||||
|
else return "1"
|
||||||
|
-->
|
||||||
|
<groupCoupons :info="listinfo" @clickEvent='clickEvent'
|
||||||
|
v-if="listinfo.status=='unused'||listinfo.status=='refund'"></groupCoupons>
|
||||||
<!-- 商家信息 -->
|
<!-- 商家信息 -->
|
||||||
<groupMerchants></groupMerchants>
|
<groupMerchants :info="listinfo"></groupMerchants>
|
||||||
<!-- 到店 -->
|
<!-- 到店 -->
|
||||||
<groupStore></groupStore>
|
<groupStore :info="listinfo"></groupStore>
|
||||||
<!-- 提示 -->
|
<!-- 提示 -->
|
||||||
<groupPrompt></groupPrompt>
|
<groupPrompt :info="listinfo"></groupPrompt>
|
||||||
<!-- 实付 -->
|
<!-- 实付 -->
|
||||||
<groupPay></groupPay>
|
<groupPay :info="listinfo" v-if="listinfo.status=='unused'||listinfo.status=='refund'"></groupPay>
|
||||||
|
<!-- 订单信息 -->
|
||||||
|
<groupOrderInfo :info="listinfo" v-else></groupOrderInfo>
|
||||||
|
<view class="customerService" @click="makephone(listinfo.phone)">
|
||||||
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/kefu.png"
|
||||||
|
style="width: 40rpx;height: 43.21rpx;" mode=""></image>
|
||||||
|
联系客服
|
||||||
|
</view>
|
||||||
|
<!-- 待支付按钮 -->
|
||||||
|
<button v-if="listinfo.status == 'unpaid'" @click="payEvent" class="payStyle">立即支付</button>
|
||||||
|
<!-- 二维码展示 -->
|
||||||
|
<view class="qrimg" v-if="isQrimg" @click="clickEvent">
|
||||||
|
<tki-qrcode ref="qrcode" size="400" :val="qrValue" :loadMake="true" @result="qrR" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/**
|
||||||
|
* 只有两个有变动,美团券和实付金额、订单信息
|
||||||
|
* 1.支付完成/已退款/有美团券、
|
||||||
|
* 待支付/已完成没有美团券
|
||||||
|
* 2.支付完成、已退款有实付金额
|
||||||
|
* 待支付、已完成有订单信息没有实付金额
|
||||||
|
**/
|
||||||
import groupTitle from './components/groupTitle.vue'
|
import groupTitle from './components/groupTitle.vue'
|
||||||
import groupCoupons from './components/groupCoupons.vue'
|
import groupCoupons from './components/groupCoupons.vue'
|
||||||
import groupMerchants from './components/groupMerchants.vue'
|
import groupMerchants from './components/groupMerchants.vue'
|
||||||
import groupStore from './components/groupStore.vue'
|
import groupStore from './components/groupStore.vue'
|
||||||
import groupPrompt from './components/groupPrompt.vue'
|
import groupPrompt from './components/groupPrompt.vue'
|
||||||
import groupPay from './components/groupPay.vue'
|
import groupPay from './components/groupPay.vue'
|
||||||
|
import groupOrderInfo from './components/groupOrderInfo.vue'
|
||||||
|
import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
groupTitle,
|
groupTitle,
|
||||||
@@ -30,7 +60,9 @@
|
|||||||
groupMerchants,
|
groupMerchants,
|
||||||
groupStore,
|
groupStore,
|
||||||
groupPrompt,
|
groupPrompt,
|
||||||
groupPay
|
groupPay,
|
||||||
|
tkiQrcode,
|
||||||
|
groupOrderInfo
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.orderId = e.orderId
|
this.orderId = e.orderId
|
||||||
@@ -39,36 +71,126 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
orderId: "",
|
orderId: "",
|
||||||
listinfo: null
|
listinfo: null,
|
||||||
|
isQrimg: false,
|
||||||
|
qrValue: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async payEvent() {
|
||||||
|
console.log('调试1')
|
||||||
|
let res = await this.api.payOrderPay({
|
||||||
|
payType:'wechatPay',
|
||||||
|
orderId:this.listinfo.id,
|
||||||
|
})
|
||||||
|
console.log('调试2')
|
||||||
|
if (res) {
|
||||||
|
return
|
||||||
|
uni.requestPayment({
|
||||||
|
provider: 'wxpay', //支付类型-固定值
|
||||||
|
partnerid: res.data.payAppId, // 微信支付商户号
|
||||||
|
timeStamp: res.data.payTimeStamp, // 时间戳(单位:秒)
|
||||||
|
nonceStr: res.data.paynonceStr, // 随机字符串
|
||||||
|
package: res.data.payPackage, // 固定值
|
||||||
|
signType: res.data.paySignType, //固定值
|
||||||
|
paySign: res.data.paySign, //签名
|
||||||
|
success: (res) => {
|
||||||
|
uni.showToast({
|
||||||
|
title: "支付成功"
|
||||||
|
})
|
||||||
|
uni.navigateBack()
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
setTimeout(res => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '支付失败'
|
||||||
|
})
|
||||||
|
uni.hideLoading()
|
||||||
|
}, 2000)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clickEvent() {
|
||||||
|
this.qrValue = this.qrEvent()
|
||||||
|
this.isQrimg = !this.isQrimg
|
||||||
|
},
|
||||||
|
qrR(e) {
|
||||||
|
console.log(112312)
|
||||||
|
},
|
||||||
|
// 拼接code值
|
||||||
|
qrEvent() {
|
||||||
|
let str = ''
|
||||||
|
this.listinfo.coupons.forEach(res => {
|
||||||
|
if (res.couponNo) {
|
||||||
|
str += res.couponNo + ','
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
},
|
||||||
orderorderInfo() {
|
orderorderInfo() {
|
||||||
let _this = this
|
let _this = this
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: "getLocationstorage",
|
key: "getLocationstorage",
|
||||||
success: function(data) {
|
success: async function(data) {
|
||||||
let {
|
let {
|
||||||
lat,
|
lat,
|
||||||
lng
|
lng
|
||||||
} = data.data
|
} = data.data
|
||||||
let res = _this.api.groupOrderInfoDetail({
|
let res = await _this.api.groupOrderInfoDetail({
|
||||||
id: _this.orderId,
|
id: _this.orderId,
|
||||||
lat,
|
lat,
|
||||||
lng
|
lng
|
||||||
})
|
})
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.listinfo = res.data
|
_this.listinfo = res.data
|
||||||
// this.mountedcreateSelectorQuery()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
makephone(e) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: e
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.qrimg {
|
||||||
|
width: 55vh;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: rgba(0, 0, 0, .6);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: fixed;
|
||||||
|
top: 0%;
|
||||||
|
left: 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.payStyle {
|
||||||
|
background-color: #fe7620;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%);
|
||||||
|
color: #fff;
|
||||||
|
width: 90%;
|
||||||
|
border: 10rpx solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.customerService {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
width: 100%;
|
||||||
|
padding: 78rpx 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -107,8 +107,10 @@
|
|||||||
<view>实付:<text style="color: #FF4C11;">¥{{item.payAmount}}</text></view>
|
<view>实付:<text style="color: #FF4C11;">¥{{item.payAmount}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-button v-if="item.status=='unused'" type="primary" shape="circle" class="buttonStyle"
|
<button v-if="item.status=='unused'" type="primary" class="buttonStyle"
|
||||||
text="查看券码"></u-button>
|
>查看券码</button>
|
||||||
|
<button v-if="item.status=='unpaid'" type="primary" class="buttonStyle"
|
||||||
|
>去付款</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<image style="margin:32rpx auto;" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/nomore.png"
|
<image style="margin:32rpx auto;" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/nomore.png"
|
||||||
@@ -514,11 +516,13 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
bottom: 50rpx;
|
bottom: 50rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
width: 170rpx;
|
width: 170rpx;
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
background: #FFD100;
|
background: #FFD100;
|
||||||
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
border-radius: 32rpx 32rpx 32rpx 32rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.state {
|
.state {
|
||||||
|
|||||||
Reference in New Issue
Block a user