linwu 21 часов назад
Родитель
Сommit
998dc7189d

+ 1 - 0
api/talent/controller/AppointmentController.php

@@ -169,6 +169,7 @@ class AppointmentController extends RestUserBaseController
         $this->success('成功', [
             'route_guidance' => cmf_get_image_preview_url($setting['route_guidance']),
             'real_guidance'  => cmf_get_image_preview_url($setting['real_guidance']),
+            'real_guidance_self'  => cmf_get_image_preview_url($setting['real_guidance_self']),
         ]);
     }
 

+ 4 - 4
applet/app.js

@@ -2,10 +2,10 @@
 App({
   globalData: {
     title: '晋爱人才',
-    // http_host: 'http://bd.jarc.com/',
-    // api_host: 'http://bd.jarc.com/api/',
-    http_host: 'https://jarc.jucai.gov.cn/',
-    api_host: 'https://jarc.jucai.gov.cn/api/',
+    http_host: 'http://bd.jarc.com/',
+    api_host: 'http://bd.jarc.com/api/',
+    // http_host: 'https://jarc.jucai.gov.cn/',
+    // api_host: 'https://jarc.jucai.gov.cn/api/',
   },
   onLaunch: function() {
     var self = this;

+ 2 - 0
applet/pages/talent/appointment/route.js

@@ -8,6 +8,7 @@ Page({
   data: {
     route_guidance: '',
     real_guidance: '',
+    real_guidance_self: '',
   },
 
   /**
@@ -23,6 +24,7 @@ Page({
       self.setData({
         route_guidance:res.route_guidance,
         real_guidance:res.real_guidance,
+        real_guidance_self:res.real_guidance_self,
       });
     });
   },

+ 8 - 1
applet/pages/talent/appointment/route.wxml

@@ -11,12 +11,19 @@
   <image class="bg-img" src="{{route_guidance}}" bindtap="ViewImage" data-url="{{route_guidance}}" wx:if="{{route_guidance}}" mode="widthFix"></image>
   <view class="cu-bar justify-center bg-white">
     <view class="action border-title">
-      <text class="text-xl text-bold">实景指引图</text>
+      <text class="text-xl text-bold">实景指引图 - 打车</text>
       <text class="bg-green" style="width:3rem"></text>
     </view>
   </view>
   <image class="bg-img" src="{{real_guidance}}" bindtap="ViewImage" data-url="{{real_guidance}}" wx:if="{{real_guidance}}" mode="widthFix"></image>
 </view>
+<view class="cu-bar justify-center bg-white">
+    <view class="action border-title">
+      <text class="text-xl text-bold">实景指引图 - 自驾</text>
+      <text class="bg-green" style="width:3rem"></text>
+    </view>
+  </view>
+  <image class="bg-img" src="{{real_guidance_self}}" bindtap="ViewImage" data-url="{{real_guidance_self}}" wx:if="{{real_guidance_self}}" mode="widthFix"></image>
 <view class="footer"></view>
 <view class="cu-bar tabbar bg-white foot">
   <view class="action" bind:tap="toIndex">

+ 20 - 1
public/themes/admin_simpleboot3/talent/admin_talent/setting.html

@@ -36,7 +36,7 @@
         </div>
         <div class="form-group">
             <label for="mobile" class="col-sm-2 control-label">
-                <span class="form-required">*</span>实景指引图
+                <span class="form-required">*</span>实景指引图 - 打车
             </label>
             <div class="col-md-6 col-sm-10">
                 <input type="hidden" name="real_guidance" id="real_guidance" value="{$real_guidance|default=''}">
@@ -53,6 +53,25 @@
                 </a>
             </div>
         </div>
+        <div class="form-group">
+            <label for="mobile" class="col-sm-2 control-label">
+                <span class="form-required">*</span>实景指引图 - 自驾
+            </label>
+            <div class="col-md-6 col-sm-10">
+                <input type="hidden" name="real_guidance_self" id="real_guidance_self" value="{$real_guidance_self|default=''}">
+                <a href="javascript:uploadOneImage('图片上传','#real_guidance_self');">
+                    <if condition="empty($real_guidance_self)">
+                        <img src="__TMPL__/public/assets/images/default-thumbnail.png"
+                             id="real_guidance_self-preview"
+                             width="135" style="cursor: pointer"/>
+                        <else/>
+                        <img src="{:cmf_get_image_preview_url($real_guidance_self)}"
+                             id="real_guidance_self-preview"
+                             width="135" style="cursor: pointer"/>
+                    </if>
+                </a>
+            </div>
+        </div>
         <div class="form-group">
             <div class="col-sm-offset-2 col-sm-10">
                 <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>