Browse Source

2024-05-16 名片

codeMan 1 year ago
parent
commit
6a1ce7098e

+ 13 - 0
cloud/businessCard/share.vue

@@ -0,0 +1,13 @@
+<template>
+    <view>
+        名片海报
+    </view>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>

+ 101 - 3
cloud/winningNews/index.vue

@@ -1,13 +1,111 @@
 <template>
     <view>
-        中奖信息
+      <view class="text-top">
+        <view class="text">奖项</view>
+        <view class="text">共{{total}}个</view>
+      </view>
+        <My_listbox ref="List" @getlist="getList" >
+          <view class="list-box">
+            <navigator class="item" v-for="item in list" :key="item.sa_awardmxid"
+                       url="">
+              <view class="text">
+                <view class="title u-line-2">{{ item.awardname || '--' }}</view>
+                <view class="count u-line-1">
+                  <text style="margin-right: 118px">类型:{{ item.type || '--' }}</text>
+                  <text>金额:{{ CNY(item.price,'',false) || '--' }}元</text>
+                </view>
+                <view class="count u-line-1">来源:{{ item.awardheadname || '--' }}</view>
+              </view>
+            </navigator>
+          </view>
+        </My_listbox>
+
     </view>
 </template>
 
 <script>
 export default {
-
+  data() {
+    return {
+      list: [],
+      total:0,
+      "content": {
+      },
+    }
+  },
+  onLoad(options){
+    this.getList(true)
+    uni.setNavigationBarTitle({
+      title: '我的中奖信息'
+    });
+  },
+  methods:{
+    getList(init = false) {
+      if (this.paging(this.content, init)) return;
+      this.$Http.basic({
+        "id": 20240515140302,
+        content: this.content
+      }).then(res => {
+        this.$refs.List.RefreshToComplete()
+        console.log("中奖信息", res)
+        if (this.cutoff(res.msg)) return;
+        this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
+        this.total = res.total
+        this.content = this.$refs.List.paging(this.content, res)
+      })
+    },
+  }
 }
 </script>
 
-<style></style>
+<style lang="scss">
+.text-top{
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  padding: 10px;
+  .text{
+    font-family: Source Han Sans SC, Source Han Sans SC;
+    font-weight: 400;
+    font-size: 12px;
+    color: #666666;
+    line-height: 0px;
+    text-align: left;
+    font-style: normal;
+    text-transform: none;
+    margin-top: 10px;
+  }
+}
+.list-box {
+  width: 100vw;
+  box-sizing: border-box;
+
+    .item {
+      display: flex;
+      width: 100vw;
+      border-radius: 5px;
+      overflow: hidden;
+      margin-top: 10px;
+      background: #FFFFFF;
+      padding: 10px;
+    .text {
+      flex: 1;
+      font-family: Source Han Sans SC, Source Han Sans SC;
+
+      .title {
+        font-weight: bold;
+        font-size: 14px;
+        color: #333333;
+        line-height: 24px;
+      }
+      .count {
+        font-size: 12px;
+        color: #999999;
+        line-height: 17px;
+        margin-top: 8px;
+      }
+    }
+
+  }
+}
+</style>

+ 4 - 0
pages.json

@@ -80,6 +80,8 @@
 			"style": {
 				"navigationStyle": "custom"
 			}
