Browse Source

feat:更新logo和删除room

jinx 4 năm trước cách đây
mục cha
commit
fbbf9e0810

BIN
apps/RealtorEasier/image/4Dage/about/logo.png


+ 3 - 2
apps/RealtorEasier/modules/chat-page/word.wxml

@@ -37,8 +37,9 @@
                 <image  src="{{image_url}}" mode="aspectFill" />
                 <view class="vr-intro">
                     <view class="chat-item-name">{{ house_name }}</view>
-                    <view>{{house_type}}/{{house_area}}m²/{{orientation}}</view>
-                    <view class="price">{{price}}</view>
+                    <!-- <view>{{house_type}}/{{house_area}}ft²/{{orientation}}</view> -->
+                    <view>{{house_area}}ft²</view>
+                    <view class="price">${{price}}</view>
                 </view>
                 <view class="click-text" wx:if="{{ vr_link }}">进入云看房</view>
             </view>

+ 19 - 16
apps/RealtorEasier/pages/city/city.js

@@ -33,14 +33,26 @@ Page({
     apl_posArr: [],
     apl_index: 0,
     b_top: 0,
-    sliderHeight:0,
+    sliderHeight: 0,
     historyCity: [],
-    clientHeight:0
+    clientHeight: 0
   },
 
   onLoad() {
     this.fetchCityList()
-    this.set_new_alphabet(this.data.all_cities)
+    wx.getSystemInfo({
+      success: (res) => {
+        // 获取可使用窗口宽度
+        let clientHeight = res.windowHeight;
+        // 设置高度
+        this.setData({
+          clientHeight: clientHeight
+        }, () => {
+          this.set_new_alphabet(this.data.all_cities)
+
+        });
+      }
+    });
     this.setData({
       city: app.globalData.city,
       historyCity: app.globalData.historyCity
@@ -52,16 +64,7 @@ Page({
     // wxaSortPicker.init(this.data.cities, that);
   },
   onReady() {
-    wx.getSystemInfo({
-      success:  (res)=> {
-        // 获取可使用窗口宽度
-        let clientHeight = res.windowHeight;
-        // 设置高度
-        this.setData({
-          clientHeight: clientHeight
-        });
-      }
-    });
+
   },
   onShow() {
 
@@ -80,10 +83,10 @@ Page({
     })
     wx.createSelectorQuery().select('.select-box').boundingClientRect((res_b) => {
       // let b_top = res_b.top
-      
+
       this.setData({
         b_top: res_b.top,
-        sliderHeight:this.data.clientHeight - res_b.top
+        sliderHeight: this.data.clientHeight - res_b.top
       })
 
       let tab = this.data.new_cities
@@ -188,7 +191,7 @@ Page({
     } = e.detail
     let resultTip = []
     if (value) {
-      
+
       // resultTip = this.data.allCitys.filter(item => item.name.indexOf(value) !== -1)
       resultTip = this.data.all_cities.filter(item => item.cname.indexOf(value) !== -1)
     }

+ 1 - 1
apps/RealtorEasier/pages/contact/contact.js

@@ -3,7 +3,7 @@
 const app = getApp();
 Page({
     data: {
-        qr_url: 'https://testusaoss.4dkankan.com/4dHouse/miniprogram/qr.png'
+        qr_url: 'https://testusaoss.4dkankan.com/4dHouse/miniprogram/qr.jpg'
     },
     saveLocalPhoto(e){
         wx.downloadFile({

+ 0 - 240
apps/RealtorEasier/pages/room/room.js

@@ -1,240 +0,0 @@
-import {
-  genTestUserSig
-} from './unit/GenerateTestUserSig.js'
-import * as SocketHandle from '../../utils/socket-handle'
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-    userSig:'',
-    userID: '',
-    roomID: '1234567',
-    userList: [], // 主播list
-    trtcConfig: {
-      // scene: 'rtc',
-      // sdkAppID: '1400433526', // 开通实时音视频服务创建应用后分配的 SDKAppID
-      sdkAppID: '1400537003', // 开通实时音视频服务创建应用后分配的 SDKAppID
-      // userID: '1', // 用户 ID,可以由您的帐号系统指定
-      // userSig: '', // 身份签名,相当于登录密码的作用
-      // template: 'custom', // 画面排版模式
-      // debugMode: true,
-    }
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-   
-    this.setData({
-      userID : this.random(1,100).toString()
-    })
-    let opts = {
-      roomId: this.data.roomID,
-      userId: this.data.userID,
-      role: 'customer',
-      scene_num: '1'
-    }
-    this.socket = SocketHandle.initSocket(this, opts)
-    this.trtcComponent = this.selectComponent('#trtcroom')
-    this.bindTRTCRoomEvent()
-
-  },
-  bindUserID: function(e) {
-    this.setData({
-      userID: e.detail.value,
-    })
-  },
-
-  joinRoom() {
-    if(this.data.userID==""){
-      wx.showToast({
-        title: '输入用户id',
-      })
-      return
-    }
-    this.initRoom()
-    // this.getSignature()
-  
-  },
-  getSignature(userSig){
-    console.log('***********************')
-    console.log(userSig)
-    this.setData({
-      userSig:userSig
-    })
-  // this.data.userSig = userSig
-  },
-  random(lower, upper) {
-    return Math.floor(Math.random() * (upper - lower)) + lower;
-  },
-  initRoom() {
-    
-    const Signature = genTestUserSig(this.data.userID)
-    
-    this.enterRoom({
-      sdkAppID: Signature.sdkAppID,
-      userSig: this.data.userSig,
-    })
-  },
-  enterRoom({sdkAppID,userSig}) {
-    const template = 'custom'
-    const roomID = this.data.roomID
-  
-    this.setData({
-      trtcConfig:{
-        sdkAppID: sdkAppID, // 您的实时音视频服务创建应用后分配的 sdkAppID
-        userID: this.data.userID,
-        userSig: userSig,
-        template: template, // 1v1 grid custom
-        debugMode: true, // 非必要参数,打开组件的调试模式,开发调试时建议设置为 true
-        // audioVolumeType: this.data.audioVolumeType,
-      }
-    }, () => {
-      
-    
-      this.trtcComponent.enterRoom({
-        roomID: roomID
-      }).then((res) => {
-        console.log(res)
-        wx.showToast({
-          title: '成功进入房间',
-        })
-      }).catch((res) => {
-       
-        console.error('room  进房失败:', res)
-      })
-    })
-  },
-  bindTRTCRoomEvent: function() {
-    const TRTC_EVENT = this.trtcComponent.EVENT
-    // 初始化事件订阅
-    this.trtcComponent.on(TRTC_EVENT.LOCAL_JOIN, (event)=>{
-      console.log('* room LOCAL_JOIN', event)
-      this.trtcComponent.publishLocalAudio()
-      wx.showToast({
-        title: 'LOCAL_JOIN',
-      })
-      // 进房成功,触发该事件后可以对本地视频和音频进行设置
-      // if (this.data.role === 'presenter') {
-      //   this.trtcComponent.publishLocalAudio()
-      // }
-    })
-    // this.trtcComponent.on(TRTC_EVENT.LOCAL_LEAVE, (event)=>{
-    //   console.log('*本地用户离开', event)
-    // })
-    // this.trtcComponent.on(TRTC_EVENT.ERROR, (event)=>{
-    //   console.log('* room ERROR', event)
-    // })
-    // 远端用户进房
-    // this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_JOIN, (event)=>{
-    //   wx.showToast({
-    //     title: '远端用户进房',
-    //   })
-    //   console.log('* room REMOTE_USER_JOIN', event, this.trtcComponent.getRemoteUserList())
-    //   const userList = this.trtcComponent.getRemoteUserList()
-    //   // this.handleOnUserList(userList).then(() => {
-    //   //   console.log(this.data.userList)
-    //   // })
-    // })
-    // // 远端用户退出
-    // this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_LEAVE, (event)=>{
-    //   console.log('远端用户退出', event, this.trtcComponent.getRemoteUserList())
-    //   const userList = this.trtcComponent.getRemoteUserList()
-    //   // this.handleOnUserList(userList).then(() => {
-    //   //   console.log(this.data.userList)
-    //   // })
-    // })
-    // 远端用户推送音频
-    this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_ADD, (event)=>{
-      wx.showToast({
-        title: '远端用户推送音频',
-      })
-      // if (this.data.userList.length < 6) {
-        // 订阅音频
-        const data = event.data
-        // 如果不订阅就不会自动播放音频
-        const userList = this.trtcComponent.getRemoteUserList()
-        // this.handleOnUserList(userList).then(() => {
-        //   console.log(this.data.userList)
-        // })
-        console.log('* room REMOTE_AUDIO_ADD', event, this.trtcComponent.getRemoteUserList())
-        this.trtcComponent.subscribeRemoteAudio({ userID: data.userID })
-      // }
-    })
-    this.trtcComponent.on('ERROR',(event)=>{
-      console.log('ERRORERRORERRORERRORERROR')
-      console.log(event)
-    })
-    // 远端用户取消推送音频
-    // this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_REMOVE, (event)=>{
-    //   console.log('远端用户取消推送音频', event, this.trtcComponent.getRemoteUserList())
-    //   const userList = this.trtcComponent.getRemoteUserList()
-    //   // this.handleOnUserList(userList).then(() => {
-    //   //   console.log(this.data.userList)
-    //   // })
-    // })
-    // this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_VOLUME_UPDATE, (event)=>{
-    //   const userID = event.data.target.dataset.userid
-    //   const volume = event.data.detail.volume
-    //   this.data.userList.forEach((item) =>{
-    //     if (item.userID === userID) {
-    //       item.volume = volume
-    //     }
-    //   })
-    //   this.setData({
-    //     userList: this.data.userList,
-    //   })
-    // })
-  },
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-
-  }
-})

+ 0 - 7
apps/RealtorEasier/pages/room/room.json

@@ -1,7 +0,0 @@
-{
-  "usingComponents": {
-    "trtc-room": "/components/trtc-room/trtc-room"
-  },
-  "navigationBarTitleText": "美房理",
-  "pageOrientation": "auto"
-}

+ 0 - 3
apps/RealtorEasier/pages/room/room.wxml

@@ -1,3 +0,0 @@
-<trtc-room id="trtcroom" config="{{trtcConfig}}"></trtc-room>
-<input value="{{userID}}" maxlength="20" bindinput='bindUserID' placeholder="请输入用户id" placeholder-style="color:#000;opacity: 0.55;"/>
-<button class="btn" bindtap="joinRoom" hover-class="none">进入房间</button>

+ 0 - 1
apps/RealtorEasier/pages/room/room.wxss

@@ -1 +0,0 @@
-/* pages/room/room.wxss */

+ 0 - 62
apps/RealtorEasier/pages/room/unit/GenerateTestUserSig.js

@@ -1,62 +0,0 @@
-import LibGenerateTestUserSig from './lib-generate-test-usersig-es.min.js'
-
-/**
- * 腾讯云 SDKAppId,需要替换为您自己账号下的 SDKAppId。
- *
- * 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ) 创建应用,即可看到 SDKAppId,
- * 它是腾讯云用于区分客户的唯一标识。
- */
-const SDKAPPID = 1400537003
-
-
-/**
- * 签名过期时间,建议不要设置的过短
- * <p>
- * 时间单位:秒
- * 默认时间:7 x 24 x 60 x 60 = 604800 = 7 天
- */
-const EXPIRETIME = 604800
-
-
-/**
- * 计算签名用的加密密钥,获取步骤如下:
- *
- * step1. 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ),如果还没有应用就创建一个,
- * step2. 单击“应用配置”进入基础配置页面,并进一步找到“帐号体系集成”部分。
- * step3. 点击“查看密钥”按钮,就可以看到计算 UserSig 使用的加密的密钥了,请将其拷贝并复制到如下的变量中
- *
- * 注意:该方案仅适用于调试Demo,正式上线前请将 UserSig 计算代码和密钥迁移到您的后台服务器上,以避免加密密钥泄露导致的流量盗用。
- * 文档:https://cloud.tencent.com/document/product/647/17275#Server
- */
-const SECRETKEY = 'ab2efa0dae0be766759a2af26b8e81b4996af5909f0b4339026a162767094252'
-
-/*
- * Module:   GenerateTestUserSig
- *
- * Function: 用于生成测试用的 UserSig,UserSig 是腾讯云为其云服务设计的一种安全保护签名。
- *           其计算方法是对 SDKAppID、UserID 和 EXPIRETIME 进行加密,加密算法为 HMAC-SHA256。
- *
- * Attention: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下:
- *
- *            本文件中的代码虽然能够正确计算出 UserSig,但仅适合快速调通 SDK 的基本功能,不适合线上产品,
- *            这是因为客户端代码中的 SECRETKEY 很容易被反编译逆向破解,尤其是 Web 端的代码被破解的难度几乎为零。
- *            一旦您的密钥泄露,攻击者就可以计算出正确的 UserSig 来盗用您的腾讯云流量。
- *
- *            正确的做法是将 UserSig 的计算代码和加密密钥放在您的业务服务器上,然后由 App 按需向您的服务器获取实时算出的 UserSig。
- *            由于破解服务器的成本要高于破解客户端 App,所以服务器计算的方案能够更好地保护您的加密密钥。
- *
- * Reference:https://cloud.tencent.com/document/product/647/17275#Server
- */
-function genTestUserSig(userID) {
-  const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME)
-  const userSig = generator.genTestUserSig(userID)
-
-  return {
-    sdkAppID: SDKAPPID,
-    userSig: userSig,
-  }
-}
-
-module.exports = {
-  genTestUserSig,
-}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 2
apps/RealtorEasier/pages/room/unit/lib-generate-test-usersig-es.min.js


+ 3 - 2
apps/agent/modules/chat-page/word.wxml

@@ -37,8 +37,9 @@
                 <image  src="{{image_url}}" mode="aspectFill" />
                 <view class="vr-intro">
                     <view class="chat-item-name">{{ house_name }}</view>
-                    <view>{{house_type}}/{{house_area}}m²/{{orientation}}</view>
-                    <view class="price">{{price}}</view>
+                    <!-- <view>{{house_type}}/{{house_area}}m²/{{orientation}}</view> -->
+                    <view>{{house_area}}ft²</view>
+                    <view class="price">${{price}}</view>
                 </view>
                 <view class="click-text" wx:if="{{ vr_link }}">进入云看房</view>
             </view>

+ 1 - 1
apps/agent/pages/client-detail/client-detail.js

@@ -40,7 +40,7 @@ Page({
         key:'面积',
         short:true,
         id:'ideal_area',
-        val:'80-120m²'
+        val:'80-120ft²'
       },
       {
         key:'居室',