中秋更行
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="dashed-top margin-top-xs padding-top-sm">
|
<view class="dashed-top margin-top-xs padding-top-sm">
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
加油金额:<text class="fr">{{order.xoilAmountGun |moneyFormat}}</text>
|
加油金额:<text class="fr">{{moneyIntercept(order.xoilAmountGun) }}</text>
|
||||||
<!-- <text
|
<!-- <text
|
||||||
class="fr">{{order.oilDiscountAmount>0?order.realAmount+order.oilDiscountAmount:order.realAmount|moneyFormat}}</text> -->
|
class="fr">{{order.oilDiscountAmount>0?order.realAmount+order.oilDiscountAmount:order.realAmount|moneyFormat}}</text> -->
|
||||||
</view>
|
</view>
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
合计:
|
合计:
|
||||||
<text class="text-red text-bold text-lg fr">
|
<text class="text-red text-bold text-lg fr">
|
||||||
¥{{order.realAmount>0? order.realAmount:'xxx.x' | moneyFormat}}</text>
|
¥{{order.realAmount>0? moneyIntercept(order.realAmount) :'xxx.x' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
8
main.js
8
main.js
@@ -26,7 +26,13 @@ Vue.component('cu-custom',cuCustom)
|
|||||||
Vue.component('my-empty',Empty)
|
Vue.component('my-empty',Empty)
|
||||||
|
|
||||||
|
|
||||||
|
Vue.prototype.moneyIntercept = function(value){
|
||||||
|
if (value != 'xxx.x') {
|
||||||
|
return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,1)}${ Number(String(value).split('.')[1].substring(1,2)) + 1}`) :Number(value).toFixed(2);
|
||||||
|
} else {
|
||||||
|
return Number(value).toFixed(2)
|
||||||
|
}
|
||||||
|
}
|
||||||
let qqmapsdk = new QQMapWX({
|
let qqmapsdk = new QQMapWX({
|
||||||
// key: 'IUKBZ-5MKL3-HXB3P-3OS7U-6MHX3-MYBI3'
|
// key: 'IUKBZ-5MKL3-HXB3P-3OS7U-6MHX3-MYBI3'
|
||||||
key:'NYEBZ-YURY3-XTU3N-YBR54-PKW6E-ROB2F'
|
key:'NYEBZ-YURY3-XTU3N-YBR54-PKW6E-ROB2F'
|
||||||
|
|||||||
11
pages.json
11
pages.json
@@ -58,7 +58,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
],
|
,{
|
||||||
|
"path" : "pages/tabbar/home/link",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
],
|
||||||
"subPackages": [{
|
"subPackages": [{
|
||||||
"root": "BagAuth",
|
"root": "BagAuth",
|
||||||
"pages": [{
|
"pages": [{
|
||||||
|
|||||||
@@ -133,8 +133,13 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<!-- 广告图片开始 -->
|
<!-- 广告图片开始 -->
|
||||||
<view class="my-bg padding">
|
<view class="my-bg padding">
|
||||||
<view class="" @tap="goCall">
|
<view class="" >
|
||||||
<image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image>
|
<swiper autoplay interval='5000' style="width: 100%;height: 204rpx;" class="swiper" circular >
|
||||||
|
<swiper-item @click="swiperClick(item,index)" v-for="(item,index) in swiperArray">
|
||||||
|
<image :src="item.src" style="width: 100%;" mode="widthFix"></image>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
<!-- <image :src="starUrl+'banner.png'" style="width: 100%;" mode="widthFix"></image> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 筛选开始 -->
|
<!-- 筛选开始 -->
|
||||||
@@ -174,6 +179,16 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
swiperArray:[
|
||||||
|
// {
|
||||||
|
// src:this.global.starUrl+'banner.png',
|
||||||
|
// link:''
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
src: 'https://xoil-public.oss-cn-beijing.aliyuncs.com/WMP-IMG/banner-2dwk.png',
|
||||||
|
link: 'https://tengxun.hkzj168.com/?ChannelId=20220831152210221048473'
|
||||||
|
},
|
||||||
|
],
|
||||||
siteInfo: {
|
siteInfo: {
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -333,6 +348,19 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
swiperClick(item,index) {
|
||||||
|
if(!item?.link) return
|
||||||
|
switch (Number(index)) {
|
||||||
|
// case 0:
|
||||||
|
// this.goCall()
|
||||||
|
// break;
|
||||||
|
default:
|
||||||
|
console.log('item.link')
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/tabbar/home/link?url=' + encodeURIComponent(JSON.stringify(item.link))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
goToPage(url) {
|
goToPage(url) {
|
||||||
if (!url) return;
|
if (!url) return;
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
28
pages/tabbar/home/link.vue
Normal file
28
pages/tabbar/home/link.vue
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<web-view :src="url"></web-view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
url: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.url = JSON.parse(decodeURIComponent(e.url ));
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
BIN
static/swiper/etc.png
Normal file
BIN
static/swiper/etc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 198 KiB |
@@ -2,8 +2,8 @@ import axios from 'axios'
|
|||||||
import utils from '@/utils/encode'
|
import utils from '@/utils/encode'
|
||||||
|
|
||||||
// const env = process.env.NODE_ENV
|
// const env = process.env.NODE_ENV
|
||||||
// const env = 'production'/* */
|
const env = 'production'/* */
|
||||||
const env = 'test'
|
// const env = 'test'
|
||||||
const testUrl = 'http://192.168.0.65:38080'
|
const testUrl = 'http://192.168.0.65:38080'
|
||||||
// const productUrl = 'http://121.196.213.68/adminapi' //预生产
|
// const productUrl = 'http://121.196.213.68/adminapi' //预生产
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user