This commit is contained in:
cun-nan 2024-09-29 15:36:53 +08:00
parent cc621ac5a2
commit 298fa3037b
4 changed files with 44 additions and 31 deletions

View File

@ -33,7 +33,7 @@
<view class="leftIput"> <view class="leftIput">
<input style="width: 100%;" v-model="oilOrder.amount" type="text" placeholder="请输入金额" /> <input style="width: 100%;" v-model="oilOrder.amount" type="text" placeholder="请输入金额" />
</view> </view>
<view class="rr_box">{{oilOrder.oilNum}}L</view> <view class="rr_box">{{oilOrder.oilNum || 0}}L</view>
</view> </view>
<view class="title_"> <view class="title_">
付款备注 付款备注

View File

@ -103,7 +103,7 @@
</view> </view>
<u-icon name="arrow-right" color="#333"></u-icon> <u-icon name="arrow-right" color="#333"></u-icon>
</view> </view>
<view class="g-box"> <view class="g-box" @click="goZJ()">
<view class="d-s"> <view class="d-s">
<image src="../../static/my/fleetAmount.png" style="width: 20px; height: 20px;margin-right: 5px; "> <image src="../../static/my/fleetAmount.png" style="width: 20px; height: 20px;margin-right: 5px; ">
</image> </image>
@ -241,7 +241,7 @@
}, },
goZJ(){ goZJ(){
uni.navigateTo({ uni.navigateTo({
url:'/pagesMy/fleetInfo/fund' url:'/pagesMy/fleetInfo/fund?fleetId='+this.fleetId
}) })
}, },
// //

View File

@ -3,18 +3,22 @@
<view class="container"> <view class="container">
<view class="box_f"> <view class="box_f">
<view class="box_top"> <view class="box_top">
<view class="">订单号xxxxxxxxxxxxxxxxxxxx</view> <view class="">订单号{{orderInfo.orderNumber}}</view>
<view class="">未使用</view> <view class="">{{orderInfo.orderStatus}}</view>
</view> </view>
<view class="box_cont"> <view class="box_cont">
<view class=""> <view class="">
<image src="../../static/logo.png" style="width: 60px; height: 60px; "></image> <image :src="baseUrl+orderInfo.coverImage" v-if="orderInfo.coverImage" style="width: 60px; height: 60px; "></image>
<image src="../../static/logo.png" v-else style="width: 60px; height: 60px; "></image>
</view> </view>
<view class="r-bas"> <view class="r-bas">
<view style="font-size: 16px;color: #333333; margin-bottom: 5px;">虚拟产品</view> <view style="font-size: 16px;color: #333333; margin-bottom: 5px;">{{orderInfo. giftName}}</view>
<view class="">x1</view> <view class="">x{{orderInfo.exchangeQuantity || 0}}</view>
<view class="b-bs"> <view class="b-bs">
<view class="size1">实付 <text style="color: #E02020;">100积分</text> </view> <view class="size1">
实付 <text style="color: #E02020;">{{orderInfo.integral}}积分</text>
<text style="color: #E02020;" v-if="orderInfo.amount">+{{orderInfo.amount}}</text>
</view>
</view> </view>
</view> </view>
@ -32,53 +36,53 @@
<view class="title_">自提信息</view> <view class="title_">自提信息</view>
<view class="b-s"> <view class="b-s">
<view class="">油站名称</view> <view class="">油站名称</view>
<view class="">中建锦绣二期站</view> <view class="">{{orderInfo.storeName}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">油站地址</view> <view class="">油站地址</view>
<view class="">济南市槐荫区xxxxxx</view> <view class="">{{orderInfo.storeAddress}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">预留信息</view> <view class="">预留信息</view>
<view class="">张三 13964068390</view> <view class="">{{orderInfo.addrName}} {{orderInfo.addrMobile}}</view>
</view> </view>
</view> </view>
<view class="box_" style="font-size: 14px;"> <view class="box_" style="font-size: 14px;">
<view class="title_">金额信息</view> <view class="title_">金额信息</view>
<view class="b-s"> <view class="b-s">
<view class="">订单金额</view> <view class="">订单金额</view>
<view class="r-size">0.00</view> <view class="r-size">{{orderInfo.amount || 0}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">订单积分</view> <view class="">订单积分</view>
<view class="r-size">100积分</view> <view class="r-size">{{orderInfo.integral || 0}}积分</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">1件商品</view> <view class="">{{orderInfo.exchangeQuantity}}件商品</view>
<view class="r-size">实付100积分</view> <view class="r-size">实付{{orderInfo.integral || 0}}积分</view>
</view> </view>
</view> </view>
<view class="box_" style="font-size: 14px;"> <view class="box_" style="font-size: 14px;">
<view class="title_">订单信息</view> <view class="title_">订单信息</view>
<view class="b-s"> <view class="b-s">
<view class="">订单编号</view> <view class="">订单编号</view>
<view class="">xxxxxxxxxxxxxxxxxxxx</view> <view class="">{{orderInfo.orderNumber}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">下单油站</view> <view class="">下单油站</view>
<view class="">中建锦绣二期站</view> <view class="">{{orderInfo.storeName}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">下单时间</view> <view class="">下单时间</view>
<view class="">2024-08-09 10:44:02</view> <view class="">{{orderInfo.createTime}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">支付方式</view> <view class="">支付方式</view>
<view class="">微信</view> <view class="">{{orderInfo.paymentType}}</view>
</view> </view>
<view class="b-s"> <view class="b-s">
<view class="">支付时间</view> <view class="">支付时间</view>
<view class="">2024-08-09 10:45:02</view> <view class="">{{orderInfo.createTime}}</view>
</view> </view>
</view> </view>
@ -87,11 +91,13 @@
</template> </template>
<script> <script>
import config from '@/config'
import request from '../../utils/request'; import request from '../../utils/request';
export default { export default {
data() { data() {
return { return {
title: '', title: '',
baseUrl: config.baseUrl,
List: [], List: [],
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
@ -100,7 +106,8 @@
code: 'https://qm.qq.com/cgi-bin/qm/qr?k=LKqML292dD2WvwQfAJXBUmvgbiB_TZWF&noverify=0', // code: 'https://qm.qq.com/cgi-bin/qm/qr?k=LKqML292dD2WvwQfAJXBUmvgbiB_TZWF&noverify=0', //
size: 300, // 460460rpx size: 300, // 460460rpx
}, },
orderId:'', orderId: '',
orderInfo: {}
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -116,22 +123,22 @@
} }
}, },
onLoad(e) { onLoad(e) {
this.orderId = e.orderId
this.getInfo()
}, },
components: { components: {
}, },
methods: { methods: {
getInfo(){ getInfo() {
request({ request({
url: 'business/integral/integralOrders/queryByPageUni', url: 'business/integral/integralOrders/' + this.orderId,
method: 'get', method: 'get',
params: this.query
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log(res, 132);
this.orderInfo = res.data
} }
}) })
}, },

View File

@ -153,9 +153,15 @@
startTime: "" startTime: ""
}, },
pointsList: [], pointsList: [],
total: 0 total: 0,
fleetId:'',
storeId:''
} }
}, },
onLoad(e) {
this.fleetId = e.fleetId
this.storeId = uni.getStorageSync("storeId")
},
onShow() { onShow() {
this.query.chainStoreId = uni.getStorageSync('chainStoreId'); this.query.chainStoreId = uni.getStorageSync('chainStoreId');
this.getUserBalance() this.getUserBalance()