add
This commit is contained in:
parent
47a2821fa0
commit
51fe5f25b6
@ -132,8 +132,8 @@ export function phonelogin(data) {
|
|||||||
* 获取用户中心菜单
|
* 获取用户中心菜单
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export function getMenuList() {
|
export function getMenuList(data) {
|
||||||
return request.get("common/menus", {}, {
|
return request.get("common/menus", data, {
|
||||||
noAuth: true
|
noAuth: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
我是经销商
|
我是经销商
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 50rpx;"></view>
|
<view style="height: 50rpx;"></view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -63,7 +63,7 @@
|
|||||||
if (isNewStoreType == 1) uni.setStorageSync('newStore', true);
|
if (isNewStoreType == 1) uni.setStorageSync('newStore', true);
|
||||||
if (isNewStoreType == 2) uni.setStorageSync('newSupplier', true);
|
if (isNewStoreType == 2) uni.setStorageSync('newSupplier', true);
|
||||||
if (isNewStoreType == 3) uni.setStorageSync('newDistribution', true);
|
if (isNewStoreType == 3) uni.setStorageSync('newDistribution', true);
|
||||||
console.log(uni.getStorageSync('newSupplier'), uni.getStorageSync('newDistribution'))
|
uni.setStorageSync('userType', isNewStoreType)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: url
|
url: url
|
||||||
})
|
})
|
||||||
|
@ -707,7 +707,7 @@
|
|||||||
this.$store.commit('SET_STOKEN', res.data?.token);
|
this.$store.commit('SET_STOKEN', res.data?.token);
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("获取报错", err)
|
// console.log("获取报错", err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -792,8 +792,9 @@
|
|||||||
*/
|
*/
|
||||||
getMyMenus: function() {
|
getMyMenus: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (this.MyMenus.length) return;
|
getMenuList({
|
||||||
getMenuList().then(res => {
|
type: uni.getStorageSync('userType') || null
|
||||||
|
}).then(res => {
|
||||||
that.personalMenu = []
|
that.personalMenu = []
|
||||||
res.data.menu.forEach((item, index) => {
|
res.data.menu.forEach((item, index) => {
|
||||||
that.filterMenus(item)
|
that.filterMenus(item)
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">我知道了</text>
|
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">我知道了</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="target" :style="{left:left-20,top:top-13.5}" @click="next">
|
<view class="target" :style="{left:left-20,top:top-13.5}" @click="next">
|
||||||
<image src="http://lihai001.oss-cn-chengdu.aliyuncs.com/def/6202d269b6163b9ec7a4383559fc67a8.png"
|
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/af251202405251345514747.png"
|
||||||
class="target-icon"></image>
|
class="target-icon"></image>
|
||||||
<text class="target-text">经销入驻</text>
|
<text class="target-text">经销入驻</text>
|
||||||
</view>
|
</view>
|
||||||
<view :style="{left:left-20+'px',top:top-70+'px'}" class="trans1">
|
<view :style="{left:left-20+'px',top:top-70+'px'}" class="trans1">
|
||||||
<image src="/static/images/pointer.png" style="width: 254rpx;height: 254rpx;"></image>
|
<image src="/static/images/pointer.png" style="width: 254rpx;height: 254rpx;"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="tips-box" :style="{left:left-200,top:top-170}">
|
<view class="tips-box" :style="{left:left-100,top:top-170}">
|
||||||
<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>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">我知道了</text>
|
<text class="next-btn-text font" style="line-height: 76rpx;" @click="next">我知道了</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="target" :style="{left:left-20,top:top-13.5}" @click="next">
|
<view class="target" :style="{left:left-20,top:top-13.5}" @click="next">
|
||||||
<image src="http://lihai001.oss-cn-chengdu.aliyuncs.com/def/6202d269b6163b9ec7a4383559fc67a8.png"
|
<image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/c251a202405251344552292.png"
|
||||||
class="target-icon"></image>
|
class="target-icon"></image>
|
||||||
<text class="target-text">供应入驻</text>
|
<text class="target-text">供应入驻</text>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user