Commit 2d45064b by huahua

提交

parent ab898630
......@@ -17,14 +17,16 @@
<button type="balanced" open-type="chooseAvatar" @chooseavatar="onChooseavatar">
<image :src="avatarUrl" class="refreshIcon"></image>
</button>
<view style="margin: auto; width: 100%; text-align: center;color: #999; margin-top: 0upx; " >点击获取微信头像</view>
</view>
<view class="nickname" style="background: #fff;">
<text>昵称:</text>
<input type="nickname" class="weui-input" :value="nickName" @blur="bindblur" placeholder="请输入昵称"
@input="bindinput"/>
<!-- <view style="width: calc(100% - 100upx); height: 1upx; background: #eee; margin: auto; margin-top: 40upx;"> </view> -->
<view class="nickname" style="background: #61D119; margin-top: 40upx;">
<!--<text>昵称:</text> -->
<input type="nickname" class="weui-input" style="color: #fff;" :value="nickName" @blur="bindblur" placeholder="点击获取微信昵称"
@input="bindinput" placeholder-class="my-input-placeholder"/>
</view>
<!-- <view style="width: calc(100% - 100upx); height: 1upx; background: #eee; margin: auto;"> </view>-->
<view class="btn">
<view class="btn-sub" @tap="getUserProfile">保存</view>
</view>
......@@ -105,7 +107,7 @@
},
bindinput(e) {
console.log('nickName', e)
//console.log('nickName', e)
this.nickName = e.detail.value;
},
......@@ -138,8 +140,7 @@
}
uni.getSetting({
success(res) {
//console.log('获取用户信息是否用户同意')
//console.log(res.authSetting)
}
})
let that = this;
......@@ -373,7 +374,7 @@
}
.avatarUrl {
padding: 70upx 0 40upx;
padding: 40upx 0 40upx;
background: #fff;
button {
......@@ -381,7 +382,7 @@
line-height: 80upx;
height: auto;
width: auto;
padding: 20upx 30upx;
padding: 20upx 10upx;
margin: 0;
display: flex;
justify-content: center;
......@@ -406,29 +407,44 @@
}
.nickname {
background: #EEE;
padding: 20upx 30upx 80upx;
background: #61D119;
padding: 20upx 30upx 20upx;
display: flex;
align-items: center;
justify-content: center;
border: 1upx solid #61D119;
width: 290upx;
height: 40upx;
margin: auto;
font-size: 32upx;
color: #fff;
border-radius: 60upx;
.weui-input {
padding-left: 60upx;
text-align: center;
//padding-left: 40upx;
}
}
.my-input-placeholder {
color: #fff;
}
.btn {
width: 100%;
margin-top: 80upx;
.btn-sub {
width: 670upx;
margin: 80upx auto 0;
height: 90upx;
background: #DF8585;
//width: 670upx;
width: 200upx;
//height: 40upx;
/* margin: 80upx auto 0; */
height: 85upx;
margin: auto;
background: #61D119;
border-radius: 45upx;
line-height: 90upx;
line-height: 85upx;
text-align: center;
font-size: 36upx;
font-size: 32upx;
color: #fff;
}
}
......
<template>
<!-- 贴图 -->
<view v-if="showState" class="content" style="width: 100%; height: 100%; position: relative;overflow: hidden;"
<view v-if="showState" class="content" style="width: 100%; height: 100%; position: relative;overflow: hidden; "
:style="{height: windowHeight +'px',background: backColorVal}">
<refresh ref="refresh" @interrupt="interrupt" @pushToInterrupt="pushToInterrupt" @finished="finished"
@scrolltolower="g" :scrollHeight="windowHeight" :scrollTop="scrollViewTop" @scroll="scroll">
......@@ -17,11 +17,11 @@
style="width: 139upx; height: 255upx; margin: auto; border-radius: 14px; overflow: hidden;"
:src="(item.image ? item.image:item.url) + '?x-oss-process=image/resize,lfit,w_112'"
mode="aspectFit"></image>
<view v-if="type != 99">
<!-- <view v-if="type != 99">
<view v-if="Number(item.price) > 0 && type != 99 " style="min-width: 39upx; position: absolute; top: 0; right: 0;
background: #EF5354; border-radius: 8upx 0upx 11upx 8upx; text-align: center; padding: 2upx 8upx;
font-size: 18upx; font-weight: bold; color: #FFFFFF;">{{item.price}}</view>
</view>
</view> -->
</view>
</view>
<view class="align-center"
......
......@@ -103,12 +103,12 @@
<image :src="item.goods_pic" mode="aspectFit"
style="width: 160upx; height: 160upx; margin: auto; display: block;"></image>
<view style="font-size: 24upx;font-weight: 500;
<view style="font-size: 24upx;font-weight: 500; background: #864BC3;
text-align: center; height: 66upx;
overflow: hidden; width: 100%;
overflow: hidden; width: calc(100% - 240upx);
display:-webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;" :class="[goods_id == item.id ? 'modelactive':'' ]">{{item.name || ''}} </view>
-webkit-line-clamp: 3;" :class="[goods_id == item.id ? 'modelactive':'' ]">{{item.name || ''}} </view>
</view>
</scroll-view>
</view>
......
......@@ -35,7 +35,6 @@
<!-- 自定义高度 -->
<view style="display: flex;align-items: center; margin-left: 20upx; margin-top: 20upx;">
<!-- <view style="font-size: 28upx; font-weight: 400; color: #FFFFFF; width: 155upx;">上边距:</view> -->
<view style="width: calc(100% - 70upx); height: 66upx; background: #282932; border-radius: 30upx;
display: flex;align-items: center ">
<input type="digit" placeholder="请输入上边距" @input="changeTop" :value="printTop"
......@@ -48,7 +47,6 @@
</view>
<view
style="display: flex; align-items: center; margin-left: 20upx; margin-top: 20upx; position: relative;">
<!-- <view style="font-size: 28upx; font-weight: 400; color: #FFFFFF;width: 155upx;">左边距:</view> -->
<view style="width: calc(100% - 70upx);; height: 66upx; background: #282932; border-radius: 30upx;
display: flex; align-items: center;">
<input type="digit" :value="printLeft" placeholder="请输入左边距" @input="changeLeft"
......@@ -74,7 +72,6 @@
style="width: 48upx; height: 48upx; margin-left: 10upx;" mode="widthFix"
@click="showUpdateRule(3)"> </image>
</view>
<!-- 自定义高度 -->
<view style="display: flex; align-items: center; margin-left: 20upx; margin-top: 20upx;">
<!-- <view style="font-size: 28upx; font-weight: 400; color: #FFFFFF;width: 155upx;">高度:</view> -->
......@@ -116,8 +113,7 @@
style=" width: 30upx; padding: 20upx; float:right; " mode="widthFix">
</image>
</view>
<image style="width: 558upx; position: absolute; top:0;left: 0; z-index: 2;" :src="tipImageUrl"
mode="widthFix" />
<image style="width: 558upx; position: absolute; top:0;left: 0; z-index: 2;" :src="tipImageUrl" mode="widthFix"/>
</view>
</uni-popup>
......
......@@ -286,8 +286,7 @@
<!-- 图片提示 -->
<view v-if="showone">
<view
style="position: fixed; z-index:999; width: 100%; height: 100%; background:rgba(0,0,0,0.6); top: 0;"
<view style="position: fixed; z-index:999; width: 100%; height: 100%; background:rgba(0,0,0,0.6); top: 0;"
@click.stop="showone = !showone"></view>
<view style="position: fixed; background: #FFFFFF; top:calc((100% - 621upx) / 2); left:calc((100% - 560upx) / 2);
z-index:1000; width: 560upx; min-height: 621upx; border-radius: 12upx;">
......@@ -333,31 +332,34 @@
</view>
<view class="tool_li" @click="showAiChange()">
<image @click="cancel('share')" class="tool_li_img"
src="../../static/icon_diy_ai.png" mode="aspectFit"
style=" width: 50upx;height: 50upx;"></image>
src="../../static/icon_diy_ai.png" mode="aspectFit" style="width: 50upx;height: 50upx;"></image>
<view class="tool_li_text">优化图片</view>
</view>
</view>
<tuya ref="tuya" @tuyaimg="tuyaimg"></tuya>
<!-- 编辑文字跟图片按钮 -->
<view v-if="active && !guide_left" style="position: fixed;top: 718upx;right: 26upx; z-index: 99999;">
<view v-if="active && !guide_left" style="position: fixed;top: 718upx;right:0upx; z-index: 99999; width: 120upx;height: 130upx;">
<view style="width: 100%;height: 130upx;">
<!-- 点击画布区域取消聚焦 -->
<view style="width: 100%;height: 90upx;" @click.stop="itemCancel">
<image style="width: 50upx; height: 50upx;"
<view style="width: 100%;height: 60upx;margin-left: 36upx;" @click.stop="itemCancel">
<image style="width: 50upx; height: 70upx;"
src="../../static/icon_confirm.png" mode="aspectFit"></image>
</view>
<!-- AI图像 -->
<view v-if="data.itemList.length > 0">
<view style="height: 90upx;width: 100%;" @click="showAiChange()">
<image class="tool_li_img" style="width: 50upx; height: 50upx;"
<!-- <view v-if="data.itemList.length > 0">
<view style="height: 60upx;width: 100%;margin-left: 36upx;margin-top: 21upx;" @click="showAiChange()">
<image class="tool_li_img" style="width: 50upx; height: 70upx;"
src="../../static/icon_diy_ai.png" mode="aspectFit" ></image>
</view>
</view>
<view style="text-align: center;
color: #FFFFFF;
font-size: 22upx;
margin-top: 10upx;width: 100%;">优化图片</view>
</view> -->
<view v-if="data.itemList.length > 0">
<view style="height: 60upx;width: 100%;" @click="showPopup(4)" v-if="data.itemList[data.cidx].type == 1">
......@@ -455,7 +457,7 @@
style="width: 60upx; height: 60upx; display: block;margin:auto; padding: 18upx;"
:src="index == currentId ? item.icon_click : item.icon" mode="aspectFill">
</image>
<view v-if="item.update_flag == 1"
<!-- <view v-if="item.update_flag == 1"
style="width: 20upx;
height: 20upx;
margin-left: 80upx;
......@@ -464,7 +466,7 @@
border-radius: 50%;
margin-top: -80upx;
position: absolute;">
</view>
</view> -->
</view>
</scroll-view>
</view>
......@@ -579,10 +581,7 @@
<view v-if="isShowPop"
style="z-index: 999999; width: 100%;background: #55ff7f; 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="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"
......@@ -607,13 +606,20 @@
<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="width: 135upx; 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;"
style="width: 132upx; 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>
<text style="
margin-top: 3upx;
text-align: center;
font-size: 24upx;
color: #000;
font-weight:bold;
word-break: break-word;
white-space: normal">{{item.name}}</text>
</view>
</view>
</view>
......@@ -639,7 +645,6 @@
<view :id="'s' + index" style="height: 140upx;"
:class="[index == brandCurrentId ? '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>
</scroll-view>
</view>
......@@ -976,13 +981,10 @@
//显示Ai转换
showAiChange() {
if(this.data == null){
return
}
if(!this.active){
if(this.data == null ){
uni.showToast({
icon: "none",
title: "还没选中图片",
title: "上传人物图片",
duration: 2000
});
return
......@@ -990,12 +992,12 @@
if(this.data.itemList == null || this.data.itemList.length == 0){
uni.showToast({
icon: "none",
title: "还没选中图片",
title: "上传人物图片",
duration: 2000
});
return
}
if(this.data.itemList[this.data.cidx].type == 0 && this.data.itemList[this.data.cidx].isUpLoadImage){
if(this.data.itemList[this.data.itemList.length-1].type == 0 && this.data.itemList[this.data.itemList.length-1].isUpLoadImage){
this.selectChangeType = 1;
this.$refs["showAiChange"].open();
}else{
......@@ -1236,8 +1238,7 @@
under_color: '',
content: e, // 图片地址
top: this.editor_top - this.data.editorHeight / 2, // 初始图片Y坐标,根据画布高/2-图片高/2
left: this.data.editorWidth / 2 - this.data.editorWidth /
2, // 初始图片X坐标,因为div是相对定位,所以计算是要多减一次移动的距离
left: this.data.editorWidth / 2 - this.data.editorWidth / 2, // 初始图片X坐标,因为div是相对定位,所以计算是要多减一次移动的距离
x: this.data.editorWidth / 2, // 初始圆心位置,可再downImg之后又宽高和初始的图片位置得出
y: this.editor_top,
scale: 1, // 缩放比例 1为不缩放
......@@ -1924,21 +1925,17 @@
if (this.machine_id != undefined && this.machine_id != null && this.machine_id != '') {
// 判断设备是否正常
that.isComeDelivery = false;
this.available = this.machineDetail.available //禁用下订单
if (this.available == 0) {
this.createWorkstext = '暂时缺货'
}
//判断配送版
if (this.machineDetail.delivery == 1 && this.machineDetail.machine_category_id == "64") {
//this.key = 1;
this.isComeDelivery = true;
} //key:null,//1直营配送站 2 万能通用版 3色彩自助站
this.$base.coupon_flag_desc = this.machineDetail.coupon_flag_desc
this.support_pay = this.machineDetail.support_pay //单机版是否支付
//console.log("this.support_pay=" + res.support_pay)
// 先登陆
uni.login({
provider: 'weixin',
......@@ -2173,9 +2170,7 @@
}
this.self_help(loading, result.id)
} else {
/* uni.navigateTo({
url: '../mall/myworksDetail?id=' + result.id
}) */
}
}).catch(err => {
uni.hideLoading();
......@@ -2229,46 +2224,9 @@
});
isclick = true;
});
/* if (this.support_pay == 1) {
uni.navigateTo({
url: '../mine/order?goodid=' + works_id + '&machine_id=' + this
.machine_id + '&goods_id=' +
this.data.goods_id + '&sn=' + this.sn + "&machineDetail=" +
encodeURIComponent(JSON.stringify(this.machineDetail)) + "&customize_size_id=" + this
.customize_size_id
})
setTimeout(function() {
isclick = true;
}, 5000)
} else {
uni.showLoading({
title: '正在生成订单...',
mask: true
})
homeservice.WorksList(data).then(result => {
// 关闭当前页面,跳转到应用内的某个页面。
uni.navigateTo({
url: '../mall/lineUp?machine_id=' + this.machine_id + '&key=' +
this.key
})
setTimeout(function() {
isclick = true;
}, 5000)
uni.hideLoading();
}).catch(err => {
loading = false;
uni.hideLoading();
uni.showToast({
title: err.msg || err.data,
icon: 'none'
});
isclick = true;
});
} */
},
payment(params, order_id) {
let seft = this
uni.requestPayment({
......@@ -2292,7 +2250,6 @@
}, 1000)
},
fail: (err = {}) => {
console.log('fail00:' + JSON.stringify(err || ''));
if (err.errMsg && err.errMsg.indexOf('cancel') === -1 || (!err.errMsg)) uni.showToast({
title: '网络异常,请稍后再试',
icon: 'none',
......@@ -2312,8 +2269,6 @@
key:"3"
}).then(result => {
this.brandList = result;
//this.isShowPop = true;
//this.$refs['showBrandShare'].open()
if(this.brandList != null && this.brandList.length > 0 ){
this.brandclick(0,this.brandList[0])
}
......@@ -2345,7 +2300,6 @@
ev.preventDefault();
//获取当前选中的部件
var item = items[index];
//点击
if (ev.touches.length == 1 && item != undefined) {
if (item.typetext == "left-top" || item.typetext == "left-bottom" || item.typetext ==
"right-top" || item.typetext == "right-bottom") {
......@@ -2855,7 +2809,6 @@
}
},
MaterialseriesList() { //查询分类下二级分类
this.material_series_list = []
homeservice.queryList({
......@@ -2981,7 +2934,6 @@
title: "我的点赞"
},
]
if (this.collection_currentId != 0) {
this.currentId = this.collection_currentId;
this.currentIndex = this.collection_currentIndex;
......@@ -3012,7 +2964,6 @@
if (!this.isHasClick) {
return;
}
//this.isShowGif = false;
this.$refs['show' + type].close()
this.addtext = false
if (wx.pageScrollTo) {
......@@ -3027,7 +2978,7 @@
typefaceshow(type) {
var item = items[index]; // 获取当前选中的部件
if (item != undefined && item.type == 1) {
// 字体
//字体
this.$refs['textsettingsshare'].open()
this.$nextTick(() => {
this.$refs['textsettingstwo'].open({
......@@ -3448,8 +3399,6 @@
//点击画布区域取消聚焦
itemCancel(e) {
//console.log('点击画布区域取消聚焦')
//this.isShowGif = false;
this.isShowMoveMaterial = true;
this.drag_text_context = "单击可选中";
this.cutting_text_context = "双击可裁剪";
......@@ -3470,7 +3419,6 @@
// this.setData({itemList: items});
this.active = false
}
//uni.showToast({title: this.active+"",icon: 'none'});
},
/* 获取编辑区域左边距 */
......@@ -3675,12 +3623,10 @@
var mTop = this.getTop();
//移动的点到圆心的距离
item.disPtoO = this.computeDistance(item.x, item.y, item.touchMoveX - mLeft, item
.touchMoveY -
mTop);
.touchMoveY - mTop);
//移动后位置的角度
item.angleNext = this.computeAngle(item.x, item.y, item.touchMoveX - mLeft, item
.touchMoveY -
mTop);
.touchMoveY - mTop);
//角度差
item.new_rotate = item.angleNext - item.anglePre;
//叠加的角度差
......@@ -3762,19 +3708,16 @@
item.activehorn = true // 角状态
item.activeedge = true // 边状态
//赋值
// this.data.listActive = false
drag.getTransferPosition(item.left, item.top, item.width, item.height, item.angle, item
.centerPos,
item)
drag.getTransferPosition(item.left, item.top, item.width, item.height, item.angle, item.centerPos,item)
this.saveSnapshot();
},
/* 部件旋转结束事件*/
rotateEnd: function(e) {
// 获取当前选中的部件
//获取当前选中的部件
var item = items[index];
item.typetext = null;
//赋值
// this.data.listActive = false
//关闭点击属性
item.active = true //辅助线
item.activeguide = false // 辅助线状态
......@@ -4078,7 +4021,6 @@
item.index = item.index + 1;
currentItem.index = currentItem.index - 1;
this.data.itemList = items
// this.setData({itemList:items});
this.saveSnapshot();
break;
}
......@@ -4173,10 +4115,8 @@
uni.getImageInfo({
src: result.front_image,
success: (front_image) => {
this.data.bgHeight = front_image.height * (this.data.bgWidth / front_image
.width) // 画布高度
this.editory = result.center_scale * (this.data.bgWidth / front_image
.width) //辅助线距离
this.data.bgHeight = front_image.height * (this.data.bgWidth / front_image.width) // 画布高度
this.editory = result.center_scale * (this.data.bgWidth / front_image.width) //辅助线距离
this.front_image_long = true
},
fail(err) {
......@@ -4212,7 +4152,6 @@
this.center_scale = result.center_scale // 设计区中心点比率
this.location_scale = result.location_scale // 辅助线比率
this.editor_top = this.data.editorHeight * Number(this.location_scale) //辅助线距离
let scaleWidth = this.data.editorWidth / 100;
let scaleHeight = this.data.editorHeight / 185;
this.real_print_height = (this.options.HeightIndex / 3) * scaleWidth; // 设计宽度
......@@ -4222,7 +4161,6 @@
this.clipTop = (this.data.editorHeight - this.real_print_height) / 2;
this.clipButtom = this.clipTop;
this.filletSize = (this.options.fillet / 3) * scaleWidth;
if (snapshot.length > 0) {
let listSnapshot = []
snapshot.forEach((item, index) => {
......@@ -4300,73 +4238,6 @@
snapshot = listSnapshot
}
/* this.setData({
functionHide: animation.export()
}) */
//进入页面动画
/* if (this.translateX != 0) {
// 初始化位置
//this.translateX = -((this.data.windowWidth - this.data.editorWidth) / 2 + this.data.editorWidth)
//this.translateX = - 800
// 手机壳缓缓移动进入 1s
setTimeout(function() {
this.translateX = 0
}.bind(this), 1000)
// 背景淡淡消失 1s
setTimeout(function() {
this.isReady = true; // 撒礼花特效
var animationDelLots = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animationDelLots.opacity(0).step()
this.setData({
translateXState: animationDelLots.export()
})
let animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animation.opacity(1).step()
this.setData({
translateHide: animation.export()
})
}.bind(this), 2000)
//手机顶部盒子离开视线 2s
setTimeout(function() {
let animationDelLots = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animationDelLots.translate(-((this.data.windowWidth - this.data.editorWidth) /
2 + this.data.editorWidth) * 2, 0).step(); //向左移动
this.setData({
translateLeft: animationDelLots.export()
})
}.bind(this), 3000)
//显示功能按钮
setTimeout(function() {
this.isReady = false; // 消失礼花
let animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animation.opacity(1).step()
this.setData({
functionHide: animation.export()
})
}.bind(this), 4000)
} else {
setTimeout(function() {
this.isReady = true;
}.bind(this), 200)
setTimeout(function() {
this.isReady = false;
}.bind(this), 4000)
} */
}).catch(err => {
this.goodslistAgain();
});
......@@ -4387,10 +4258,8 @@
uni.getImageInfo({
src: result.front_image,
success: (front_image) => {
this.data.bgHeight = front_image.height * (this.data.bgWidth / front_image
.width) // 画布高度
this.editory = result.center_scale * (this.data.bgWidth / front_image
.width) //辅助线距离
this.data.bgHeight = front_image.height * (this.data.bgWidth / front_image.width) // 画布高度
this.editory = result.center_scale * (this.data.bgWidth / front_image.width) //辅助线距离
this.front_image_long = true
},
fail(err) {
......@@ -4438,57 +4307,6 @@
}
//进入页面动画
if (this.translateX != 0) {
// 初始化位置
/* this.translateX = -((this.data.windowWidth - this.data.editorWidth) / 2 + this.data.editorWidth)
// 手机壳缓缓移动进入 1s
setTimeout(function() {
this.translateX = 0
}.bind(this), 1000)
// 背景淡淡消失 1s
setTimeout(function() {
this.isReady = true; // 撒礼花特效
var animationDelLots = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animationDelLots.opacity(0).step()
this.setData({
translateXState: animationDelLots.export()
})
let animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animation.opacity(1).step()
this.setData({
translateHide: animation.export()
})
}.bind(this), 2000)
//手机顶部盒子离开视线 2s
setTimeout(function() {
let animationDelLots = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animationDelLots.translate(-((this.data.windowWidth - this.data.editorWidth) /
2 + this.data.editorWidth) * 2, 0).step(); //向左移动
this.setData({
translateLeft: animationDelLots.export()
})
}.bind(this), 3000)
//显示功能按钮
setTimeout(function() {
this.isReady = false; // 消失礼花
let animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease-out'
})
animation.opacity(1).step()
this.setData({
functionHide: animation.export()
})
}.bind(this), 4000) */
} else {
setTimeout(function() {
......@@ -4521,11 +4339,6 @@
.surface_color_series_id //色系编号
}).then(result => {
this.Material_category = result
// this.Material_category.unshift({
// icon: "../../static/image/icon_new_default.png",
// icon_click: "../../static/image/icon_new_pressed.png",
// title: "最新"
// }, )
this.Adlists = this.diy_bannerList
this.queryPage.goods_id = this.data.goods_id
this.brands = this.Material_category
......@@ -4714,7 +4527,6 @@
});
},
getDetail() {
uni.showLoading({
title: '正在加载中...',
......@@ -4737,16 +4549,6 @@
onLoad(options) {
this.options = options
/* if(!this.options){
var url = Env.getBaseURL();
if (url.indexOf("refinecolor") != -1) {
this.options.machine_id = 100022;
this.options.goods_id = 301;
this.options.key = 3;
this.options.sn = 1703559495379168;
this.options.dict_id = 1372;
}
} */
let app = uni.getSystemInfoSync();
//胶囊信息
let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
......@@ -4762,22 +4564,21 @@
this.infoListTouchEvent = infoListTouchEvent;
this.infoListTouchEvent.bind({
doubleTap: function(e) { //是双击事件
//this.isShowGif = false;
if (items[index].type == 0) {
that.state = true
that.$refs.index.init();
}
// if (items[index].type == 0) {
// that.state = true
// that.$refs.index.init();
// }
},
tap: function(e) {
if (items == null || items.length == 0) {
that.active = false;
that.guide_left = false
} else {
//that.isShowGif = false;
that.isShowMoveMaterial = false;
that.drag_text_context = "单指可拖拽";
that.cutting_text_context = "双指可伸缩";
var curTime = e.timeStamp
that.itemClick(e)
/*var curTime = e.timeStamp
var lastTime = e.currentTarget.dataset.time //通过e.currentTarget.dataset.time 访问到绑定到该组件的自定义数据
if (curTime - lastTime > 0) {
if (curTime - lastTime < 300) { //是双击事件
......@@ -4788,8 +4589,8 @@
} else {
that.itemClick(e);
}
}
that.lastTapTime = curTime
} */
//that.lastTapTime = curTime
}
},
touchStart: function(e) { //拖拽开始
......@@ -5560,12 +5361,12 @@
}
}
// 底部工具栏
//底部工具栏
.toolRight {
position: fixed;
top: 440upx;
right: 0;
width: 100upx;
width: 120upx;
.tool_li {
width: 100%;
......
......@@ -4,13 +4,21 @@
<button type="balanced" open-type="chooseAvatar" @chooseavatar="onChooseavatar">
<image :src="avatarUrl" class="refreshIcon"></image>
</button>
<view style="margin: auto; width: 100%; text-align: center;color: #999; margin-top: 0upx; ">点击获取微信头像</view>
</view>
<view class="nickname">
<text>昵称:</text>
<input type="nickname" class="weui-input" :value="nickName" @blur="bindblur" placeholder="请输入昵称"
@input="bindinput" />
<view class="nickname" style="background: #61D119; margin-top: 40upx;">
<!--<text>昵称:</text> -->
<input type="nickname" class="weui-input" style="color: #fff;" :value="nickName" @blur="bindblur"
placeholder="点击获取微信昵称" @input="bindinput" placeholder-class="my-input-placeholder" />
</view>
<!-- <view style="width: calc(100% - 100upx); height: 1upx; background: #eee; margin: auto;"> </view>-->
<view class="btn">
<view class="btn-sub" @tap="getUserProfile">保存</view>
</view>
<view class="btn">
<view class="btn-sub" @click="onSubmit">保存</view>
</view>
......@@ -19,8 +27,6 @@
</template>
<script>
import Env from '@/util/Env.js';
export default {
data() {
......@@ -61,18 +67,6 @@
uni.showLoading({
title: '头像上传中...'
});
// uni.request({
// url: Env.getDevBaseURL() + '/api/AliossSign/getSign',
// method: 'GET',
// data: '',
// header: {
// 'content-type': 'application/x-www-form-urlencoded',
// 'Accept': 'application/json'
// },
// success: function(res) {
// },
// });
}
},
......@@ -115,29 +109,44 @@
}
.nickname {
background: #fff;
padding: 20upx 30upx 80upx;
background: #61D119;
padding: 20upx 30upx 20upx;
display: flex;
align-items: center;
justify-content: center;
border: 1upx solid #61D119;
width: 290upx;
height: 40upx;
margin: auto;
font-size: 32upx;
color: #fff;
border-radius: 60upx;
.weui-input {
padding-left: 60upx;
text-align: center;
//padding-left: 40upx;
}
}
.my-input-placeholder {
color: #fff;
}
.btn {
width: 100%;
margin-top: 80upx;
.btn-sub {
width: 670upx;
margin: 80upx auto 0;
height: 90upx;
background: #DF8585;
//width: 670upx;
width: 200upx;
//height: 40upx;
/* margin: 80upx auto 0; */
height: 85upx;
margin: auto;
background: #61D119;
border-radius: 45upx;
line-height: 90upx;
line-height: 85upx;
text-align: center;
font-size: 36upx;
font-size: 32upx;
color: #fff;
}
}
......
......@@ -102,17 +102,25 @@
<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="width: 135upx; 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;"
style="width: 132upx; 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>
<text
style="
margin-top: 3upx;
text-align: center;
font-size: 24upx;
color: #000;
font-weight:bold;
word-break: break-word;
white-space: normal">{{item.name}}</text>
</view>
</view>
</view>
......@@ -125,7 +133,7 @@
</view>
</view>
</scroll-view>
</veiw>
</view>
......@@ -151,7 +159,6 @@
</view>
</view>
</view>
</view>
......@@ -166,6 +173,7 @@
import uniPopup from './common/uni-popup/uni-popup.vue'
import myhead from './head/head.vue';
import Signin from '../index/Signin.vue';
//import Signin from '../index/nick-name.vue';
import userService from '@/service/UserService';
import FrImage from '@/components/fr-image/fr-image.vue'
import switchBrands from './components/switchBrands.vue'; // 手机壳
......@@ -230,7 +238,6 @@
cancel(type) {
this.isShowPop = false
//this.$refs['showshare'].close()
},
//关闭所有弹窗回调事件
......@@ -238,7 +245,6 @@
},
modeDetail(item) {
this.brandsitem = item
homeservice.queryList({
......@@ -255,17 +261,9 @@
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'
// });
});
},
......@@ -384,7 +382,6 @@
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
},
......@@ -631,6 +628,7 @@
old_sn: this.sn
}).then(result => {
this.$base.lockInventory = result //锁库存储存信息
this.$base.lockInventory.dict_id = this.dict_id
this.sn = result.sn
uni.navigateTo({
......@@ -919,7 +917,6 @@
}
.scroll-item-select{
//border: 1upx solid #61D119;
border-top: 5upx solid #61D119;
border-bottom: 5upx solid #61D119;
border-left: 5upx solid #61D119;
......
static/icon_diy_ai.png

671 Bytes | W: | H:

static/icon_diy_ai.png

205 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
......@@ -5,8 +5,8 @@ if(!accountInfo.miniProgram.envVersion){
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",
//正式版
......
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