Browse Source

产权交易首页名字

rongxin_prod
庞东旭 2 years ago
parent
commit
c29b3a0013
2 changed files with 15 additions and 3 deletions
  1. +8
    -0
      src/api/index.js
  2. +7
    -3
      src/views/index.vue

+ 8
- 0
src/api/index.js View File

@@ -16,3 +16,11 @@ export function newDetails(id) {
method: 'get',
})
}

//新闻详情
export function websiteConfig() {
return request({
url: '/transaction/website/config',
method: 'get',
})
}

+ 7
- 3
src/views/index.vue View File

@@ -4,7 +4,7 @@
<van-col span="2">
<van-image src="../../static/images/index/logo.png" />
</van-col>
<van-col span="22" style="line-height: 29px;font-size: 20px;">农村产权交易服务平台</van-col>
<van-col span="22" style="line-height: 29px;font-size: 20px;">{{titleHead}}</van-col>
</van-row>
<van-swipe class="my-swipe" :autoplay="3000" height="180" indicator-color="white" :show-indicators="false">
<van-swipe-item v-for="(item,index) in bannerList" :key="index">
@@ -68,7 +68,7 @@
</div>
</template>
<script>
import { newList } from "@/api/index";
import { newList,websiteConfig } from "@/api/index";
export default {
name: "index",
data() {
@@ -87,11 +87,15 @@ export default {
//新闻集合
newList:[],
//轮播图集合
bannerList:''
bannerList:'',
titleHead:'农村产权交易服务平台'
};
},
created() {
//this.getList();
websiteConfig().then(response => {
this.titleHead = response.data[0].configValue;
});
this.getBanner();
},
methods: {


Loading…
Cancel
Save