zf
litian
2024-09-27 1ebf13fcff1d64f0ab9f1981cd60ad3194a2d29c
packageBookService/pages/bookServices/detail/components/suggest/suggest.js
@@ -16,7 +16,7 @@
  },
  data: {
    inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx',
    inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx;',
    placeholderstyle: 'font-size:28rpx',
    dialogKey: '',
    showWithInput: false,
@@ -61,16 +61,15 @@
      })
    },
    async feedBack() {
      const token = wx.getStorageSync('jsek-token')
      if (!token) {
        return wx.getUserProfile({
          desc: '用户登录',
          success: (res) => {
            console.log(res);
          }
        })
      }
      // const token = wx.getStorageSync('jsek-token')
      // if (!token) {
      //   return wx.getUserProfile({
      //     desc: '用户登录',
      //     success: (res) => {
      //       console.log(res);
      //     }
      //   })
      // }
      let content = {
        source: this.data.ratevalue,
        phone: this.data.inputvalue,
@@ -118,10 +117,10 @@
      } else if (!textvalue.length) {
        return wx.showToast({
          icon: 'error',
          title: '请输入反馈反馈内容',
          title: '请输入反馈内容',
        })
      }
      await this.feedBack()
    }
  },
})
})