规格切换图片展示
parent
57026457d5
commit
f5eb0eda47
8
App.vue
8
App.vue
|
|
@ -196,7 +196,7 @@
|
|||
var url = this.data.request_url + (group || "api")+".php?s=" + c + "/" + a + plugins_params;
|
||||
return this.request_params_handle(url) + "&ajax=ajax" + params;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 请求参数处理
|
||||
* url url地址
|
||||
|
|
@ -211,14 +211,14 @@
|
|||
var join = (url.indexOf('?') == -1) ? '?' : '&';
|
||||
return url + join + "system_type="+ this.data.system_type +"&application=app&application_client_type="+ client_value + "&token=" + token + "&uuid=" + uuid;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 获取tab页面切换参数
|
||||
*/
|
||||
get_page_tabbar_switch_params() {
|
||||
return uni.getStorageSync(this.data.cache_page_tabbar_switch_params) || null;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 删除tab页面切换参数
|
||||
*/
|
||||
|
|
@ -288,7 +288,7 @@
|
|||
get_launch_cache_info() {
|
||||
return uni.getStorageSync(this.data.cache_launch_info_key) || null;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 系统参数设置
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@
|
|||
// 规格选择处理
|
||||
goods_spec_choice_handle(key, keys) {
|
||||
var temp_spec = this.goods_spec_choose;
|
||||
var temp_images = this.goods_spec_base_images;
|
||||
// 不能选择和禁止选择跳过
|
||||
if ((temp_spec[key]['value'][keys]['is_dont'] || null) == null && (temp_spec[key]['value'][keys]['is_disabled'] || null) == null) {
|
||||
// 规格选择
|
||||
|
|
@ -245,6 +246,9 @@
|
|||
if (key == i) {
|
||||
if (keys == k && (temp_spec[i]['value'][k]['is_active'] || null) == null) {
|
||||
temp_spec[i]['value'][k]['is_active'] = 'cr-white bg-main br-main';
|
||||
if ((temp_spec[i]['value'][k]['images'] || null) != null) {
|
||||
temp_images = temp_spec[i]['value'][k]['images'];
|
||||
}
|
||||
} else {
|
||||
temp_spec[i]['value'][k]['is_active'] = '';
|
||||
}
|
||||
|
|
@ -253,7 +257,8 @@
|
|||
}
|
||||
}
|
||||
this.setData({
|
||||
spec: temp_spec
|
||||
spec: temp_spec,
|
||||
goods_spec_base_images: temp_images,
|
||||
});
|
||||
|
||||
// 不能选择规格处理
|
||||
|
|
|
|||
Loading…
Reference in New Issue