jiangping
2024-07-29 e933fe5051487d54d1c026105c840989d3f4b50c
提交
已添加18个文件
248 ■■■■■ 文件已修改
admin/admin/avatar/man.png 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/avatar/woman.png 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/favicon.ico 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/faviconzb.ico 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/shop.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/template/users.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.less 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.wxml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/components/videoPlay/index.wxss 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.less 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.wxml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/components/videoPlay/index.wxss 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/static/icon/ic_select_sel@3x.png 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/static/icon/mingpian_ic_dizhi.png 补丁 | 查看 | 原始文档 | blame | 历史
admin/admin/avatar/man.png
admin/admin/avatar/woman.png
admin/admin/favicon.ico
admin/admin/faviconzb.ico
admin/admin/template/shop.xlsx
Binary files differ
admin/admin/template/users.xlsx
Binary files differ
wechat_jiaxuan/components/videoPlay/index.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,37 @@
// components/idCard/index.js
Component({
  /**
   * ç»„件的初始数据
   */
  data: {
      videoSrc:null,
      isVShow:false,
      videoContext:null
  },
  /**
   * ç»„件的方法列表
   */
  methods: {
    startPlayVideo(videourl,obj){
      if(videourl ==null || videourl ==''){
        return
      }
      if(this.data.videoContext == null){
        this.data.videoContext = wx.createVideoContext('myVideo',this)
      }
      this.setData({isVShow:true, videoSrc:videourl})
      console.log(videourl)
      this.data.videoContext.requestFullScreen({
        direction: 0
      });
    },
    onClose(){
      this.setData({isVShow:false})
      if( this.data.videoContext){
        this.data.videoContext.stop()
      }
    }
  }
})
wechat_jiaxuan/components/videoPlay/index.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,4 @@
{
  "component": true,
  "usingComponents": {}
}
wechat_jiaxuan/components/videoPlay/index.less
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,59 @@
.user {
  width: 750rpx;
  padding: 0 40rpx;
  height: 148rpx;
  background: #FFFFFF;
  border-radius: 8rpx;
  padding: 0 30rpx;
  display: flex;
  align-items: center;
  .content {
    flex: 1;
    .name {
      font-size: 30rpx;
      margin-bottom: 12rpx;
    }
    .desc {
      font-size: 24rpx;
      color: #999999;
    }
  }
  .avatar {
    width: 80rpx;
    height: 80rpx;
    border-radius: 50%;
    margin-right: 24rpx;
  }
  .btns{
    display: flex;
    .item{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-left: 70rpx;
      font-size: 20rpx;
      color: #333333;
      .icon{
        margin-bottom: 4rpx;
        width: 44rpx;
        height: 44rpx;
      }
    }
  }
  .btn {
    width: 118rpx;
    height: 56rpx;
    line-height: 52rpx;
    text-align: center;
    background: var(--themeColor);
    border-radius: 8rpx;
    font-weight: 500;
    font-size: 26rpx;
    color: #fff;
  }
}
wechat_jiaxuan/components/videoPlay/index.wxml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,5 @@
<view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content">
      <view  class="video">
      <video    id="myVideo" src="{{videoSrc}}"  autoplay   show-fullscreen-btn show-play-btn ></video>
      </view>
  </view >
wechat_jiaxuan/components/videoPlay/index.wxss
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
.video_content{
  position: fixed;
  top: 10rpx;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
.video_content .video{
  position: fixed;
  border-radius: 8rpx;
  top: 50%;
  left: 75rpx;
  transform: translate(0, -50%);
  width: 600rpx;
  z-index: 10000;
}
wechat_staff/components/videoPlay/index.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,37 @@
// components/idCard/index.js
Component({
  /**
   * ç»„件的初始数据
   */
  data: {
      videoSrc:null,
      isVShow:false,
      videoContext:null
  },
  /**
   * ç»„件的方法列表
   */
  methods: {
    startPlayVideo(videourl,obj){
      if(videourl ==null || videourl ==''){
        return
      }
      if(this.data.videoContext == null){
        this.data.videoContext = wx.createVideoContext('myVideo',this)
      }
      this.setData({isVShow:true, videoSrc:videourl})
      console.log(videourl)
      this.data.videoContext.requestFullScreen({
        direction: 0
      });
    },
    onClose(){
      this.setData({isVShow:false})
      if( this.data.videoContext){
        this.data.videoContext.stop()
      }
    }
  }
})
wechat_staff/components/videoPlay/index.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,4 @@
{
  "component": true,
  "usingComponents": {}
}
wechat_staff/components/videoPlay/index.less
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,59 @@
.user {
  width: 750rpx;
  padding: 0 40rpx;
  height: 148rpx;
  background: #FFFFFF;
  border-radius: 8rpx;
  padding: 0 30rpx;
  display: flex;
  align-items: center;
  .content {
    flex: 1;
    .name {
      font-size: 30rpx;
      margin-bottom: 12rpx;
    }
    .desc {
      font-size: 24rpx;
      color: #999999;
    }
  }
  .avatar {
    width: 80rpx;
    height: 80rpx;
    border-radius: 50%;
    margin-right: 24rpx;
  }
  .btns{
    display: flex;
    .item{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-left: 70rpx;
      font-size: 20rpx;
      color: #333333;
      .icon{
        margin-bottom: 4rpx;
        width: 44rpx;
        height: 44rpx;
      }
    }
  }
  .btn {
    width: 118rpx;
    height: 56rpx;
    line-height: 52rpx;
    text-align: center;
    background: var(--themeColor);
    border-radius: 8rpx;
    font-weight: 500;
    font-size: 26rpx;
    color: #fff;
  }
}
wechat_staff/components/videoPlay/index.wxml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,5 @@
<view wx:if="{{ isVShow }}" bind:tap="onClose" class="video_content">
      <view  class="video">
      <video    id="myVideo" src="{{videoSrc}}"  autoplay   show-fullscreen-btn show-play-btn ></video>
      </view>
  </view >
wechat_staff/components/videoPlay/index.wxss
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
.video_content{
  position: fixed;
  top: 10rpx;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
.video_content .video{
  position: fixed;
  border-radius: 8rpx;
  top: 50%;
  left: 75rpx;
  transform: translate(0, -50%);
  width: 600rpx;
  z-index: 10000;
}
wechat_staff/static/icon/ic_select_sel@3x.png
wechat_staff/static/icon/mingpian_ic_dizhi.png