Compare commits

...

8 Commits

Author SHA1 Message Date
688aee582d 修改h5登录不跳转的错误 2024-05-18 11:16:08 +08:00
zmj
1a73b2b6dc add 2024-05-17 16:27:29 +08:00
zmj
ed15ccd8ce add 2024-05-17 16:22:00 +08:00
zmj
f54aa79ade add 2024-05-17 14:59:50 +08:00
zmj
96356bc9e1 Merge branch 'pre-release' of https://gitea.lihaink.cn/mkm/new_shop_app into pre-release 2024-05-17 14:33:53 +08:00
zmj
31cea76850 add 2024-05-17 14:33:39 +08:00
1154079537
d5dca0909a 1 2024-05-17 11:54:10 +08:00
1154079537
17e2e8ed14 商铺入驻修改 2024-05-16 17:33:52 +08:00
17 changed files with 95 additions and 55 deletions

View File

@ -74,9 +74,14 @@
</view> </view>
<view class='recommendList' :class="indexP?'on':''"> <view class='recommendList' :class="indexP?'on':''">
<view class="loadingicon acea-row row-center-wrapper"
v-if="!hostProduct || hostProduct.length == 0 || loading">
<text class="loading iconfont icon-jiazai loading-flex"></text>
{{ hotTitle }}
</view>
<WaterfallsFlow v-if="hostProduct.length>0" :wfList='hostProduct' @itemTap="goDetail" :type="0" <WaterfallsFlow v-if="hostProduct.length>0" :wfList='hostProduct' @itemTap="goDetail" :type="0"
:sale_type="sale_type" /> :sale_type="sale_type" />
<view class='pictrue' v-if="!loading&&hostProduct.length==0"> <view class='pictrue' v-if="!loading && hostProduct.length==0">
<image :src="`${domain}/static/images/noCart.png`"></image> <image :src="`${domain}/static/images/noCart.png`"></image>
<view>暂无商品看点别的吧</view> <view>暂无商品看点别的吧</view>
</view> </view>
@ -139,6 +144,10 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
hotTitle: {
type: String,
default: '加载更多'
}
}, },
data() { data() {
return { return {
@ -161,12 +170,14 @@
val: 4 val: 4
}], }],
currTabs: 1, currTabs: 1,
list: [] list: [],
tabsTop: ''
}; };
}, },
mounted() { mounted() {
this.getArticleList(); this.getArticleList();
}, },
methods: { methods: {
changeTab(e) { changeTab(e) {
this.currTabs = e; this.currTabs = e;
@ -186,6 +197,18 @@
limit: 10 limit: 10
}).then(res => { }).then(res => {
this.list = res.data.list; this.list = res.data.list;
setTimeout(() => {
this.$util.getDom(this, '.tabs', res => {
// #ifdef APP
this.tabsTop = res.top + 10;
// #endif
// #ifdef H5
this.tabsTop = res.top;
// #endif
})
}, 300)
}) })
}, },
goDetail(item) { goDetail(item) {
@ -288,7 +311,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 -20rpx 30rpx; margin: 0 -20rpx 10rpx;
padding-top: 20rpx; padding-top: 20rpx;
.tabs-item { .tabs-item {
@ -340,10 +363,6 @@
} }
.information { .information {
// display: flex;
// justify-content: space-between;
// margin-bottom: 20rpx;
.nav-item { .nav-item {
width: 227rpx; width: 227rpx;
overflow: hidden; overflow: hidden;
@ -389,6 +408,11 @@
} }
} }
.loading-flex {
width: auto !important;
margin-right: 10rpx;
}
.pictrue { .pictrue {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -312,7 +312,7 @@
<view> <view>
<!-- 流水瀑布 --> <!-- 流水瀑布 -->
<WaterfallsFlow :wfList='hostProduct' @itemTap="goDetail" :type="0" /> <WaterfallsFlow :wfList='hostProduct' @itemTap="goDetail" :type="0" />
<loadmore :type="isLoading" style="background-color: #fff;padding: 12rpx 0;"></loadmore> <loadmore :type="isLoading" style="padding: 12rpx 0;"></loadmore>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>

View File

@ -114,7 +114,7 @@
</view> </view>
</view> </view>
</view> </view>
<loadmore :type="isLoading" style="background-color: #fff;padding: 12rpx 0;"></loadmore> <loadmore :type="isLoading" style="padding: 12rpx 0;"></loadmore>
</scroll-view> </scroll-view>
</view> </view>

View File

@ -70,7 +70,7 @@
<view> <view>
<!-- 流水瀑布 --> <!-- 流水瀑布 -->
<WaterfallsFlow :wfList='hostProduct' @itemTap="goDetail" :type="0" /> <WaterfallsFlow :wfList='hostProduct' @itemTap="goDetail" :type="0" />
<loadmore :type="isLoading" style="background-color: #fff;padding: 12rpx 0;"></loadmore> <loadmore :type="isLoading" style="padding: 12rpx 0;"></loadmore>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>

View File

@ -14,7 +14,7 @@
<image src="/static/images/greenLineDown.png" style="width:35px;height: 60px;" mode=""></image> <image src="/static/images/greenLineDown.png" style="width:35px;height: 60px;" mode=""></image>
</view> </view>
<view class="tips-box" :style="{ left:left+'px',top:(top+80)+'px'}"> <view class="tips-box" :style="{ left:left+'px',top:(top+80)+'px'}">
<view class="tips" style="position: absolute;padding-left: 20px;"> <view class="tips" style="position: absolute;padding-left: 10rpx;">
<view class="tras" :class="{act:isActive}"> <view class="tras" :class="{act:isActive}">
<text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击供销助农平台进入商户平台</text> <text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击供销助农平台进入商户平台</text>
</view> </view>
@ -151,7 +151,7 @@
.tras { .tras {
padding-left: 20rpx; padding-left: 10rpx;
position: absolute; position: absolute;
z-index: 999 !important; z-index: 999 !important;
width: 20px; width: 20px;

View File

@ -19,7 +19,7 @@
</view> </view>
</view> </view>
<view class="li" style="margin-top: 50rpx;" @click="navSw('/pages/index/index',true)"> <view class="li" style="margin-top: 50rpx;" @click="navSw('/pages/index/index',true)">
<u-image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/48aed202402260946123969.webp" width="690rpx" <u-image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/static/merchant.webp" width="690rpx"
height="200rpx" style="position: absolute;"></u-image> height="200rpx" style="position: absolute;"></u-image>
<view class="btn"> <view class="btn">
我是商户 我是商户

View File

@ -45,7 +45,7 @@
<!-- 首发新品 --> <!-- 首发新品 -->
<recommend ref="recommendRef" :hostProduct="hostProduct[hostIndex]" <recommend ref="recommendRef" :hostProduct="hostProduct[hostIndex]"
@changeRecommedTab="changeRecommedTab" showTab :indexP="true" :isLogin="isLogin" @changeRecommedTab="changeRecommedTab" showTab :indexP="true" :isLogin="isLogin"
:loading="loading"> :loading="hotLoading[hostIndex]" :hotTitle="hotTitle">
</recommend> </recommend>
<view class="loadingicon acea-row row-center-wrapper" <view class="loadingicon acea-row row-center-wrapper"
v-if="hostProduct[hostIndex].length > 0 || hotLoading[hostIndex]"> v-if="hostProduct[hostIndex].length > 0 || hotLoading[hostIndex]">
@ -110,7 +110,7 @@
<!-- 首发新品 --> <!-- 首发新品 -->
<recommend ref="recommendRef" :hostProduct="hostProduct[hostIndex]" <recommend ref="recommendRef" :hostProduct="hostProduct[hostIndex]"
@changeRecommedTab="changeRecommedTab" showTab :indexP="true" :isLogin="isLogin" @changeRecommedTab="changeRecommedTab" showTab :indexP="true" :isLogin="isLogin"
:loading="loading"> :loading="hotLoading[hostIndex]" :hotTitle="hotTitle">
</recommend> </recommend>
<view class="loadingicon acea-row row-center-wrapper" <view class="loadingicon acea-row row-center-wrapper"
v-if="hostProduct[hostIndex].length > 0 || hotLoading[hostIndex]"> v-if="hostProduct[hostIndex].length > 0 || hotLoading[hostIndex]">
@ -548,7 +548,7 @@
isSupport: true, isSupport: true,
isIndexClick: true, isIndexClick: true,
scrollTop: 0, scrollTop: 0,
// newStore: tabScroll: 0
}; };
}, },
@ -626,8 +626,6 @@
this.activeRouter = '/' + curRoute this.activeRouter = '/' + curRoute
}, },
onLoad(options) { onLoad(options) {
let that = this let that = this
this._options = options; this._options = options;
this.diyId = options.diyId || 0; this.diyId = options.diyId || 0;
@ -797,7 +795,7 @@
}, },
bindHeighta(data) { bindHeighta(data) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
this.sortMpTop = data.top + data.height; // this.sortMpTop = data.top + data.height;
// #endif // #endif
}, },
// //
@ -1080,6 +1078,7 @@
// #endif // #endif
}); });
}, },
// 访 // 访
setVisit() { setVisit() {
setVisit({ setVisit({
@ -1113,6 +1112,7 @@
self.sortMarTop = 10; self.sortMarTop = 10;
} }
}, },
// //
get_product_list: function() { get_product_list: function() {
let that = this; let that = this;
@ -1133,10 +1133,10 @@
that.loadTitle = '加载更多'; that.loadTitle = '加载更多';
}); });
}, },
/**
* 点击组件选项卡 //
*/
changeRecommedTab(e) { changeRecommedTab(e) {
let that = this;
this.hotPage = 1; this.hotPage = 1;
this.hotScroll = true; this.hotScroll = true;
this.hostIndex = e - 1; this.hostIndex = e - 1;
@ -1144,11 +1144,14 @@
hostList[e - 1] = []; hostList[e - 1] = [];
this.$set(this, 'hostProduct', hostList); this.$set(this, 'hostProduct', hostList);
this.loadGoods(e); this.loadGoods(e);
uni.pageScrollTo({
scrollTop: that.$refs.recommendRef.tabsTop,
duration: 200
})
}, },
loadGoods(e = 1) { loadGoods(e = 1) {
console.log(e);
this.$nextTick(() => { this.$nextTick(() => {
if (e == 1) return this.get_host_product(0); if (e == 1) return this.get_host_product(0);
if (e == 2) return this.get_host_home({ if (e == 2) return this.get_host_home({
@ -1162,12 +1165,12 @@
}, 3); }, 3);
}) })
}, },
/**
* 获取我的推荐 //
*/
get_host_product: function(e = 0) { get_host_product: function(e = 0) {
let that = this; let that = this;
let num = that.hotLimit; let num = that.hotLimit;
if (!that.hotScroll) return; if (!that.hotScroll) return;
if (that.hotLoading[e]) return; if (that.hotLoading[e]) return;
@ -1177,24 +1180,25 @@
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
res.data.list = this.shuffleArray(res.data.list); res.data.list = this.shuffleArray(res.data.list);
let list = res.data.list; let list = res.data.list;
let productList = that.hostProduct; let productList = that.hostProduct;
if (!productList[e]) productList[e] = []; if (!productList[e]) productList[e] = [];
productList[e] = [...productList[e], ...res.data.list]; productList[e] = [...productList[e], ...res.data.list];
let hotScroll = list.length <= res.data.limit && list.length != 0; let hotScroll = list.length <= res.data.limit && list.length != 0;
that.hotScroll = hotScroll; that.hotScroll = hotScroll;
that.hotLoading[e] = false; that.hotLoading[e] = false;
that.hotTitle = !hotScroll ? '已全部加载' : '加载更多'; that.hotTitle = !hotScroll ? '已全部加载' : '加载更多';
that.$set(that, 'hostProduct', productList); that.$set(that, 'hostProduct', productList);
if (this.hostIndex == e) this.$forceUpdate();
that.$set(that, 'hotPage', res.data.page + 1); that.$set(that, 'hotPage', res.data.page + 1);
that.$set(that, 'hotLimit', res.data.limit); that.$set(that, 'hotLimit', res.data.limit);
this.$forceUpdate();
}); });
}, },
/**
* 获取里海云仓, 云市场, 名优特产 // , ,
*/
get_host_home: function(query = {}, e = 1) { get_host_home: function(query = {}, e = 1) {
let that = this; let that = this;
let num = that.hotLimit; let num = that.hotLimit;
@ -1243,11 +1247,13 @@
this.$set(this, 'navTop', res.data); this.$set(this, 'navTop', res.data);
}); });
}, },
reloadData() { reloadData() {
setTimeout(() => { setTimeout(() => {
this.showSkeleton = false this.showSkeleton = false
}, 500) }, 500)
}, },
// //
goDetail(item) { goDetail(item) {
if (item.activity && item.activity.type === '2' && !this.isLogin) { if (item.activity && item.activity.type === '2' && !this.isLogin) {
@ -1291,6 +1297,7 @@
}); });
} }
}, },
//#ifdef H5 //#ifdef H5
ShareInfo(datas) { ShareInfo(datas) {
let data = this.storeInfo; let data = this.storeInfo;
@ -1326,6 +1333,7 @@
this.domHeight = res[0].height; this.domHeight = res[0].height;
}) })
}, },
// //
onReachBottom() { onReachBottom() {
if (this.recommend_switch == 1 && this.navIndex == 0) { if (this.recommend_switch == 1 && this.navIndex == 0) {
@ -1337,9 +1345,6 @@
this.get_product_list(); this.get_product_list();
} }
} }
},
onReady() {
} }
}; };
</script> </script>

