shish 4 лет назад
Родитель
Сommit
fad1e9f5cc
2 измененных файлов с 10 добавлено и 30 удалено
  1. 7 30
      hdApp/src/admin/cg/member.vue
  2. 3 0
      hdApp/src/api/main/index.js

+ 7 - 30
hdApp/src/admin/cg/member.vue

@@ -4,20 +4,14 @@
       <image :src="imgUrl" class="img_url"></image>
       <image :src="imgUrl" class="img_url"></image>
     </view>
     </view>
     <view style="margin:50upx 0 0 30upx;font-size:30upx;">保存图片到手机,可分享或打印张贴</view>
     <view style="margin:50upx 0 0 30upx;font-size:30upx;">保存图片到手机,可分享或打印张贴</view>
-    <div class="confirm-btn">
+    <view class="confirm-btn">
       <button class="admin-button-com big blue" @click="downloadImg">保存图片</button>
       <button class="admin-button-com big blue" @click="downloadImg">保存图片</button>
-    </div>
-    <!-- #ifdef MP-WEIXIN -->
-    <view style="margin:50upx 0 0 30upx;font-size:30upx;">打开直接分享给客户</view>
-    <div class="confirm-btn1">
-      <button class="admin-button-com big blue" @click="goToMallPt('pages/home/index')">打开商城</button>
-    </div>
-    <!-- #endif -->
+    </view>
   </view>
   </view>
 </template>
 </template>
 <script>
 <script>
-import { mainGetMallPoster } from '@/api/main/index'
-import { getWeixinId } from "@/api/invite/index";
+import { mainGetMemberPoster } from '@/api/main'
+import { getWeixinId } from "@/api/invite";
 import { mapGetters } from "vuex";
 import { mapGetters } from "vuex";
 export default {
 export default {
   data() {
   data() {
@@ -54,30 +48,13 @@ export default {
       });
       });
     },
     },
     getImg() {
     getImg() {
-      mainGetMallPoster().then(res => {
-        console.log(res)
+      mainGetMemberPoster().then(res => {
         this.imgUrl = res.data.imgUrl
         this.imgUrl = res.data.imgUrl
-      }).catch(err => {})
-    },
-    goToMallPt (url) {
-      let self = this
-      console.log(url + '?account=' + self.loginInfo.shopId)
-        uni.navigateToMiniProgram({
-          appId: this.getappIdList.mall.miniAppId,
-          path: url + '?account=' + self.loginInfo.shopId,
-          //develop 开发版 trial 体验版 release 正式版
-          envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
-          extraData: {
-            'hdShopAdminId': self.loginInfo.shopAdminId
-          },
-          success (res) {
-          }
-        })
-    },
+      })
+    }
   }
   }
 }
 }
 </script>
 </script>
-
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .app-content{
 .app-content{
   overflow: hidden;
   overflow: hidden;

+ 3 - 0
hdApp/src/api/main/index.js

@@ -7,3 +7,6 @@ export const mainGetMallPoster = data => {
 	return https.get('/main/get-mall-poster', data)
 	return https.get('/main/get-mall-poster', data)
 }
 }
 
 
+export const mainGetMemberPoster = data => {
+	return https.get('/main/get-member-poster', data)
+}