|
@@ -132,36 +132,6 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <!-- <u-tabbar v-model="current" :list="listTab" :mid-button="true"></u-tabbar> -->
|
|
|
|
- <!-- <view v-if='scrollTop>100' class='goTop'><image src='../../static/top.png' @click="goTop"></image></view> -->
|
|
|
|
-
|
|
|
|
- <!-- <u-back-top :scroll-top="scrollTop" tips="顶部" :custom-style="{backgroundColor: '#a0cfff',color: '#2979ff'}"
|
|
|
|
- :iconStyle="{color: '#2979ff',fontSize: '34rpx'}" mode="square"icon="arrow-up" ></u-back-top> -->
|
|
|
|
- <!-- <view class="cu-bar tabbar bg-white shadow foot">
|
|
|
|
- <view :class="PageCur=='sale'?'action text-pink':'action text-gray'" @click="NavChange" data-cur="sale">
|
|
|
|
- <view><image style='width:21px;height:23px;' :src="PageCur=='sale'?'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png':'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png'"></image></view> 资讯
|
|
|
|
- </view>
|
|
|
|
- <view :class="PageCur=='buy'?'action text-pink':'action text-gray'" @click="NavChange" data-cur="buy">
|
|
|
|
- <view><image style='width:25px;height:25px;' :src="PageCur=='buy'?'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png':'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png'"></image></view>交易
|
|
|
|
- </view>
|
|
|
|
- <view :class="PageCur=='trust'?'action text-pink add-action':'action text-gray add-action'" @click="NavChange"
|
|
|
|
- data-cur="trust">
|
|
|
|
- <button :class="PageCur=='trust'?'cuIcon-group':'cu-btn cuIcon-group bg-white '">
|
|
|
|
- <view v-if="liangxinTip" class="cu-tag badge">{{liangxinTip}}</view>
|
|
|
|
- </button>
|
|
|
|
- 粮信
|
|
|
|
- </view>
|
|
|
|
- <view v-if="showTran" :class="PageCur=='tran'?'action text-pink':'action text-gray'" @click="NavChange" data-cur="tran">
|
|
|
|
- <view><image style='width:25px;height:20px;' :src="PageCur=='tran'?'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png':'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png'"></image></view> 物流
|
|
|
|
- </view>
|
|
|
|
- <view :class="PageCur=='my'?'action text-pink':'action text-gray'" @click="NavChange" data-cur="my">
|
|
|
|
- <view>
|
|
|
|
- <view v-if="myTip" class="cu-tag badge">{{myTip}}</view>
|
|
|
|
- <image style='width:21px;height:21px;' :src="PageCur=='my'?'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png':'https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png'"></image>
|
|
|
|
- </view>
|
|
|
|
- 我的
|
|
|
|
- </view>
|
|
|
|
- </view> -->
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -180,7 +150,6 @@
|
|
name: "sale",
|
|
name: "sale",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- PageCur: "sale",
|
|
|
|
titleNViewBackground: '',
|
|
titleNViewBackground: '',
|
|
swiperCurrent: 0,
|
|
swiperCurrent: 0,
|
|
swiperLength: 0,
|
|
swiperLength: 0,
|
|
@@ -215,52 +184,21 @@
|
|
onReady() {
|
|
onReady() {
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- if (uni.getStorageSync("PageCur")) {
|
|
|
|
- this.PageCur = uni.getStorageSync("PageCur");
|
|
|
|
- }
|
|
|
|
- this.isVip = this.$api.isVip()
|
|
|
|
|
|
+ uni.showTabBar()
|
|
this.pages = 1
|
|
this.pages = 1
|
|
this.isLoadMore = false
|
|
this.isLoadMore = false
|
|
this.loadStatus = 'more'
|
|
this.loadStatus = 'more'
|
|
const that = this
|
|
const that = this
|
|
- // if(!uni.getStorageSync('policyStorageKey')){
|
|
|
|
- // uni.navigateTo({
|
|
|
|
- // url:'/pages/sale/index'
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // else{
|
|
|
|
- this.loadData()
|
|
|
|
- // }
|
|
|
|
- // if (!this.hasLogin) {
|
|
|
|
- // uni.showModal({
|
|
|
|
- // title: '登录提示',
|
|
|
|
- // content: '您尚未登录,是否立即登录?',
|
|
|
|
- // showCancel: true,
|
|
|
|
- // confirmText: '登录',
|
|
|
|
- // success: (e) => {
|
|
|
|
- // if (e.confirm) {
|
|
|
|
- // uni.navigateTo({
|
|
|
|
- // url: '/pages/public/login'
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // else{
|
|
|
|
- // this.loadData()
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // fail: () => {},
|
|
|
|
- // complete: () => {}
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // else{
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ this.loadData()
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
- uni.removeStorage({
|
|
|
|
- key: 'PageCur'
|
|
|
|
- })
|
|
|
|
- // this.loadData()
|
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
+ plus.push.getClientInfoAsync((info) => {
|
|
|
|
+ uni.setStorageSync('clientId', info.clientid)
|
|
|
|
+ console.log("info.clientid",info.clientid)
|
|
|
|
+ }, err => {
|
|
|
|
+ });
|
|
|
|
+ // #endif
|
|
},
|
|
},
|
|
onPageScroll(e) {
|
|
onPageScroll(e) {
|
|
this.scrollTop = e.scrollTop;
|
|
this.scrollTop = e.scrollTop;
|
|
@@ -285,7 +223,6 @@
|
|
DotStyle(e) {
|
|
DotStyle(e) {
|
|
this.dotStyle = e.detail.value
|
|
this.dotStyle = e.detail.value
|
|
},
|
|
},
|
|
- // cardSwiper
|
|
|
|
cardSwiper(e) {
|
|
cardSwiper(e) {
|
|
this.cardCur = e.detail.current
|
|
this.cardCur = e.detail.current
|
|
},
|
|
},
|
|
@@ -299,56 +236,6 @@
|
|
this.category = this.TabCur
|
|
this.category = this.TabCur
|
|
this.pages = 1
|
|
this.pages = 1
|
|
this.loadData()
|
|
this.loadData()
|
|
- },
|
|
|
|
- NavChange: function(e) {
|
|
|
|
- console.log(e)
|
|
|
|
- var preCur = this.PageCur
|
|
|
|
- this.PageCur = e.currentTarget.dataset.cur
|
|
|
|
- uni.setStorageSync('PageCur', this.PageCur);
|
|
|
|
- switch (this.PageCur) {
|
|
|
|
- case "sale":
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/sale/information'
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case "buy":
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/buy/transaction'
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case "tran":
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/tran/tran'
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case "trust":
|
|
|
|
- // uni.showModal({
|
|
|
|
- // title: '温馨提示',
|
|
|
|
- // content: '此功能正在开发中',
|
|
|
|
- // showCancel: false,
|
|
|
|
- // confirmText: '确定',
|
|
|
|
- // success: (e) => {
|
|
|
|
- // },
|
|
|
|
- // fail: () => {},
|
|
|
|
- // complete: () => {}
|
|
|
|
- // })
|
|
|
|
- // this.PageCur = preCur
|
|
|
|
- // uni.setStorageSync('PageCur', this.PageCur);
|
|
|
|
- uni.setTabBarItem({
|
|
|
|
- index: 0,
|
|
|
|
- pagePath:'pages/home/home'
|
|
|
|
- })
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/home/home'
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case "my":
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/user/user'
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
//回到顶部
|
|
//回到顶部
|
|
goTop(e) { // 一键回到顶部
|
|
goTop(e) { // 一键回到顶部
|