jiazhipeng 4 months ago
parent
commit
35d30eaacc
  1. 3
      static/js/CommonFunction.js
  2. 2
      subPackages/search/techanResult.vue
  3. 9
      subPackages/techan/index.vue

3
static/js/CommonFunction.js

@ -269,6 +269,9 @@ Vue.prototype.gotoDetailByType = item => {
case 'post':
url = '/subPackages/techan/detail?id=' + (item.product_id || item.id)
break;
case 'scenic':
url = '/subPackages/ticket/detail?id=' + (item.scene_id || item.id)
break;
default:
break;
}

2
subPackages/search/techanResult.vue

@ -260,7 +260,7 @@
this.Post({sku_id: goods.id,num: this.buyNum },'/api/cart/add_sku').then(res => {
if (res.code == 1) {
uni.showToast({title: res.msg,icon: 'none'});
// uni.$emit("updateDataByConnect", {msgType:'updateCartDataInfo',data:null})
uni.$emit("updateDataByConnect", {msgType:'updateCartDataInfo',data:null})
this.closePopup()
// this.$refs.cartDataVueRef.openPop()
}

9
subPackages/techan/index.vue

@ -1,6 +1,6 @@
<template>
<view class="bg">
<view class="search-header" :style="{'height': height+'px','padding-top':statusBarHeight+'px'}">
<view class="search-header" :style="{'height': height+'px','padding-top':statusBarHeight+'px','z-index':typePopShow?999:10}">
<uni-icons type="left" size="20" @click="goBack" style="flex-shrink: 0;"></uni-icons>
<view class="input-model" @click="goSearch()">
<uni-icons style="height: 1.4rem;line-height: 1.4rem;" type="search" size="15" color="#ABAAAD" ></uni-icons>
@ -211,7 +211,7 @@
</uni-popup>
<!-- 全部分类 -->
<uni-popup ref="typePopup" type="top">
<uni-popup ref="typePopup" type="top" @change="changeTypePop">
<view class="typePopup-container">
<view class="place-area" :style="{'height': height+'px'}"></view>
<view class="type-container typedata-container">
@ -259,6 +259,7 @@
searchFinish: false,
search_type: 0,
typePopShow: false
}
},
@ -285,6 +286,9 @@
//
this.height = sysInfo.statusBarHeight + 40
},
changeTypePop (e) {
this.typePopShow = e.show
},
getTypeTags () {
this.Post({
@ -492,7 +496,6 @@
padding-left: 10rpx;
padding-right: 120px;
background: #EDF5DC;
z-index: 9999999;
.input-model{
flex: 1;

Loading…
Cancel
Save