页面修改
@ -76,11 +76,14 @@
|
|||||||
共计{{goodsInfo.product_count}}件商品
|
共计{{goodsInfo.product_count}}件商品
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-button type="primary" @click="qrqodeFn" class="custom-style"
|
<u-button v-if="!is_captain" type="primary" @click="qrqodeFn" class="custom-style"
|
||||||
style="background-color: #0122C7;border: 0;">
|
style="background-color: #0122C7;border: 0;">
|
||||||
<u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon>
|
<u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon>
|
||||||
扫码取货</u-button>
|
扫码取货</u-button>
|
||||||
|
<u-button v-else type="primary" @click="goDetil" class="custom-style"
|
||||||
|
style="background-color: #0122C7;border: 0;">
|
||||||
|
<u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon>
|
||||||
|
查看详情</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -141,9 +144,13 @@
|
|||||||
共计{{goodsInfo.product_count}}件商品
|
共计{{goodsInfo.product_count}}件商品
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-button type="primary" @click="showPop = true"
|
<u-button v-if="!is_captain" type="primary" @click="showPop = true"
|
||||||
style="background-color: #FF7C32; border: 0;"><u-icon name="car-fill" color="white"
|
style="background-color: #FF7C32; border: 0;"><u-icon name="car-fill" color="white"
|
||||||
size="25" style="margin-right: 10rpx;"></u-icon> 货物送达</u-button>
|
size="25" style="margin-right: 10rpx;"></u-icon> 货物送达</u-button>
|
||||||
|
<u-button v-else type="primary" @click="goDetil" class="custom-style"
|
||||||
|
style="background-color: #FF7C32;border: 0;">
|
||||||
|
<u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon>
|
||||||
|
查看详情</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -298,6 +305,7 @@
|
|||||||
props: ['goodsInfo'],
|
props: ['goodsInfo'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
is_captain: 0,
|
||||||
list: [],
|
list: [],
|
||||||
flag: undefined,
|
flag: undefined,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
@ -305,6 +313,9 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLaunch() {
|
||||||
|
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fuzzyName(name) {
|
fuzzyName(name) {
|
||||||
let length = name.length;
|
let length = name.length;
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<view style="margin-top: 200rpx;height: 1px;">
|
<view style="margin-top: 200rpx;height: 1px;">
|
||||||
<!-- 565 -->
|
<!-- 565 -->
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn" v-if="!is_captain">
|
||||||
<u-button @click="qrqodeFn" type="primary" style="background-color: #0122C7;border: 0;">
|
<u-button @click="qrqodeFn" type="primary" style="background-color: #0122C7;border: 0;">
|
||||||
<u-icon name="scan" color="white" size="30" style="margin-right: 10rpx;"></u-icon>
|
<u-icon name="scan" color="white" size="30" style="margin-right: 10rpx;"></u-icon>
|
||||||
扫码取货</u-button>
|
扫码取货</u-button>
|
||||||
@ -166,6 +166,7 @@
|
|||||||
|
|
||||||
// 唤起高德
|
// 唤起高德
|
||||||
test() {
|
test() {
|
||||||
|
if (this.is_captain) return
|
||||||
var packageName = 'com.autonavi.minimap';
|
var packageName = 'com.autonavi.minimap';
|
||||||
var main = plus.android.runtimeMainActivity();
|
var main = plus.android.runtimeMainActivity();
|
||||||
var packageManager = main.getPackageManager();
|
var packageManager = main.getPackageManager();
|
||||||
@ -291,7 +292,8 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(JSON.parse(uni.getStorageSync("USER_INFO")).is_captain)
|
// console.log()
|
||||||
|
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
|
||||||
getDetil({
|
getDetil({
|
||||||
logistics_id: options.id
|
logistics_id: options.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
is_captain: "",
|
||||||
notArr: [],
|
notArr: [],
|
||||||
keywords: "",
|
keywords: "",
|
||||||
tabLists: [{
|
tabLists: [{
|
||||||
@ -89,8 +90,9 @@
|
|||||||
let id = JSON.parse(uni.getStorageSync('USER_INFO')).id
|
let id = JSON.parse(uni.getStorageSync('USER_INFO')).id
|
||||||
getList({
|
getList({
|
||||||
status: this.curNow,
|
status: this.curNow,
|
||||||
courier_id: id,
|
user_id: id,
|
||||||
keywords: this.keywords
|
keywords: this.keywords,
|
||||||
|
user_type: this.is_captain
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.orderlist = []
|
this.orderlist = []
|
||||||
this.orderlist = res.data.data
|
this.orderlist = res.data.data
|
||||||
@ -99,6 +101,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.is_captain = JSON.parse(uni.getStorageSync('USER_INFO')).is_captain
|
||||||
let that = this
|
let that = this
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
jpushModule.addNotificationListener(function(result) {
|
jpushModule.addNotificationListener(function(result) {
|
||||||
|
@ -195,6 +195,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
is_captain: 0,
|
||||||
iconList: [
|
iconList: [
|
||||||
"../../static/img/home/GSXX.png",
|
"../../static/img/home/GSXX.png",
|
||||||
"../../static/img/home/RYGL.png",
|
"../../static/img/home/RYGL.png",
|
||||||
@ -248,6 +249,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -291,7 +293,8 @@
|
|||||||
async getOrderList() {
|
async getOrderList() {
|
||||||
let id = JSON.parse(uni.getStorageSync("USER_INFO")).id || "";
|
let id = JSON.parse(uni.getStorageSync("USER_INFO")).id || "";
|
||||||
let res = await getList({
|
let res = await getList({
|
||||||
courier_id: id,
|
user_id: id,
|
||||||
|
user_type: this.is_captain
|
||||||
// courier_id: 167
|
// courier_id: 167
|
||||||
});
|
});
|
||||||
this.orderList = res.data.data;
|
this.orderList = res.data.data;
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
static/tabs-icon/on-3.png
Normal file
After Width: | Height: | Size: 785 B |
@ -27,7 +27,7 @@
|
|||||||
<view class="card" v-for="(item, index) in list" :key="item.id"
|
<view class="card" v-for="(item, index) in list" :key="item.id"
|
||||||
@click="navTo('/subpkg/archives/archives?id='+item.id)">
|
@click="navTo('/subpkg/archives/archives?id='+item.id)">
|
||||||
<view class="card_head">
|
<view class="card_head">
|
||||||
<text style="font-size: 34rpx;">最后更新: {{item.informationg_update_time.split(' ')[0]}}</text>
|
<text>最后更新: {{item.informationg_update_time.split(' ')[0]}}</text>
|
||||||
<text>{{'管理户数: '+item.informationg_count+" 户"}}<u-icon
|
<text>{{'管理户数: '+item.informationg_count+" 户"}}<u-icon
|
||||||
style="display: inline-block;margin-left: 10rpx;" color="white"
|
style="display: inline-block;margin-left: 10rpx;" color="white"
|
||||||
name="arrow-right"></u-icon></text>
|
name="arrow-right"></u-icon></text>
|
||||||
@ -207,7 +207,7 @@
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card_content {
|
.card_content {
|
||||||
|