xiaohaizhao hace 5 días
padre
commit
db483b2e31
Se han modificado 3 ficheros con 20 adiciones y 19 borrados
  1. 1 1
      components/My-shade/My-shade.vue
  2. 1 1
      pages/login/login.vue
  3. 18 17
      pages/serviceSeeking/detail.vue

+ 1 - 1
components/My-shade/My-shade.vue

@@ -57,7 +57,7 @@ function handleClick() {
 function toLogin() {
     try {
         // 测试环境跳过微信授权,直接跳登录页
-        const isTestEnv = window.location.href.includes('61.164.207.46:8300');
+        const isTestEnv = !window.location.href.includes('crm.meida.com:16691');
         if (isTestEnv) {
             uni.navigateTo({ url: '/pages/login/login' });
         } else {

+ 1 - 1
pages/login/login.vue

@@ -49,7 +49,7 @@ onLoad(() => {
     //网页链接中会有一个code的参数
     try {
         // 测试环境跳过微信授权
-        const isTestEnv = window.location.href.includes('61.164.207.46:8300');
+        const isTestEnv = !window.location.href.includes('crm.meida.com:16691');
         if (isTestEnv) {
             // 测试服务器不需要微信code
         } else {

+ 18 - 17
pages/serviceSeeking/detail.vue

@@ -132,23 +132,21 @@
                 <view class="row" v-if="detail.servicephonenumber" style="align-items: center;">
                     <view class="label justify">联系人</view>
                     <view class="value phonenumber">
-                        <block>
-                            <text v-if="detail.servicecontactname" style="margin-right: 10rpx;">
-                                {{ detail.servicecontactname }}
-                            </text>
-                            <text style="margin: 0 20rpx 0 10rpx;">
-                                {{ detail.servicephonenumber }}
-                            </text>
-                            <My-button :customStyle="{
-                                width: '142rpx',
-                                height: '48rpx',
-                                'background-color': '#FFFFFF',
-                                'color': '#3874F6',
-                                borderRadius: '10rpx'
-                            }" :frontIconStyle="{
-                                marginRight: '6rpx',
-                            }" frontIcon="icon-bodadianhua1" text="电话" :phonenumber="detail.servicephonenumber" />
-                        </block>
+                        <text v-if="detail.servicecontactname" style="margin-right: 10rpx;">
+                            {{ detail.servicecontactname }}
+                        </text>
+                        <text style="margin: 0 20rpx 0 10rpx;">
+                            {{ detail.servicephonenumber }}
+                        </text>
+                        <My-button :customStyle="{
+                            width: '142rpx',
+                            height: '48rpx',
+                            'background-color': '#FFFFFF',
+                            'color': '#3874F6',
+                            borderRadius: '10rpx'
+                        }" :frontIconStyle="{
+                            marginRight: '6rpx',
+                        }" frontIcon="icon-bodadianhua1" text="电话" :phonenumber="detail.servicephonenumber" />
                     </view>
                 </view>
             </block>
@@ -195,6 +193,9 @@ const time = ref(new Date().getTime());
 
 let detail = reactive({
     servicetype: "",
+    servicephonenumber: "",
+    servicecontactname: "",
+    aftersalesphonenumber: "",
     nodes: [],
 });