<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 一、基于平臺 我們把下載的平臺最新版本的子工程mobile及所有目錄下文件全部拷貝到VSCode的workspace中去; ![](https://img.kancloud.cn/3f/87/3f878bc9eab29003c631e13fee795e6d_1410x597.png) VSCode中,打開目錄; ![](https://img.kancloud.cn/a7/8b/a78b35a47ab57e76b376f8e8c6641b5d_1920x1039.png) ![](https://img.kancloud.cn/73/29/7329db31565b1a5d0748fbeba093db88_1920x1030.png) 然后安裝依賴; ![](https://img.kancloud.cn/9b/54/9b542882103e965439f78cce6d0c15b2_1920x1030.png) 修改后端地址: ![](https://img.kancloud.cn/27/b2/27b2d664278fbe97a24fece1a5b79115_1920x1030.png) 運行; ![](https://img.kancloud.cn/43/1d/431df74ca7a3cad6fa853833f00446a2_1920x1030.png) 效果: ![](https://img.kancloud.cn/ab/fd/abfd2a1e4ce900992386fb2886498cbe_400x715.png) ![](https://img.kancloud.cn/8c/7a/8c7a7fe84e203aadf501b32e3a285262_396x712.png) ## 二、生成代碼 我們打開一個生成的前端代碼中mobile版本的目錄,可以看到,有兩個子目錄,其中pages子目錄里面是頁面,而config子目錄里面是配置文件; ![](https://img.kancloud.cn/ad/4e/ad4e18c172e3952fbb1b492b39017ff7_1268x585.png) ### **頁面** 將生成的web/mobile/pages目錄下生成文件,拷貝到工程目錄下views/business之下(生成的文件夾必須放到business下,如果當前工程還沒有創建該文件夾請手動添加); ![](https://img.kancloud.cn/70/f7/70f7b78a5fdf06b4f2f8ab2123bcbaea_1092x519.png) ### **路由** 將生成的web/mobile/config目錄下,里面以`.router.js`結尾的文件,就是生成的模塊路由文件;,復制需要的片段到指定文件**src/router/index.js**中; ![](https://img.kancloud.cn/16/b9/16b9c61fd52c763ccc95eaa85180fa3a_1920x1030.png) ## 三、輔助設置 在**src>views>home>childComps>homeList.vue**中**ullistdata**中,增加新增模塊的路由地址; ``` { imgurl: require('@/assets/navHome/3.png'), title: '示例列表', url: '/listCardDataCollect', }, ``` ![](https://img.kancloud.cn/04/a5/04a53b193559e02bfa24ad13dc94077f_1920x1030.png) 在**src>views>home>childComps>allNav.vue**中**homeList**,增加新增模塊的路由地址; ``` { path: '/listCardDataCollect', title: '示例列表', imgUrl: require('@/assets/navHome/3.png'), }, ``` ![](https://img.kancloud.cn/fa/63/fa6341556291277f38ea03af48aabcc3_1920x1030.png) >[danger] 必須注意,配置到導航的URL地址,其對應的api需要用GET模式; ## 四、運行測試 在VSCode中啟動代碼服務; 在終端中,切換到當前工程的根目錄,然后敲命令: ``` npm run serve ``` 啟動就緒后,根據提示的地址,訪問前端首頁,登陸進去后; ![](https://img.kancloud.cn/67/f2/67f209b132d20efe1f987e5e912a9b23_398x715.png) 看到了剛才新增的入口圖標了,點擊圖標,基于定義的路由,進入新開發的實例了; ![](https://img.kancloud.cn/cf/09/cf0981b23765b4beca79ee2629fe69f0_393x714.png) 新增: ![](https://img.kancloud.cn/95/cd/95cd86dfb9f971e1ca6f0ce3270d7f6d_399x714.png) 提交后,看看數據庫: ![](https://img.kancloud.cn/15/fc/15fc5e9c0aac25ed3856b70d85ba617a_1414x213.png) 發現數據庫中,果然已經多了一條數據了,說明代碼運行成功了; ## 五、總結 從上面的過程,我們可以得到這個結論:基于統一技術平臺的項目開發,前端的移動端開發工作量也是集中在根據業務需要來精細化微調代碼;
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看