Commit 0ed7c9c6 authored by 潘永坪's avatar 潘永坪

Merge remote-tracking branch 'remotes/origin/zhoucong' into develop

parents fc2460a1 90661e45
...@@ -10,13 +10,6 @@ Vue.prototype.$commonjs = commonjs ...@@ -10,13 +10,6 @@ Vue.prototype.$commonjs = commonjs
Vue.prototype.$request = request Vue.prototype.$request = request
Vue.use(uView) Vue.use(uView)
if(process.env.NODE_ENV === 'development'){//开发环境
Vue.prototype.imgUrl = "http://picture.tuyoyoo.com/"
}else{
Vue.prototype.imgUrl = "http://picture.pangdly.com/"
}
Vue.config.productionTip = false Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<!-- start:请在该区域编写自己的渲染逻辑 --> <!-- start:请在该区域编写自己的渲染逻辑 -->
<view class="info"> <view class="info">
<view class="info__item"> <view class="info__item">
<image class="image" :src="$imgUrl+item.data.images" mode="widthFix"></image> <image class="image" :src="'http://picture.pangdly.com/'+item.data.images" mode="widthFix"></image>
</view> </view>
<view class="info__item_btn" @click.stop="replace(item)"> <view class="info__item_btn" @click.stop="replace(item)">
更换 更换
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
overOnePage: false, // 整个区域是否超过一个屏幕 overOnePage: false, // 整个区域是否超过一个屏幕
itemTransition: false, // item 变换是否需要过渡动画, 首次渲染不需要 itemTransition: false, // item 变换是否需要过渡动画, 首次渲染不需要
platform: "", //使用平台 platform: "", //使用平台
$imgUrl:""//图片前缀
} }
}, },
watch: { watch: {
...@@ -74,7 +73,6 @@ ...@@ -74,7 +73,6 @@
}, },
}, },
onReady() { onReady() {
this.$imgUrl=this.imgUrl//因main.js挂载的全局变量页面中显示undifined,特此重新赋值
this.init() this.init()
}, },
methods: { methods: {
...@@ -353,11 +351,11 @@ ...@@ -353,11 +351,11 @@
}, },
//点击每一项后触发事件 //点击每一项后触发事件
itemClick(index, src) { itemClick(index, src) {
let urls = [] // let urls = []
urls.push(src) // urls.push(src)
uni.previewImage({//点击查看大图 // uni.previewImage({//点击查看大图
urls: urls, // urls: 'http://picture.pangdly.com/'+ urls,
}) // })
// let item = this.list[index] // let item = this.list[index]
// this.$emit('click', { // this.$emit('click', {
// oldKey: index, // oldKey: index,
......
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
</view> </view>
<u-icon name="arrow-right" class="icon" color="#666666"></u-icon> <u-icon name="arrow-right" class="icon" color="#666666"></u-icon>
</view> </view>
<image src="../../../static/img/vlog/icon/fengexian.png" mode="" <image src="../../../static/img/vlog/icon/fengexian.png" mode="" style="width: 100%;height: 5upx;"></image>
style="width: 110%;height: 10upx;margin-left: -20upx;"></image>
<view class="body"> <view class="body">
<image :src="productVo.priceStockList[0].imgList[0].url"></image> <image :src="productVo.priceStockList[0].imgList[0].url"></image>
<view class="title"> <view class="title">
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<u-section title="模板选择" :right="false" color="#303133"></u-section> <u-section title="模板选择" :right="false" color="#303133"></u-section>
<text style="font-size: 24rpx;color: #ccc;margin-left: 30rpx;">Template Selection</text> <text style="font-size: 24rpx;color: #ccc;margin-left: 30rpx;">Template Selection</text>
</view> </view>
<image src="../../../static/img/vlog/icon/fengexian.png" style="width: 100%;height: 15rpx;"></image> <image src="../../../static/img/vlog/icon/fengexian.png" style="width: 100%;height: 5rpx;"></image>
<view style="display: flex;justify-content: space-around;margin-bottom: 20upx;width: 75%;margin: 20upx auto;"> <view style="display: flex;justify-content: space-around;margin-bottom: 20upx;width: 75%;margin: 20upx auto;">
<button type="default" class="btnn" :class="current===0?'active':'noactive'" <button type="default" class="btnn" :class="current===0?'active':'noactive'"
@click="current=0">封面</button> @click="current=0">封面</button>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<u-section title="详细参数" :right="false" color="#303133"></u-section> <u-section title="详细参数" :right="false" color="#303133"></u-section>
<text style="font-size: 24rpx;color: #ccc;margin-left: 30rpx;">Parameters</text> <text style="font-size: 24rpx;color: #ccc;margin-left: 30rpx;">Parameters</text>
</view> </view>
<image src="../../../static/img/vlog/icon/fengexian.png" mode="" style="width: 100%;height: 15rpx;"></image> <image src="../../../static/img/vlog/icon/fengexian.png" mode="" style="width: 100%;height: 5rpx;"></image>
<image :src="item.url" mode="widthFix" v-for="(item,index) in imgList1" :key="index" style="width: 100%;border-radius: 10rpx;"></image> <image :src="item.url" mode="widthFix" v-for="(item,index) in imgList1" :key="index" style="width: 100%;border-radius: 10rpx;"></image>
<view class="bottom" @click="beginMaking">上传照片制作</view> <view class="bottom" @click="beginMaking">上传照片制作</view>
</view> </view>
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
height: 98rpx; height: 98rpx;
background-color: #FFE600; background-color: #FFE600;
right: 0; right: 0;
line-height: 100rpx; line-height: 98rpx;
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
border-top-left-radius: 10rpx; border-top-left-radius: 10rpx;
......
<template> <template>
<view class="content"> <view class="content">
<view class="top"> <view class="top" style="border-bottom: 1rpx dashed #ccc;">
<view class="upload" @click="chooseAvatar"> <view class="upload" @click="chooseAvatar">
<u-icon class="icon" name="plus-circle" size="80" color="#999999"></u-icon> <u-icon class="icon" name="plus-circle" size="80" color="#999999"></u-icon>
</view> </view>
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
已选{{checkList.length}}/{{maxImg}} 已选{{checkList.length}}/{{maxImg}}
</view> </view>
</view> </view>
<view style="border: 1rpx dashed #ccc;opacity: 0.3;margin-top: 230rpx;"></view> <!-- <view style="border: 1rpx dashed #ccc;opacity: 0.3;margin-top: 230rpx;"></view> -->
<view class="img"> <view class="img" style="margin-top: 230rpx;">
<block v-for="(item,index) in imgList" :key="index"> <block v-for="(item,index) in imgList" :key="index">
<view class="imgItem" @click="changeImg(item,index)"> <view class="imgItem" @click="changeImg(item,index)">
<image :src="$imgUrl+item.url"></image> <image :src="'http://picture.pangdly.com/'+item.url"></image>
<image v-if="item.check===1" src="../../../static/img/vlog/icon/check.png" class="icon"></image> <image v-if="item.check===1" src="../../../static/img/vlog/icon/check.png" class="icon"></image>
</view> </view>
</block> </block>
...@@ -35,12 +35,9 @@ ...@@ -35,12 +35,9 @@
maxImg: "", //相册规格张数 maxImg: "", //相册规格张数
imgList: [], //上传的图片列表 imgList: [], //上传的图片列表
checkList: [], //选中的图片下标 checkList: [], //选中的图片下标
$imgUrl:""
} }
}, },
onLoad(opction) { //代替 vue 里面的 created onLoad(opction) { //代替 vue 里面的 created
this.$imgUrl=this.imgUrl//因main.js挂载的全局变量页面中显示undifined,特此重新赋值
this.maxImg = opction.yeshu //获取相册规格 this.maxImg = opction.yeshu //获取相册规格
this.imgList = uni.getStorageSync("imgList") this.imgList = uni.getStorageSync("imgList")
...@@ -182,8 +179,9 @@ ...@@ -182,8 +179,9 @@
background-color: #fff; background-color: #fff;
width: 100%; width: 100%;
padding-bottom: 20rpx; padding-bottom: 20rpx;
right: 0;
.upload { .upload {
margin-left: 20upx;
height: 200rpx; height: 200rpx;
width: 200rpx; width: 200rpx;
border-radius: 20rpx; border-radius: 20rpx;
...@@ -238,8 +236,8 @@ ...@@ -238,8 +236,8 @@
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 80rpx; height: 98rpx;
line-height: 80rpx; line-height: 98rpx;
right: 0; right: 0;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
...@@ -247,10 +245,11 @@ ...@@ -247,10 +245,11 @@
align-items: center; align-items: center;
view { view {
font-size: 32upx;
width: 35%; width: 35%;
border-radius: 10rpx; border-radius: 10rpx;
height: 60rpx; height: 64rpx;
line-height: 60rpx; line-height: 64rpx;
} }
.del { .del {
......
static/img/vlog/icon/fengexian.png

11.1 KB | W: | H:

static/img/vlog/icon/fengexian.png

510 Bytes | W: | H:

static/img/vlog/icon/fengexian.png
static/img/vlog/icon/fengexian.png
static/img/vlog/icon/fengexian.png
static/img/vlog/icon/fengexian.png
  • 2-up
  • Swipe
  • Onion skin
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