企微应用配置

This commit is contained in:
liuye
2022-09-01 17:45:50 +08:00
parent d5f4e02148
commit 87f5fd32ad

View File

@@ -8,12 +8,10 @@
<div class="app-list"> <div class="app-list">
<div class="item" v-for="(item, index) in appInfo.wxApplicationList" :key="index" @click="linkTo(item.accessPath)"> <div class="item" v-for="(item, index) in appInfo.wxApplicationList" :key="index" @click="linkTo(item.accessPath)">
<img :src="item.icon" alt="" class="icon"> <img :src="item.icon" alt="" class="icon">
<!-- <div class="icon" :style="`backgroundImage: url(${item.icon});`"></div> -->
<p>{{item.title}}</p> <p>{{item.title}}</p>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
</template> </template>
@@ -24,17 +22,13 @@ export default {
appName: '企微应用配置', appName: '企微应用配置',
data() { data() {
return { return {
label: '',
appList: [],
headerBg: '',
id: '', id: '',
appInfo: {}, appInfo: {},
} }
}, },
onLoad(options) { onLoad(options) {
// this.id = options.id this.id = options.id
this.id = '7a4701d5641543cca4419488db368d3e' // this.id = '7a4701d5641543cca4419488db368d3e'
this.getAppInfo() this.getAppInfo()
}, },
methods: { methods: {
@@ -46,7 +40,6 @@ export default {
}); });
}, },
linkTo(url) { linkTo(url) {
console.log(url)
uni.navigateTo({url}) uni.navigateTo({url})
} }
} }