陶杰
2025-01-08 c24e49083d4419300bcee0f0ca926c084037d665
sub_pages/customer/shopping/shopping.vue
@@ -103,11 +103,12 @@
            list: []
         }
      },
      onShow() {
      async onShow() {
         // if (this.sign['shopping']) {
         // }
         this.init()
         await this.getHotLineConfig()
      },
      mounted() {
         // this.init()
@@ -135,6 +136,24 @@
      },
      methods: {
         
         async getHotLineConfig() {
            this.$message.showLoading()
            const {
               code,
               data
            } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, {
               params: {
                  paramGroup: "servicehotline",
                  paramKey: "hotline_tel"
               }
            })
            this.$message.hideLoading()
            if (code === 0) {
               this.tel =data
            }
         },
         async callTel() {
            await this.$message.confirm('是否拨打客服电话')
               uni.makePhoneCall({