Pārlūkot izejas kodu

清除不必要页面及数据

sunran 3 gadi atpakaļ
vecāks
revīzija
9304234b9e

+ 0 - 48
src/views/zhulao/api/index.js

@@ -1,14 +1,5 @@
 import request from '@/utils/zprequest'
 var qs = require('qs')
-// 新闻
-export function getTags(data) {
-    return request({
-        url: '/weixin/getTags.jhtml',
-        method: 'get',
-        requestBase: 'VUE_APP_ZL_WSS',
-        data
-    })
-}
 // 资讯 首页 邹平
 export function getArticleList(params) {
     return request({
@@ -36,45 +27,6 @@ export function getColumnList(params) {
         params
     })
 }
-// 适老商品 一级分类
-export function getCategoryList(params) {
-    return request({
-        url: '/food/secure/applets/getCategory.jhtml',
-        method: 'get',
-        requestBase: 'VUE_APP_ZL_WSS_ZP_BT',
-        params
-    })
-}
-// 适老商品 二级分类
-export function getCategoryById(data) {
-    return request({
-        url: '/food/secure/applets/getCategoryById.jhtml',
-        method: 'post',
-        requestBase: 'VUE_APP_ZL_WSS_ZP_BT',
-        type: 'change',
-        data: qs.stringify(data)
-    })
-}
-// 适老商品
-export function getProductByCategoryId(data) {
-    return request({
-        url: '/food/secure/applets/getProductByCategoryId.jhtml',
-        method: 'post',
-        requestBase: 'VUE_APP_ZL_WSS_ZP_BT',
-        type: 'change',
-        data: qs.stringify(data)
-    })
-}
-// 商品详情
-export function getGroupDetail(data) {
-    return request({
-        url: '/food/secure/applets/getGroupDetail.jhtml',
-        method: 'post',
-        requestBase: 'VUE_APP_ZL_WSS_ZP_BT',
-        type: 'change',
-        data: qs.stringify(data)
-    })
-}
 // 健康评估
 export function userApi(params) {
     return request({

+ 3 - 35
src/views/zhulao/router/router.js

@@ -28,20 +28,12 @@ const routes = [{
         component: () => import('../views/classRoom/index.vue')
     },
     {
-        path: '/shoppingMall',
-        name: 'shoppingMall',
+        path: '/circleHome',
+        name: 'circleHome',
         meta: {
             keepAlive: true
         },
-        component: () => import('../views/shoppingMall/index.vue')
-    },
-    {
-              path: '/circleHome',
-             name: 'circleHome',
-              meta: {
-                keepAlive: true
-             },
-             component: () => import('../views/circle/index.vue')
+        component: () => import('../views/circle/index.vue')
     },
     {
         path: '/list',
@@ -59,30 +51,6 @@ const routes = [{
         },
         component: () => import('../views/circle/detail.vue')
     },
-    {
-        path: '/goodsDetails',
-        name: 'goodsDetails',
-        meta: {
-            keepAlive: false
-        },
-        component: () => import('../views/shoppingMall/details.vue')
-    },
-    {
-        path: '/submitOrder',
-        name: 'submitOrder',
-        meta: {
-            keepAlive: false
-        },
-        component: () => import('../views/shoppingMall/submitOrder.vue')
-    },
-    {
-        path: '/address',
-        name: 'address',
-        meta: {
-            keepAlive: false
-        },
-        component: () => import('../views/address/index.vue')
-    },
     {
         path: '/healthAssessmen',
         name: 'healthAssessmen',

+ 0 - 0
src/views/zhulao/views/address/add.vue


+ 0 - 14
src/views/zhulao/views/address/index.vue

@@ -1,14 +0,0 @@
-<template>
-  <div>
-
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {}
-  },
-}
-</script>
-<style lang="scss" scoped>
-</style>

+ 0 - 27
src/views/zhulao/views/login/index.vue

@@ -1,27 +0,0 @@
-<template>
-  <div>
-    助老1
-  </div>
-</template>
-<script>
-import { getTags, pageNews } from '../../api/index.js'
-export default {
-  data() {
-    return {}
-  },
-  created() {
-    this.pageNews()
-    this.getList()
-  },
-  methods: {
-    async getList() {
-      const res = await getTags({})
-      console.log(res)
-    },
-    async pageNews() {
-      const res = await pageNews({ pageNum: 1, pageSize: 10 })
-      console.log(res)
-    },
-  },
-}
-</script>

+ 0 - 185
src/views/zhulao/views/shoppingMall/components/goods.vue

@@ -1,185 +0,0 @@
-<template>
-  <div style="height:100%;">
-    <van-search shape="round" v-model="value" disabled placeholder="搜索" />
-    <div class="box">
-      <van-sidebar v-model="activeKey" @change="getCategoryById">
-        <van-sidebar-item v-for="item in firstCategory" :key="item.id" :title="item.name" />
-      </van-sidebar>
-      <div class="main">
-        <van-tabs v-model="active" type="line" :border="true" swipe-threshold='3' title-active-color="rgb(252, 56, 56)" @change="getProductByCategoryId">
-          <van-tab v-for="item in secondCategory" :key="item.id" :title="item.name">
-            <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-span="没有更多了" @load="onLoad">
-              <div class='goods-item' v-for="item in goodsList" :key="item.id" @click="$router.push({path:'/goodsDetails',query:{item:encodeURI(JSON.stringify(item))}})">
-                <img class='goods-pic' :src="item.url ? item.url : require('../../../assets/images/appIcon/appIcon_01.png')" />
-                <div class='goods-info'>
-                  <span class='goodsName'>{{item.name}}</span>
-                  <span class="soldNum">已售 {{item.sold}}</span>
-                  <span class='goodsPrice'>¥{{item.price}}/{{item.unit}}</span>
-                </div>
-              </div>
-            </van-list>
-          </van-tab>
-        </van-tabs>
-      </div>
-    </div>
-
-  </div>
-</template>
-<script>
-import {
-  getCategoryList,
-  getCategoryById,
-  getProductByCategoryId,
-} from '../../../api/index'
-
-export default {
-  data() {
-    return {
-      activeKey: 0,
-      firstCategory: [],
-      goodsList: [],
-      active: 0,
-      value: '',
-      info: [],
-      loading: false,
-      finished: false,
-      secondCategory: [],
-    }
-  },
-  created() {
-    this.getCategoryList()
-  },
-  methods: {
-    async getCategoryList() {
-      const res = await getCategoryList()
-      console.log(res, '123')
-      this.firstCategory = res.data.first
-      this.secondCategory = [
-        {
-          id: '',
-          name: '全部',
-        },
-        ...res.data.second,
-      ]
-      this.getCategoryById(0)
-    },
-    async getCategoryById() {
-      this.active = 0
-      const res = await getCategoryById({
-        id: this.firstCategory[this.activeKey].id,
-      })
-      this.secondCategory = [
-        {
-          id: '',
-          name: '全部',
-        },
-        ...res.data.second,
-      ]
-      this.getProductByCategoryId()
-    },
-    async getProductByCategoryId() {
-      this.loading = true
-      const res = await getProductByCategoryId({
-        topId: this.firstCategory[this.activeKey].id, //大类id
-        id: this.secondCategory[this.active].id, //二级分类id
-      })
-      this.goodsList = res.data.list
-      this.finished = true
-      this.loading = false
-    },
-    onLoad() {
-      //   console.log('触', this.loading)
-      //   this.loading = false
-      //   console.log('触1', this.loading)
-    },
-  },
-}
-</script>
-<style lang="scss" scoped>
-.box {
-  display: flex;
-  height: calc(100% - 100px);
-  ::v-deep .van-sidebar {
-    flex-shrink: 1;
-    width: 200px;
-    height: 100%;
-    background-color: #f5f5f5;
-    .van-sidebar-item__text {
-      font-size: 30px;
-    }
-  }
-}
-.main {
-  width: calc(100% - 200px);
-  height: 100%;
-  .van-tabs {
-    border-bottom: 0;
-    height: 100%;
-    text-align: left;
-    ::v-deep .van-tab {
-      flex: none;
-      padding: 0;
-      padding-right: 20px;
-    }
-    ::v-deep .van-tabs__nav--complete {
-      padding: 0;
-    }
-    ::v-deep .van-tabs__line {
-      height: 0;
-    }
-    ::v-deep .van-tabs__wrap {
-      height: 60px;
-      .van-tab__span {
-        font-size: 24px;
-      }
-    }
-    ::v-deep .van-tabs__content {
-      height: calc(100% - 60px);
-      overflow-y: auto;
-    }
-  }
-}
-.goods-item {
-  width: calc(100% - 20px);
-  height: 210px;
-  display: flex;
-  padding: 10px;
-  flex-direction: row;
-  align-items: center;
-  justify-content: flex-start;
-  border-bottom: 1px solid #f2f2f2;
-}
-
-.goods-pic {
-  width: 160px;
-  height: 160px;
-  flex-shrink: 0;
-}
-
-.goods-info {
-  display: flex;
-  flex-direction: column;
-  justify-content: space-between;
-  align-items: flex-start;
-  padding: 5px 5px 5px 5px;
-  height: 160px;
-  margin-left: 16px;
-}
-.goodsName {
-  font-size: 30px;
-  text-overflow: -o-ellipsis-lastline;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  display: -webkit-box;
-  -webkit-line-clamp: 2;
-  -webkit-box-orient: vertical;
-  //   height: 80px;
-}
-.soldNum {
-  font-size: 22px;
-  color: #9f9f9f;
-}
-.goodsPrice {
-  color: #e64340;
-}
-</style>

+ 0 - 0
src/views/zhulao/views/shoppingMall/components/integral.vue


+ 0 - 0
src/views/zhulao/views/shoppingMall/components/service.vue


+ 0 - 202
src/views/zhulao/views/shoppingMall/details.vue

@@ -1,202 +0,0 @@
-<template>
-  <div>
-    <van-nav-bar title="详情" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
-    <van-swipe class="my-swipe">
-      <van-swipe-item v-for="item in productImages" :key="item.linkUrl" @click="$router.push({path:'/text',query:{id:item.linkUrl,title:'新闻资讯'}})">
-        <van-image fit="fill" :src="item.source" alt="" />
-      </van-swipe-item>
-    </van-swipe>
-    <div class="price_bg">
-      <div class="price_bg_left">
-        商城优惠价: ¥ {{goodsData.price}}/{{goodsData.unit}}
-      </div>
-      <div class="price_bg_right">
-        <div class="market_price">已售{{goodsData.sold}}件</div>
-        <div class="market_price">市场价格: ¥ {{goodsData.marketPrice}}/{{goodsData.unit}}</div>
-      </div>
-    </div>
-    <!-- 名字和分享 -->
-    <div class="name_bg">
-      <div class="name_bg_left">{{goodsData.productName}}</div>
-      <!-- <button open-type='share' plain="true" class="name_bg_right">
-        <van-image class="share_icon" mode="aspectFit" :src="require('../../assets/images/store-food/share.png')" />
-      </button> -->
-    </div>
-    <!-- 类型 -->
-    <div class="type_bg">
-      <div class="content_bg" v-for="item in typeList" :key="item.name">
-        <div class="type_icon_bg">
-          <van-image class="type_icon" :src="item.icon" />
-        </div>
-        <div class="type_name">{{item.name}}</div>
-      </div>
-    </div>
-
-    <div style="width:100%;height:30px;background-color: #f0f0f0;"></div>
-
-    <!-- 商品详情 -->
-    <div class="introduce_bg">
-      <div class="introduce_title">- 商品详情 -</div>
-    </div>
-  </div>
-</template>
-<script>
-import { getGroupDetail } from '../../api/index'
-export default {
-  data() {
-    return {
-      introduction: '',
-      productImages: [],
-      goodsData: '',
-      typeList: [
-        {
-          icon: require('../../assets/images/store-food/check_mark.png'),
-          name: '品质保证',
-        },
-        {
-          icon: require('../../assets/images/store-food/check_mark.png'),
-          name: '极速发货',
-        },
-        {
-          icon: require('../../assets/images/store-food/check_mark.png'),
-          name: '免运费',
-        },
-      ],
-    }
-  },
-  created() {
-    this.goodsData = JSON.parse(decodeURI(this.$route.query.item))
-    this.getGroupDetail()
-  },
-  methods: {
-    async getGroupDetail() {
-      const res = await getGroupDetail({ id: this.goodsData.id })
-      console.log(res)
-      this.goodsData = Object.assign(this.goodsData, res.data.group)
-      this.introduction = res.data.introduction
-      this.productImages = res.data.product.productImages
-    },
-  },
-}
-</script>
-<style lang="scss" scoped>
-.my-swipe {
-  width: 100%;
-  height: 500px;
-  overflow: hidden;
-  margin: 0 auto;
-  transform: translateY(0);
-  ::v-deep .van-swipe-item {
-    text-align: center;
-    overflow: hidden;
-    .van-image {
-      width: 100%;
-      height: 500px;
-    }
-  }
-}
-.price_bg {
-  width: 100%;
-  height: 104px;
-  font-size: 30px;
-  color: #dbdbdb;
-  background: linear-gradient(to bottom, #fc8253, #fc4314);
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-}
-.price_bg_left {
-  flex: 0.6;
-  line-height: 100%;
-  padding-left: 30px;
-  box-sizing: border-box;
-}
-.price_bg_right {
-  flex: 0.4;
-  height: 100%;
-  font-size: 24px;
-  color: rgb(211, 211, 130);
-  display: flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
-}
-.market_price {
-  text-align: center;
-  width: 100%;
-  line-height: 40px;
-}
-.type_bg {
-  background-color: white;
-  height: 74px;
-  width: 100%;
-  display: flex;
-  justify-content: flex-start;
-  align-items: center;
-}
-.content_bg {
-  flex: 1;
-  height: 100%;
-  color: #c5c5c5;
-  font-size: 24px;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-.type_icon_bg {
-  width: 40px;
-  height: 40px;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-.type_icon {
-  width: 25px;
-  height: 25px;
-}
-.type_name {
-  line-height: 100%;
-}
-.introduce_bg {
-  width: 100%;
-  height: 88px;
-  background-color: white;
-}
-.introduce_title {
-  width: 100%;
-  line-height: 88px;
-  color: #646464;
-  font-size: 30px;
-  text-align: center;
-}
-.share_icon {
-  width: 42px;
-  height: 42px;
-}
-.name_bg {
-  background-color: white;
-  width: 100%;
-  height: 122px;
-  color: black;
-  font-size: 32px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  border-bottom: solid 1px #e2e2e2;
-  box-sizing: border-box;
-}
-.name_bg_left {
-  flex: 0.8;
-  line-height: 100%;
-  padding-left: 30px;
-  box-sizing: border-box;
-}
-.name_bg_right {
-  flex: 0.2;
-  height: 100%;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  background-color: red;
-}
-</style>

+ 0 - 45
src/views/zhulao/views/shoppingMall/index.vue

@@ -1,45 +0,0 @@
-
-<template>
-  <div style="height:100%;">
-    <van-nav-bar title="养老商城" fixed placeholder safe-area-inset-top />
-    <div style="height: calc(100% - 100px);">
-      <van-tabs v-model="active">
-        <van-tab title="适老产品">
-          <Goods />
-        </van-tab>
-        <van-tab title="家政服务"></van-tab>
-        <van-tab title="积分商城"></van-tab>
-      </van-tabs>
-    </div>
-
-    <Tabbar />
-  </div>
-</template>
-<script>
-import Tabbar from '../../components/Tabbar.vue'
-import Goods from './components/goods.vue'
-export default {
-  components: { Tabbar, Goods },
-  data() {
-    return {
-      active: 0,
-    }
-  },
-}
-</script>
-<style lang="scss" scoped>
-.van-tabs {
-  border-bottom: 0;
-  height: 100%;
-  overflow: hidden;
-  ::v-deep .van-tab {
-    font-size: 30px;
-  }
-  ::v-deep .van-tabs__content {
-    height: calc(100% - 92px);
-    .van-tab__pane {
-      height: 100%;
-    }
-  }
-}
-</style>

+ 0 - 206
src/views/zhulao/views/shoppingMall/submitOrder.vue

@@ -1,206 +0,0 @@
-<template>
-  <div class="main">
-    <van-nav-bar title="提交订单" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
-    <!-- 收货人 -->
-    <div class='consignee_bg' @click='$router.push({path:"/address",query:{}})'>
-      <div v-if="logisticsInfoData.id != null" class='consignee_bg_left'>
-        <div class='consignee_bg_left_title consignee_bg_left_titleTop'>收货人</div>
-        <div>
-          <span class='consignee_bg_left_name'>{{logisticsInfoData.name}}</span>
-          <span class='consignee_bg_left_phone'>{{logisticsInfoData.phone}}</span>
-        </div>
-        <div class='consignee_bg_left_adress consignee_bg_left_adressBottom'>{{logisticsInfoData.fullAddress}} </div>
-      </div>
-
-      <div v-else class='consignee_bg_left'>
-        <div class='consignee_bg_left_none'>选择/新建地址</div>
-      </div>
-
-      <div class='consignee_bg_right'>
-        <van-image :src="require('../../assets/images/store-food/arrow-right.png')" />
-      </div>
-
-    </div>
-    <div style="width:100%;height:10px; background-color: #f5f5f5;"></div>
-    <!-- 商品详情 -->
-    <div class="goods_bg">
-      <!-- icon -->
-      <div class="icon_bg">
-        <van-image class="goodIcon" :src="goodsData.url?goodsData.url:require('../../assets/images/appIcon/appIcon_01.png')" />
-      </div>
-      <!-- food name -->
-      <div class="name_bg">
-        <div>{{goodsData.productName}}</div>
-      </div>
-      <!-- 价格 -->
-      <div class="price_bg">
-        <div class="price">¥ {{goodsData.price}}</div>
-        <div class="goodNum">x {{buyNumber}}</div>
-      </div>
-    </div>
-
-    <!-- 去下订单 -->
-    <div class="footer-box">
-      <div class="topay_price_bg">
-        <div class="price_tip">实付金额:</div>
-        <div class="sum_price">¥ {{goodsData.sumPrice}}</div>
-      </div>
-      <div class="toPay_bg">
-        <div class="pay">提交订单</div>
-      </div>
-    </div>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      logisticsInfoData: '',
-      goodsData: '',
-      buyNumber: '',
-    }
-  },
-  created() {
-    this.goodsData = JSON.parse(decodeURI(this.$route.query.goodsData))
-    this.buyNumber = this.$route.query.buyNumber
-    this.goodsData.sumPrice = (this.buyNumber * this.goodsData.price).toFixed(2)
-    console.log(this.goodsData)
-  },
-  methods: {
-    consigneeClick() {},
-  },
-}
-</script>
-<style lang="scss" scoped>
-// .main {
-//   background-color: #f5f5f5;
-// }
-/* 收货信息 */
-.consignee_bg {
-  max-height: 200px;
-  width: 100%;
-  display: flex;
-  align-items: center;
-  background-color: #fff;
-  min-height: 100px;
-  border-top: solid 4px #f0f0f0;
-}
-
-.consignee_bg_left {
-  height: 100%;
-  flex: 0.9;
-}
-.consignee_bg_left_none {
-  line-height: 100%;
-  padding-left: 20px;
-  font-size: 30px;
-}
-.consignee_bg_left_adress,
-.consignee_bg_left_name,
-.consignee_bg_left_title {
-  font-size: 14px;
-  margin-left: 20px;
-}
-.consignee_bg_left_titleTop {
-  margin-top: 10px;
-}
-.consignee_bg_left_adressBottom {
-  margin-bottom: 10px;
-}
-.consignee_bg_left_phone {
-  color: #c0bfbf;
-  font-size: 13px;
-  margin-left: 10px;
-}
-
-.consignee_bg_right {
-  flex: 0.1;
-  height: 30px;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  .van-image {
-    height: 100%;
-  }
-}
-.goods_bg {
-  margin-top: 20px;
-  width: 100%;
-  height: 180px;
-  font-size: 30px;
-  color: #3d4244;
-  border-bottom: solid 1px #f0f0f0;
-  display: flex;
-  justify-content: flex-start;
-  align-items: center;
-  background-color: white;
-}
-.icon_bg {
-  width: 250px;
-  height: 120px;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-.goodIcon {
-  width: 200px;
-  height: 100%;
-}
-.name_bg {
-  width: 300px;
-  height: 120px;
-}
-.price_bg {
-  width: 200px;
-  height: 120px;
-  padding-right: 30px;
-  box-sizing: border-box;
-}
-.footer-box {
-  width: 100%;
-  height: 100px;
-  position: fixed;
-  bottom: 0;
-  left: 0;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  border-top: solid 10px #f0f0f0;
-  /* box-shadow:0 0 2px 0; */
-}
-.topay_price_bg {
-  flex: 1;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  color: #3f3f3f;
-  font-size: 30px;
-}
-.price_tip {
-  flex: 1;
-  text-align: right;
-  padding-right: 20px;
-  box-sizing: border-box;
-}
-.sum_price {
-  flex: 1;
-  color: #f63717;
-  font-size: 30px;
-  text-align: left;
-}
-.toPay_bg {
-  flex: 1;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-.pay {
-  width: 80%;
-  line-height: 80px;
-  font-size: 30px;
-  color: #fff;
-  background: linear-gradient(to bottom, #fc8253, #fc4314);
-  text-align: center;
-  border-radius: 18px;
-}
-</style>