Browse Source

fix all & add url

voice
刘嘉炜 4 years ago
parent
commit
aaceb7523f
  1. 3
      src/js/api.js
  2. 4
      src/pages/employee/manage/manage.vue
  3. 3
      src/pages/index/index.vue
  4. 22
      src/pages/turnover/turnover.vue
  5. 5
      src/pages/write_off/list/list.vue

3
src/js/api.js

@ -1,4 +1,5 @@
export const ORIGIN = `http://testmanager.ouxuanzhineng.cn`; // 测试
// export const ORIGIN = `http://testmanager.ouxuanzhineng.cn`; // 测试
export const ORIGIN = `https://minimanage.ouxuanzhineng.cn`; // 正式
export const API = {
wechatMiniAppLoginAndSync:`${ORIGIN}/user/wechatMiniAppLoginAndSync`, // 小程序授权

4
src/pages/employee/manage/manage.vue

@ -21,7 +21,7 @@
<image mode="aspectFit" src="/static/images/icon/round_add.png"></image>
<text>添加员工</text>
</view>
<view class="ei-tip" @click="toReview">
<view class="ei-tip" @click="toReview" v-if="employeeInfo.count>0">
<text>待审核员工</text>
<view>
<view v-if="employeeInfo.count>0">{{employeeInfo.count || 0}}</view>
@ -127,7 +127,7 @@ export default {
let ids = _deleteArr.map(ele=>ele.id);
util.showModal({
title: '提示',
content: '移除后,员工将无法登录和使用欧轩智能商家助手小程序',
content: '移除后,员工将无法登录和使用欧轩智能商家助手小程序',
showCancel: true,
success: sucRes=>{
if(sucRes.confirm){

3
src/pages/index/index.vue

@ -98,7 +98,8 @@
{
id: 5,
name: '积分订单',
path: '/pages/order_list/order_list',
// path: '/pages/order_list/order_list',
path: '',
serverKey: 1006 //
},
{

22
src/pages/turnover/turnover.vue

@ -6,10 +6,11 @@
</view>
<view class="tc-total-section">
<view class="tts-address" v-if="tabID == 0&&storeList.length > 1">
<view class="tts-address" v-if="tabID == 0&&storeList.length > 1">
<view>{{pageInfo.name || '-'}}</view>
<!-- <image mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> -->
</view>
<!-- 仅有一家店铺情况下没有品牌查看权限 -->
<view class="tts-address" v-else-if="tabID == 1&&storeList.length ==1">
<view>{{curSelectStore.name || '-'}}</view>
<!-- <image mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> -->
@ -116,14 +117,19 @@ export default {
}
},
async onLoad(){
let { timeTabID } = this;
let _timeObj = this.getTime();
try{
let { timeTabID } = this;
let _timeObj = this.getTime();
this.curTime = _timeObj;
let _storeList = await this.getStoreList();
if(_storeList.length == 1)this.tabID = 1;
this.curTime = _timeObj;
let _storeList = await this.getStoreList();
if(_storeList.length == 1)this.tabID = 1;
this.$nextTick(this.refreshPageInfo);
this.$nextTick(this.refreshPageInfo);
}catch(err){
console.log(err);
util.hideLoad();
}
},
methods: {
@ -196,6 +202,7 @@ export default {
//
getStoreList(){
let { brandInfo } = this;
util.showLoad();
return servers.get({
url: API.stadiumList,
data: {
@ -204,6 +211,7 @@ export default {
failMsg: '加载店铺列表失败!',
})
.then(res=>{
util.hideLoad();
// let _list = [res.list[0]] || [];
let _list = res.list || [];
this.storeList = _list;

5
src/pages/write_off/list/list.vue

@ -101,12 +101,13 @@ export default {
})
},
getOrderList(isLoad){
// confirm
getOrderList(isLoad){
if(isLoad)util.showLoad();
servers.get({
url: API.verifiedOrderList,
data: {
status: 1
status: 1, // 使
},
failMsg: '获取订单列表失败!'
})

Loading…
Cancel
Save