uniapp-使用心得

实践是知识的母亲,知识是生活的明灯。这篇文章主要讲述uniapp-使用心得相关的知识,希望能为你提供帮助。
 
https://ext.dcloud.net.cn/publisher?id=78736
------------------------------------------------------------
项目配置

main.js

import sign from ‘./pages/home/sign.vue‘ Vue.component(‘sign‘,sign)

pages.json


 {
"path": "pages/home/sign",
"style": {}
  },
 
【index】
< sign v-if="PageCur==‘sign‘"> < /sign>
 
【uniapp-使用心得】< view class="action" @click="NavChange" data-cur="sign">
< view class=‘cuIcon-cu-image‘>
< image :src="https://www.songbingjia.com/android/‘/static/tabbar/basics‘ + [PageCur==‘sign‘?‘_cur‘:‘‘] + ‘.png‘"> < /image>
< /view>
< view :class="PageCur==‘sign‘?‘text-green‘:‘text-gray‘"> 元素< /view>
< /view>
 
< template name="sign">
< view>
< cu-custom bgColor="bg-gradual-red" :isBack="true">
< !-- < block slot="backText"> 返回< /block> -->
< block slot="content"> 图标< /block>
< /cu-custom>
sign
< /view>
< /template>
 
 
------------------------------------------------------------
1.
 

    推荐阅读