|
@@ -26,32 +26,40 @@
|
|
<view class="indexe">
|
|
<view class="indexe">
|
|
<view class="indexe_a" @click="GoIndex">
|
|
<view class="indexe_a" @click="GoIndex">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/49.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/49.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">代办事项</view>
|
|
<view class="indexe_p">代办事项</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="GoOrder">
|
|
<view class="indexe_a" @click="GoOrder">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/50.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/50.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">订单管理</view>
|
|
<view class="indexe_p">订单管理</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="GoMarket">
|
|
<view class="indexe_a" @click="GoMarket">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/51.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/51.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">营销设置</view>
|
|
<view class="indexe_p">营销设置</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="GoDelivery">
|
|
<view class="indexe_a" @click="GoDelivery">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/38.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/38.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">配送员管理</view>
|
|
<view class="indexe_p">配送员管理</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="indexe_a">
|
|
|
|
+ <u-radio-group v-model="checkIndex" @change="radioGroupChange" active-color="#F6B301">
|
|
|
|
+ <u-radio v-for="(item, index) in list" :key="index" :name="item.name"
|
|
|
|
+ :disabled="item.disabled">
|
|
|
|
+ {{item.name}}
|
|
|
|
+ </u-radio>
|
|
|
|
+ </u-radio-group>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -77,29 +85,29 @@
|
|
<view class="indexe">
|
|
<view class="indexe">
|
|
<view class="indexe_a" @click="GoPassword">
|
|
<view class="indexe_a" @click="GoPassword">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/52.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/52.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">修改密码</view>
|
|
<view class="indexe_p">修改密码</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="GoWithdeawal">
|
|
<view class="indexe_a" @click="GoWithdeawal">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/54.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/54.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">我的钱包</view>
|
|
<view class="indexe_p">我的钱包</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="GoMine">
|
|
<view class="indexe_a" @click="GoMine">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/56.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/56.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">完善资料</view>
|
|
<view class="indexe_p">完善资料</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_a" @click="loginOut">
|
|
<view class="indexe_a" @click="loginOut">
|
|
<view class="indexe_box">
|
|
<view class="indexe_box">
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/55.png" class="indexe_icon"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/55.png" class="indexe_icon" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="indexe_p">退出登录</view>
|
|
<view class="indexe_p">退出登录</view>
|
|
</view>
|
|
</view>
|
|
@@ -113,7 +121,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getToken,
|
|
|
|
|
|
+ getToken,
|
|
removeToken
|
|
removeToken
|
|
} from '@/utils/auth';
|
|
} from '@/utils/auth';
|
|
export default {
|
|
export default {
|
|
@@ -124,7 +132,17 @@
|
|
show: false,
|
|
show: false,
|
|
hasLogin: false,
|
|
hasLogin: false,
|
|
userinfo: {},
|
|
userinfo: {},
|
|
- type: false
|
|
|
|
|
|
+ type: false,
|
|
|
|
+ list: [{
|
|
|
|
+ name: "自动派单",
|
|
|
|
+ disabled: false
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: "手动接单",
|
|
|
|
+ disabled: false
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ checkIndex:"自动派单"
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -141,64 +159,68 @@
|
|
let data = getApp().globalData
|
|
let data = getApp().globalData
|
|
this.type = data.isAdmin;
|
|
this.type = data.isAdmin;
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
- // 点击退出登录
|
|
|
|
- loginOut(){
|
|
|
|
- getApp.globalData = {
|
|
|
|
- isAdmin:false
|
|
|
|
- }
|
|
|
|
- removeToken()
|
|
|
|
- uni.reLaunch({
|
|
|
|
- url:"/pages/login/login"
|
|
|
|
- })
|
|
|
|
- this.show = false
|
|
|
|
- },
|
|
|
|
- // 点击完善信息
|
|
|
|
- GoMine(){
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url:'/pages/order/perfect'
|
|
|
|
- })
|
|
|
|
- this.show = false
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ // 切换
|
|
|
|
+ radioGroupChange(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
|
|
+ // 点击退出登录
|
|
|
|
+ loginOut() {
|
|
|
|
+ getApp.globalData = {
|
|
|
|
+ isAdmin: false
|
|
|
|
+ }
|
|
|
|
+ removeToken()
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url: "/pages/login/login"
|
|
|
|
+ })
|
|
|
|
+ this.show = false
|
|
|
|
+ },
|
|
|
|
+ // 点击完善信息
|
|
|
|
+ GoMine() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/order/perfect'
|
|
|
|
+ })
|
|
|
|
+ this.show = false
|
|
},
|
|
},
|
|
// 点击我的钱包
|
|
// 点击我的钱包
|
|
- GoWithdeawal() {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url:'/pages/mine/mine'
|
|
|
|
- })
|
|
|
|
|
|
+ GoWithdeawal() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/mine/mine'
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
// 点击修改密码
|
|
// 点击修改密码
|
|
GoPassword() {
|
|
GoPassword() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/mine/password"
|
|
url: "/pages/mine/password"
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
// 代办事项
|
|
// 代办事项
|
|
GoIndex() {
|
|
GoIndex() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/index/index'
|
|
url: '/pages/index/index'
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
GoDelivery() {
|
|
GoDelivery() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/Delivery/Delivery'
|
|
url: '/pages/Delivery/Delivery'
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
// 点击营销设置
|
|
// 点击营销设置
|
|
GoMarket() {
|
|
GoMarket() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/Marketing/Marketing'
|
|
url: '/pages/Marketing/Marketing'
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
// 点击前往订单页面
|
|
// 点击前往订单页面
|
|
GoOrder() {
|
|
GoOrder() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/order/order'
|
|
url: '/pages/order/order'
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
//去登陆
|
|
//去登陆
|
|
@@ -209,7 +231,7 @@
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '../login/login'
|
|
url: '../login/login'
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
//获取用户信息
|
|
//获取用户信息
|