修改跳转咖啡字段没有传入的问题
This commit is contained in:
@@ -38,7 +38,15 @@
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'relative':
|
case 'relative':
|
||||||
uni.pro.navigateTo(item.absUrl, JSON.stringify(item));
|
uni.setStorage({
|
||||||
|
key: 'titleName',
|
||||||
|
data: item.name,
|
||||||
|
});
|
||||||
|
uni.setStorage({
|
||||||
|
key: 'itemData',
|
||||||
|
data: item,
|
||||||
|
});
|
||||||
|
uni.pro.navigateTo(item.absUrl, item.name);
|
||||||
break;
|
break;
|
||||||
case 'scan':
|
case 'scan':
|
||||||
if (!uni.utils.pluschooseImage()) {
|
if (!uni.utils.pluschooseImage()) {
|
||||||
|
|||||||
@@ -150,11 +150,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.type = e.value
|
let _this = this
|
||||||
this.distiricttopCommon()
|
uni.getStorage({
|
||||||
setTimeout(() => {
|
key: 'itemData',
|
||||||
this.GetTop()
|
success: function(res) {
|
||||||
}, 1000)
|
console.log(res.data,'数据');
|
||||||
|
_this.type = res.data.value
|
||||||
|
_this.distiricttopCommon()
|
||||||
|
setTimeout(() => {
|
||||||
|
_this.GetTop()
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// this.type = e.value
|
||||||
|
// this.distiricttopCommon()
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.GetTop()
|
||||||
|
// }, 1000)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.init_fn()
|
this.init_fn()
|
||||||
|
|||||||
@@ -43,8 +43,7 @@
|
|||||||
免单状态
|
免单状态
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
|
<view class="swiperitem" v-for="(item,index) in orderfindWiningUserlist" :key="index">
|
||||||
:key="index">
|
|
||||||
<view class="swiper-item" style="margin-top: 32rpx;">
|
<view class="swiper-item" style="margin-top: 32rpx;">
|
||||||
<view class="swiper_itemone">
|
<view class="swiper_itemone">
|
||||||
{{item.orderAmount}}元
|
{{item.orderAmount}}元
|
||||||
@@ -56,9 +55,8 @@
|
|||||||
{{item.isRefund == true ? '已免单':'待免单'}}
|
{{item.isRefund == true ? '已免单':'待免单'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view
|
</view>
|
||||||
>
|
<!-- <swiper class="swiper" circular :autoplay='true' :vertical='true' interval="3000"
|
||||||
<!-- <swiper class="swiper" circular :autoplay='true' :vertical='true' interval="3000"
|
|
||||||
display-multiple-items="4">
|
display-multiple-items="4">
|
||||||
<swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
|
<swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
|
||||||
:key="index">
|
:key="index">
|
||||||
@@ -87,6 +85,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
forEach
|
||||||
|
} from 'lodash';
|
||||||
import navseat from '@/components/navseat.vue'
|
import navseat from '@/components/navseat.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -94,7 +95,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
titlename: '今日上新',
|
titlename: '',
|
||||||
opacity: false,
|
opacity: false,
|
||||||
orderfindWiningUserlist: [],
|
orderfindWiningUserlist: [],
|
||||||
form: {
|
form: {
|
||||||
@@ -110,8 +111,14 @@
|
|||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.orderfindWiningUser()
|
this.orderfindWiningUser()
|
||||||
let data = JSON.parse(e)
|
let _this = this
|
||||||
this.titlename = data.name
|
uni.getStorage({
|
||||||
|
key: 'titleName',
|
||||||
|
success: function(res) {
|
||||||
|
console.log(res.data);
|
||||||
|
_this.titlename = res.data
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
if (e.scrollTop <= 44) { //搜索导航栏
|
if (e.scrollTop <= 44) { //搜索导航栏
|
||||||
|
|||||||
Reference in New Issue
Block a user