+		}, {
+			"path": "businessCard/share"
 		}, {
 			"path": "mySubscription/index"
 		}, {
@@ -104,6 +106,8 @@
 			"style": {
 				"navigationStyle": "custom"
 			}
+		}, {
+			"path": "userCenter/personal"
 		}]
 	}],
 	"preloadRule": {

+ 9 - 9
pages/index/index/index.vue

@@ -115,6 +115,15 @@ export default {
             Promise.all([this.getLocaT(), this.$refs.indexTop.getBanners(['indexTop']), this.$refs.indexBottom.getBanners(['indexBottom'])]).then(res => {
                 callBack()
                 this.updatePage = false;
+                this.$Http.changeShop = item => {
+                    this.shopDetail = item;
+                    uni.navigateBack({})
+                    uni.showToast({
+                        title: "切换门店成功",
+                        icon: "none",
+                        duration: 2000,
+                    })
+                }
             })
             setTimeout(() => {
                 callBack()
@@ -161,15 +170,6 @@ export default {
         },
         changeShop() {
             this.showShopOtions = false;
-            this.$Http.changeShop = item => {
-                this.shopDetail = item;
-                uni.navigateBack({})
-                uni.showToast({
-                    title: "切换门店成功",
-                    icon: "none",
-                    duration: 2000,
-                })
-            }
         }
     },
 }

+ 13 - 1
pages/index/index/userCenter.vue

@@ -21,7 +21,7 @@
           <view class="text-style">收货地址</view>
           <view class="iconfont icon-a-wodetiaozhuan icon-style"></view>
         </navigator>
-        <navigator class="border-list-content" url="/cloud/winningNews/index" hover-class="navigator-hover">
+        <navigator class="border-list-content" url="/cloud/winningNews/index" hover-class="navigator-hover" v-if="isWinning">
           <view class="text-style">中奖信息</view>
           <view class="iconfont icon-a-wodetiaozhuan icon-style"></view>
         </navigator>
@@ -42,14 +42,26 @@ export default {
     data() {
         return {
             updatePage: true,
+			isWinning:true
         }
     },
     methods: {
         init(callBack) {
             callBack()
             this.updatePage = false;
+			this.queryAuth()
         },
+        queryAuth(){
+          let auth=uni.getStorageSync("authList")
+		  if (auth.工作台导航.中奖明细) {
+			  this.isWinning = true
+		  }else {
+			  this.isWinning = false
+		  }
+        }
     },
+
+
 }
 </script>
 

+ 6 - 45
static/iconfont/iconfont.css

@@ -1,8 +1,9 @@
 @font-face {
-  font-family: "iconfont"; /* Project id 4131149 */
-  src: url('//at.alicdn.com/t/c/font_4131149_1qo1tetcxlm.woff2?t=1715843300557') format('woff2'),
-       url('//at.alicdn.com/t/c/font_4131149_1qo1tetcxlm.woff?t=1715843300557') format('woff'),
-       url('//at.alicdn.com/t/c/font_4131149_1qo1tetcxlm.ttf?t=1715843300557') format('truetype');
+  font-family: "iconfont";
+  /* Project id 4131149 */
+  src: url('//at.alicdn.com/t/c/font_4131149_hoe3juck786.woff2?t=1715763659602') format('woff2'),
+    url('//at.alicdn.com/t/c/font_4131149_hoe3juck786.woff?t=1715763659602') format('woff'),
+    url('//at.alicdn.com/t/c/font_4131149_hoe3juck786.ttf?t=1715763659602') format('truetype');
 }
 
 .iconfont {
@@ -13,46 +14,6 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
-.icon-mingpianhaibao:before {
-  content: "\e6dc";
-}
-
-.icon-weixinhaoyou:before {
-  content: "\e6dd";
-}
-
-.icon-zhuanfa:before {
-  content: "\e6d9";
-}
-
-.icon-fuzhi:before {
-  content: "\e6da";
-}
-
-.icon-erweima:before {
-  content: "\e6db";
-}
-
-.icon-riqi:before {
-  content: "\e6d8";
-}
-
-.icon-mendian1:before {
-  content: "\e6d5";
-}
-
-.icon-dizhi_xian:before {
-  content: "\e6d6";
-}
-
-.icon-youxiang:before {
-  content: "\e6d7";
-}
-
-.icon-weidianzan:before {
-  content: "\e6cb";
-}
-
 .icon-baocunbendi:before {
   content: "\e6d0";
 }
@@ -195,4 +156,4 @@
 
 .icon-dizhi-hui:before {
   content: "\e6af";
-}
+}

+ 1 - 1
team/team/InviteUser.vue

@@ -12,7 +12,7 @@
             <view>
                 <l-painter ref="painter" css="position: relative;width: 280px; height: 426px">
                     <l-painter-image
-                        src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202405151715752754485B32052a86.webp"
+                        src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202405151715764356769B1a729abd.webp"
                         css="width: 280px; height: 426px;position: absolute;" />
 
                     <l-painter-image

+ 25 - 1
team/team/getInvite.vue

@@ -134,7 +134,23 @@ export default {
                 isMust: false,//是否必填
                 value: "",
             }];
-            this.form = form;
+            this.$Http.basic({
+                "id": 20240510104102,
+                "content": {},
+            }).then(res => {
+                console.log("获取个人信息", res)
+                // if (this.cutoff(res.msg)) return;
+                if (res.msg == '成功') {
+                    this.headportraits = res.data.attinfos;
+                    this.headportrait = this.headportraits.find(v => v.usetype == "headportrait").url || this.headportrait;
+                    form = form.map(v => {
+                        v.value = res.data[v.key] || v.value
+                        return v
+                    })
+                }
+                this.form = form;
+            })
+
         },
         isUncomplete(uncomplete) {
             this.uncomplete = uncomplete;
@@ -157,7 +173,15 @@ export default {
                     if (this.attachmentids.length) {
                         this.uploadCallback(this.attachmentids, "sys_users", this.userid).then(s => {
                             if (s) getUserMsg()
+                        });
+                        if (this.headportraits.length) this.$Http.basic({
+                            "classname": "system.attachment.Attachment",
+                            "method": "deleteFileLink",
+                            "content": {
+                                linksids: this.headportraits.map(v => v.linksid)
+                            }
                         })
+
                     } else {
                         getUserMsg()
                     }

+ 13 - 0
team/userCenter/personal.vue

@@ -0,0 +1,13 @@
+<template>
+    <view>
+        个人信息编辑
+    </view>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style></style>