Commit 4d26471f by 朱继来

调整接口

parent 66e85574
......@@ -290,7 +290,7 @@ Class AddOrderController extends Controller
$url = Config('website.search-skuid');
$data['sku_id'] = $request->input('sku_id');
$response = json_decode(curlApi($url, $data), true);
$response = json_decode(curlApi($url, $data, 'POST'), true);
if (!empty($response['data']['data'])) {
return ['errcode' => 0, 'errmsg' => '', 'data' => $response['data']['data'][0]];
......
......@@ -48,7 +48,8 @@ return [
'add-user-url' => 'http://member.liexin.net/add',
// 查询SKUID接口
'search-skuid' => 'http://footstone.liexin.net/webapi/sku_list',
// 'search-skuid' => 'http://footstone.liexin.net/webapi/sku_list',
'search-skuid' => 'http://www.liexin.com/v3/sku/list',
// 新增SKU入口
'add-sku-url' => 'http://footstone.liexin.net/manage/addsku',
......
......@@ -264,12 +264,17 @@
var len = data.ladder_price.length;
if (len > 0) {
var html = '';
var str = '';
for (var i = 0; i < len; i++) {
if (goods_type == 1) {
str = '<td>$<span>'+data.ladder_price[i]['price_us']+'</span></td>';
}
if (i == 0) {
html += '<tr><td><span class="goods-min-num">'+data.ladder_price[i]['purchases']+'</span></td><td>¥<span class="goods-min-price">'+data.ladder_price[i]['price_cn']+'</span></td></tr>';
html += '<tr><td><span class="goods-min-num">'+data.ladder_price[i]['purchases']+'</span></td><td>¥<span class="goods-min-price">'+data.ladder_price[i]['price_cn']+'</span></td>'+str+'</tr>';
} else {
html += '<tr><td><span>'+data.ladder_price[i]['purchases']+'</span></td><td>¥<span>'+data.ladder_price[i]['price_cn']+'</span></td></tr>';
html += '<tr><td><span>'+data.ladder_price[i]['purchases']+'</span></td><td>¥<span>'+data.ladder_price[i]['price_cn']+'</span></td>'+str+'</tr>';
}
}
......
......@@ -329,6 +329,7 @@
<tr>
<th>阶梯</th>
<th>RMB价格</th>
<th>USD价格</th>
</tr>
</table>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment