Commit 26a9c377 authored by Morson's avatar Morson

feat(parts):备件模块接口联调

parent addd27d9
......@@ -5,7 +5,7 @@ const UNI_APP = {
// banshou: 'https://m.banshou.com', //扳手app
},
systemUrl: {
apiUrl: 'http://192.168.0.62:37080', //java端域名请求头
apiUrl: 'http://192.168.1.22', //java端域名请求头
// apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头
},
qn_base_url: 'https://qn-static.banshouhui.com/self-support/',
......
(function () {
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let NODE_ENV = 'dev'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null;
let VERSION_NUMBER = '1.3.6';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
......
......@@ -8,7 +8,7 @@
<view>{{remarkText}}</view>
</view>
</view>
<view class="count-view">x{{item.quantity}}</view>
<view class="count-view">x{{item.quantity||0}}</view>
</view>
</template>
......
......@@ -139,14 +139,14 @@
return [
{
pathName: 'warehouse/index',
title: '我的配件',
title: '备件订单',
value: '',
icon: process.uniEnv.qn_base_url + 'wodepeijian.png',
imageStyle: 'width:60rpx;height:54rpx'
},
{
pathName: 'warehouse/spare',
title: '我的备件',
title: '备件库',
value: '',
icon: process.uniEnv.qn_base_url + 'wodebeijian.png',
imageStyle: 'width:60rpx;height:54rpx'
......
This diff is collapsed.
......@@ -124,7 +124,8 @@
},
},
onLoad(e) {
getApp().trackPage('我的备件页')
this.$u.vuex("vuex_token", 'RTOKEN3c193c7c1727930d45649096f87bbe62131dbc5d');
getApp().trackPage('备件库页')
this.getReserveList()
},
methods: {
......@@ -138,39 +139,6 @@
this.$u.api.reserveList(param).then((res) => {
if (res.code == 200) {
res.data = [{
"name": "minim in dolor",
"quantity": 15128407.808330506,
"skuId": -31990898.14022602,
"images": "mollit nisi Duis",
"remark": "in elit",
"code": "esse commodo Ut ex cillum",
"stock": "8"
}, {
"name": "Excepteur ullamco dolore",
"quantity": -16408657.848651886,
"skuId": 99507283.4197697,
"images": "dolore velit",
"remark": "fugiat",
"code": "elit dolore",
"stock": "71"
}, {
"name": "consectetur tempor ut in eu",
"quantity": -16070458.813757822,
"skuId": 95208174.19993973,
"images": "do eiusmod",
"remark": "amet magna",
"code": "do",
"stock": "100"
}, {
"name": "deserunt",
"quantity": 12448683.358913198,
"skuId": -78230180.52803165,
"images": "irure ut commodo",
"remark": "dolore quis",
"code": "deserunt cillum incididunt proident",
"stock": "10"
}]
this.partsList = []
let list = res.data || []
for (var item of list) {
......
......@@ -75,10 +75,10 @@
}
if(this.isReturn){
var pages = getCurrentPages();
if(pages.length >= 3) {
var prevPage = pages[pages.length - 3];
prevPage.$vm.getReserveList()
this.$u.route({type:'back', delta: 2})
if(pages.length >= 4) {
var prevPage = pages[pages.length - 4];
this.$u.route({type:'back', delta: 3})
prevPage.$vm.$u.route({url: 'pages/mine/warehouse/return'})
} else {
this.$u.route({type:'back'})
}
......
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 to comment