#
whycq
2022-07-29 600caaf8e9aa09ab98bc17318e3c79b2edf5db9c
pages/basics/outPakin.vue
@@ -120,6 +120,8 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      onLoad() {
@@ -132,7 +134,7 @@
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         radioChange(evt) {
            for (let i = 0; i < this.origins.length; i++) {
@@ -279,6 +281,7 @@
         },
         // 添加扫描日志
         addLog(matCode,userName) {
            let that = this;
            uni.request({
               url: that.commonUrl + "/mobile/addLog/auth",
@@ -291,6 +294,11 @@
               },
               // method:"POST",
               success(result) {
                  var res = result.data
                  if(res.code === 200) {
                     // uni.showToast({title: "添加成功", icon: "none",position: 'center'})
                  }
               }
            })
            
@@ -340,6 +348,7 @@
                  'token':uni.getStorageSync('token')
                },
               success(result) {
                  console.log(result)
                  uni.hideLoading();
                  // uni.vibrateShort();
                  let res = result.data