| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <template>
- <view>
- <view class="records">
- <view class="records_itemtf" v-if="dataTF">
- 暂无更新记录
- </view>
- <view class="records_item" v-for="item,index in recordsdata" :key="index" @click="showtf(index)" v-else="dataTF">
- <view class="records_item_top">
- <view class="item_left">
- <p>版本{{item.app_num}}主要更新</p>
- <p>{{item.addtime|timeFormat()}}</p>
- </view>
- <view class="item_right">
- <u-icon :name="indexnum == index?'arrow-down':'arrow-right'"></u-icon>
- </view>
- </view>
- <view class="records_item_bot" v-if="indexnum == index">
- <p v-for="items,index in item.app_desc" :key="index">{{index+1+'、'+items}}</p>
- </view>
- </view>
- </view>
- </view>
- </template>
- <style lang="scss">
- page {
- background-color: #f1f1f1;
- }
- .records{
- margin-top: 20rpx;
- .records_itemtf{
- font-size: 30rpx;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- text-align: center;
- }
- .records_item{
- margin-bottom: 10rpx;
- .records_item_top{
- width: 100%;
- background-color: #FFFFFF;
- height: 110rpx;
- padding: 10rpx 28rpx;
- display: flex;
- justify-content: space-between;
- box-sizing: border-box;
- .item_left{
- p{
- color: #474747;
- }
- p:first-child{
- font-size: 32rpx;
- margin-bottom: 10rpx;
- }
- p:last-child{
- font-size: 26rpx;
- }
- }
- .item_right{
- height: 110rpx;
- line-height: 100rpx;
- }
- }
- .records_item_bot{
- padding: 10rpx 28rpx 0;
- box-sizing: border-box;
- p{
- margin-bottom: 6rpx;
- }
- }
- }
- }
- </style>
- <script>
- export default {
- data() {
- return {
- recordsdata: [],
- indexnum:0,
- dataTF:false
- }
- },
- methods: {
- async getEquipList() {
- const res = await this.$myRequest({
- url: '/api/api_gateway?method=home.homes.app_version_record'
- })
- console.log(res)
- this.recordsdata = res
- if(res.length == 0){
- this.dataTF = true
- }else{
- this.dataTF = false
- }
- },
- showtf(index){
- this.indexnum = index
- console.log(this.indexnum)
- }
- },
- onLoad() {
- this.getEquipList()
- }
- }
- </script>
|