shuishen
2022-02-19 de32c7451277b2f23f5567745e858611202a7706
部分更改
3 files modified
70 ■■■■ changed files
manifest.json patch | view | raw | blame | history
pages/grabOrders/grabOrders.vue 66 ●●●● patch | view | raw | blame | history
pages/registerUser/registerUser.vue 4 ●●●● patch | view | raw | blame | history
manifest.json
pages/grabOrders/grabOrders.vue
@@ -1,47 +1,19 @@
<template>
  <view class="grabOrders">
    <view>
      <u-tabs-swiper
        ref="uTabs"
        :list="list"
        :current="current"
        @change="tabsChange"
        :is-scroll="false"
        swiperWidth="750"
      ></u-tabs-swiper>
            <u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" :is-scroll="false"
                swiperWidth="750"></u-tabs-swiper>
    </view>
    <!-- @animationfinish="animationfinish" -->
    <swiper
      :current="swiperCurrent"
      @transition="transition"
      @animationfinish="animationfinish"
      style="height: calc(100% - 40px); width: 100%"
    >
      <swiper-item
        class="swiper-item"
        v-for="(item, index) in list"
        :key="index"
        style="height: 100%; width: 100%"
      >
        <scroll-view
          scroll-y
          style="height: 100%; width: 100%"
          @scrolltolower="onreachBottom"
        >
          <page0
            :listData="leftdata"
            :swiperCurrent="0"
            v-if="item.name == '正在进行'"
            @openOnce="openOnce"
            @getOrders="getOrders"
          ></page0>
          <page1
            :listData="rightdata"
            :swiperCurrent="1"
            v-if="item.name == '可参与'"
            @openOnce="openOnce"
            @getOrders="getOrders"
          ></page1>
        <swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish"
            style="height: calc(100% - 40px); width: 100%">
            <swiper-item class="swiper-item" v-for="(item, index) in list" :key="index"
                style="height: 100%; width: 100%">
                <scroll-view scroll-y style="height: 100%; width: 100%" @scrolltolower="onreachBottom">
                    <page0 :listData="leftdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce"
                        @getOrders="getOrders"></page0>
                    <page1 :listData="rightdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce"
                        @getOrders="getOrders"></page1>
          <!-- <view class="a" v-if="item.name == '正在进行'">
                             {{leftdata}}
@@ -53,12 +25,7 @@
      </swiper-item>
    </swiper>
    <view>
      <u-modal
        v-model="showPopup"
        :content="appdetitle"
        :show-cancel-button="true"
        @confirm="confirms"
      ></u-modal>
            <u-modal v-model="showPopup" :content="appdetitle" :show-cancel-button="true" @confirm="confirms"></u-modal>
      <!-- <u-button @click="open">
                打开模态框
            </u-button> -->
@@ -75,8 +42,7 @@
  },
  data() {
    return {
      list: [
        {
                list: [{
          name: "正在进行",
        },
        {
@@ -111,14 +77,12 @@
    },
  },
  onLoad: function(options) {
      debugger
      console.log(options)
      if(options.detailData == 0){
          this.current = 0;
      }
      else{
            } else {
          this.current = 1;
            }
  },
  methods: {
    // tabs通知swiper切换
pages/registerUser/registerUser.vue
@@ -27,11 +27,11 @@
            </u-form-item>
        </u-form>
        <u-popup v-model="mapShow" mode="bottom" border-radius="14" height="60%" :closeable="true" open="getLocation">
        <div v-show="mapShow" style="position: fixed; bottom: 0; left: 0; width: 100%; height: 60%; z-index: 111; border-radius: 15px;">
            <map style="width: 100%; height: 100%;" :latitude="latitude" :longitude="longitude" :markers="marker"
                :scale="scale" :polyline="polyline">
            </map>
        </u-popup>
        </div>
        <u-button @click="mapShow = true">打开</u-button>