新商户引导页弹出规则修改
This commit is contained in:
parent
4972fb2884
commit
42afabe62f
@ -2,8 +2,8 @@
|
||||
"name": "惠农生活",
|
||||
"appid": "__UNI__3A527D1",
|
||||
"description": "",
|
||||
"versionName" : "2.0.44",
|
||||
"versionCode" : 2037,
|
||||
"versionName": "2.0.45",
|
||||
"versionCode": 2045,
|
||||
"transformPx": false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
|
@ -366,7 +366,6 @@
|
||||
},
|
||||
methods: {
|
||||
openDiver() {
|
||||
// console.log("open")
|
||||
this.subNVue.show('zoom-out', 300)
|
||||
uni.$emit('diverGatherEmit', this.elInfo);
|
||||
},
|
||||
|
@ -4,7 +4,8 @@
|
||||
<text class="font">跳过</text>
|
||||
</view>
|
||||
<view class="tabbar" :style="{top:(top-12)+'px',left:(left-12)+'px'}">
|
||||
<image src="/static/images/fabu.png" class="tab-icon"></image>
|
||||
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0fa43202312291702314919.png" class="tab-icon">
|
||||
</image>
|
||||
</view>
|
||||
<view class="" class="pointe" :style="{ left:(left-10)+'px',top:(top)+'px'}">
|
||||
<image src="/static/images/pointer.png" style="width: 254rpx;height: 254rpx;" mode=""></image>
|
||||
@ -12,11 +13,22 @@
|
||||
<view class="center" :style="{left:(left+20)+'px', top:(top+60)+'px'}">
|
||||
<image src="/static/images/greenLineDown.png" style="width:35px;height: 60px;" mode=""></image>
|
||||
</view>
|
||||
<view class="tips" :style="{ left:left+'px',top:(top+120)+'px'}">
|
||||
<!-- <view class="tips" :style="{ left:left+'px',top:(top+120)+'px'}">
|
||||
<view class="tras" :class="{act:isActive}">
|
||||
<text class="font" style="line-height: 106rpx;">点击供销助农平台进入商户平台</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="tips-box" :style="{ left:left+'px',top:(top+120)+'px'}">
|
||||
<view class="tips" style="position: absolute;padding-left: 20px;">
|
||||
<view class="tras" :class="{act:isActive}">
|
||||
<text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击我的页面,进行商户入驻</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="/static/images/starpng.png" class="start" mode="">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="next-btn center">
|
||||
<text class="next-btn-text font" @click="next">下一步(2/4)</text>
|
||||
</view>
|
||||
@ -52,9 +64,7 @@
|
||||
done: 1
|
||||
}).then(res => {
|
||||
console.log(res, 'res')
|
||||
// uni.$emit('diverGatherSubEmit');
|
||||
})
|
||||
// uni.setStorageSync('is_new_user', false)
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@ -81,11 +91,34 @@
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
|
||||
/* .tips {
|
||||
width: 462rpx;
|
||||
height: 106rpx;
|
||||
background-color: #5BE157;
|
||||
border-radius: 20rpx;
|
||||
} */
|
||||
.tips-box {
|
||||
width: 462rpx;
|
||||
height: 178rpx;
|
||||
position: absolute;
|
||||
padding-top: 72rpx;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.start {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.tips {
|
||||
width: 462rpx;
|
||||
height: 106rpx;
|
||||
background-color: #5BE157;
|
||||
border-radius: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.center {
|
||||
|
@ -18,6 +18,13 @@
|
||||
我是农民用户
|
||||
</view>
|
||||
</view>
|
||||
<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"
|
||||
height="200rpx" style="position: absolute;"></u-image>
|
||||
<view class="btn">
|
||||
我是商户
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -37,7 +44,9 @@
|
||||
url
|
||||
})
|
||||
},
|
||||
navSw(url) {
|
||||
navSw(url, isNewStore) {
|
||||
uni.setStorageSync('newStore', Boolean(isNewStore))
|
||||
// return
|
||||
uni.switchTab({
|
||||
url: url
|
||||
})
|
||||
|
@ -525,7 +525,8 @@
|
||||
preview: false,
|
||||
isSupport: true,
|
||||
isIndexClick: true,
|
||||
scrollTop: 0
|
||||
scrollTop: 0,
|
||||
// newStore:
|
||||
};
|
||||
},
|
||||
|
||||
@ -597,30 +598,13 @@
|
||||
};
|
||||
},
|
||||
// #endif
|
||||
|
||||
|
||||
|
||||
|
||||
created(options) {
|
||||
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
||||
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
||||
this.activeRouter = '/' + curRoute
|
||||
},
|
||||
onLoad(options) {
|
||||
// #ifdef APP
|
||||
uni.$on('offSubnvue', () => {
|
||||
this.subNvue.hide('slide-out-left')
|
||||
uni.switchTab({
|
||||
url: '/pages/user/index'
|
||||
})
|
||||
})
|
||||
uni.$on('diverIndexSubEmit', () => {
|
||||
this.subNvue.hide('slide-out-left')
|
||||
uni.switchTab({
|
||||
url: '/pages/gather/gather'
|
||||
})
|
||||
})
|
||||
// #endif
|
||||
|
||||
|
||||
let that = this
|
||||
this._options = options;
|
||||
@ -641,14 +625,8 @@
|
||||
},
|
||||
|
||||
onShow() {
|
||||
if (uni.getStorageSync('newStore')) this.openDiver();
|
||||
let that = this;
|
||||
// #ifdef APP-PLUS
|
||||
if (Boolean(uni.getStorageSync('is_new_user'))) {
|
||||
this.subNvue = uni.getSubNVueById('newUser')
|
||||
this.subNvue.show('slide-in-left', 300)
|
||||
}
|
||||
// #endif
|
||||
|
||||
that.isIntegral = uni.getStorageSync('isIntegral')
|
||||
// #ifdef APP-PLUS
|
||||
if (that.appUpdate.openUpgrade == '1') {
|
||||
@ -694,8 +672,37 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
/*新商户引导页相关*/
|
||||
openDiver() {
|
||||
// #ifdef APP
|
||||
this.subNvue = uni.getSubNVueById('newUser')
|
||||
this.subNvue.show('slide-in-left', 300)
|
||||
uni.$on('offSubnvue', () => {
|
||||
this.subNvue.hide('slide-out-left')
|
||||
if (uni.getStorageSync("newStore")) {
|
||||
uni.switchTab({
|
||||
url: '/pages/user/index'
|
||||
})
|
||||
}
|
||||
});
|
||||
// uni.$on('diverIndexSubEmit', () => {
|
||||
// this.subNvue.hide('slide-out-left')
|
||||
// uni.switchTab({
|
||||
// url: '/pages/gather/gather'
|
||||
// })
|
||||
// })
|
||||
// #endif
|
||||
|
||||
},
|
||||
/* 新商户发布商品引导页 */
|
||||
openListGoodsDiver() {
|
||||
if (Boolean(this.userInfo.service?.mer_id)) {
|
||||
uni.$on('diverIndexSubEmit', () => {
|
||||
this.subNvue.hide('slide-out-left')
|
||||
uni.switchTab({
|
||||
url: '/pages/gather/gather'
|
||||
})
|
||||
})
|
||||
isNewMer(this.userInfo.uid, this.userInfo.service?.mer_id).then(
|
||||
res => {
|
||||
if (res.data == 'true') {
|
||||
@ -1042,7 +1049,9 @@
|
||||
showTab(res.data);
|
||||
that.userInfo = res.data;
|
||||
this.$store.commit('SET_USERINFO', res.data);
|
||||
this.openDiver()
|
||||
// #ifdef APP
|
||||
this.openListGoodsDiver()
|
||||
// #endif
|
||||
});
|
||||
},
|
||||
// 记录会员访问
|
||||
|
@ -6,11 +6,15 @@
|
||||
<view class="next-btn" :style="{top:(offsetY-250)+'px'}">
|
||||
<text class="next-btn-text font" @click="next">下一步(1/4)</text>
|
||||
</view>
|
||||
<view class="tips center" :style="{top:(offsetY-178)+'px'}">
|
||||
<view class="tips-box" :style="{right:20, top:(offsetY-218)+'px'}">
|
||||
<view class="tips" style="position: absolute;padding-left: 20px;">
|
||||
<view class="tras" :class="{act:isActive}">
|
||||
<text class="font" style="line-height: 106rpx;">点击生产页面,进入办公助手</text>
|
||||
<text style="font-size: 28rpx;line-height: 100rpx;color: white;">点击我的页面,进行商户入驻</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="/static/images/starpng.png" class="start" mode="">
|
||||
</image>
|
||||
</view>
|
||||
<view style="position: absolute;" class="center" :style="{top:(offsetY-120)+'px'}">
|
||||
<image src="/static/images/greenLine.png" style="width:35px;height: 60px;" mode=""></image>
|
||||
</view>
|
||||
@ -25,6 +29,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
isNewMer
|
||||
} from '@/api/user.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -42,7 +49,11 @@
|
||||
|
||||
},
|
||||
jump() {
|
||||
uni.setStorageSync('is_new_user', false)
|
||||
isNewMer(this.$store.state.app.userInfo.uid, this.$store.state.app.userInfo.service?.mer_id, {
|
||||
done: 1
|
||||
}).then(res => {
|
||||
console.log(res, 'res')
|
||||
})
|
||||
uni.$emit('diverIndexSubEmit');
|
||||
}
|
||||
},
|
||||
@ -73,11 +84,28 @@
|
||||
top: 80rpx;
|
||||
}
|
||||
|
||||
.tips-box {
|
||||
width: 462rpx;
|
||||
height: 178rpx;
|
||||
position: absolute;
|
||||
padding-top: 72rpx;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.start {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.tips {
|
||||
width: 462rpx;
|
||||
height: 106rpx;
|
||||
background-color: #5BE157;
|
||||
border-radius: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.center {
|
||||
@ -139,7 +167,7 @@
|
||||
padding-left: 20rpx;
|
||||
position: absolute;
|
||||
z-index: 999 !important;
|
||||
width: 20px;
|
||||
width: 0px;
|
||||
transition-property: width;
|
||||
transition-duration: 3s;
|
||||
transition-delay: 0.1s;
|
||||
|
@ -7,7 +7,7 @@
|
||||
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">下一步(1/2)</text>
|
||||
</view>
|
||||
<view class="target" :style="{left:screenWidth/4*3,top:screenHeight-68}">
|
||||
<image src="/static/images/fabu.png" class="target-icon"></image>
|
||||
<image src="/static/images/ydwd.png" class="target-icon"></image>
|
||||
<text class="target-text">我的</text>
|
||||
</view>
|
||||
<view :style="{left:screenWidth/4*3,top:screenHeight-130}">
|
||||
@ -38,8 +38,8 @@
|
||||
},
|
||||
methods: {
|
||||
jump() {
|
||||
uni.setStorageSync("newStore", false)
|
||||
uni.$emit('offSubnvue');
|
||||
uni.setStorageSync("is_new_user", 0)
|
||||
},
|
||||
next() {
|
||||
uni.$emit('offSubnvue');
|
||||
|
@ -89,7 +89,7 @@
|
||||
<view class="businessBox"
|
||||
:style="{'color':(business_name == '' || business_name.length == 5)?'#B2B2B2':''}"
|
||||
style="width: 400rpx;word-break: keep-all;line-height: 40rpx;font-size: 30rpx;">
|
||||
{{(business_name == '' || business_name.length == 5)?'请选择商圈':business_name}}
|
||||
{{(business_name == '' || business_name.length == 5)?'请选择商12圈':business_name}}
|
||||
</view>
|
||||
<view class='iconfont icon-jiantou'></view>
|
||||
</picker>
|
||||
|
@ -174,14 +174,14 @@
|
||||
</view>
|
||||
<!-- 会员菜单 -->
|
||||
<view class="user-menus" style="margin-top: 20rpx;">
|
||||
<view class="title skeleton-rect">我的2服务</view>
|
||||
<view class="title skeleton-rect">我的服务</view>
|
||||
<view class="menu-box">
|
||||
<block v-for="(item,index) in personalMenu" :key="index" :id="'target'+index">
|
||||
<view v-if="item.isShow" class="item ">
|
||||
<view @click="authTo(item.url)" class="item-count">
|
||||
<image v-if="showSkeleton" class="skeleton_image skeleton-radius"></image>
|
||||
<image v-else :src="item.pic" class="targets"></image>
|
||||
<text>{{item.name+index}}</text>
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@ -483,12 +483,11 @@
|
||||
.boundingClientRect((data) => {
|
||||
that.elInfo = data
|
||||
// #ifdef APP-PLUS
|
||||
if (Boolean(uni.getStorageSync('is_new_user'))) {
|
||||
if (Boolean(uni.getStorageSync('newStore'))) {
|
||||
that.subNvue = uni.getSubNVueById('userSubnvu')
|
||||
that.subNvue.show('slide-in-left', 300)
|
||||
uni.$emit('openUserSubnvue', JSON.stringify(data))
|
||||
}
|
||||
|
||||
// #endif
|
||||
})
|
||||
.exec();
|
||||
@ -503,17 +502,12 @@
|
||||
},
|
||||
onShow: function() {
|
||||
// #ifdef APP-PLUS
|
||||
// this.subNvue = uni.getSubNVueById('userSubnvu')
|
||||
// this.subNvue.show('slide-in-left', 300)
|
||||
// uni.$emit('openUserSubnvue', JSON.stringify(this.elInfo))
|
||||
if (Boolean(uni.getStorageSync('is_new_user')) && this.elInfo) {
|
||||
if ((uni.getStorageSync('newStore')) && this.elInfo) {
|
||||
this.subNvue = uni.getSubNVueById('userSubnvu')
|
||||
this.subNvue.show('slide-in-left', 300)
|
||||
uni.$emit('openUserSubnvue', JSON.stringify(this.elInfo))
|
||||
}
|
||||
|
||||
// #endif
|
||||
|
||||
let that = this;
|
||||
let routes = getCurrentPages();
|
||||
let curRoute = routes[routes.length - 1].route
|
||||
|
@ -1,13 +1,14 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<view class="jump" @click="jump">
|
||||
<view class="jump" @click="next">
|
||||
<text class="font">跳过</text>
|
||||
</view>
|
||||
<view class="next-btn center" :style="{ left:screenWidth/2,top:(screenHeight-96)}">
|
||||
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">我知道了</text>
|
||||
</view>
|
||||
<view class="target" :style="{left:left-20,top:top-13.5}">
|
||||
<image src="/static/images/fabu.png" class="target-icon"></image>
|
||||
<image src="http://lihai001.oss-cn-chengdu.aliyuncs.com/def/6202d269b6163b9ec7a4383559fc67a8.png"
|
||||
class="target-icon"></image>
|
||||
<text class="target-text">商家入驻</text>
|
||||
</view>
|
||||
<view :style="{left:left-20,top:top-70}" class="trans1">
|
||||
@ -39,20 +40,14 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jump() {
|
||||
uni.$emit('offuserSubnvue');
|
||||
uni.setStorageSync("is_new_user", 0)
|
||||
},
|
||||
next() {
|
||||
uni.$emit('offuserSubnvue');
|
||||
uni.setStorageSync("is_new_user", 0)
|
||||
uni.setStorageSync("newStore", false)
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let that = this
|
||||
uni.$on('openUserSubnvue', (data) => {
|
||||
console.log('获取到的data')
|
||||
console.log(JSON.parse(data))
|
||||
that.left = JSON.parse(data).left
|
||||
that.top = JSON.parse(data).top
|
||||
})
|
||||
@ -65,8 +60,6 @@
|
||||
setTimeout(() => {
|
||||
that.isAct = true
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 13 KiB |
BIN
static/images/ydwd.png
Normal file
BIN
static/images/ydwd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
@ -49,8 +49,8 @@ const loadMP = async (id) => {
|
||||
else uni.$emit('showLoading', true, `初始化中... 99%`)
|
||||
}, 200)
|
||||
let downloadTask = uni.downloadFile({
|
||||
// url: info.data.version_info?.dow_url,
|
||||
url: "https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/36e40202405031202367449.wgt",
|
||||
url: info.data.version_info?.dow_url,
|
||||
// url: "https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/36e40202405031202367449.wgt",
|
||||
success(res) {
|
||||
wgtFile = res.tempFilePath;
|
||||
setTimeout(() => {
|
||||
@ -221,8 +221,8 @@ const loadAppletMP = async (data) => {
|
||||
else uni.$emit('showLoading', true, `初始化中... 99%`)
|
||||
}, 200)
|
||||
let downloadTask = uni.downloadFile({
|
||||
// url: data.url,
|
||||
url: "https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/3ffde202405031254278460.wgt",
|
||||
url: data.url,
|
||||
// url: "https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/3ffde202405031254278460.wgt",
|
||||
success(res) {
|
||||
wgtFile = res.tempFilePath;
|
||||
console.log('初始化完成', wgtFile);
|
||||
@ -356,7 +356,7 @@ const open = (id = null) => {
|
||||
mp.sendUniMPEvent(appid, 'tocustomlist', id, (ret) => {
|
||||
console.log("开始发送消息")
|
||||
});
|
||||
}, 3000)
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user