Commit 72496606 by 前端

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents f25173e1 a931df4a
......@@ -5,10 +5,12 @@
</view>
<view class="content">
<view class="title">问界·商城延保价格明细</view>
<tabs
:list="views"
@tabclick="changeView"
/>
<template v-if="views.length">
<tabs
:list="views"
@tabclick="changeView"
/>
</template>
<view class="canvas-box">
<template v-for="(i,index) in views">
<view
......@@ -79,5 +81,10 @@ export default {
text-align: center;
}
}
.canvas-box {
view {
animation: show-view 0.25s forwards;
}
}
}
</style>
\ No newline at end of file
......@@ -5,10 +5,12 @@
</view>
<view class="content">
<view class="title">问界·汽车产品三包凭证</view>
<tabs
:list="views"
@tabclick="changeView"
/>
<template v-if="views.length">
<tabs
:list="views"
@tabclick="changeView"
/>
</template>
<view class="canvas-box">
<template v-for="(i,index) in views">
<view
......@@ -79,5 +81,10 @@ export default {
text-align: center;
}
}
.canvas-box {
view {
animation: show-view 0.25s forwards;
}
}
}
</style>
\ No newline at end of file
......@@ -5,7 +5,9 @@
</view>
<view class="content">
<view class="title">历史成交记录</view>
<Tabs :list="list" @tabclick="tabclick" />
<template v-if="list.length && shopMerchantId">
<Tabs :list="list" @tabclick="tabclick" />
</template>
<view class="card-list">
<!-- <uni-grid :column="3" :show-border="false" :square="false">
<uni-grid-item v-for="item in historyList" :key="item.id"> -->
......@@ -48,6 +50,7 @@ import Tabs from './Tabs.vue';
export default {
name: 'Media_6',
props: {
show:Boolean
},
components: {Tabs},
data () {
......@@ -77,14 +80,25 @@ export default {
isEnd: false
}
},
watch:{
show(n){
if(n) this.init()
}
},
mounted () {
const { shopMerchantId } = uni.$storage.get("userInfo");
this.shopMerchantId = shopMerchantId
this.getQuotationList();
if(this.show) this.init()
// const { shopMerchantId } = uni.$storage.get("userInfo");
// this.shopMerchantId = shopMerchantId
// this.getQuotationList();
},
methods: {
init(){
const { shopMerchantId } = uni.$storage.get("userInfo");
this.shopMerchantId = shopMerchantId
this.getQuotationList();
},
async getQuotationList() {
const { goodsName, shopMerchantId, currentPage } = this
this.currentPage++
......
......@@ -3,12 +3,14 @@
<template v-for="(item,index) in list">
<view
:class="['tab',{active:index == tabIndex}]"
:ref="`tab-${index}`"
:key="index"
@click="tabClick(index)"
>
{{item.tabName}}
</view>
</template>
<view class="border" :style="borderLeft"></view>
</view>
</template>
......@@ -20,15 +22,25 @@ export default {
},
data () {
return {
tabIndex: 0
tabIndex: 0,
borderLeft: 'display: none;'
}
},
mounted () {
this.setBorderLeft()
},
methods: {
tabClick (index) {
this.tabIndex = index
this.$emit('tabclick', index)
this.setBorderLeft()
},
setBorderLeft(){
let {tabIndex} = this
this.borderLeft = `left:${this.$refs[`tab-${tabIndex}`][0].$el.offsetLeft}px;`
setTimeout(()=>{
this.borderLeft += `display:block;`
},100)
}
}
}
......@@ -42,11 +54,12 @@ export default {
width: 100%;
gap: 0 32rpx;
margin-bottom: 32rpx;
position: relative;
.tab {
width: 384rpx;
height: 80rpx;
background: #ffffff;
border: 2rpx solid #dce0e6;
// border: 2rpx solid #dce0e6;
font-size: 32rpx;
color: #292d33;
box-sizing: border-box;
......@@ -55,9 +68,20 @@ export default {
justify-content: center;
}
.active {
border: 4rpx solid #292d33;
// border: 4rpx solid #292d33;
font-weight: 500;
color: #292d33;
}
.border{
width: 384rpx;
height: 80rpx;
border: 4rpx solid #292d33;
box-sizing: border-box;
position: absolute;
left: 0;
top: 0;
transition: all .15s;
}
}
</style>
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 10:42:48
* @LastEditTime: 2024-04-10 11:29:37
-->
<template>
<view class="detail-box" @click="handleTouchStart()">
......@@ -29,7 +29,7 @@
<media_5 :views="media[5]" :penSwitch="type != 'preview' && drawStatus" />
</view>
<view :class="['view', { showView: id == 6 }]">
<media_6 ref="history" :views="media[id]" />
<media_6 ref="history" :show="id == 6" />
</view>
<pay-pop ref="pay"></pay-pop>
<template v-if="type != 'preview'">
......@@ -124,6 +124,7 @@ export default {
},
async getFindSoureDetail(id) {
try {
if (id == 6) return;
if (!this.media[id].length)
this.media[id] =
(await uni.$api.commonApi.getFindSoureDetail({ id })) || [];
......@@ -182,7 +183,7 @@ export default {
.showView {
z-index: 2;
display: block;
animation: show-view 0.15s forwards;
animation: show-view 0.25s forwards;
}
.pen-box {
position: fixed;
......@@ -194,12 +195,4 @@ export default {
z-index: 3;
box-shadow: 0 4px 12px 0 #00000033;
}
@keyframes show-view {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
......@@ -2,3 +2,13 @@
* 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
* uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
*/
@keyframes show-view{
0%{
opacity: 0;
transform: scale(0);
}
100%{
opacity: 1;
transform: scale(1);
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!