Commit 6dd96383 by huahua

提交

parent 9a1b6f15
......@@ -88,6 +88,7 @@
</block>
</view>
</view>
<!-- 操作列表 -->
<view v-if="editory" class='operate-list' style="z-index: 10;"
:style="{width: data.editorWidth +'px',height: data.editorHeight +'px',top: editory +'px'}">
......@@ -3953,7 +3954,7 @@
}
},
async text_awaitone(content) {
// 获取当前选中的部件
//获取当前选中的部件
if (content == '' || content == null) {
var item = items[index];
if (item != null) {
......@@ -3984,7 +3985,7 @@
item.height = item.height * rate;
item.top = item.y - (item.height / 2);
}
// that.setData({itemList:items});
//that.setData({itemList:items});
that.setData({
data: that.data
})
......@@ -4412,10 +4413,8 @@
}
var newScale = Math.max(e.scale * item.lastScale, .01);
newScale || (newScale = item.lastScale);
//角度
item.rotate += e.angle;
item.angle = item.rotate;
//缩放
item.scale = newScale;
//图片放大响应的右下角按钮同比缩小
item.oScale = 1 / item.scale;
......@@ -4468,8 +4467,7 @@
this.is_recommend = res.is_recommend
this.is_home = res.is_home
//console.log(this.diy_upload_menu);
//console.log(this.is_public);
}).catch(err => {
uni.showToast({
title: err.msg,
......@@ -4528,6 +4526,7 @@
</script>
<style lang="scss">
page {
width: 100%;
height: 100%;
......@@ -4588,7 +4587,7 @@
// outline: 0.5upx solid #4EE2AE;
}
/* 删除、缩放、旋转操作按钮 */
/*删除、缩放、旋转操作按钮 */
.rotate,
.rotate-red,
.scale,
......@@ -4786,8 +4785,6 @@
z-index: 99;
top: 4upx;
width: 40upx;
/* height: 6upx;
background: #5CE6B5; */
left: 0;
right: 0;
margin: auto;
......@@ -4810,14 +4807,12 @@
z-index: 99;
bottom: 4upx;
width: 40upx;
/* height: 6upx;
background: #5CE6B5; */
left: 0;
right: 0;
margin: auto;
}
// 上一步、下一步按钮
//上一步、下一步按钮
.operation {
display: flex;
justify-items: center;
......
......@@ -76,7 +76,8 @@
</view>
<switchGoods ref="switchGoods" @selectGoodItem="selectGoodItem"></switchGoods>
<!--//商品弹框 -->
<!--商品弹框 -->
</view>
</template>
......@@ -124,7 +125,6 @@
methods: {
//调转代理小程序
toProxyApplet() {
var url = Env.getBaseURL();
......@@ -142,7 +142,6 @@
})
},
//首次进来检查是否
toFirstCheck() {
let that = this;
......@@ -340,7 +339,6 @@
this.statusloading = 1;
this.Adlist() //轮播图
this.getDetail() //获取数据
let url = "/api/material/mchineFontFamilyList";
let queryParam = {
machine_id: this.machine_id
......@@ -379,8 +377,9 @@
textlist.textlong = false
},
complete(res) {
//console.log("完成")
textlist.long = true
textlist.remark = textlist.remark
textlist.textlong = true
that.globalData.typefacedata.forEach(item => {
if (item.long == true) {
that.globalData.num++
......
<template>
<view class="full-width">
<!-- 登录弹框 -->
<Signin ref="Signin"></Signin>
<!-- 自定义头部 -->
<view class='flex commonHead' style="height: 100upx;" :style="{height: titleHeight +'px'}">
<view class='commonHead-wrap flex'>
<view class='commonHead_left' @click="tomine()">
<!--<view class='commonHead_left' @click="tomine()">
<view class='commonHead_left_back'>
<view class="commonHead_left_back_img">
<image src="../../static/icon_mall_zuoshang.png" style="width: 50upx;
......@@ -15,7 +13,7 @@
margin-top: 10upx; " mode="aspectFill"></image>
</view>
</view>
</view>
</view>-->
<view class='commonHead_right flex'>
<view class='commonHead_right_text line1'>色彩小商品</view>
</view>
......@@ -29,12 +27,9 @@
<view class="start_title" style="margin-top: 60upx; color: #FFFFFF; width: 100%; text-align: center;">定制站必须扫码才能使用</view>
</view>
</view>
<view @click="scan1" style="width: 460upx; position: fixed; bottom: 100upx; margin: auto;
height: 164upx; background: #47E5E5; left: 0; right: 0; z-index: 99; border-radius: 20upx; display: flex; align-items: center;">
<view style="width: 120upx;
height: 120upx;border-radius: 50%; margin: 22upx 30upx;text-align: center;">
<image style="height: 61upx; width: 61upx;margin:32upx auto;" src="../../static/icon_saoyisao.png"
mode=""></image>
<view @click="scan1" style="width: 460upx; position: fixed; bottom: 100upx; margin: auto; height: 164upx; background: #47E5E5; left: 0; right: 0; z-index: 99; border-radius: 20upx; display: flex; align-items: center;">
<view style="width: 120upx; height: 120upx;border-radius: 50%; margin: 22upx 30upx;text-align: center;">
<image style="height: 61upx; width: 61upx;margin:32upx auto;" src="../../static/icon_saoyisao.png" mode=""></image>
</view>
<view style="color: #000; font-size: 36upx;">开始扫码定制</view>
</view>
......@@ -46,11 +41,8 @@
<view style="width: 690upx; margin:0upx auto 30upx; display: flex;">
<view>
<view style="position: relative; width: 320upx; height: 160upx;" @click="order()">
<image src="../../static/mine/dingdan@3x.png" mode=""
style="width: 320upx; height: 160upx; position: absolute;z-index: -1;"></image>
<view
style="margin-left:26upx; padding-top: 27upx; font-size: 36upx; color: #FFFFFF;font-weight: bold;">
订单</view>
<image src="../../static/mine/dingdan@3x.png" mode="" style="width: 320upx; height: 160upx; position: absolute;z-index: -1;"></image>
<view style="margin-left:26upx; padding-top: 27upx; font-size: 36upx; color: #FFFFFF;font-weight: bold;">订单</view>
<view style="margin-top: 15upx;margin-left:26upx;font-size: 24upx;
font-weight: 400; color: #FFFFFF;">我的定制</view>
</view>
......@@ -58,9 +50,7 @@
@click="coupons()">
<image src="../../static/mine/huayihua@3x.png" mode=""
style="width: 320upx; height: 160upx; position: absolute;z-index: -1;"></image>
<view
style="margin-left:26upx; padding-top: 27upx; font-size: 36upx; color: #FFFFFF;font-weight: bold;">
滑一滑</view>
<view style="margin-left:26upx; padding-top: 27upx; font-size: 36upx; color: #FFFFFF;font-weight: bold;">滑一滑</view>
</view>
</view>
<view style="margin-left: 15upx;width: 350upx; height: 340upx;" @click="tomine()">
......@@ -77,14 +67,12 @@
<view style="font-size: 36upx; margin-top: 40upx; margin-left: 40upx; font-weight: bold; color: #FFFFFF;">在线定制站</view>
<view style="width: 690upx; margin: 30upx auto 0; background: #131319; border-radius: 10upx;">
<view v-for="(item, index) in LoupanList" :key="index" @click="goMachineDetail(item)">
<view v-if="index != 0" style="width: 689upx; height: 1upx; background: #CCCCCC; opacity: 0.1;">
</view>
<view v-if="index != 0" style="width: 689upx; height: 1upx; background: #CCCCCC; opacity: 0.1;"></view>
<view style="height: 160upx; display: flex; align-items: center; padding: 29upx 20upx 30upx 19upx;">
<image
style="width: 150upx; height: 143upx; margin: 0upx 21upx 0upx 0upx; border-radius: 10upx;"
mode="aspectFill" :src="item.image + '?x-oss-process=image/resize,lfit,w_164'"></image>
<view style="width: calc(100% - 281upx);">
<view style="font-size: 36upx; font-weight: 500; color: #FFFFFF; opacity: 0.4;">
{{item.id}}
</view>
......@@ -98,8 +86,7 @@
</view>
</view>
<view style="width: 170upx;">
<text class="statuslist"
style="background:#5FE4B6;">体验中</text>
<text class="statuslist" style="background:#5FE4B6;">体验中</text>
</view>
</view>
</view>
......@@ -312,7 +299,7 @@
},
envVersion: envVersionName,
success(res) {
// 打开成功
//打开成功
}
})
},
......@@ -323,8 +310,7 @@
if (url.indexOf("colorpark") != -1) {
envVersionName = "release";
}
//console.log("envVersionName="+envVersionName);
wx.navigateToMiniProgram({
uni.navigateToMiniProgram({
appId: Env.getappId(),
path: '/pages/index/recommend?selectTitleType=2',
extraData: {
......@@ -350,28 +336,30 @@
}
})
},
// 防止重复点击
//防止重复点击
touchStart(e) {
this.touchStartTime = e.timeStamp;
},
touchEnd(e) {
this.touchEndTime = e.timeStamp;
},
doubleTap(e) {
// 控制点击事件在350ms内触发,加这层判断是为了防止长按时会触发点击事件
if (this.touchEndTime - this.touchStartTime < 350) {
// 当前点击的时间
//当前点击的时间
const currentTime = e.timeStamp;
const lastTapTime = this.lastTapTime;
// 更新最后一次点击时间
//更新最后一次点击时间
this.lastTapTime = currentTime;
// 如果两次点击时间在300毫秒内,则认为是双击事件
//如果两次点击时间在300毫秒内,则认为是双击事件
if (currentTime - lastTapTime > 300) {
// console.log('防止重复点击')
//console.log('防止重复点击')
if (!this.$AppContext.checkLogin()) {
this.tologo('navigateTo')
} else {
//this.showOrHide()
//uni.navigateTo({url: '/pages/index/index?goods_id=21'})
uni.navigateTo({
url: '../index/machineDetail?machine_id=' + this.$Env.getmachineId() + '&worksid=0'
......@@ -422,7 +410,7 @@
success(res) {
that.getLocation()
},
// 授权失败
//授权失败
fail(err) {
uni.showModal({
title: '提示',
......
......@@ -4,8 +4,8 @@ if(!accountInfo.miniProgram.envVersion){
}
const baseApi = {
// 开发版
develop: "https://tprint.refinecolor.com",
//develop: "https://tprint.colorpark.cn",
//develop: "https://tprint.refinecolor.com",
develop: "https://tprint.colorpark.cn",
// 体验版
trial: "https://tprint.refinecolor.com",
// trial: "https://tprint.colorpark.cn",
......
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