Authored by caoyan

跟价VIP设置优化

... ... @@ -13,6 +13,13 @@ module.exports = function (app) {
pageName:"VIP设置"
}
});
app.get("/vip/index/:productSkn", "vip.Index", function(response) {
this.$extend={
actions:response.data,
moduleName:"VIP设置",
pageName:"VIP设置"
}
});
//列表页
app.get("/vip/shop/list", "vip.ShopVip", function(response){
this.$extend={
... ...
... ... @@ -6,6 +6,29 @@
<div class="panel-col2">
<input name="productSkn" id="productSkn" type="text" value="" class="form-control" placeholder="SKN" />
</div>
<script>
var param=window.location.search;
alert("param=" + param);
var productSkn = getQueryString(param);
alert("productSkn=" + productSkn);
var reg=/^(\d{8})?$/;
if(productSkn.test(reg)){
document.getElementById("productSkn").value = productSkn;
}
function getQueryString(url) {
var i=url.lastIndexOf('/');
if(i==-1)return;
var querystr=url.substr(i+1);
var paramValue=querystr;
if(querystr.indexOf('#') != -1){
var arr1=querystr.split('#');
paramValue = arr1[0];
}
return paramValue;
}
</script>
<div class="panel-col2">
<select id="shopId" class="form-control" style="width: 280px;" tabindex="-1">
... ... @@ -48,3 +71,5 @@
<div class="dataTab_wrapper" id="productVipTable" ></div>
</div>
</div>
... ...