换了 wxc2bb94c0ddda1032
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
"quickapp" : {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
"appid" : "wxd88fffa983758a30",
|
"appid" : "wxc2bb94c0ddda1032",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : false,
|
"urlCheck" : false,
|
||||||
"minified" : true,
|
"minified" : true,
|
||||||
|
|||||||
@@ -50,7 +50,9 @@
|
|||||||
<!-- 今日上线 -->
|
<!-- 今日上线 -->
|
||||||
<todaylist :todayList='hometoplist.todayList' :salesList='hometoplist.salesList'></todaylist>
|
<todaylist :todayList='hometoplist.todayList' :salesList='hometoplist.salesList'></todaylist>
|
||||||
<!-- 类目 -->
|
<!-- 类目 -->
|
||||||
<view class="fourcontent flex-between" v-if="!isFixedTop">
|
<view class="fourcontent">
|
||||||
|
<!-- 用于防止榻卸 -->
|
||||||
|
<view class="flex-between" style="flex-wrap: inherit;" v-if="!isFixedTop">
|
||||||
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
|
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
|
||||||
@click="viewHistory(item,index)"
|
@click="viewHistory(item,index)"
|
||||||
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
|
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
|
||||||
@@ -59,6 +61,7 @@
|
|||||||
size="16"></u-icon>
|
size="16"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="fivecontent">
|
<view class="fivecontent">
|
||||||
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
|
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
|
||||||
@@ -488,6 +491,10 @@
|
|||||||
},
|
},
|
||||||
// 点击元素到指定位置
|
// 点击元素到指定位置
|
||||||
async viewHistory(item, index) {
|
async viewHistory(item, index) {
|
||||||
|
uni.pageScrollTo({
|
||||||
|
scrollTop: this.Topdistance,
|
||||||
|
duration: 300
|
||||||
|
});
|
||||||
this.viewHistoryindex = index
|
this.viewHistoryindex = index
|
||||||
if (item.dictName == 'allCity') {
|
if (item.dictName == 'allCity') {
|
||||||
let res = await this.api.locationdistrict({
|
let res = await this.api.locationdistrict({
|
||||||
@@ -499,14 +506,15 @@
|
|||||||
this.clickhometoplistmenulist.detail = item.detail
|
this.clickhometoplistmenulist.detail = item.detail
|
||||||
this.clickhometoplistmenulist.quilt = ''
|
this.clickhometoplistmenulist.quilt = ''
|
||||||
}
|
}
|
||||||
uni.pageScrollTo({
|
|
||||||
scrollTop: this.Topdistance,
|
|
||||||
duration: 300
|
|
||||||
});
|
|
||||||
if (item.isChild) {
|
if (item.isChild) {
|
||||||
this.form.type = '' //先清空后赋值
|
this.form.type = '' //先清空后赋值
|
||||||
this.showproductlist = true
|
this.showproductlist = true
|
||||||
} else {
|
} else {
|
||||||
|
// 以下没有多选处理
|
||||||
|
if(item.value == this.form.type){// 再次选择取消选中
|
||||||
|
this.viewHistoryindex = ''
|
||||||
|
}
|
||||||
this.form.type = item.value == this.form.type ? "" : item.value //附近1KM 1选中 0不选中
|
this.form.type = item.value == this.form.type ? "" : item.value //附近1KM 1选中 0不选中
|
||||||
this.form.page = 1
|
this.form.page = 1
|
||||||
this.form.size = 10
|
this.form.size = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user