|
@@ -147,7 +147,7 @@
|
|
<view class="name">卖价:</view>
|
|
<view class="name">卖价:</view>
|
|
<input
|
|
<input
|
|
class="price"
|
|
class="price"
|
|
- type="number"
|
|
|
|
|
|
+ type="text"
|
|
v-model="price"
|
|
v-model="price"
|
|
placeholder="请输入卖价"
|
|
placeholder="请输入卖价"
|
|
/>
|
|
/>
|
|
@@ -157,7 +157,7 @@
|
|
<view class="name">划线价:</view>
|
|
<view class="name">划线价:</view>
|
|
<input
|
|
<input
|
|
class="price"
|
|
class="price"
|
|
- type="number"
|
|
|
|
|
|
+ type="text"
|
|
v-model="rateprice"
|
|
v-model="rateprice"
|
|
placeholder="请输入划线价"
|
|
placeholder="请输入划线价"
|
|
/>
|
|
/>
|
|
@@ -301,7 +301,7 @@
|
|
<view class="iconcontent">
|
|
<view class="iconcontent">
|
|
<image class="shopLogo" :src="iconurl" v-if="iconurl"></image>
|
|
<image class="shopLogo" :src="iconurl" v-if="iconurl"></image>
|
|
<text class="icon" @tap="uploadImg">点击上传</text>
|
|
<text class="icon" @tap="uploadImg">点击上传</text>
|
|
- <text class="per">{{ progress }}%</text>
|
|
|
|
|
|
+ <text class="per">{{ uploadtxt }} {{ progress=== 0 ? '' : progress }} <text v-if="progress!=0">%</text></text>
|
|
</view>
|
|
</view>
|
|
<view class="shopicon">商品图册</view>
|
|
<view class="shopicon">商品图册</view>
|
|
<view class="uploading">
|
|
<view class="uploading">
|
|
@@ -395,6 +395,7 @@ export default {
|
|
lineDidsable: true,
|
|
lineDidsable: true,
|
|
|
|
|
|
// 图标上传
|
|
// 图标上传
|
|
|
|
+ uploadtxt: '',
|
|
progress: 0,
|
|
progress: 0,
|
|
iconurl: '',
|
|
iconurl: '',
|
|
pickList: [],
|
|
pickList: [],
|
|
@@ -409,7 +410,7 @@ export default {
|
|
SHOPID: 0,
|
|
SHOPID: 0,
|
|
shopData: {},
|
|
shopData: {},
|
|
|
|
|
|
- expirationDate: '请选择过期日期',
|
|
|
|
|
|
+ expirationDate: '请选择过商品期日期',
|
|
// 销售属性
|
|
// 销售属性
|
|
patterList: [
|
|
patterList: [
|
|
{
|
|
{
|
|
@@ -569,7 +570,7 @@ export default {
|
|
if (this.shopData.expiredTime) {
|
|
if (this.shopData.expiredTime) {
|
|
this.expirationDate = this.shopData.expiredTime.slice(0, 10)
|
|
this.expirationDate = this.shopData.expiredTime.slice(0, 10)
|
|
? this.shopData.expiredTime.slice(0, 10)
|
|
? this.shopData.expiredTime.slice(0, 10)
|
|
- : '请选择过期日期';
|
|
|
|
|
|
+ : '请选择商品过期日期';
|
|
}
|
|
}
|
|
|
|
|
|
let rule = JSON.parse(this.shopData.saleRuleJson);
|
|
let rule = JSON.parse(this.shopData.saleRuleJson);
|
|
@@ -767,11 +768,13 @@ export default {
|
|
},
|
|
},
|
|
// 线路分配
|
|
// 线路分配
|
|
async getLine() {
|
|
async getLine() {
|
|
|
|
+ this.lineList = [{ name: '分类(请先选择所属商品)', id: '' }];
|
|
await this.$http
|
|
await this.$http
|
|
.get('/goods/getCustomGroupList', {
|
|
.get('/goods/getCustomGroupList', {
|
|
shopId: this.storeId,
|
|
shopId: this.storeId,
|
|
})
|
|
})
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
|
|
+ console.log(res);
|
|
let arr = [];
|
|
let arr = [];
|
|
this.hasNameList = +res.data.shopFrom;
|
|
this.hasNameList = +res.data.shopFrom;
|
|
res.data.customGroupList.forEach((element) => {
|
|
res.data.customGroupList.forEach((element) => {
|
|
@@ -841,8 +844,9 @@ export default {
|
|
success: function (res) {
|
|
success: function (res) {
|
|
// 成功则返回图片的本地文件路径列表 tempFilePaths
|
|
// 成功则返回图片的本地文件路径列表 tempFilePaths
|
|
_self.iconurl = res.tempFilePaths[0];
|
|
_self.iconurl = res.tempFilePaths[0];
|
|
|
|
+ _self.uploadtxt = '上传中...'
|
|
myCloud.uploadFile({
|
|
myCloud.uploadFile({
|
|
- url: 'http://192.168.100.135:83/merch/common/upload/oss',
|
|
|
|
|
|
+ url: 'http://tyou.xiudo.cn/merch/common/upload/oss',
|
|
filePath: _self.iconurl, // 要上传的文件对象
|
|
filePath: _self.iconurl, // 要上传的文件对象
|
|
cloudPath: _self.iconurl, // 要上传的文件对象
|
|
cloudPath: _self.iconurl, // 要上传的文件对象
|
|
name: 'file',
|
|
name: 'file',
|
|
@@ -855,6 +859,9 @@ export default {
|
|
_self.progress = Math.round(
|
|
_self.progress = Math.round(
|
|
(progressEvent.loaded * 100) / progressEvent.total
|
|
(progressEvent.loaded * 100) / progressEvent.total
|
|
);
|
|
);
|
|
|
|
+ if ( _self.progress === 100) {
|
|
|
|
+ _self.uploadtxt = '上传成功'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1249,6 +1256,7 @@ export default {
|
|
flex: 1;
|
|
flex: 1;
|
|
height: 100%;
|
|
height: 100%;
|
|
line-height: 93upx;
|
|
line-height: 93upx;
|
|
|
|
+ color: #a3a8a8;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|