Commit b6a2235b by 施宇

111

parent aeada657
......@@ -74,8 +74,8 @@
"selectedIconPath": "/res/images/icons/home-icon-act.png"
},
{
"pagePath": "pages/tab/price/price",
"text": "询报价",
"pagePath": "pages/list/qd/index",
"text": "抢单专区",
"iconPath": "/res/images/icons/price-icon.png",
"selectedIconPath": "/res/images/icons/price-icon-act.png"
},
......
......@@ -58,7 +58,10 @@ Page({
if (!obj.day.trim().length) {
tips('请填写货期');
return
}
} else if (obj.day.trim().length > 6) {
tips('货期不能大于6个字符');
return
}
}
}
this.postData(obj);
......
......@@ -122,7 +122,10 @@ Page({
if (!obj.day.trim().length) {
tips('请填写货期');
return
}
} else if (obj.day.trim().length > 6) {
tips('货期不能大于6个字符');
return
}
}
}
this.postData(obj);
......
......@@ -55,7 +55,10 @@ Page({
if (!obj.day.trim().length) {
tips('请填写货期');
return
}
} else if (obj.day.trim().length>6){
tips('货期不能大于6个字符');
return
}
}
}
this.postData(obj);
......
// pages/list/qd/index.js
import {
getData
getData,
judgeToken
} from '../../../utils/util.js';
import {
apis
......
......@@ -223,10 +223,17 @@ Page({
}
},
toQd: function () {
if (judgeToken(true)) {
wx.navigateTo({
// if (judgeToken(true)) {
wx.switchTab({
url: "/pages/list/qd/index"
})
// }
},
toPrice:function(){
if (judgeToken(true)) {
wx.navigateTo({
url: "/pages/tab/price/price"
})
}
}
})
\ No newline at end of file
......@@ -10,9 +10,9 @@
<image src="/res/images/icons/home-s-1.png" class="img"></image>
<text class="text">发布询价</text>
</view>
<view class="function-item column verCenter" bindtap="toQd">
<view class="function-item column verCenter" bindtap="toPrice">
<image src="/res/images/icons/home-s-2.png" class="img"></image>
<text class="text">抢单专区</text>
<text class="text">询报价</text>
</view>
<view class="function-item column verCenter" bindtap="fbGood">
<image src="/res/images/icons/home-s-3.png" class="img"></image>
......
......@@ -21,9 +21,10 @@ Page({
*/
onLoad: function (options) {
let me = this;
if (judgeToken(true)) {
// if (judgeToken(true)) {
this.getData();
};
// };
getApp().globalData.bus.off('addXj');
getApp().globalData.bus.on('addXj', () => {
if (me.data.tabIndex == 1) {
me.setData({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment