Commit ab898630 by huahua

提交

parent d0824a3b
......@@ -51,7 +51,6 @@
type: Number,
default: 8
},
},
data() {
return {
......@@ -76,12 +75,9 @@
this.$emit('lowChange', to) // 左滑块对应数字回调
},
high(to) {
// 右滑块对应数字回调
//右滑块对应数字回调
this.defalutFilletData = Math.floor((to / 10) * 1.5);
this.$emit('highChange', this.defalutFilletData)
//Math.floor((this.defalutFillet / 50) * to);
//console.log("to=" + to + "this.defalutFilletData=" + this.defalutFilletData
this.$emit('highChange', this.defalutFilletData)
}
},
......
<template>
<!-- 贴图 -->
<view class="content" style="width: 100%; height: 100%; position: relative;overflow: hidden;">
<view class="content" style="width: calc(100% - 150upx); height: calc(100% - 180upx); position: relative;overflow: hidden;
border: 3upx solid #61D119; margin-top: 140upx; margin-right: 10upx; ">
<veiw>
<scroll-view scroll-y style="width:100%; margin: auto; height:calc(100% - 220upx); overflow: hidden; margin-top: 140upx; ">
<view style="float: left; width: calc(100% / 3); margin: 10upx 0 10upx; "
<scroll-view scroll-y style="width:100%; margin: auto; height:calc(100% - 50upx); overflow: hidden; margin-top: 10upx;">
<view style="float: left; width: calc(100% / 4); margin: 5upx 0 5upx; "
v-for="(item, index) in datalist" :key="index" @click="modeDetail(item)">
<view style="width: 139upx; height: 255upx; margin: auto; position: relative;">
<view style="width: 130upx; height: 255upx; margin: auto; position: relative;">
<view style="display: flex;flex-direction: column;">
<image
style="width: 139upx; height: 200upx; margin: auto; border-radius: 14px; overflow: hidden;"
style="width: 130upx; height: 180upx; margin: auto; border-radius: 14px; overflow: hidden;"
:src="item.goods_pic + '?x-oss-process=image/resize,lfit,w_112'"
mode="aspectFit"></image>
<view style=" margin-top: 5upx; text-align: center; font-size: 22upx; color: #61D119;">{{item.name}}</view>
<text style=" margin-top: 4upx; text-align: center; font-size: 22upx; color: #000; font-weight: 1000;">{{item.name}}</text>
</view>
</view>
</view>
......@@ -24,7 +25,7 @@
</view>
</view>
</scroll-view>
</veiw>
</veiw>
</view>
</template>
......@@ -86,8 +87,6 @@
},
modeDetail(item) {
//item.isWork = this.isWork;
//this.$emit('Worksdetail', item)
this.brandsitem = item
homeservice.queryList({
s: 'Product.machineDetail', //新接口
......@@ -106,7 +105,6 @@
this.$emit('goodsbrands', {
goods_id_e: this.goods_id_e,
})
//this.$refs['shellShow'].close() //关闭手机壳子弹框
}).catch(err => {
// uni.showToast({
// title: err.msg,
......
......@@ -1087,12 +1087,12 @@
.scroll-item {
width: 152upx;
height: 248upx;
background: #F5F5F5;
/* background: #F5F5F5; */
border-radius: 20upx;
text-align: center;
display: inline-block;
margin: 0 10upx;
border: 4upx solid #F5F5F5;
/* border: 4upx solid #F5F5F5; */
&.active {
background: #FFFFFF !important;
......
......@@ -71,43 +71,90 @@
</view>
</view>
<uni-popup ref="showshare" type="bottom"
style="position: relative; z-index: 9998; width: 100%; " :style="{height: data.windowHeight +'px'}">
<view class="uni-share full-width" :style="{height: data.windowHeight +'px'}">
<view style="position: absolute; bottom: 0; left: 0; height: 100%; width: 100%; z-index: 997; opacity: 0.8;"
@click="cancel('share')"/>
<view style="position: absolute; bottom: 0upx; left: 0;
height: 100%; width: 120upx;
z-index: 999; background: #1A1D33;
overflow: hidden;">
<view style="width: 120upx; height: 188upx;"></view>
<view style="width: 120upx;" :style="{height: (data.windowHeight - 188 * data.pixelRate) +'px'}">
<scroll-view class="scroll-container"
:style="{height: (data.windowHeight - 160 * data.pixelRate) +'px'}" scroll-y
scroll-with-animation v-if="brandList.length > 0" >
<view :id="'s' + index"
:class="[index == currentId ? 'scroll-item-select' : 'scroll-item-no-select']"
v-for="(item, index) in brandList" :key="index" @tap="brandclick(index,item)">
<image
style="width: 60upx; height: 100upx; display: block;margin:auto; padding: 18upx;"
:src="item.icon" mode="aspectFit">
</image>
<view v-if="isShowPop"
style="z-index: 999999; width: 100%; height: 100%; position: absolute; top: 0upx; left: 0upx" :style="{height: data.windowHeight +'px'}">
<view class="uni-share full-width" :style="{height: data.windowHeight +'px'}" style="background: #fff;">
<view style="position: absolute; bottom: 0upx; left: 0;
height: 100%; width: 120upx;
z-index: 7;
overflow: hidden;">
<view style="width: 120upx; height: 190upx;"></view>
<view style="width: 112upx; padding-left: 8upx;" :style="{height: (data.windowHeight - 188 * data.pixelRate) +'px'}">
<scroll-view class="scroll-container"
:style="{height: (data.windowHeight - 160 * data.pixelRate) +'px'}" scroll-y
scroll-with-animation v-if="brandList.length > 0" >
<view :id="'s' + index" style="height: 140upx;"
:class="[index == currentId ? 'scroll-item-select' : 'scroll-item-no-select']"
v-for="(item, index) in brandList" :key="index" @tap="brandclick(index,item)" >
<image
style="width: 60upx; height: 100upx; display: block;margin:auto; padding: 18upx;"
:src="item.icon" mode="aspectFit">
</image>
</view>
</scroll-view>
</view>
</view>
<view style="position: absolute; bottom: 0upx; left: 116upx; height: 100%; width: 100%;
z-index: 8; overflow: hidden; ">
<view style="width: calc(100% - 150upx); height: calc(100% - 180upx); position: relative;overflow: hidden;
border: 4upx solid #61D119; margin-top: 140upx; margin-right: 10upx; ">
<veiw>
<scroll-view scroll-y style="width:100%; margin: auto; height:calc(100% - 50upx); overflow: hidden; margin-top: 10upx;">
<view style="float: left; width: calc(100% / 4); margin: 5upx 0 5upx; "
v-for="(item, index) in datalist" :key="index" @click="modeDetail(item)">
<view style="width: 130upx; height: 255upx; margin: auto; position: relative;">
<view style="display: flex;flex-direction: column;">
<image
style="width: 130upx; height: 175upx; margin: auto; border-radius: 14px; overflow: hidden;"
:src="item.goods_pic + '?x-oss-process=image/resize,lfit,w_112'"
mode="aspectFit"></image>
<view style=" margin-top: 3upx; text-align: center; font-size: 23upx; color: #000; font-weight:600">{{item.name}}</view>
</view>
</view>
</view>
<view class="align-center"
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"
v-if="datalist.length == 0">
<span class="iconfont icon-wushuju"
style="font-size: 100upx; text-align: center; color: #B2B2B2;"></span>
<view style="color: #B2B2B2; text-align: center; line-height: 50upx;font-size: 24upx;">啊嘞,还是一片荒漠
</view>
</view>
</scroll-view>
</view>
</veiw>
</view>
<view style="position: absolute; bottom: 0upx; left: 0;
height: 100%; width: 5upx;
z-index: 9;
overflow: hidden;">
<view style="width: 5upx; padding-left: 0upx; margin-top: 190upx;" :style="{height: (data.windowHeight - 188 * data.pixelRate) +'px'}">
<scroll-view class="scroll-container"
:style="{height: (data.windowHeight - 160 * data.pixelRate) +'px'}" scroll-y
scroll-with-animation v-if="brandList.length > 0" >
<view :id="'s' + index" style="height: 140upx;"
:class="[index == currentId ? 'scroll-item-buttom-select' : 'scroll-item-buttom-no-select']"
v-for="(item, index) in brandList" :key="index" @tap="brandclick(index,item)" >
<!-- <view style="width: 20upx; background: #fff;margin-left: 0upx ;height: 140upx" :style="{background: index == currentId ? '#fff' :'#00000000' }"> </view> -->
</view>
<view style="position: absolute; bottom: 0upx; left: 120upx; height: 100%; width: calc(100% - 200upx);
z-index: 999; overflow: hidden; background: #fff;">
<scrollModeView ref="scrollModeView"
@goodsbrands="goodsbrands"
:windowHeight="(data.windowHeight - 210 * data.pixelRate - classificationHeight)">
</scrollModeView>
</scroll-view>
</view>
</view>
</view>
</view>
</uni-popup>
<!-- 手机壳品牌 -->
<switchBrands ref="switchBrands" @goodsbrands="goodsbrands" @toCustomSize="toCustomSize()"></switchBrands>
</view>
<!-- 登录弹框 -->
<Signin ref="Signin"></Signin>
......@@ -173,19 +220,75 @@
},
currentId: 0,
classificationHeight: 0,
goods_id_e:{},
datalist:[],
isShowPop:false
};
},
methods: {
cancel(type) {
this.$refs['showshare'].close()
this.isShowPop = false
//this.$refs['showshare'].close()
},
//关闭所有弹窗回调事件
change(e) {
},
modeDetail(item) {
this.brandsitem = item
homeservice.queryList({
s: 'Product.machineDetail', //新接口
machine_id: this.machine_id,
id: this.brandsitem.id //商品id
}).then(result => {
this.modeltext = this.brandsitem.name //机型名
this.goods_id = this.brandsitem.id //产品id
this.dict_id = result.dict_id //产品属性id
this.goods_id_e = {
brandtext: this.brandsitem.name, // 品牌名
modeltext: this.brandsitem.name, // 机型商品名
goods_id: this.brandsitem.id, // 产品id
dict_id: result.dict_id, // 产品属性
}
this.goodsbrands({goods_id_e: this.goods_id_e})
/* this.$emit('goodsbrands', {
goods_id_e: this.goods_id_e,
}) */
}).catch(err => {
// uni.showToast({
// title: err.msg,
// icon: 'none'
// });
});
},
open(item) {
this.machine_id = item.machine_id
homeservice.queryList({
s: 'Product.getBrandProducts', //新接口
goods_brand_id: item.id, //品牌id
machine_id: item.machine_id,
key: "3"
}).then(result => {
this.datalist = result // 品牌机型
this.isShowPop = true;
}).catch(err => {
this.isShowPop = true;
uni.showToast({
title: err.msg,
icon: 'none'
});
});
},
getBrandList() {
homeservice.queryList({
......@@ -195,7 +298,7 @@
}).then(result => {
this.brandList = result;
this.isNowCustomized = false;
this.$refs['showshare'].open()
//this.$refs['showshare'].open()
if(this.brandList != null && this.brandList.length > 0 ){
this.brandclick(0,this.brandList[0])
}
......@@ -210,7 +313,8 @@
brandclick(index,item) {
this.currentId = index
item.machine_id = this.machine_id
this.$refs['scrollModeView'].open(item)
this.open(item)
//this.$refs['scrollModeView'].open(item)
},
modelclick(e) {
......@@ -274,12 +378,14 @@
},
goodsbrands(obj) {
this.$refs['showshare'].close()
//this.$refs['showshare'].close()
this.brandtext = obj.goods_id_e.modeltext // 品牌名
this.modeltext = obj.goods_id_e.modeltext //机型名
this.goods_id = obj.goods_id_e.goods_id //产品id
this.dict_id = obj.goods_id_e.dict_id //产品属性id
this.changeChannel()
this.isShowPop =false
},
game() {
......@@ -570,10 +676,6 @@
this.msg = "稍等片刻,我很快恢复"
this.myheadtext = '歇一歇' //头部标题栏
this.statusloading = 2
/* var url = Env.getBaseURL();
if (url.indexOf("refinecolor") != -1) {
this.statusloading = 1
} */
uni.stopPullDownRefresh();
uni.hideLoading();
return;
......@@ -715,7 +817,6 @@
font-size: 26upx;
}
.noexperiencebutton {
width: 230upx;
height: 70upx;
......@@ -728,7 +829,6 @@
font-size: 26upx;
}
.loginBtn-hover {
background: linear-gradient(to left, #64DD17, #64DD17);
}
......@@ -819,14 +919,29 @@
}
.scroll-item-select{
//background: #864BC3;
border: 1upx solid #61D119;
//border: 1upx solid #61D119;
border-top: 5upx solid #61D119;
border-bottom: 5upx solid #61D119;
border-left: 5upx solid #61D119;
border-right: 5upx solid #fff;
}
.scroll-item-no-select{
border: 1upx solid #00000000;
//background: #864BC3;
}
.scroll-item-buttom-select{
border: 5upx solid #fff;
/* border-top: 3upx solid #61D119;
border-bottom: 3upx solid #61D119;
border-left: 3upx solid #fff;
border-right: 3upx solid #fff; */
}
.scroll-item-buttom-no-select{
border: 1upx solid #00000000;
}
</style>
\ No newline at end of file
......@@ -335,7 +335,7 @@
.border-image-pesudo-in {
width: 100%;
height: 100%;
background: #282932;
background: #fff;
//background-color: rgba(255,255,255,0.7);
}
}
......@@ -344,7 +344,7 @@
.border-image-pesudo-no {
width: 150upx;
height: 150upx;
background: #131319;
background: #fff;
margin: 25upx 35upx;
margin-left: 0upx;
......@@ -356,7 +356,7 @@
.border-image-pesudo-in-no {
width: 100%;
height: 100%;
background: #282932;
background: #fff;
//background-color: rgba(255,255,255,0.7);
}
}
......
static/icon_diy_ai.png

789 Bytes | W: | H:

static/icon_diy_ai.png

671 Bytes | W: | H:

static/icon_diy_ai.png
static/icon_diy_ai.png
static/icon_diy_ai.png
static/icon_diy_ai.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,15 +3,10 @@ if(!accountInfo.miniProgram.envVersion){
//console.error("获取运行环境失败!");
}
/* img.kexiaozhan.cn
render.kexiaozhan.cn
ws.kexiaozhan.cn
print.kexiaozhan.cn */
const baseApi = {
//开发版
//develop: "https://kxz.refinecolor.com",
develop: "https://print.kexiaozhan.cn",
develop: "https://kxz.refinecolor.com",
//develop: "https://print.kexiaozhan.cn",
//体验版
trial: "https://kxz.refinecolor.com",
//正式版
......@@ -26,7 +21,6 @@ const Env = {
getAppID: () => "wxdca8810ccd426633",
getcompany: () => "广州壳小站科技有限公司",
getappId: () => "wx55b5b6d95c648041",
//getenvVersion: () => "trial",
getenvVersion: () => "release",
}
export default Env
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 to comment