This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
loumengning
/
shop
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
checkredis
yuenan
娄梦宁
3 years ago
parent
06806b98b8
commit
fe71ca35e1
3 changed files
with
4 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
addons/unishop/controller/Product.php
+2
-2
application/admin/view/unishop/evaluate/add.html
+2
-2
application/admin/view/unishop/evaluate/edit.html
+ 0
- 1
addons/unishop/controller/Product.php
View File
@@ -209,7 +209,6 @@ class Product extends Base
// 评价信息
$evaluate = (new Evaluate)->alias('e')
->join('user u', 'e.user_id = u.id')
->where(['e.product_id' => $productId])
->field('e.*')
->order(['toptime' => 'desc', 'createtime' => 'desc'])
+ 2
- 2
application/admin/view/unishop/evaluate/add.html
View File
@@ -7,9 +7,9 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('
User_id
')}:</label>
<label class="control-label col-xs-12 col-sm-2">{:__('
虚拟用户名
')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-user
_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="
">
<input id="c-user
name" data-rule="required" class="form-control" name="row[username]" type="text
">
</div>
</div>
<div class="form-group">
+ 2
- 2
application/admin/view/unishop/evaluate/edit.html
View File
@@ -7,9 +7,9 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('
User_id
')}:</label>
<label class="control-label col-xs-12 col-sm-2">{:__('
虚拟用户名
')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-user
_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id
}">
<input id="c-user
name" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username
}">
</div>
</div>
<div class="form-group">
Write
Preview
Loading…
Cancel
Save