优化问题
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
查看更多<u-icon name="arrow-down" color="#575B66" size="28"></u-icon>
|
查看更多<u-icon name="arrow-down" color="#575B66" size="28"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="More" v-else>
|
<view class="More" v-else>
|
||||||
{{info.notice.usageRules}}
|
<u-parse :content="info.notice.usageRules"></u-parse>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
let tableCode = this.getQueryString(decodeURIComponent(res.result), 'code')
|
let tableCode = this.getQueryString(decodeURIComponent(res.result), 'code')
|
||||||
uni.cache.set('tableCode', this.tableCode)
|
uni.cache.set('tableCode', tableCode)
|
||||||
if (tableCode) {
|
if (tableCode) {
|
||||||
uni.pro.navigateTo('order_food/order_food', {
|
uni.pro.navigateTo('order_food/order_food', {
|
||||||
tableCode: tableCode,
|
tableCode: tableCode,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
支付方式:
|
支付方式:
|
||||||
</view>
|
</view>
|
||||||
<view class="towcontentow_T">
|
<view class="towcontentow_T">
|
||||||
微信支付
|
{{paytype==1?'微信支付':'余额支付'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="towcontenthere flex-colum" v-if="orderinfo">
|
<view class="towcontenthere flex-colum" v-if="orderinfo">
|
||||||
@@ -91,12 +91,15 @@
|
|||||||
const hour = date.getHours(); // 获取小时
|
const hour = date.getHours(); // 获取小时
|
||||||
const minute = date.getMinutes(); // 获取分钟
|
const minute = date.getMinutes(); // 获取分钟
|
||||||
const second = date.getSeconds(); // 获取秒数
|
const second = date.getSeconds(); // 获取秒数
|
||||||
const formattedDate = `${year}-${month}-${day} ${hour<10? '0'+hour:hour}:${minute<10? '0'+minute:minute}:${second<10? '0'+second:second}`; // 拼接成格式化后的日期字符串
|
const formattedDate =
|
||||||
|
`${year}-${month}-${day} ${hour<10? '0'+hour:hour}:${minute<10? '0'+minute:minute}:${second<10? '0'+second:second}`; // 拼接成格式化后的日期字符串
|
||||||
return formattedDate
|
return formattedDate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
paytype: 1,
|
||||||
titlename: '支付详情',
|
titlename: '支付详情',
|
||||||
orderId: "",
|
orderId: "",
|
||||||
opacitys: false,
|
opacitys: false,
|
||||||
@@ -142,6 +145,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
console.log(e,'调试1')
|
||||||
|
this.paytype = e.radiovalue1
|
||||||
this.orderId = e.orderId
|
this.orderId = e.orderId
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.GetTop()
|
this.GetTop()
|
||||||
|
|||||||
@@ -343,6 +343,7 @@
|
|||||||
|
|
||||||
// 去结算
|
// 去结算
|
||||||
showpopupclick() {
|
showpopupclick() {
|
||||||
|
console.log(1212121)
|
||||||
if (this.numValue == 0) {
|
if (this.numValue == 0) {
|
||||||
let data = { //定义socket数据传参
|
let data = { //定义socket数据传参
|
||||||
"skuId": '',
|
"skuId": '',
|
||||||
@@ -400,7 +401,7 @@
|
|||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/order/successful?orderId=' + this
|
url: '/pages/order/successful?orderId=' + this
|
||||||
.listinfoid + '&orderInfo=' + JSON.stringify(
|
.listinfoid + '&orderInfo=' + JSON.stringify(
|
||||||
this.orderInfo)
|
this.orderInfo) + '&payType' + this.radiovalue1
|
||||||
});
|
});
|
||||||
}, 1000)
|
}, 1000)
|
||||||
// uni.redirectTo({
|
// uni.redirectTo({
|
||||||
@@ -457,7 +458,7 @@
|
|||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/order/successful?orderId=' + this
|
url: '/pages/order/successful?orderId=' + this
|
||||||
.listinfoid + '&orderInfo=' + JSON.stringify(
|
.listinfoid + '&orderInfo=' + JSON.stringify(
|
||||||
this.orderInfo)
|
this.orderInfo)+ '&radiovalue1=' + this.radiovalue1
|
||||||
});
|
});
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
|
|||||||
@@ -160,8 +160,7 @@
|
|||||||
setTimeout(res => {
|
setTimeout(res => {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/order/successful?orderId=' + this
|
url: '/pages/order/successful?orderId=' + this
|
||||||
.listinfoid.id + '&orderInfo=' + JSON.stringify(
|
.listinfoid.id + '&orderInfo=' + JSON.stringify(orderInfo)+'&radiovalue1=' + this.radiovalue1
|
||||||
orderInfo)
|
|
||||||
});
|
});
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user