提交小程序
This commit is contained in:
parent
e23a2618f6
commit
13adeedf5a
|
@ -1,3 +1,3 @@
|
||||||
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
||||||
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
||||||
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"
|
TARO_APP_BASE_API="http://172.10.10.93:8765"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 266 KiB |
Binary file not shown.
After Width: | Height: | Size: 285 KiB |
|
@ -2,8 +2,8 @@
|
||||||
<view>
|
<view>
|
||||||
<view class="swiperDemo">
|
<view class="swiperDemo">
|
||||||
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
||||||
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 180px">
|
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 200px">
|
||||||
<image src="@/assets/images/01.png" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
<image :src="item.url" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
||||||
</nut-swiper-item>
|
</nut-swiper-item>
|
||||||
</nut-swiper>
|
</nut-swiper>
|
||||||
</view>
|
</view>
|
||||||
|
@ -29,8 +29,10 @@ import {ref} from 'vue'
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import icon from '@/assets/images/project.png'
|
import icon from '@/assets/images/project.png'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
import item02 from '@/assets/index.png'
|
||||||
|
import item03 from '@/assets/index2.png'
|
||||||
|
|
||||||
const list = ref(['https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg',])
|
const list = ref([{url:item02},{url:item03}])
|
||||||
const swiperRef = ref() //轮播图
|
const swiperRef = ref() //轮播图
|
||||||
const subModuleList = ref([
|
const subModuleList = ref([
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<view>
|
<view>
|
||||||
<view class="swiperDemo">
|
<view class="swiperDemo">
|
||||||
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
<nut-swiper ref="swiperRef" pagination-visible pagination-color="#e53e31" :auto-play="3000" :init-page="0">
|
||||||
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 180px">
|
<nut-swiper-item v-for="(item, index) in list" :key="index" style="height: 200px">
|
||||||
<image :src="item" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
<image :src="item.url" alt="" style="height: 100%; width: 100%" draggable="false"/>
|
||||||
</nut-swiper-item>
|
</nut-swiper-item>
|
||||||
</nut-swiper>
|
</nut-swiper>
|
||||||
</view>
|
</view>
|
||||||
|
@ -29,8 +29,10 @@ import {ref} from 'vue'
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import icon from '@/assets/images/project.png'
|
import icon from '@/assets/images/project.png'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
import item02 from '@/assets/index.png'
|
||||||
|
import item03 from '@/assets/index2.png'
|
||||||
|
|
||||||
const list = ref(['/assets/images/01.png',])
|
const list = ref([{url:item02},{url:item03}])
|
||||||
const swiperRef = ref() //轮播图
|
const swiperRef = ref() //轮播图
|
||||||
const subModuleList = ref([
|
const subModuleList = ref([
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<view class="tips-text">
|
<view class="tips-text">
|
||||||
<view style="font-size: 15px;">名字</view>
|
<view style="font-size: 15px;">名字</view>
|
||||||
<view style="font-size: 12px;">
|
<view style="font-size: 12px;">
|
||||||
<text style="margin-right: 5px">教育部门 </text>
|
<text style="margin-right: 5px">保安部门 </text>
|
||||||
<text>未选择学校</text>
|
<text>未选择单位</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -30,6 +30,7 @@ class CustomRequest {
|
||||||
BASE_API: string = process.env.TARO_APP_BASE_API;
|
BASE_API: string = process.env.TARO_APP_BASE_API;
|
||||||
|
|
||||||
private request<T>(url: string, method: keyof Taro.request.Method, options: ApiOptions, params?: object,): Promise<JsonResult<T>> {
|
private request<T>(url: string, method: keyof Taro.request.Method, options: ApiOptions, params?: object,): Promise<JsonResult<T>> {
|
||||||
|
// console.log(this.BASE_API,'0000000')
|
||||||
return new Promise<JsonResult<T>>((resolve, reject) => {
|
return new Promise<JsonResult<T>>((resolve, reject) => {
|
||||||
if (options.loading) {
|
if (options.loading) {
|
||||||
Taro.showLoading({
|
Taro.showLoading({
|
||||||
|
|
Loading…
Reference in New Issue