linwu 1 dia atrás
pai
commit
ea0459b980

+ 16 - 1
api/common/Sms.php

@@ -3,11 +3,12 @@
 namespace api\common;
 
 
+use app\talent\model\SmsLogModel;
 use think\facade\Log;
 
 class Sms
 {
-    public function send($mobile, $code, $content_param = [])
+    public function send($mobile, $code, $type = '人才便捷出行', $content_param = [])
     {
         $url   = "https://lw_test.jinjianghc.com/api/sms/send";
         $token = "L1mq09OB68be4b4526092";
@@ -34,6 +35,20 @@ class Sms
         curl_close($ch);
         $rsp = json_decode($ret, true);
 
+        $status = 1;
+        if (empty($rsp['code'])) {
+            $status = 2;
+        }
+        SmsLogModel::create([
+            'type'           => $type,
+            'mobile'         => $mobile,
+            'status'         => $status,
+            'template_code'  => $code,
+            'template_param' => json_encode($content_param),
+            'api_return'     => $ret,
+            'create_time'    => date('Y-m-d H:i:s'),
+        ]);
+
         if ($rsp['code'] != 0) {
             Log::record('短信发送失败:' . json_encode($rsp) . "。原始参数:" . json_encode($postArr));
             return ['code' => 1, 'msg' => empty($rsp['errorMsg']) ? $rsp['msg'] : $rsp['errorMsg']];

+ 9 - 0
app/talent/model/SmsLogModel.php

@@ -0,0 +1,9 @@
+<?php
+namespace app\talent\model;
+
+use think\Model;
+
+class SmsLogModel extends Model
+{
+
+}

+ 4 - 4
applet/app.js

@@ -2,10 +2,10 @@
 App({
   globalData: {
     title: '晋爱人才',
-    http_host: 'http://bd.jarc.com/',
-    // http_host: 'https://jarc.jucai.gov.cn/',
-    api_host: 'http://bd.jarc.com/api/',
-    // 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;

+ 4 - 1
applet/pages/talent/admin/index.wxml

@@ -41,8 +41,11 @@
           </view>
           <view class="cu-tag line-blue radius">{{item.status_text}}</view>
         </view>
+        <view class="text-sm margin-top-xs">姓名:{{item.talent.name}}</view>
+        <view class="text-sm margin-top-xs" bind:tap="callMobile" data-mobile="{{item.talent.mobile}}" wx:if="{{item.status != 4}}">
+        拨打电话<text class="margin-left-sm text-lg text-blue cuIcon-dianhua"></text>
+        </view>
         <view class="text-sm margin-top-xs">出发时间:{{item.start_time}}</view>
-        <view class="text-sm margin-top-xs" bind:tap="callMobile" data-mobile="{{item.talent.mobile}}">拨打电话<text class="margin-left-sm text-lg text-blue cuIcon-dianhua"></text></view>
         <view class="text-sm margin-top-xs" wx:if="{{item.status == 4}}">满意度:{{item.rate}}</view>
         <view class="text-sm margin-top-xs" wx:if="{{item.status == 4}}">评价内容:{{item.rate_comment}}</view>
         <view class="grid col-4 grid-square flex-sub margin-top">

+ 4 - 2
applet/pages/talent/appointment/evaluate.wxml

@@ -7,8 +7,10 @@
     <view class="cu-form-group">
       <view class="title">满意度</view>
       <view>
-        <radio class='blue' value="非常满意"></radio>
-        <text class="margin-left-sm">非常满意</text>
+        <radio class='blue' value="满意"></radio>
+        <text class="margin-left-sm">满意</text>
+        <radio class='blue margin-left-xl' value="一般"></radio>
+        <text class="margin-left-sm">一般</text>
         <radio class='blue margin-left-xl' value="不满意"></radio>
         <text class="margin-left-sm">不满意</text>
       </view>

+ 2 - 2
applet/pages/talent/appointment/index.wxml

@@ -7,7 +7,7 @@
       <text class="text-black text-bold">至少要提前一小时预约</text>
     </view>
     <view class="solid-bottom text-lg padding-lr">
-      <text class="text-black text-bold">只能预约早上9点到晚上21点</text>
+      <text class="text-black text-bold">只能预约早上9点到晚上20点</text>
     </view>
     <view class="solid-bottom text-lg padding-lr">
       <text class="text-black text-bold">班次/出发时间和车票图片至少要填一样</text>
@@ -29,7 +29,7 @@
   </view>
   <view class="cu-form-group">
     <view class="title">出发时间</view>
-    <picker mode="time" :value="time" start="09:00" end="21:00" bind:change="TimeChange">
+    <picker mode="time" :value="time" start="09:00" end="20:00" bind:change="TimeChange">
       <view class="picker">
         {{time}}
       </view>

+ 2 - 9
applet/project.private.config.json

@@ -9,18 +9,11 @@
     "miniprogram": {
       "list": [
         {
-          "name": "pages/home/test/test",
-          "pathName": "pages/home/test/test",
+          "name": "pages/talent/app",
+          "pathName": "pages/talent/appointment/evaluate",
           "query": "",
           "scene": null,
           "launchMode": "default"
-        },
-        {
-          "name": "",
-          "pathName": "pages/my/agreement/privacy",
-          "query": "",
-          "launchMode": "default",
-          "scene": null
         }
       ]
     }