Browse Source

no message

featrue/v4.3
xpz2018 5 years ago
parent
commit
3ee7719b1c
7 changed files with 14 additions and 88 deletions
  1. 1
      app.json
  2. 14
      pages/agent/ability/index.js
  3. 4
      pages/agent/ability/index.json
  4. 6
      pages/agent/ability/index.wxml
  5. 64
      pages/agent/ability/index.wxss
  6. 10
      pages/agent/focus-fragment/index.js
  7. 3
      pages/agent/index/index.js

1
app.json

@ -51,6 +51,7 @@
"pages/morder/detail/index", "pages/morder/detail/index",
"pages/order/detail/index", "pages/order/detail/index",
"pages/agent/index/index", "pages/agent/index/index",
"pages/agent/ability/index",
"pages/agent/factory/index", "pages/agent/factory/index",
"pages/agent/edit/index", "pages/agent/edit/index",
"pages/agent/order/index", "pages/agent/order/index",

14
pages/agent/ability/index.js

@ -76,20 +76,10 @@ Page({
}) })
} }
} else { } else {
this.setData({
finished: true,
requesting: false,
loading: false,
pageNum: 1
})
this.setData({ requesting: false, finished: true, loading: false })
} }
}).catch(err => { }).catch(err => {
//异常回调
this.setData({
requesting: false,
finished: true,
loading: false,
})
this.setData({ requesting: false, finished: true, loading: false })
}) })
} }

4
pages/agent/ability/index.json

@ -5,10 +5,8 @@
"wux-skeleton-paragraph": "/components/skeleton-paragraph/index", "wux-skeleton-paragraph": "/components/skeleton-paragraph/index",
"wux-button": "/components/button/index", "wux-button": "/components/button/index",
"refresh-view": "/components/refresher/index", "refresh-view": "/components/refresher/index",
"wux-tabi": "/components/tabi/index",
"wux-image": "/components/image/index", "wux-image": "/components/image/index",
"wux-divider": "/components/divider/index", "wux-divider": "/components/divider/index",
"agent-item": "/pages/agent/agent-item/index",
"wux-dialog": "/components/dialog/index"
"agent-item": "/pages/agent/agent-item/index"
} }
} }

6
pages/agent/ability/index.wxml

@ -14,7 +14,7 @@
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> <view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<view wx:for="{{pageItem}}" wx:key="index"> <view wx:for="{{pageItem}}" wx:key="index">
<view style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view> <view style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
<agent-item item="{{item}}"></agent-item>
<agent-item item="{{item}}"></agent-item>
</view> </view>
</view> </view>
<!--加载更多的UI--> <!--加载更多的UI-->
@ -27,6 +27,4 @@
</wux-divider> </wux-divider>
</view> </view>
</view> </view>
</refresh-view>
<wux-dialog id="wux-dialog" />
</refresh-view>

64
pages/agent/ability/index.wxss

@ -1,63 +1 @@
/* pages/agent/index/index.wxss */
.bj{
height: 1300rpx;
background-color: white;
}
.bgImgView {
width: 100%;
height: 548rpx;
padding: 160rpx 186rpx 94rpx 186rpx;
background-color: white;
}
.imgsj {
height: 294rpx;
width: 378rpx;
}
.midText {
width: 100%;
height: 67rpx;
padding: 0rpx 279rpx 0rpx 279rpx;
}
.midText2 {
font-size: 48rpx;
color: #000000;
letter-spacing: 0;
text-align: left;
}
.midText3 {
width: 100%;
height: 45px;
padding: 0rpx 199rpx 0rpx 199rpx;
margin-top: 12rpx;
}
.midText4 {
font-size: 32rpx;
color: rgba(0, 0, 0, 0.75);
letter-spacing: 0;
text-align: left;
}
.bg-blue{
color: #FFFFFF;
background-color: #008AFF;
}
.offer-btn {
width: 480rpx;
height: 88rpx;
background: linear-gradient(312deg, rgba(38, 125, 214, 1) 0%, rgba(0, 138, 255, 1) 100%);
box-shadow: 0px 10px 13px -8px rgba(35, 126, 217, 0.53);
border-radius: 10rpx;
color: white;
font-size: 32rpx;
margin-left: 32rpx;
}
.bottomBtn{
width: 100%;
height: 88rpx;
padding:0rpx 135rpx 0rpx 135rpx;
}
/* pages/agent/index/index.wxss */

10
pages/agent/focus-fragment/index.js

@ -1,3 +1,4 @@
import util from "../../../utils/util"
// pages/agent/index/index.js // pages/agent/index/index.js
import { getFactoryPrice, getBaseInfo, updateUserInfo } from "../../api/ztb" import { getFactoryPrice, getBaseInfo, updateUserInfo } from "../../api/ztb"
const event = require('../../../utils/event') const event = require('../../../utils/event')
@ -51,6 +52,9 @@ Component({
} }
}, },
onRestart: function () { onRestart: function () {
if(!app.globalData.userInfo){
return
}
getBaseInfo().then(result => { getBaseInfo().then(result => {
if (result.data.isSetProxyTag == false) { if (result.data.isSetProxyTag == false) {
updateUserInfo({ isSetProxyTag: true }).then(result => {}) updateUserInfo({ isSetProxyTag: true }).then(result => {})
@ -65,9 +69,7 @@ Component({
text: '确定', text: '确定',
type: 'primary', type: 'primary',
onTap(e) { onTap(e) {
wx.navigateTo({
url: '/pages/home/attentionPaperList/index'
})
util.navigateTo('/pages/home/attentionPaperList/index')
} }
}] }]
}) })
@ -134,7 +136,7 @@ Component({
}) })
}, },
goattentionIndex: function () { goattentionIndex: function () {
wx.navigateTo({ url: '/pages/home/attentionPaperList/index' })
util.navigateTo('/pages/home/attentionPaperList/index')
} }
} }

3
pages/agent/index/index.js

@ -6,7 +6,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
height: app.globalData.fragmentHeight - 90,
height: app.globalData.fragmentHeight,
CustomBar: app.globalData.CustomBar, CustomBar: app.globalData.CustomBar,
TabList: [ TabList: [
{ index: 0, value: 'focus', name: '关注' }, { index: 0, value: 'focus', name: '关注' },
@ -20,7 +20,6 @@ Page({
onLoad: function (options) { onLoad: function (options) {
this.setData({ this.setData({
height: app.globalData.fragmentHeight, height: app.globalData.fragmentHeight,
kg: app.globalData.kg,
StatusBar: app.globalData.StatusBar || 40, StatusBar: app.globalData.StatusBar || 40,
CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80), CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80),
}) })

Loading…
Cancel
Save