对接手机端

This commit is contained in:
范强强
2023-06-07 15:24:44 +08:00
parent 7ce6402428
commit 38ffb91ffc
2 changed files with 36 additions and 10 deletions
@@ -9,11 +9,11 @@
<div class="header-right"> <div class="header-right">
<div class="header-right-text"> <div class="header-right-text">
<img src="~@/assets/icon_link.png" alt=""> <img src="~@/assets/icon_link.png" alt="">
<span>订阅</span> <span>{{$t('subscribe')}}</span>
</div> </div>
<div class="header-right-text"> <div class="header-right-text">
<img src="~@/assets/icon_star.png" alt=""> <img src="~@/assets/icon_star.png" alt="">
<span>收藏</span> <span>{{$t('Collection')}}</span>
</div> </div>
</div> </div>
<van-collapse class="collapse" v-model="activeNames"> <van-collapse class="collapse" v-model="activeNames">
@@ -67,6 +67,9 @@
</van-list> </van-list>
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
<van-overlay :show="show">
<van-loading type="spinner">{{textLoading}}</van-loading>
</van-overlay>
</div> </div>
</template> </template>
@@ -85,12 +88,14 @@
getPage: '/document/phasedImplementationDetailsEO/page', getPage: '/document/phasedImplementationDetailsEO/page',
getMenuList: 'document/bussDocumentLibraryEO/getMenuList' getMenuList: 'document/bussDocumentLibraryEO/getMenuList'
}, },
show:false,
serial_number: '', serial_number: '',
detailList: [], detailList: [],
loading: false, loading: false,
finished: false, finished: false,
pageNo: 0, pageNo: 0,
dataGrad: [] dataGrad: [],
textLoading:this.$t('loading')
} }
}, },
@@ -106,6 +111,7 @@
this.$router.go(-1) this.$router.go(-1)
}, },
getTitle(callback) { getTitle(callback) {
this.show = true
let _id = this.$route.query.id || '93280f73b02148e3b34f1655fe3a6ade' let _id = this.$route.query.id || '93280f73b02148e3b34f1655fe3a6ade'
getAction(this.url.getTitle, { id: _id }).then((res) => { getAction(this.url.getTitle, { id: _id }).then((res) => {
if (res.success) { if (res.success) {
@@ -121,6 +127,7 @@
getAction(this.url.getInfo, { id: _id }).then((res) => { getAction(this.url.getInfo, { id: _id }).then((res) => {
if (res.success) { if (res.success) {
this.detailList = res.result this.detailList = res.result
this.show = false
} else { } else {
this.detailList = [] this.detailList = []
} }
@@ -291,7 +298,7 @@
margin-left: 0.3rem; margin-left: 0.3rem;
font-size: 0.38rem; font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 500;
color: #040B29; color: #040B29;
word-break: break-all; word-break: break-all;
} }
@@ -364,4 +371,23 @@
color: #41475E; color: #41475E;
word-break: break-all; word-break: break-all;
} }
::v-deep .van-loading {
color: #fff;
font-size: 0.36rem;
}
::v-deep .van-loading__text {
color: #fff;
font-size: 0.46rem;
}
::v-deep .van-overlay {
z-index: 1001;
text-align: center;
line-height: 30;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>
@@ -162,7 +162,7 @@
accept="*" accept="*"
:after-read="upload" :after-read="upload"
class="uploader-button"> class="uploader-button">
<van-button icon="back-top" type="primary">上传</van-button> <van-button icon="back-top" type="primary">{{$t('upload1')}}</van-button>
</van-uploader> </van-uploader>
</template> </template>
</van-field> </van-field>
@@ -178,7 +178,7 @@
round round
block block
type="info" type="info"
native-type="submit">提交 native-type="submit">{{$t('submit')}}
</van-button> </van-button>
</van-form> </van-form>
</van-collapse-item> </van-collapse-item>
@@ -541,7 +541,7 @@
.content-box-type-text-one { .content-box-type-text-one {
font-size: 0.38rem; font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 500;
color: #01A0AC; color: #01A0AC;
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
word-break: break-all; word-break: break-all;
@@ -551,7 +551,7 @@
display: inline-block; display: inline-block;
font-size: 0.38rem; font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 500;
color: #040B29; color: #040B29;
word-break: break-all; word-break: break-all;
} }
@@ -561,7 +561,7 @@
margin-left: 0.3rem; margin-left: 0.3rem;
font-size: 0.38rem; font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 500;
color: #040B29; color: #040B29;
word-break: break-all; word-break: break-all;
} }
@@ -630,7 +630,7 @@
.van-desgin { .van-desgin {
font-size: 0.38rem; font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 500; font-weight: 400;
color: #41475E; color: #41475E;
margin-top: 0.3rem; margin-top: 0.3rem;
word-break: break-all; word-break: break-all;