소스 검색

2021.9.15正式版

Joe 3 년 전
부모
커밋
2297cd9d68
5개의 변경된 파일19개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      src/components/PermissionContainer/index.vue
  2. 2 1
      src/settings.js
  3. 12 4
      src/utils/pageStatus.js
  4. 2 2
      src/views/coupon/Coupon_CreateIssue.vue
  5. 2 2
      src/views/coupon/Coupon_Grant.vue

+ 1 - 1
src/components/PermissionContainer/index.vue

@@ -5,7 +5,7 @@
       <div v-else-if="pageStatus == 2">没有此页内容的配置权限,请检查集团上的配置</div>
       <div v-else-if="pageStatus == 3">加载发生错误</div>
       <div v-else-if="pageStatus == 4" class="app-container">
-          你好
+          {{ pageStatus }}
         <slot></slot>
       </div>
   </div>

+ 2 - 1
src/settings.js

@@ -28,5 +28,6 @@ module.exports = {
    * If you want to also use it in dev, you can pass ['production', 'development']
    */
   errorLog: 'production',
-  baseURL:"http://mp.huijy.net/",
+  // baseURL:"http://mp.huijy.net/",
+  baseURL:"http://www.huijy.net/",
 }

+ 12 - 4
src/utils/pageStatus.js

@@ -6,24 +6,32 @@ import store from '@/store'
 export async function queryPageStatus(allowJiBieArr=[], type) { // 1 积分 2 电子卡 3 优惠券
   //返回值  0 页面初始状态 1 此页面不对此用户不开放 2 权限不在此页面 3 发生错误 4 正常显示
   const currentJiBie = store.state.user.jiBie
+  // 不符合jiBie
   if(!allowJiBieArr.includes(currentJiBie)){
     return 1;
   }
+  // 符合jiBie 不要求type
   if(!type){
     return 4
   }
+  
   const getGroupInfoRes = await getGroupInfo()
+  
   if(getGroupInfoRes.code != 200){
     return 3
   }
+
+  // 存疑
   if(getGroupInfoRes.data == null){
     return 1
   }
+
   const integralRuleFlag = getGroupInfoRes.data.integralRuleFlag; // 0 不共享 1 共享
   const cardRuleFlag = getGroupInfoRes.data.cardRuleFlag;
-  const couponFlag = getGroupInfoRes.data.couponFlag;
+  const couponFlag = getGroupInfoRes.data.couponFlag; // 
+
   if(type == 1){
-    if(integralRuleFlag == 0){
+    if(integralRuleFlag == 0){ // 关闭共享
       if(currentJiBie == 1){
         return 2
       }else if(currentJiBie == 2){
@@ -60,8 +68,8 @@ export async function queryPageStatus(allowJiBieArr=[], type) { // 1 积分 2 
       }
     }
   }else if(type == 3){
-    if(couponFlag == 0){
-      if(currentJiBie == 1){
+    if(couponFlag == 0){ // 不共享
+      if(currentJiBie == 1){ 
         return 2
       }else if(currentJiBie == 2){
         return 4

+ 2 - 2
src/views/coupon/Coupon_CreateIssue.vue

@@ -22,7 +22,7 @@
           
         />
        </el-form-item>
-      <el-form-item label="优惠券类型" prop="issueType">
+      <el-form-item label="发放类型" prop="issueType">
         <el-select
           v-model="queryForm.issueType"
           clearable
@@ -636,7 +636,7 @@
       :visible.sync="exportQrDialog"
       width="600px"
       append-to-body
-      title="导出标签"
+      title="导出发放方式"
     >
       <div>
         <qr

+ 2 - 2
src/views/coupon/Coupon_Grant.vue

@@ -1,6 +1,6 @@
 <template>
 <div>
-    <al/>
+    <al></al>
 </div>
 </template>
 
@@ -74,8 +74,8 @@ export default {
     this.getList();
     listPrice().then((response) => {
       this.oilNameOptions = response.rows;
-
     });
+    
   },
   components: {
     al:Qr