代码优化

This commit is contained in:
jia 2023-09-05 11:48:08 +08:00
parent 22725b4c2e
commit 8ac4784129
2 changed files with 23 additions and 19 deletions

View File

@ -31,7 +31,7 @@
:show="jurisdiction" :show="jurisdiction"
mode="permission" mode="permission"
:text="emptyText" :text="emptyText"
icon="/static/empty/permission.png" icon="http://cdn.uviewui.com/uview/empty/permission.png"
></u-empty> ></u-empty>
<view class="business com special_work" v-if="jurisdiction == false"> <view class="business com special_work" v-if="jurisdiction == false">
<view class="title project"> <view class="title project">
@ -101,9 +101,12 @@
</view> </view>
</view> </view>
<!-- <view class="" v-if="jurisdiction == false && isShow == false"> <view class="" v-if="jurisdiction == false && isShow == false">
<emptyPage title="暂无信息"></emptyPage> <emptyPage title="暂无信息"></emptyPage>
</view> --> </view>
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
</view> </view>
</template> </template>
@ -139,9 +142,7 @@ import {
import { import {
getDiy getDiy
} from '@/api/api.js'; } from '@/api/api.js';
// #ifdef APP-PLUS
import uniMP from '@/utils/uniMP.js'; import uniMP from '@/utils/uniMP.js';
// #endif
export default { export default {
components: { components: {
@ -337,7 +338,7 @@ export default {
uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList)); uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList));
}, },
getUniMp (appid) { getUniMp (appid) {
console.log('点击小程序'); console.log('点击供销平台');
// #ifdef APP-PLUS // #ifdef APP-PLUS
uniMP.loadMP(appid); uniMP.loadMP(appid);
return; return;
@ -364,7 +365,7 @@ export default {
} }
}, },
Area () { Area() {
getArea({ getArea({
city_code: 510500 city_code: 510500
}).then(res => { }).then(res => {

View File

@ -163,9 +163,8 @@
this.getCateList() this.getCateList()
this.getArticle() // this.getArticle()
this.getGoods() this.getGoods()
this.Area() this.Area()
//this.setPermissions() //this.setPermissions()
@ -229,7 +228,10 @@
}, },
// #endif // #endif
beforeDestroy () {
//
this.$bus.$off('value-updated')
},
methods: { methods: {
scrolling() { scrolling() {
@ -725,6 +727,7 @@
/deep/.u-tabs__wrapper__nav__line { /deep/.u-tabs__wrapper__nav__line {
width: 46rpx; width: 46rpx;
margin-left: -2rpx;
} }