main
yangsai@163.com 7 months ago
parent 954eb9d5b3
commit 94bff228ef
  1. 14
      pages/goods/list.vue
  2. 2
      pages/index/index.vue
  3. 2
      pages/news/consult/about.vue
  4. 52
      pages/news1/jinqun.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="container" :style="appThemeStyle"> <view class="container" :style="appThemeStyle">
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true }" <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true,auto: false}"
@down="downCallback" :up="upOption" @up="upCallback"> @down="downCallback" :up="upOption" @up="upCallback">
<!-- 页面头部 --> <!-- 页面头部 -->
<view class="header"> <view class="header">
@ -216,7 +216,7 @@
</template> </template>
</u-waterfall> </u-waterfall>
</view> </view>
<view style="margin-top: 250rpx;" v-if="list.data.length==0 && total == 0"> <view style="margin-top: 250rpx;" v-if=" total == 0">
<u-empty text="暂无数据显示哦~" mode="list"></u-empty> <u-empty text="暂无数据显示哦~" mode="list"></u-empty>
</view> </view>
</view> </view>
@ -262,7 +262,7 @@
// //
upOption: { upOption: {
// //
auto: true, auto: false,
// ; 10 // ; 10
page: { page: {
size: pageSize size: pageSize
@ -340,6 +340,8 @@
// }) // })
// }); // });
// console.log(that.goodsType, that.tabbar) // console.log(that.goodsType, that.tabbar)
}else{
that.upCallback(1)
} }
}) })
.catch(reject) .catch(reject)
@ -429,15 +431,18 @@
keyword: app.options.search || '', keyword: app.options.search || '',
goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : '' goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : ''
} }
console.log(param)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GoodsApi.list(param) GoodsApi.list(param)
.then(result => { .then(result => {
// //
console.log(app.list)
const newList = result.data.list const newList = result.data.list
console.log(newList)
let arr = getMoreListData(newList, app.list, pageNo); let arr = getMoreListData(newList, app.list, pageNo);
app.list.data = app.arrayUnique(arr, 'goods_id') app.list.data = app.arrayUnique(arr, 'goods_id')
app.total = result.data.list.total; app.total = result.data.list.total;
console.log(app.list) console.log(newList)
resolve(newList) resolve(newList)
}) })
.catch(reject) .catch(reject)
@ -859,6 +864,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-top: 4rpx;
.left_1 { .left_1 {
height: 100%; height: 100%;

@ -2531,7 +2531,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-top:4rpx;
.left_1 { .left_1 {
height: 100%; height: 100%;
width: 48rpx; width: 48rpx;

@ -13,7 +13,7 @@
<view class="b">{{cityInfo.phone}}<image :src="$picUrl+'/static/news/tel.png'" @click="callPhone()"></image></view> <view class="b">{{cityInfo.phone}}<image :src="$picUrl+'/static/news/tel.png'" @click="callPhone()"></image></view>
</view> </view>
<view class="park-fd"> <view class="park-fd">
<image :src="cityInfo.wechat"></image> <image :src="cityInfo.wechat" show-menu-by-longpress='1'></image>
<view class="txt">长按识别二维码</view> <view class="txt">长按识别二维码</view>
<view class="txt">添加我的微信</view> <view class="txt">添加我的微信</view>
</view> </view>

@ -1,43 +1,6 @@
<template> <template>
<view class="jinqun"> <view class="jinqun" :style="{background:`url(${$picUrl}/static/jinqun-bg1.png)`}" style="background-size: 100% 100%;text-align: center;">
<view class="flag"> <image :src="cityInfo.group_share_img" style="padding-top: 70%; width: 350rpx;height: 380rpx;" show-menu-by-longpress='1' bindtap="clickImg"></image>
<view class="flagContent">
<image :src="$picUrl+'/static/news1/j1.png'" mode="widthFix"></image>
<text>京选电器</text>
</view>
</view>
<view class="topicText">
进群立领120元
</view>
<view class="subTopicText">
京东电器官方福利群
</view>
<view class="qcode">
<image :src="cityInfo.group_share_img"></image>
</view>
<view class="submitBtn">
立即进群>
<button open-type="share"></button>
</view>
<view class="fuli">
<view class="fuliTitle">
福利攻略
</view>
<view class="fuliContent">
<view class="fuliItem">
<image :src="$picUrl+'/static/news1/j2.png'" mode="heightFix"></image>
<text>天天抢红包</text>
</view>
<view class="fuliItem">
<image :src="$picUrl+'/static/news1/j3.png'" mode="heightFix"></image>
<text>周二特价</text>
</view>
<view class="fuliItem">
<image :src="$picUrl+'/static/news1/j4.png'" mode="heightFix"></image>
<text>品质抢团</text>
</view>
</view>
</view>
</view> </view>
</template> </template>
@ -63,6 +26,9 @@
this.cityInfo = data this.cityInfo = data
} }
}, },
clickImg(){
this.onShareAppMessage()
}
}, },
/** /**
* 分享当前页面 * 分享当前页面
@ -93,7 +59,7 @@
.jinqun{ .jinqun{
height:100%; height:100%;
position: relative; position: relative;
background: url(https://www.royaum.com.cn/static/jinqun-bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
min-height: 100vh; min-height: 100vh;
@ -142,12 +108,12 @@
} }
.qcode{ .qcode{
width: 400upx; width: 400upx;
height:400upx; height:300upx;
margin:40upx auto; margin:160upx auto;
border:1px solid red; border:1px solid red;
image{ image{
width: 100%; width: 100%;
height: 100%; height: 140%;
} }
} }
.submitBtn{ .submitBtn{

Loading…
Cancel
Save