Merge remote-tracking branch 'origin/master'

This commit is contained in:
齐天大圣 2024-03-06 14:19:34 +08:00
commit ae1f1090ed
5 changed files with 22 additions and 7 deletions

View File

@ -1173,7 +1173,9 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
if (!this.form.tableDatas || this.form.tableDatas.length==0){
this.form.tableDatas = []
}
this.form.activeConsumptionChildList = this.form.tableDatas.concat(this.tableDatas, this.form.shiwudata); this.form.activeConsumptionChildList = this.form.tableDatas.concat(this.tableDatas, this.form.shiwudata);
console.log(this.form.activeConsumptionChildList) console.log(this.form.activeConsumptionChildList)

View File

@ -9,7 +9,7 @@
<view class="my-icons"></view> <view class="my-icons"></view>
</view> </view>
<!-- 顶部区域 --> <!-- 顶部区域 -->
<view class="tap-box"> <view class="tap-box" v-if="actinput == 0">
<view class="box-tap" :class="{ 'act' :types == index }" v-for="(item,index) in taplist" :key="index" <view class="box-tap" :class="{ 'act' :types == index }" v-for="(item,index) in taplist" :key="index"
@click="getindex(index)"> @click="getindex(index)">
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>

View File

@ -318,7 +318,7 @@
}, },
}).then((res) => { }).then((res) => {
uni.showToast({ uni.showToast({
title: "支付失败!", title: "支付失败,请联系商家!",
icon: "error" icon: "error"
}) })
}) })
@ -339,7 +339,7 @@
}) })
} else { } else {
uni.showToast({ uni.showToast({
title: "支付失败!", title: "支付失败,请联系商家!",
icon: "error" icon: "error"
}) })
} }
@ -349,7 +349,7 @@
} else { } else {
uni.showToast({ uni.showToast({
title: "支付失败!", title: "支付失败,请联系商家!",
icon: "error" icon: "error"
}) })
} }

View File

@ -9,7 +9,7 @@
</view> </view>
<!-- 顶部区域 --> <!-- 顶部区域 -->
<view class="top-box"> <view class="top-box">
<view style="font-size: 18px; font-weight: bold;">11月20号</view> <view style="font-size: 18px; font-weight: bold;">{{getTime()}}</view>
<view style="font-size: 14px;">对比上次价格波动</view> <view style="font-size: 14px;">对比上次价格波动</view>
<view class="tupian"></view> <view class="tupian"></view>
</view> </view>
@ -65,6 +65,18 @@
}, },
methods: { methods: {
//
getTime(){
let date = new Date();
let y = date.getFullYear() + "-";
let mon = ((date.getMonth() + 1 < 10) ? ('0' + (+date.getMonth() + 1)) : (+date.getMonth() + 1)) + "月";
let d = ((date.getDate() < 10) ? ('0' + date.getDate()) : date.getDate()) + "号";
let h = ((date.getHours() < 10) ? ('0' + date.getHours()) : date.getHours()) + ":";
let m = ((date.getMinutes() < 10) ? ('0' + date.getMinutes()) : date.getMinutes()) + ":";
let s = ((date.getSeconds() < 10) ? ('0' + date.getSeconds()) : date.getSeconds());
// return new Date(y , mon , d , h , m , s);
return mon+d;
},
// //
getTodayOilPriceList() { getTodayOilPriceList() {
let params = { let params = {

View File

@ -352,7 +352,8 @@
data: {"orderNo":_this.orderNo,"status":"payFail"}, data: {"orderNo":_this.orderNo,"status":"payFail"},
}).then((ress)=>{}) }).then((ress)=>{})
uni.showToast({ uni.showToast({
title:res.data.msg, // title:res.data.msg,
title:"支付失败,请联系商家",
icon:"none" icon:"none"
}) })
// _this.goBack() // _this.goBack()