Browse Source

合作商家

zhaoxiaohai 3 years ago
parent
commit
8090413d1a

+ 1 - 1
components/My_UploadFiles/index.wxml

@@ -1,4 +1,4 @@
-<van-uploader multiple="{{true}}" file-list="{{ upType!='userImage'?fileList:'' }}" disabled="{{fisadministrator}}" preview-size='{{previewSize}}' max-count="{{maxCount}}" bind:after-read="afterRead" deletable="{{ true }}" use-before-read bind:before-read="beforeRead" bind:delete="imagesDelete">
+<van-uploader  file-list="{{ upType!='userImage'?fileList:'' }}" disabled="{{fisadministrator}}" preview-size='{{previewSize}}' max-count="{{maxCount}}" bind:after-read="afterRead" deletable="{{ true }}" use-before-read bind:before-read="beforeRead" bind:delete="imagesDelete"><!-- multiple="{{true}}" -->
     <!-- 默认样式 -->
     <view wx:if="{{UploadShow}}" style="height: 100%; display: flex; align-items: center;">
         <view class="upImage_ltem">

+ 7 - 1
pages/businessPartner/applyFor.js

@@ -24,6 +24,12 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
+        /* 判断主副账号 */
+        if (wx.getStorageSync('userData').fisadministrator == 0) {
+            this.setData({
+                tabsList: ['建立新合作']
+            })
+        }
         this.getList();
     },
     /* tabs切换页面 */
@@ -31,7 +37,7 @@ Page({
         detail
     }) {
         this.setData({
-            tabsIndex:detail
+            tabsIndex: detail
         })
     },
     /* 下拉触底 */

+ 1 - 1
pages/businessPartner/applyFor.wxml

@@ -29,7 +29,7 @@
                 </view>
             </view>
         </view>
-        <My_pageReachBottom loadMore="{{scrolltolowerThrottle==true}}" dummyStatus="{{requestList.length>1}}"></My_pageReachBottom>
+        <My_pageReachBottom loadMore="{{scrolltolowerThrottle==true}}" dummyStatus="{{cooperationList.length!=0}}"></My_pageReachBottom>
     </scroll-view>
 </My_DisplayBox>
 <view wx:if="{{dropDownList}}" style="height: 100vh; width: 100vw; position: absolute; top: 0; left: 0; z-index: 0;" bindtap="closeTheDropDown"></view>

+ 0 - 1
pages/businessPartner/applyFor.wxss

@@ -28,7 +28,6 @@
     height: 114rpx;
     border-radius: 10rpx;
     margin-right: 20rpx;
-    background-color: royalblue;
     z-index: 99;
 }
 

+ 9 - 0
pages/businessPartner/details.js

@@ -14,6 +14,7 @@ Page({
         methodsList: ['上游', '下游', '双向合作'],
         showType: '',
         throttle: true, //截流
+        fisadministrator: (wx.getStorageSync('userData').fisadministrator == 1) ? false : true,
     },
     /* 遮罩层点击关闭 */
     closeTheDropDown() {
@@ -84,6 +85,10 @@ Page({
     },
     /* 下拉 */
     dropDown() {
+        if (this.data.fisadministrator) return wx.showToast({
+            title: '当前账号无权限操作',
+            icon: "none"
+        });
         this.setData({
             dropDownList: true
         })
@@ -93,6 +98,10 @@ Page({
         detail
     }) {
         const that = this;
+        if (this.data.fisadministrator) return wx.showToast({
+            title: '当前账号无权限操作',
+            icon: "none"
+        });
         this.closeTheDropDown()
         if (this.data.checked) {
             wx.showModal({

+ 1 - 1
pages/businessPartner/details.wxml

@@ -22,7 +22,7 @@
     </view>
 </My_GeneralTemplate>
 <!-- 提交按钮 -->
-<view class="submit_but">
+<view class="submit_but" wx:if="{{!fisadministrator}}">
     <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">保存</van-button>
 </view>
 <view wx:if="{{dropDownList}}" style="height: 100vh; width: 100vw; position: absolute; top: 0; left: 0; opacity: 0.3; z-index: 0;" bindtap="closeTheDropDown"></view>

+ 1 - 1
pages/businessPartner/index.wxml

@@ -17,6 +17,6 @@
                 <van-button wx:if="{{index==showIndex}}" custom-class="custom-class-company-data" catchtap="jumpForDetails">合作详情</van-button>
             </view>
         </view>
-        <My_pageReachBottom loadMore="{{scrolltolowerThrottle==true}}" dummyStatus="{{cooperationList.length>1}}"></My_pageReachBottom>
+        <My_pageReachBottom loadMore="{{scrolltolowerThrottle==true}}" dummyStatus="{{cooperationList.length!=0}}"></My_pageReachBottom>
     </scroll-view>
 </My_DisplayBox>

+ 0 - 1
pages/businessPartner/index.wxss

@@ -32,7 +32,6 @@
     height: 114rpx;
     border-radius: 10rpx;
     margin-right: 20rpx;
-    background-color: royalblue;
 }
 
 .company-data-text {