dever 7 سال پیش
والد
کامیت
ea4b0685a1

+ 12 - 0
tm/lib/Controller/EventsController.class.php

@@ -193,6 +193,18 @@ class EventsController extends Controller {
 			
 		}
 
+		if ($info['type'] == 1) {
+			$info['feedback'] = 1;
+			if ($userData) {
+				$objLotteryUserFeedback = new LotteryUserFeedback();
+				if (isset($userData['express']) && $userData['express']) {
+					
+				} else {
+					$userData['feedback'] = 4;//未填写收货地址
+				}
+			}
+		}
+
 		$order = '`index` desc, id desc';
 		$limit = '0,5';
 		$condition = array ('platform_id' => $plat_form_id);

+ 1 - 1
tm/template_dir/event_forms_template.html

@@ -8,7 +8,7 @@
 	<div class="submit_cell submit_cell_area"><p><textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea></p></div>
 	<{/if}>
 	<{if $form.type == 'select'}>
-	<select name="<{$form.name}>" class="dropdown-select">
+	<select name="<{$form.name}>">
                  <option value="">请选择<{$form.name}></option>
                  <{foreach from=$form.options item=option}>
                  <option value="<{$option}>"><{$option}></option>

+ 1 - 1
tm/template_dir/events_forms_template_new.html

@@ -8,7 +8,7 @@
     <textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea>
     <{/if}>
     <{if $form.type == 'select'}>
-    <select name="<{$form.name}>" class="dropdown-select">
+    <select name="<{$form.name}>">
                  <option value="">请选择<{$form.name}></option>
                  <{foreach from=$form.options item=option}>
                  <option value="<{$option}>"><{$option}></option>

+ 9 - 0
tm/template_dir/events_top.html

@@ -21,6 +21,15 @@
     </section>
     <{/if}>
 
+    <{if $info.type == 1 && $userData && $info.end == 1}>
+    <section class="msg">
+        <{if $userData.feedback == 4}>
+        您已中奖,<a href="<{$web_cfg.domain}>/?c=Express&lottery_data_id=<{$userData.id}>&r=<{$userData.url}>">填写您的收货地址</a>
+
+        <{/if}>
+    </section>
+    <{/if}>
+
     
     <section class="tabs">
         <ul>