Commit d937e923 authored by 黄媛媛's avatar 黄媛媛

广告词和 主播名字带入下单

parent b9e94bb3
...@@ -13,19 +13,27 @@ ...@@ -13,19 +13,27 @@
> >
<view class="share-box" :style="{ paddingBottom: bianyi ? '50rpx' : '0' }"> <view class="share-box" :style="{ paddingBottom: bianyi ? '50rpx' : '0' }">
<view class="title">分享商品</view> <view class="title">分享商品</view>
<view class="goodname">{{ goodName }}</view> <scroll-view scroll-y class="share_b">
<view class="img-box"> <view class="goodname">{{ goodName }}</view>
<view class="box"> <view class="img-box">
<image <view class="box">
v-for="(x, i) in images" <image
:key="i" v-for="(x, i) in images"
:src="x.pic_url" :key="i"
class="img" :src="x.pic_url"
mode="aspectFill" class="img"
@click="previewImage(i)" mode="aspectFill"
/> @click="previewImage(i)"
</view> />
</view> </view>
<view style="margin-top: 10px;line-height: 1.5;font-size: 28rpx;color:#333">
<span>广告词:{{advertising}}</span>
<u-button size="mini" shape="circle" style='margin-left: 10px;' @click="paste(advertising)">复制</u-button>
</view>
</view>
</scroll-view>
<view class="op-box"> <view class="op-box">
<view class="left"> <view class="left">
<text @click="copyHandler">复制文本</text> <text @click="copyHandler">复制文本</text>
...@@ -74,6 +82,10 @@ export default { ...@@ -74,6 +82,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
advertising: {
type: String,
default: "",
},
images: { images: {
type: Array, type: Array,
default: [], default: [],
...@@ -154,6 +166,11 @@ export default { ...@@ -154,6 +166,11 @@ export default {
data: this.goodName, data: this.goodName,
}); });
}, },
paste(value){
uni.setClipboardData({
data: value,
});
},
previewImage(i) { previewImage(i) {
uni.previewImage({ uni.previewImage({
urls: this.imgs, urls: this.imgs,
...@@ -252,4 +269,11 @@ export default { ...@@ -252,4 +269,11 @@ export default {
.share-box .op-box .right button::after { .share-box .op-box .right button::after {
border: none; border: none;
} }
.share-box .share_b{
padding: 0;
max-height: 300px;
overflow: hidden;
overflow-y: auto;
display: block;
}
</style> </style>
...@@ -275,6 +275,7 @@ ...@@ -275,6 +275,7 @@
v-if="showShare" v-if="showShare"
:good-name="g.name" :good-name="g.name"
:images="g.pic_url" :images="g.pic_url"
:advertising="g.advertising"
@close="closeShare" @close="closeShare"
></share> ></share>
<auth <auth
...@@ -349,6 +350,12 @@ export default { ...@@ -349,6 +350,12 @@ export default {
if (option && option.user_id) { if (option && option.user_id) {
uni.setStorageSync("pid", { pid: option.user_id }); uni.setStorageSync("pid", { pid: option.user_id });
} }
if(uni.getStorageSync("AnchorName")){ //如果有主播名称了先清除
uni.removeStorageSync('AnchorName');
}
if(option && option.AnchorName){//当传过来有主播名称的时候 存入缓存
uni.setStorageSync("AnchorName", { AnchorName: option.AnchorName });
}
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
// if (!this.u) { // if (!this.u) {
// this.u = { // this.u = {
......
...@@ -326,6 +326,7 @@ export default { ...@@ -326,6 +326,7 @@ export default {
form.IsFormShoppingCart = that.IsFormShoppingCart; form.IsFormShoppingCart = that.IsFormShoppingCart;
form.Use_Integral = that.formdata.Use_Integral; form.Use_Integral = that.formdata.Use_Integral;
form.ShoppingCartIdList = that.ShoppingCartIdList; form.ShoppingCartIdList = that.ShoppingCartIdList;
form.AnchorName = uni.getStorageSync("AnchorName")?uni.getStorageSync("AnchorName").AnchorName:''; //直播名称
that.request2( that.request2(
{ {
url: '/api/AppletOrder/SetAppletGoodsOrderInfo', url: '/api/AppletOrder/SetAppletGoodsOrderInfo',
......
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