细化uni-alipay-other埋点,替换12306火车票样式
This commit is contained in:
parent
e6aa5f29ed
commit
f3be53fe2f
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_transfer" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_transfer')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,49 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_call" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_call')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<!-- 自定义头部导航栏 -->
|
<!-- 自定义头部导航栏 -->
|
||||||
<ZdyNavbar tipLayerText="新增记录" :isTipLayer="true" :type="data.type" :scrollTop="data.scrollTop" @click="open"/>
|
<ZdyNavbar tipLayerText="新增记录" :isTipLayer="true" :type="data.type" :scrollTop="data.scrollTop" @click="open" />
|
||||||
<ZdyHeader :type="data.type" />
|
<ZdyHeader :type="data.type" />
|
||||||
<callList :type="data.type" ref="callLogList"></callList>
|
<callList :type="data.type" ref="callLogList"></callList>
|
||||||
<tabbar :type="data.type" />
|
<tabbar :type="data.type" />
|
||||||
<image v-if="data.type!='ios'" :src="`/static/image/call/${data.type}BtnImg.png`" mode="" class="btnImg" :class="['btnImg_'+data.type]"></image>
|
<image v-if="data.type != 'ios'" :src="`/static/image/call/${data.type}BtnImg.png`" mode="" class="btnImg"
|
||||||
|
:class="['btnImg_' + data.type]"></image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import ZdyNavbar from "@/components/call-log/nav-bar/nav-bar.vue"
|
import ZdyNavbar from "@/components/call-log/nav-bar/nav-bar.vue"
|
||||||
import ZdyHeader from "@/components/call-log/header/header.vue"
|
import ZdyHeader from "@/components/call-log/header/header.vue"
|
||||||
import callList from "@/components/call-log/list/list.vue"
|
import callList from "@/components/call-log/list/list.vue"
|
||||||
import tabbar from "@/components/call-log/tabbar/tabbar.vue"
|
import tabbar from "@/components/call-log/tabbar/tabbar.vue"
|
||||||
import {util} from"@/utils/common.js"
|
import { util } from "@/utils/common.js"
|
||||||
|
|
||||||
import { ref, reactive, watch, nextTick, getCurrentInstance } from "vue";
|
import { ref, reactive, watch, nextTick, getCurrentInstance } from "vue";
|
||||||
import { onLoad, onShow, onReady, onPageScroll, onReachBottom } from "@dcloudio/uni-app";
|
import { onLoad, onShow, onReady, onPageScroll, onReachBottom } from "@dcloudio/uni-app";
|
||||||
const { appContext, proxy } = getCurrentInstance();
|
const { appContext, proxy } = getCurrentInstance();
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
type: 'vivo',
|
type: 'vivo',
|
||||||
scrollTop:0
|
scrollTop: 0
|
||||||
})
|
})
|
||||||
let callLogList = ref();
|
let callLogList = ref();
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
data.type=option.type
|
data.type = option.type
|
||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
try {
|
try {
|
||||||
if (plus.os.name === 'Android') {
|
if (plus.os.name === 'Android') {
|
||||||
let colorTabbar="#FAFAFA"
|
let colorTabbar = "#FAFAFA"
|
||||||
if(data.type=='xiaomi'||data.type=='oppo'){
|
if (data.type == 'xiaomi' || data.type == 'oppo') {
|
||||||
colorTabbar="#FFFFFF"
|
colorTabbar = "#FFFFFF"
|
||||||
}
|
}
|
||||||
console.log(colorTabbar);
|
console.log(colorTabbar);
|
||||||
util.setAndroidSystemBarColor(colorTabbar)
|
util.setAndroidSystemBarColor(colorTabbar)
|
||||||
|
|
@ -54,48 +55,53 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("修改导航条颜色失败", error);
|
console.log("修改导航条颜色失败", error);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
onPageScroll((e) => {
|
onPageScroll((e) => {
|
||||||
// console.log(e)
|
// console.log(e)
|
||||||
data.scrollTop=e.scrollTop
|
data.scrollTop = e.scrollTop
|
||||||
|
|
||||||
})
|
})
|
||||||
onReachBottom(() => {
|
onReachBottom(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
function open(){
|
function open() {
|
||||||
// console.log(callLogList.value)
|
// console.log(callLogList.value)
|
||||||
callLogList.value.openAddModal()
|
callLogList.value.openAddModal()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" >
|
<style lang="scss">
|
||||||
page{
|
page {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.btnImg{
|
|
||||||
|
.btnImg {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
||||||
}
|
}
|
||||||
.btnImg_vivo{
|
|
||||||
|
.btnImg_vivo {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 96px;
|
height: 96px;
|
||||||
left: 40px;
|
left: 40px;
|
||||||
bottom: 130px;
|
bottom: 130px;
|
||||||
}
|
}
|
||||||
.btnImg_huawei{
|
|
||||||
|
.btnImg_huawei {
|
||||||
width: 54px;
|
width: 54px;
|
||||||
height: 54px;
|
height: 54px;
|
||||||
left: calc(50% - 27px);
|
left: calc(50% - 27px);
|
||||||
bottom: 65px;
|
bottom: 65px;
|
||||||
}
|
}
|
||||||
.btnImg_oppo{
|
|
||||||
|
.btnImg_oppo {
|
||||||
width: 58px;
|
width: 58px;
|
||||||
height: 58px;
|
height: 58px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
bottom: 100px;
|
bottom: 100px;
|
||||||
}
|
}
|
||||||
.btnImg_xiaomi{
|
|
||||||
|
.btnImg_xiaomi {
|
||||||
width: 55px;
|
width: 55px;
|
||||||
height: 55px;
|
height: 55px;
|
||||||
right: 34px;
|
right: 34px;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark :dark="data.dark" />
|
<watermark dark="light" source="uni_alipay_finance" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_finance')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -193,7 +193,7 @@
|
||||||
|
|
||||||
<!-- 底部导航栏 -->
|
<!-- 底部导航栏 -->
|
||||||
<view class="bottom-box"
|
<view class="bottom-box"
|
||||||
:class="`navigation-menu-${financeInfo.navigationMenuStyle}`, { 'ios-bottom-box': $system == 'iOS' }">
|
:class="`navigation-menu-${financeInfo.navigationMenuStyle}` + ($system == 'iOS' ? ' ios-bottom-box' : '')">
|
||||||
<view class="bottom-item" v-for="item in navigationMenu" :key="item.name" @click="clickBottomItem(item)">
|
<view class="bottom-item" v-for="item in navigationMenu" :key="item.name" @click="clickBottomItem(item)">
|
||||||
<image
|
<image
|
||||||
:src="`/static/image/finance-management/navigation-menu/${financeInfo.navigationMenuStyle}/${item.icon}.png`">
|
:src="`/static/image/finance-management/navigation-menu/${financeInfo.navigationMenuStyle}/${item.icon}.png`">
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,6 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -198,7 +197,7 @@ const goRechargePage = () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/common/recharge/index'
|
url: '/pages/common/recharge/index?source=uni_alipay_index'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark :dark="data.dark" />
|
<watermark dark="light" source="uni_alipay_other_message" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_message')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -116,14 +116,11 @@ import ChatList from '@/components/message/chat/chat-list.vue'
|
||||||
import defaultData from '../defaultData.json'
|
import defaultData from '../defaultData.json'
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive
|
||||||
computed,
|
|
||||||
nextTick
|
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import {
|
import {
|
||||||
onLoad,
|
onLoad,
|
||||||
onShow,
|
onShow
|
||||||
onPageScroll
|
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import {
|
import {
|
||||||
stringUtil,
|
stringUtil,
|
||||||
|
|
@ -148,7 +145,7 @@ const showEditPopup = ref(false)
|
||||||
const editingMessage = ref(null)
|
const editingMessage = ref(null)
|
||||||
const editingTime = ref("") // 完整时间字符串 "YYYY-MM-DD HH:mm"
|
const editingTime = ref("") // 完整时间字符串 "YYYY-MM-DD HH:mm"
|
||||||
const editingDate = ref("") // 日期部分 "YYYY-MM-DD"
|
const editingDate = ref("") // 日期部分 "YYYY-MM-DD"
|
||||||
const editingTimeOfDay = ref("") // 时刻部分 "HH:mm"
|
const editingTimeOfDay = ref("") // 时刻部分 "HH:mm"
|
||||||
const editingSimKa = ref("")
|
const editingSimKa = ref("")
|
||||||
const editingTimeMode = ref('auto') // 'auto' | 'show' | 'hide'
|
const editingTimeMode = ref('auto') // 'auto' | 'show' | 'hide'
|
||||||
let editorCtx = null // 用于保存 editor 上下文
|
let editorCtx = null // 用于保存 editor 上下文
|
||||||
|
|
@ -180,7 +177,9 @@ const saveChatList = () => {
|
||||||
if (last && last.time) list[idx].time = last.time
|
if (last && last.time) list[idx].time = last.time
|
||||||
uni.setStorageSync(STORAGE_KEY, JSON.stringify(list))
|
uni.setStorageSync(STORAGE_KEY, JSON.stringify(list))
|
||||||
}
|
}
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
// 忽略异常
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onEditorReady = () => {
|
const onEditorReady = () => {
|
||||||
|
|
@ -419,7 +418,9 @@ onLoad((options) => {
|
||||||
messageList.value = found.chatList || []
|
messageList.value = found.chatList || []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
// 忽略异常
|
||||||
|
}
|
||||||
// 缓存未命中时降级用内建默认数据
|
// 缓存未命中时降级用内建默认数据
|
||||||
data.data = defaultList.find(item => item.id == options.id)
|
data.data = defaultList.find(item => item.id == options.id)
|
||||||
messageList.value = data.data?.chatList || []
|
messageList.value = data.data?.chatList || []
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark :dark="data.dark" />
|
<watermark dark="light" source="uni_alipay_other_message" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_message')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_airTickets_ctrip" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_other_airTickets_ctrip')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -270,7 +271,7 @@
|
||||||
<text class="codefun-shrink-0 codefun-self-start font_13 text_47">出行人</text>
|
<text class="codefun-shrink-0 codefun-self-start font_13 text_47">出行人</text>
|
||||||
<view class="codefun-flex-col codefun-flex-1 codefun-relative group_16 ml-41">
|
<view class="codefun-flex-col codefun-flex-1 codefun-relative group_16 ml-41">
|
||||||
<text class="codefun-self-start text_23" @click="goEdit"><text
|
<text class="codefun-self-start text_23" @click="goEdit"><text
|
||||||
style="margin-right: 6px;" v-for="value in airTicketsInfo.passengersInfo">{{
|
style="margin-right: 6px;" v-for="(value, index) in airTicketsInfo.passengersInfo" :key="index">{{
|
||||||
value.name }}</text></text>
|
value.name }}</text></text>
|
||||||
<view class="codefun-flex-row codefun-items-center codefun-self-stretch codefun-mt-8">
|
<view class="codefun-flex-row codefun-items-center codefun-self-stretch codefun-mt-8">
|
||||||
<text class="font_14 text_49">查看证件、航司预订号、修改姓名/证件</text>
|
<text class="font_14 text_49">查看证件、航司预订号、修改姓名/证件</text>
|
||||||
|
|
@ -366,7 +367,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
||||||
import { reactive, ref, computed, toRefs } from 'vue';
|
import { reactive, computed, toRefs } from 'vue';
|
||||||
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
||||||
import { util } from '@/utils/common.js';
|
import { util } from '@/utils/common.js';
|
||||||
import defualtData from '@/pages/other/air-tickets/commom/defualt.json';
|
import defualtData from '@/pages/other/air-tickets/commom/defualt.json';
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_airTickets_fliggy" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_other_airTickets_fliggy')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -298,11 +299,11 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
||||||
import { ref, onMounted, reactive, toRefs, computed } from 'vue';
|
import { onMounted, reactive, toRefs, computed } from 'vue';
|
||||||
import { onShow } from '@dcloudio/uni-app';
|
import { onShow } from '@dcloudio/uni-app';
|
||||||
import defualtData from '@/pages/other/air-tickets/commom/defualt.json';
|
import defualtData from '@/pages/other/air-tickets/commom/defualt.json';
|
||||||
import airlineJson from '@/static/json/air-line.json';
|
import airlineJson from '@/static/json/air-line.json';
|
||||||
import { util, numberUtil, stringUtil } from '@/utils/common.js';
|
import { util, stringUtil } from '@/utils/common.js';
|
||||||
|
|
||||||
const buttonGroup = [{
|
const buttonGroup = [{
|
||||||
name: "编辑机票信息",
|
name: "编辑机票信息",
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_airTickets_qunar" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_other_airTickets_qunar')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -375,7 +376,7 @@ const data = reactive({
|
||||||
ticketData: JSON.parse(JSON.stringify(defualtData))
|
ticketData: JSON.parse(JSON.stringify(defualtData))
|
||||||
})
|
})
|
||||||
|
|
||||||
let { navBar, ticketData } = toRefs(data);
|
let { ticketData } = toRefs(data);
|
||||||
|
|
||||||
// 计算截止办理值机时间
|
// 计算截止办理值机时间
|
||||||
const ofCheckInTime = computed(() => {
|
const ofCheckInTime = computed(() => {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_tickets_12306" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_tickets_12306')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -24,8 +24,8 @@
|
||||||
<view class="order-info-box">
|
<view class="order-info-box">
|
||||||
<view class="order-number-row">
|
<view class="order-number-row">
|
||||||
<text class="order-label">订单号:{{ ticketsInfo.orderInfo.orderNo }}</text>
|
<text class="order-label">订单号:{{ ticketsInfo.orderInfo.orderNo }}</text>
|
||||||
<image class="copy-btn" @click="copyOrderNo"
|
<image class="copy-btn" src="/static/image/other/train-tickets/12306-tickets/copy-button.png">
|
||||||
src="/static/image/other/train-tickets/12306-tickets/copy-button.png"></image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<text class="order-time">下单时间:{{ ticketsInfo.orderInfo.orderTime }}</text>
|
<text class="order-time">下单时间:{{ ticketsInfo.orderInfo.orderTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -201,8 +201,7 @@ import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
toRefs,
|
toRefs,
|
||||||
computed,
|
computed
|
||||||
getCurrentInstance
|
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
onLoad,
|
onLoad,
|
||||||
|
|
@ -210,11 +209,6 @@ import {
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
|
|
||||||
import { util } from '@/utils/common.js';
|
import { util } from '@/utils/common.js';
|
||||||
const {
|
|
||||||
appContext,
|
|
||||||
proxy
|
|
||||||
} = getCurrentInstance();
|
|
||||||
|
|
||||||
const buttonGroup = [{
|
const buttonGroup = [{
|
||||||
name: "编辑车票信息",
|
name: "编辑车票信息",
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|
@ -226,24 +220,7 @@ function goEdit() {
|
||||||
util.goPage('/pages/other/train-tickets/edit/edit')
|
util.goPage('/pages/other/train-tickets/edit/edit')
|
||||||
}
|
}
|
||||||
|
|
||||||
const ticketType = [
|
|
||||||
{
|
|
||||||
label: '成人票',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '儿童票',
|
|
||||||
value: '2'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '学生票',
|
|
||||||
value: '3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '残疾军人票',
|
|
||||||
value: '4'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
const statusBarHeight = ref(20);
|
const statusBarHeight = ref(20);
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
|
|
@ -385,22 +362,6 @@ onShow(() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const goBack = () => {
|
|
||||||
uni.navigateBack();
|
|
||||||
};
|
|
||||||
|
|
||||||
const copyOrderNo = () => {
|
|
||||||
uni.setClipboardData({
|
|
||||||
data: orderInfo.value.orderNo,
|
|
||||||
success: () => {
|
|
||||||
uni.showToast({
|
|
||||||
title: '复制成功',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleAction = (action) => {
|
const handleAction = (action) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: `点击了${action}`,
|
title: `点击了${action}`,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_tickets_ctrip" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_tickets_ctrip')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -284,7 +284,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
||||||
import { reactive, ref, computed, toRefs } from 'vue';
|
import { reactive, toRefs } from 'vue';
|
||||||
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
||||||
import { util } from '@/utils/common.js';
|
import { util } from '@/utils/common.js';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
|
<!-- 水印 -->
|
||||||
|
<view v-if="$isVip()">
|
||||||
|
<watermark dark="light" source="uni_alipay_other_tickets_fliggy" />
|
||||||
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_other_tickets_fliggy')">
|
||||||
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
|
</liu-drag-button>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
|
|
||||||
<view class="codefun-flex-col section">
|
<view class="codefun-flex-col section">
|
||||||
<NavBar title="订单详情" :bgColor="data.navBar.bgColor" :buttonGroup="buttonGroup"
|
<NavBar title="订单详情" :bgColor="data.navBar.bgColor" :buttonGroup="buttonGroup"
|
||||||
@button-click="util.clickTitlePopupButton" tipLayerType="fliggy-train-tickets-tip" isTipLayer
|
@button-click="util.clickTitlePopupButton" tipLayerType="fliggy-train-tickets-tip" isTipLayer
|
||||||
|
|
@ -103,7 +110,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="codefun-flex-col group">
|
<view class="codefun-flex-col group">
|
||||||
<template v-for="item in ticketsInfo.passengerList">
|
<template v-for="(item, index) in ticketsInfo.passengerList" :key="index">
|
||||||
<view class="divider"></view>
|
<view class="divider"></view>
|
||||||
<view class="codefun-flex-col group_11">
|
<view class="codefun-flex-col group_11">
|
||||||
<view class="codefun-flex-row codefun-justify-between codefun-items-center">
|
<view class="codefun-flex-row codefun-justify-between codefun-items-center">
|
||||||
|
|
@ -232,8 +239,8 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
||||||
import { reactive, ref, computed, toRefs } from 'vue';
|
import { reactive, toRefs } from 'vue';
|
||||||
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
import { onShow } from '@dcloudio/uni-app';
|
||||||
import { util, stringUtil } from '@/utils/common.js';
|
import { util, stringUtil } from '@/utils/common.js';
|
||||||
|
|
||||||
const buttonGroup = [{
|
const buttonGroup = [{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_tickets_qunar" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_tickets_qunar')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -143,10 +143,9 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
import NavBar from '@/components/nav-bar/nav-bar.vue';
|
||||||
import Box from './components/box.vue';
|
import Box from './components/box.vue';
|
||||||
import { reactive, ref, computed, toRefs } from 'vue';
|
import { reactive, toRefs } from 'vue';
|
||||||
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
import { onShow, onPageScroll } from '@dcloudio/uni-app';
|
||||||
import { util, stringUtil } from '@/utils/common.js';
|
import { util, stringUtil } from '@/utils/common.js';
|
||||||
import CtripTrainTickets from '../ctrip-train-tickets/ctrip-train-tickets.vue';
|
|
||||||
|
|
||||||
const buttonGroup = [{
|
const buttonGroup = [{
|
||||||
name: "编辑机票信息",
|
name: "编辑机票信息",
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_other_groupChat" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_groupChat')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -146,11 +146,10 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from "@/components/nav-bar/nav-bar.vue"
|
import NavBar from "@/components/nav-bar/nav-bar.vue"
|
||||||
|
|
||||||
import { ref, toRefs, onMounted, onUnmounted, reactive, computed, getCurrentInstance } from 'vue'
|
import { toRefs, onMounted, onUnmounted, reactive, computed, getCurrentInstance } from 'vue'
|
||||||
import { onLoad, onShow, onHide } from '@dcloudio/uni-app'
|
import { onLoad, onShow, onHide } from '@dcloudio/uni-app'
|
||||||
import { util } from '@/utils/common.js'
|
import { util } from '@/utils/common.js'
|
||||||
const {
|
const {
|
||||||
appContext,
|
|
||||||
proxy
|
proxy
|
||||||
} = getCurrentInstance();
|
} = getCurrentInstance();
|
||||||
|
|
||||||
|
|
@ -685,7 +684,7 @@ const removeFile = (filePath) => {
|
||||||
// 尝试使用 uni.removeSavedFile (主要针对 uni.saveFile 保存的文件)
|
// 尝试使用 uni.removeSavedFile (主要针对 uni.saveFile 保存的文件)
|
||||||
uni.removeSavedFile({
|
uni.removeSavedFile({
|
||||||
filePath: filePath,
|
filePath: filePath,
|
||||||
success: (res) => {
|
success: () => {
|
||||||
console.log('✅ uni.removeSavedFile 删除成功:', filePath)
|
console.log('✅ uni.removeSavedFile 删除成功:', filePath)
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
|
@ -722,7 +721,7 @@ const handleTouchStart = (event, index) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 触摸移动 - 实时更新位置偏移
|
// 触摸移动 - 实时更新位置偏移
|
||||||
const handleTouchMove = (event, index) => {
|
const handleTouchMove = (event) => {
|
||||||
if (!data.dragState.isDragging) return
|
if (!data.dragState.isDragging) return
|
||||||
|
|
||||||
const touch = event.touches[0]
|
const touch = event.touches[0]
|
||||||
|
|
@ -735,7 +734,7 @@ const handleTouchMove = (event, index) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 触摸结束 - 完成拖动并保存
|
// 触摸结束 - 完成拖动并保存
|
||||||
const handleTouchEnd = (event, index) => {
|
const handleTouchEnd = () => {
|
||||||
// 清除长按定时器
|
// 清除长按定时器
|
||||||
if (data.dragState.longPressTimer) {
|
if (data.dragState.longPressTimer) {
|
||||||
clearTimeout(data.dragState.longPressTimer)
|
clearTimeout(data.dragState.longPressTimer)
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,8 @@
|
||||||
|
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_shopping_jingdong" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_shopping_jingdong')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -353,7 +353,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="delivery-info" v-if="isOrderInfoExpanded">
|
<view class="delivery-info" v-if="isOrderInfoExpanded">
|
||||||
<view class="item flex-justify-between" v-for="(item, index) in order.sendType" :key="index" @click="onClickItemInfo(item)">
|
<view class="item flex-justify-between" v-for="(item, index) in order.sendType" :key="index"
|
||||||
|
@click="onClickItemInfo(item)">
|
||||||
<text class="label shrink-0" style="color: #87868E;font-size: 26rpx;">{{ item.label }}</text>
|
<text class="label shrink-0" style="color: #87868E;font-size: 26rpx;">{{ item.label }}</text>
|
||||||
<view class="flex-1 flex-align-center"
|
<view class="flex-1 flex-align-center"
|
||||||
style="justify-content: flex-end;width: 300rpx;overflow-x: auto;margin-left: 20rpx;">
|
style="justify-content: flex-end;width: 300rpx;overflow-x: auto;margin-left: 20rpx;">
|
||||||
|
|
@ -471,8 +472,9 @@
|
||||||
<view class="placeholder"></view>
|
<view class="placeholder"></view>
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_shopping_jingdong_shoppingDetail" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_shopping_jingdong_shoppingDetail')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -468,8 +468,9 @@
|
||||||
|
|
||||||
<!-- 水印 -->
|
<!-- 水印 -->
|
||||||
<view v-if="$isVip()">
|
<view v-if="$isVip()">
|
||||||
<watermark dark="light" />
|
<watermark dark="light" source="uni_alipay_shopping_jingdong_waimaiDetail" />
|
||||||
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark')">
|
<liu-drag-button :canDocking="false"
|
||||||
|
@clickBtn="$goRechargePage('watermark', 'uni_alipay_shopping_jingdong_waimaiDetail')">
|
||||||
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
</liu-drag-button>
|
</liu-drag-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 842 KiB After Width: | Height: | Size: 288 KiB |
Loading…
Reference in New Issue