View File

@ -7,9 +7,9 @@
<text class="next-btn-text font" @click="next">下一步(1/4)</text> <text class="next-btn-text font" @click="next">下一步(1/4)</text>
</view> </view>
<view class="tips-box" :style="{right:20, top:(offsetY-218)+'px'}"> <view class="tips-box" :style="{right:20, top:(offsetY-218)+'px'}">
<view class="tips" style="position: absolute;padding-left: 20px;"> <view class="tips" style="position: absolute;padding-left: 10rpx;">
<view class="tras" :class="{act:isActive}"> <view class="tras" :class="{act:isActive}">
<text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击生产页面,进入办公助手</text> <text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击工作台,进入办公助手</text>
</view> </view>
</view> </view>
<image src="/static/images/starpng.png" class="start" mode=""> <image src="/static/images/starpng.png" class="start" mode="">
@ -164,7 +164,7 @@
} }
.tras { .tras {
padding-left: 20rpx; padding-left: 10rpx;
position: absolute; position: absolute;
z-index: 999 !important; z-index: 999 !important;
width: 0px; width: 0px;

View File

@ -7,7 +7,8 @@
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">下一步(1/2)</text> <text class="next-btn-text font" style="line-height: 76rpx;" @click="next">下一步(1/2)</text>
</view> </view>
<view class="target" :style="{left:screenWidth/4*3,top:screenHeight-68}"> <view class="target" :style="{left:screenWidth/4*3,top:screenHeight-68}">
<image src="/static/images/ydwd.png" class="target-icon"></image> <image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/96aba202405171618278261.png"
class="target-icon"></image>
<text class="target-text">我的</text> <text class="target-text">我的</text>
</view> </view>
<view :style="{left:screenWidth/4*3,top:screenHeight-130}"> <view :style="{left:screenWidth/4*3,top:screenHeight-130}">

View File

@ -141,6 +141,9 @@
} }
uni.hideLoading(); uni.hideLoading();
this.loading = false this.loading = false
}).catch(() => {
uni.hideLoading();
this.loading = false
}) })
}, },
navgo() { navgo() {

View File

@ -219,10 +219,10 @@
<u-transition :show="step==3" mode="slide-right"> <u-transition :show="step==3" mode="slide-right">
<view class="step3" v-if='step==3'> <view class="step3" v-if='step==3'>
<view style="font-size: 36rpx;margin: 50rpx 0 34rpx 0;text-align:center"> <view style="font-size: 36rpx;margin: 50rpx 0 34rpx 0;text-align:center">
店铺等待审核 {{formData.status==0?'店铺等待审核':'店铺审核完成'}}
</view> </view>
<view style="font-size: 32rpx;font-family: PFR;margin-bottom: 40rpx;text-align:center"> <view style="font-size: 32rpx;font-family: PFR;margin-bottom: 40rpx;text-align:center">
店铺已提交入驻申请 {{formData.status==0?'店铺已提交入驻申请':formData.status == 1?'恭喜您的店铺审核成功':'审核失败'}}
</view> </view>
<view class="step3-card"> <view class="step3-card">
<view class="" style="display: flex;justify-content: space-between;font-size: 32rpx;"> <view class="" style="display: flex;justify-content: space-between;font-size: 32rpx;">
@ -289,10 +289,6 @@
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
@ -618,6 +614,9 @@
if (option.type == 1) { if (option.type == 1) {
this.step = 1 this.step = 1
} }
if (option.step) {
this.step = 3
}
if (this.formData.status == 1) { if (this.formData.status == 1) {
getUnimpInfo().then(res => { getUnimpInfo().then(res => {
this.uniMpInfo = res.data this.uniMpInfo = res.data

View File

@ -178,7 +178,7 @@
<view class="menu-box"> <view class="menu-box">
<block v-for="(item,index) in personalMenu" :key="index" :id="'target'+index"> <block v-for="(item,index) in personalMenu" :key="index" :id="'target'+index">
<view v-if="item.isShow" class="item "> <view v-if="item.isShow" class="item ">
<view @click="authTo(item.url)" class="item-count"> <view @click="authTo(item.url,item.name)" class="item-count">
<image v-if="showSkeleton" class="skeleton_image skeleton-radius"></image> <image v-if="showSkeleton" class="skeleton_image skeleton-radius"></image>
<image v-else :src="item.pic" class="targets"></image> <image v-else :src="item.pic" class="targets"></image>
<text>{{item.name}}</text> <text>{{item.name}}</text>
@ -541,10 +541,16 @@
}, 500) }, 500)
}, },
methods: { methods: {
authTo(url) { authTo(url, name) {
if (this.isLogin) { if (this.isLogin) {
let txt = "";
if (this.userInfo && this.userInfo.service && name == "商家入驻") {
txt = url + '?step=3'
} else {
txt = url;
}
uni.navigateTo({ uni.navigateTo({
url: url url: txt
}) })
} else { } else {
this.openAuto() this.openAuto()

View File

@ -17,7 +17,7 @@
<view class="tips-box" :style="{left:left-13.5,top:top-154}"> <view class="tips-box" :style="{left:left-13.5,top:top-154}">
<view class="tips" style="position: absolute;padding-left: 20px;"> <view class="tips" style="position: absolute;padding-left: 20px;">
<view class="tras" :class="{act:isAct}"> <view class="tras" :class="{act:isAct}">
<text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击我的页面,进行商户入驻</text> <text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击商户入驻,轻松开店</text>
</view> </view>
</view> </view>
<image src="/static/images/starpng.png" class="start" mode=""> <image src="/static/images/starpng.png" class="start" mode="">

View File

@ -1241,7 +1241,7 @@
console.log(data, 'hanshu') console.log(data, 'hanshu')
let that = this let that = this
this.checkOpenId(data.user) this.checkOpenId(data.user)
const backUrl = that.$Cache.get('login_back_url_weixin') || that.$Cache.get(BACK_URL) || let backUrl = that.$Cache.get('login_back_url_weixin') || that.$Cache.get(BACK_URL) ||
"/pages/index/index"; "/pages/index/index";
that.$store.commit("LOGIN", { that.$store.commit("LOGIN", {
'token': data.token, 'token': data.token,
@ -1264,6 +1264,9 @@
'/pages/goods_cate/goods_cate', '/pages/goods_cate/goods_cate',
'/pages/user/index' '/pages/user/index'
] ]
// #ifdef H5
backUrl = backUrl.replace('/h5', '')
// #endif
if (indexPat.includes(this.getPath(backUrl))) { if (indexPat.includes(this.getPath(backUrl))) {
method = 'switchTab' method = 'switchTab'
} else { } else {

View File

@ -891,7 +891,8 @@
this.loadend = false; this.loadend = false;
this.loading = false; this.loading = false;
this.$set(this, 'orderList', []); this.orderList = [];
this.sale_type = type;
if (this.orderStatus == 4) { if (this.orderStatus == 4) {
this.refundParam.identity = type; this.refundParam.identity = type;
@ -904,7 +905,6 @@
this.getUserInfo(); this.getUserInfo();
this.getpreSellOrderList(); this.getpreSellOrderList();
} }
this.sale_type = type;
}, },
// 退 // 退

View File

@ -195,8 +195,7 @@
</view> </view>
</view> </view>
<loadmore :type="isLoading" v-if="isLoading || hostProduct.length > 0" <loadmore :type="isLoading" v-if="isLoading || hostProduct.length > 0" style="padding: 12rpx 0;">
style="background-color: #fff;padding: 12rpx 0;">
</loadmore> </loadmore>
<view class='pictrue' v-if="!isLoading && hostProduct.length == 0"> <view class='pictrue' v-if="!isLoading && hostProduct.length == 0">
<image :src="`${domain}/static/images/noCart.png`"></image> <image :src="`${domain}/static/images/noCart.png`"></image>

BIN
static/images/ydwd1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB