order.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  1. <template>
  2. <view class="back">
  3. <!-- 地址 -->
  4. <view class="address" @click="toadd">
  5. <view class="u-flex u-row-between">
  6. <view class="add" v-if="addinfo">{{addinfo.full_address}}</view>
  7. <view class="" v-else>{{i18n.shippingaddress}}</view>
  8. <u-icon name="arrow-right" size='16'></u-icon>
  9. </view>
  10. <view class="info" v-if="addinfo">
  11. <text>{{addinfo.name}}</text>
  12. <text style="margin-left: 20rpx;">{{replacePhoneToStar(addinfo.mobile)}}</text>
  13. </view>
  14. </view>
  15. <!-- 商品 -->
  16. <view class="shop">
  17. <view class="" v-if="typea=='shop'">
  18. <view class="u-flex" style="margin-top: 32rpx;" v-for="(item,idx) in selelist" :key="idx">
  19. <image :src="item.image" style="width: 184rpx;height: 184rpx;" mode=""></image>
  20. <view class=" "
  21. style="margin-left: 20rpx;flex-direction: column;justify-content: space-between;height: 184rpx;display: flex;flex:1">
  22. <view class="">
  23. <text class="toptitle">{{item.name_cn}}</text>
  24. <view class="weight">{{item.sku_item[0].item}} </view>
  25. </view>
  26. <view class="u-flex u-row-between">
  27. <view class="">
  28. <text class="money">¥</text>
  29. <text class="money" style="font-size: 34rpx;">{{item.sku_item[0].discount_price}}</text>
  30. </view>
  31. <view class=""> x {{item.cart.goods_num}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="" v-else>
  37. <view class="">
  38. <image :src="goodinfo.merchant.image" style="width: 38rpx;height: 38rpx;" mode=""></image>
  39. <text class="name">{{goodinfo.merchant.merchant_name}}</text>
  40. </view>
  41. <view class="u-flex" style="margin-top: 32rpx;">
  42. <image :src="sku_info.image" style="width: 184rpx;height: 184rpx;" mode=""></image>
  43. <view class=" "
  44. style="margin-left: 20rpx;flex-direction: column;justify-content: space-between;height: 184rpx;display: flex;flex:1">
  45. <view class="">
  46. <text class="toptitle">{{goodinfo.name_cn}}</text>
  47. <view class="weight">{{sku_info.item}} </view>
  48. <!-- <view class="">{{Number(sku_info.weight)*value}}kg</view> -->
  49. </view>
  50. <view class="u-flex u-row-between">
  51. <view class="">
  52. <text class="money">¥</text>
  53. <text class="money"
  54. style="font-size: 34rpx;">{{goodinfo.is_discount==1? (Number(sku_info.price*1000)*Number(value*1000))/1000000:(Number(sku_info.discount_price*1000)*Number(value)*1000)/1000000}}</text>
  55. </view>
  56. <u-number-box v-model="value">
  57. <view slot="minus" class="">
  58. <u-icon name="minus" size="12"></u-icon>
  59. </view>
  60. <input slot="input" v-model="value" style="width: 40px;text-align: center;"
  61. class="input"></input>
  62. <view slot="plus" class="">
  63. <u-icon name="plus" size="12"></u-icon>
  64. </view>
  65. </u-number-box>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 物流 -->
  72. <view class="logistics u-flex u-row-between">
  73. <text style="font-weight: 600;width: 320rpx;">{{i18n.flow}}</text>
  74. <view class="u-flex" @click="show = true">
  75. <text class="change">{{containname1?type1+' | '+containname1 :i18n.selection}}</text>
  76. <u-icon name="arrow-right" size='16'></u-icon>
  77. </view>
  78. </view>
  79. <!-- 推荐 -->
  80. <view class="recommend">
  81. <view class="top">
  82. <image src="static/images/recommend.png" style="width: 124rpx;height: 30rpx;" mode=""></image>
  83. </view>
  84. <view class="bottom">
  85. <scroll-view scroll-x class="u-flex" style="column: gap 28rpx; display: flex;">
  86. <view class="u-flex" style="column-gap: 16rpx; ">
  87. <view class="" v-for="(item,idx) in swiptlist" :key="idx" @click="todetail(item.id)">
  88. <image :src="item.image" style="width: 156rpx;height: 156rpx;" mode="">
  89. </image>
  90. <view class="title" v-if="language =='zh-CN'">
  91. {{item.name_cn}}
  92. </view>
  93. <view class="title" v-if="language =='en-US'">
  94. {{item.name_en}}
  95. </view>
  96. <view class="title" v-if="language =='es-ES'">
  97. {{item.name_es}}
  98. </view>
  99. <view class="title" v-if="language =='it-IT'">
  100. {{item.name_ita}}
  101. </view>
  102. <view class="money" style="color: #F83224;font-size: 20rpx;">
  103. <text>¥</text>
  104. <text
  105. style="font-size: 28rpx;">{{item.is_discount==0?item.discount_price.slice(0,-3):item.price.slice(0,-3)}}</text>
  106. <text>{{item.is_discount==0?item.discount_price.slice(-3):item.price.slice(-3)}}</text>
  107. </view>
  108. </view>
  109. </view>
  110. </scroll-view>
  111. </view>
  112. </view>
  113. <!-- 商品相关 -->
  114. <view class="abount" style="margin-top: 20rpx;">
  115. <view class="u-flex u-row-between" style='margin-bottom:40rpx'>
  116. <view class="name">{{i18n.Commodityamount}}</view>
  117. <view class="" v-if="typea=='shop'">{{goodsPrice}}</view>
  118. <view class="money" v-else>
  119. ¥{{goodinfo.is_discount==1? (Number(sku_info.price*100)*Number(value*100))/10000:(Number(sku_info.discount_price*100)*Number(value*100))/10000}}
  120. </view>
  121. </view>
  122. <view class="u-flex u-row-between">
  123. <view class="name">{{i18n.Grosscommodityweight}}</view>
  124. <view class="" v-if="typea=='shop'">{{
  125. goodsWeight
  126. }}kg</view>
  127. <view class="money" v-else>{{Number(sku_info.weight)*value}}kg</view>
  128. </view>
  129. <view class="back u-flex" v-if="containname1">
  130. <image src="static/images/warning.png" style="width: 32rpx;height: 32rpx;" mode=""></image>
  131. <text
  132. style="margin-left: 12rpx;font-size: 24rpx;">{{i18n.buy}}{{max_weight}}kg{{i18n.price}}¥{{unit_fee}},{{i18n.morefavorable}}</text>
  133. </view>
  134. <view class="u-flex u-row-between" style='margin-bottom:40rpx;margin-top: 20rpx;'>
  135. <view class="name">{{i18n.Costperkilogram}}</view>
  136. <view class="money">{{containname1?unit_price:i18n.shippingmethod}}</view>
  137. </view>
  138. <view class="u-flex u-row-between">
  139. <view class="name">{{i18n.freight}}</view>
  140. <view class="money">{{containname1?sum:i18n.shippingmethod}}</view>
  141. </view>
  142. <view class="zong u-flex u-row-right">
  143. <view class="">
  144. <text class="small">{{i18n.subtotal}}</text>
  145. <text class="mon">¥</text>
  146. <text class="mon" v-if="typea=='shop'">{{goodsPrice}}</text>
  147. <text class="mon" v-else
  148. style="font-size: 40rpx;">{{goodinfo.is_discount==1? (Number(sku_info.price*100)*Number(value*100))/10000:(Number(sku_info.discount_price*100)*Number(value*100))/10000}}</text>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="" style="height: 166rpx;"></view>
  153. <view class="btn u-flex u-row-right">
  154. <view class="u-flex">
  155. <text v-if="typea == 'shop'">{{i18n.Atotalof}}{{goodsWeight}}kg,</text>
  156. <text v-else class="kg">{{i18n.Atotalof}}{{Number(sku_info.weight) * value}}kg,</text>
  157. <text>{{i18n.total}}:</text>
  158. <text class="money" style="font-size: 28rpx;">¥</text>
  159. <text style="font-weight: bold;" class="money"
  160. v-if="typea=='shop'">{{(Number(sum*10000+ Number(goodsPrice)*10000))/10000 }}</text>
  161. <view class="" v-else>
  162. <text class="money" v-if="goodinfo.is_discount==1"
  163. style="font-weight: bold;">{{(Number(sum*10000+ Number(sku_info.price)*Number(value)*10000))/10000}}</text>
  164. <text class="money" v-if="goodinfo.is_discount==0"
  165. style="font-weight: bold;">{{(Number(sum*10000+ Number(sku_info.discount_price)*Number(value)*10000))/10000}}</text>
  166. </view>
  167. </view>
  168. <view class="order" @click="topay">
  169. {{i18n.Submitorder}}
  170. </view>
  171. </view>
  172. <!-- 跨境物流 -->
  173. <u-popup :show="show" @close="close" mode="bottom" closeIconPos='top-right' round='28'>
  174. <view style="padding: 40rpx 28rpx;box-sizing:border-box;">
  175. <view class="u-flex u-row-between">
  176. <view class="" style="width: 28px;height: 28px;"></view>
  177. <view class="poptitle">
  178. {{i18n.flow}}
  179. </view>
  180. <u-icon name="close" @click="close" color="background: #333333;" size="28"></u-icon>
  181. </view>
  182. <view class="u-flex " style="margin-top: 60rpx;flex-wrap: wrap;column-gap: 16rpx;">
  183. <view :class="index==idx?'active':'unactive'" v-for="(item,idx) in containerList"
  184. @click="change(item,idx)"
  185. style="display: flex;flex-direction: column;align-items: center;justify-content: center;margin-bottom: 28rpx;position: relative;">
  186. <image v-if="index==idx" src="static/images/change.png"
  187. style="width: 36rpx;height: 32rpx;position: absolute;top: 0;right: 0;" mode=""></image>
  188. <view class="logname" v-if="language =='zh-CN'">{{item.name_cn}}</view>
  189. <view class="logname" v-if="language =='en-US'">{{item.name_en}}</view>
  190. <view class="logname" v-if="language =='es-ES'">{{item.name_es}}</view>
  191. <view class="logname" v-if="language =='it-IT'">{{item.name_ita}}</view>
  192. <!-- <view class="wei">¥{{goodinfo.cate==0?item.normal_delivery_fee:item.special_delivery_fee}}/kg</view> -->
  193. <view class="wei" style="font-size: 32rpx;font-weight: 600;">¥{{item.unit_price}}/kg</view>
  194. </view>
  195. </view>
  196. <view class="nextto" @click="next">{{i18n.next}}</view>
  197. </view>
  198. </u-popup>
  199. <!-- 跨境物流下一步 -->
  200. <u-popup :safeAreaInsetTop='true' :show="show1" @close="close" mode="bottom" closeIconPos='top-right' round='28'
  201. bgColor='#F4F4F4'>
  202. <view style="padding: 40rpx 28rpx;box-sizing:border-box;position: relative;">
  203. <view class="u-flex u-row-between">
  204. <view class="" style="width: 28px;height: 28px;"></view>
  205. <view class="poptitle">
  206. {{i18n.flow}}
  207. </view>
  208. <u-icon name="close" @click="close" color="background: #333333;" size="28"></u-icon>
  209. </view>
  210. <scroll-view :scroll-y="true" style="500rpx">
  211. <view class="transport" style="margin-top: 32rpx;" @click="activea(item,idx)"
  212. v-for="(item,idx) in containlist" v-if="item.sum != 0">
  213. <view class="u-flex u-row-between">
  214. <text class="yundate">{{i18n.Shipmentdate}} {{item.end_date}}</text>
  215. <image v-if="datechan==idx" src="/pageA/static/images/active.png"
  216. style="width: 36rpx;height: 36rpx;" mode=""></image>
  217. <image v-else src="/pageA/static/images/unactive.png" style="width: 36rpx;height: 36rpx;"
  218. mode=""></image>
  219. </view>
  220. <view class="u-flex u-row-between" style="margin-top: 28rpx;">
  221. <view class="chest">
  222. <text v-if="language =='zh-CN'">{{item.name_cn}}</text>
  223. <text v-if="language =='en-US'">{{item.name_en}}</text>
  224. <text v-if="language =='es-ES'">{{item.name_es}}</text>
  225. <text v-if="language =='it-IT'">{{item.name_ita}}</text>
  226. <text style="margin: 0 16rpx;">|</text>
  227. <text>{{i18n.Estimatedtimeofarrival}}{{item.transport_days}}{{i18n.Workingday}}</text>
  228. </view>
  229. <view class="mone">
  230. <text>¥</text>
  231. <text style="font-size: 48rpx;font-weight: 600;">{{item.sum}}</text>
  232. </view>
  233. </view>
  234. </view>
  235. </scroll-view>
  236. <view class="" style="height: 166rpx;"></view>
  237. <view class="enbottom u-flex u-row-between">
  238. <view class="cancel" @click="close">{{i18n.Cancel}}</view>
  239. <view class="confirm" @click="confirm">{{i18n.enter}}</view>
  240. </view>
  241. </view>
  242. </u-popup>
  243. </view>
  244. </template>
  245. <script>
  246. export default {
  247. data() {
  248. return {
  249. value: 1,
  250. show: false,
  251. index: '',
  252. show1: false,
  253. datechan: '',
  254. sku_info: {},
  255. goodinfo: {},
  256. swiptlist: [], //推荐列表
  257. language: 'zh-CN',
  258. containerList: [], //列表
  259. province_id: '',
  260. transport_type_id: '',
  261. containlist: [],
  262. containid: '', //货柜id
  263. containname: '', //货柜名称
  264. type: '', //货运方式名称
  265. containname1: '',
  266. type1: '',
  267. sum: '',
  268. unit_price: '',
  269. recommend_weight: '',
  270. sum1: '',
  271. unit_price1: '',
  272. recommend_weight1: '',
  273. max_weight: '',
  274. min_weight: '',
  275. unit_fee: '',
  276. addinfo: '',
  277. huoid: '',
  278. selelist: [],
  279. typea: '',
  280. goodsPrice: '',
  281. goodsWeight: '',
  282. stringcheck: ''
  283. };
  284. },
  285. computed: {
  286. i18n() {
  287. return this.$t('index')
  288. },
  289. },
  290. onLoad(options) {
  291. // url: '/pageA/order?sku=' + this.sku_info + '&value=' + this.value+'&goodinfo='+this.goodinfo
  292. if (options.typea) {
  293. console.log(22222);
  294. this.typea = options.typea
  295. this.selelist = JSON.parse(decodeURIComponent(options.selelist))
  296. this.goodsPrice = options.goodsPrice
  297. this.goodsWeight = options.goodsWeight
  298. this.stringcheck = options.stringcheck
  299. } else if (options) {
  300. this.value = options.value
  301. this.sku_info = JSON.parse(decodeURIComponent(options.sku));
  302. this.goodinfo = JSON.parse(decodeURIComponent(options.goodinfo))
  303. if(options.share_merchant_id){
  304. this.share_merchant_id = options.share_merchant_id
  305. }
  306. console.log(this.goodinfo);
  307. console.log(this.sku_info);
  308. }
  309. },
  310. onShow() {
  311. if (uni.getStorageSync('language') != '') {
  312. this.language = uni.getStorageSync('language')
  313. }
  314. this.recommend()
  315. // this.container()
  316. },
  317. methods: {
  318. todetail(id) {
  319. uni.reLaunch({
  320. url: '/pageA/productdetails?id=' + id
  321. })
  322. },
  323. //正则匹配手机号
  324. replacePhoneToStar: function(phone) {
  325. if (phone) {
  326. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  327. }
  328. },
  329. //推荐重量
  330. recommendweight() {
  331. uni.$u.http.get('/api/express-order/recommend-container', {
  332. params: {
  333. container_id: this.containid,
  334. type: this.goodinfo.cate == 0 ? 'normal' : 'special'
  335. }
  336. }).then((res) => {
  337. console.log(res);
  338. this.max_weight = res.max_weight
  339. this.min_weight = res.min_weight
  340. this.unit_fee = res.unit_fee
  341. }).catch(() => {
  342. })
  343. },
  344. //货运类型列表
  345. transport() {
  346. uni.$u.http.get('/api/transport-type', {
  347. params: {
  348. province_id: this.province_id,
  349. }
  350. }).then((res) => {
  351. this.containerList = res
  352. this.transport_type_id = res[0].id
  353. if (this.language == 'zh-CN') {
  354. this.type = res[0].name_cn
  355. }
  356. if (this.language == 'en-US') {
  357. this.type = res[0].name_en
  358. }
  359. if (this.language == 'es-ES') {
  360. this.type = res[0].name_es
  361. }
  362. if (this.language == 'it-IT') {
  363. this.type = res[0].name_ita
  364. }
  365. }).catch(() => {
  366. })
  367. },
  368. //跳转到填写地址
  369. toadd() {
  370. var that = this
  371. uni.navigateTo({
  372. url: '/pageC/addressManagement/addressManagement?tabs=' + Number(0),
  373. events: {
  374. getadd(res) {
  375. that.addinfo = res
  376. that.province_id = res.province_id
  377. that.transport()
  378. }
  379. }
  380. })
  381. },
  382. //货柜列表
  383. container() {
  384. uni.$u.http.get('/api/container-base', {
  385. params: {
  386. is_page: 0,
  387. province_id: this.province_id,
  388. transport_type_id: this.transport_type_id,
  389. weight: this.typea == 'shop' ?
  390. this.goodsWeight : Number(this.sku_info.weight) * this.value,
  391. type: this.goodinfo.cate == 0 ? 'normal' : 'special',
  392. length: Number(this.goodinfo.length) * this.value, // 是 String 长
  393. width: this.goodinfo.width, // 是 String 宽
  394. height: this.goodinfo.height, // 是 String 高
  395. }
  396. }).then((res) => {
  397. res.forEach((item) => {
  398. if (item.sum != 0) {
  399. this.containlist.push(item)
  400. }
  401. console.log(this.containlist);
  402. })
  403. // this.sum = this.containlist[0].sum
  404. // this.unit_price = this.containlist[0].unit_price
  405. if (this.goodinfo.is_shipping == 0) {
  406. this.sum = 0
  407. } else {
  408. this.sum = this.containlist[0].sum
  409. }
  410. if (this.goodinfo.is_shipping == 0) {
  411. this.unit_price = 0
  412. } else {
  413. this.unit_price = this.containlist[0].unit_price
  414. }
  415. this.recommend_weight = this.containlist[0].recommend_weight
  416. this.containid = this.containlist[0].id
  417. if (this.language == 'zh-CN') {
  418. this.containname = this.containlist[0].name_cn
  419. }
  420. if (this.language == 'en-US') {
  421. this.containname = this.containlist[0].name_en
  422. }
  423. if (this.language == 'es-ES') {
  424. this.containname = this.containlist[0].name_es
  425. }
  426. if (this.language == 'it-IT') {
  427. this.containname = this.containlist[0].name_ita
  428. }
  429. }).catch(() => {
  430. })
  431. },
  432. //运费满减
  433. config() {
  434. var that = this
  435. uni.$u.http.get('/api/config', {
  436. params: {
  437. module: 'free_shipping'
  438. }
  439. }).then((res) => {
  440. let goodsum = ''
  441. if (that.goodinfo.is_discount == 1) {
  442. goodsum = Number(that.sku_info.price * 100) * Number(that.value * 100) / 10000
  443. console.log('that.sum', that.sum);
  444. console.log('that.goodsum', goodsum);
  445. if (goodsum > res.free_shipping) {
  446. that.sum = 0;
  447. that.unit_price = 0;
  448. }
  449. } else {
  450. goodsum = Number(that.sku_info.discount_price * 100) * Number(that.value * 100) / 10000
  451. if (goodsum > res.free_shipping) {
  452. that.sum = 0
  453. that.unit_price = 0
  454. }
  455. }
  456. }).catch(() => {
  457. })
  458. },
  459. //商品推荐
  460. recommend() {
  461. uni.$u.http.post('/api/goods/recommend', {
  462. keyword: ''
  463. }).then((res) => {
  464. this.swiptlist = res
  465. }).catch(() => {
  466. })
  467. },
  468. change(item, index) {
  469. this.transport_type_id = item.id
  470. this.index = index
  471. if (this.language == 'zh-CN') {
  472. this.type = item.name_cn
  473. }
  474. if (this.language == 'en-US') {
  475. this.type = item.name_en
  476. }
  477. if (this.language == 'es-ES') {
  478. this.type = item.name_es
  479. }
  480. if (this.language == 'it-IT') {
  481. this.type = item.name_ita
  482. }
  483. },
  484. next() {
  485. this.show = false
  486. this.show1 = true
  487. this.type1 = this.type
  488. this.container()
  489. },
  490. activea(item, idx) {
  491. this.datechan = idx
  492. this.sum = item.sum
  493. this.unit_price = item.unit_price
  494. this.recommend_weight = item.recommend_weight
  495. this.containid = item.id
  496. if (this.language == 'zh-CN') {
  497. this.containname = item.name_cn
  498. }
  499. if (this.language == 'en-US') {
  500. this.containname = item.name_en
  501. }
  502. if (this.language == 'es-ES') {
  503. this.containname = item.name_es
  504. }
  505. if (this.language == 'it-IT') {
  506. this.containname = item.name_ita
  507. }
  508. },
  509. //确定
  510. confirm() {
  511. this.show1 = false
  512. this.containname1 = this.containname
  513. this.recommendweight()
  514. this.config()
  515. },
  516. // 取消
  517. close() {
  518. this.show = false
  519. this.show1 = false
  520. },
  521. //提交订单
  522. topay() {
  523. uni.$u.http.post('/api/order', {
  524. address_id: this.addinfo.id, //3 是 String 地址ID
  525. goods_id: this.goodinfo.id, //65 是 String 商品id
  526. goods_num: this.value, //2 是 String 商品数量
  527. sku_item_id: this.sku_info.id, //60 是 String 规格id
  528. cart_ids: this.stringcheck, //8,9 是 String 购物车id
  529. remark: '', //备注 是 String 备注
  530. merchant_goods_id: this.goodinfo.merchant_goods_id || '', //39 是 String 团长商品id
  531. container_id: this.containid, //1 是 String 货柜id
  532. share_member_id: this.share_merchant_id, // 是 String 分享团长id 分享商品的时候传
  533. belong: this.goodinfo.source || '' //0 是 String 商品归属 0团长 1平台自营 2团长发布或者分享的平台自营商品、供应链商品
  534. }).then((res) => {
  535. console.log('share_merchant_id',this.share_merchant_id);
  536. console.log(res);
  537. uni.navigateTo({
  538. // url: '/pageA/payorder?sum=' + (Number(this.sum*10000+ Number(this.sku_info.discount_price)*Number(this.value)*10000))/10000 +'&orderid=' + res.id
  539. url: '/pageA/payorder?orderid=' + res.id + '&sum=' + res.amount
  540. })
  541. }).catch(() => {})
  542. }
  543. }
  544. }
  545. </script>
  546. <style lang="scss" scoped>
  547. .toptitle {
  548. font-family: PingFangSC, PingFang SC;
  549. font-weight: 400;
  550. // font-size: 22rpx;
  551. color: #222222;
  552. line-height: 32rpx;
  553. text-align: left;
  554. font-style: normal;
  555. // width: 148rpx;
  556. width: 100%;
  557. overflow: hidden;
  558. text-overflow: ellipsis;
  559. -webkit-line-clamp: 1;
  560. display: -webkit-box;
  561. -webkit-box-orient: vertical;
  562. word-break: break-all;
  563. }
  564. ::v-deep .u-status-bar {
  565. height: 0 !important;
  566. }
  567. .confirm {
  568. width: 398rpx;
  569. height: 84rpx;
  570. background: #F83224;
  571. border-radius: 42rpx;
  572. text-align: center;
  573. font-family: PingFangSC, PingFang SC;
  574. font-weight: 500;
  575. font-size: 32rpx;
  576. color: #FFFFFF;
  577. line-height: 84rpx;
  578. text-align: center;
  579. font-style: normal;
  580. }
  581. .cancel {
  582. width: 280rpx;
  583. height: 84rpx;
  584. border-radius: 42rpx;
  585. border: 2rpx solid rgba(151, 151, 151, 0.3);
  586. font-family: PingFangSC, PingFang SC;
  587. font-weight: 400;
  588. font-size: 32rpx;
  589. color: #444444;
  590. line-height: 84rpx;
  591. text-align: center;
  592. font-style: normal;
  593. }
  594. .enbottom {
  595. width: 750rpx;
  596. height: 166rpx;
  597. background: #FFFFFF;
  598. position: absolute;
  599. left: 0rpx;
  600. bottom: 0;
  601. padding: 0 24rpx;
  602. box-sizing: border-box;
  603. }
  604. .mone {
  605. font-family: JDZhengHT, JDZhengHT;
  606. font-weight: 400;
  607. font-size: 26rpx;
  608. color: #F83224;
  609. line-height: 32rpx;
  610. text-align: left;
  611. font-style: normal;
  612. }
  613. .yundate {
  614. font-family: PingFangSC, PingFang SC;
  615. font-weight: 550;
  616. font-size: 32rpx;
  617. color: #333333;
  618. line-height: 44rpx;
  619. text-align: left;
  620. font-style: normal;
  621. }
  622. .chest {
  623. font-family: SFPro, SFPro;
  624. font-weight: 400;
  625. font-size: 24rpx;
  626. color: #555555;
  627. line-height: 28rpx;
  628. text-align: left;
  629. font-style: normal;
  630. }
  631. .act {
  632. width: 702rpx;
  633. height: 164rpx;
  634. background: #FFFFFF;
  635. border-radius: 12rpx;
  636. padding: 24rpx 20rpx;
  637. box-sizing: border-box;
  638. border: 1rpx solid #F83224;
  639. }
  640. .transport {
  641. width: 702rpx;
  642. height: 164rpx;
  643. background: #FFFFFF;
  644. border-radius: 12rpx;
  645. padding: 24rpx 20rpx;
  646. box-sizing: border-box;
  647. }
  648. .nextto {
  649. width: 702rpx;
  650. height: 84rpx;
  651. background: #F83224;
  652. border-radius: 44rpx;
  653. font-family: PingFangSC, PingFang SC;
  654. font-weight: 500;
  655. font-size: 32rpx;
  656. color: #FFFFFF;
  657. line-height: 84rpx;
  658. text-align: center;
  659. font-style: normal;
  660. margin-top: 108rpx;
  661. }
  662. .logname {
  663. font-family: PingFangSC, PingFang SC;
  664. font-weight: 400;
  665. font-size: 28rpx;
  666. color: #333333;
  667. line-height: 40rpx;
  668. text-align: right;
  669. font-style: normal;
  670. overflow: hidden;
  671. width: 220rpx;
  672. white-space: nowrap;
  673. text-overflow: ellipsis;
  674. text-align: center;
  675. word-break: break-all;
  676. }
  677. .wei {
  678. font-family: JDZhengHT, JDZhengHT;
  679. font-weight: 400;
  680. font-size: 32rpx;
  681. color: #F83224;
  682. line-height: 40rpx;
  683. text-align: right;
  684. font-style: normal;
  685. margin-top: 8rpx;
  686. }
  687. .active {
  688. width: 218rpx;
  689. height: 148rpx;
  690. background: rgba(247, 50, 36, 0.05);
  691. border-radius: 8rpx;
  692. border: 1rpx solid #F83224;
  693. }
  694. .unactive {
  695. width: 218rpx;
  696. height: 148rpx;
  697. border-radius: 12rpx;
  698. border: 1rpx solid #C3C3C3;
  699. }
  700. .poptitle {
  701. width: 142rpx;
  702. height: 50rpx;
  703. font-family: PingFangSC, PingFang SC;
  704. font-weight: 600;
  705. font-size: 36rpx;
  706. color: #333333;
  707. text-align: center;
  708. width: 100%;
  709. }
  710. .back {
  711. background: rgba(244, 244, 244, 1);
  712. padding: 20rpx 24rpx;
  713. box-sizing: border-box;
  714. .btn {
  715. width: 750rpx;
  716. height: 166rpx;
  717. background: #FFFFFF;
  718. box-shadow: 0rpx -1rpx 0rpx 0rpx rgba(0, 0, 0, 0.05);
  719. position: fixed;
  720. bottom: 0;
  721. left: 0;
  722. padding: 0 24rpx 5rpx 5rpx;
  723. box-sizing: border-box;
  724. .money {
  725. font-family: HarmonyOS_Sans_Medium;
  726. font-size: 48rpx;
  727. color: #F83224;
  728. line-height: 38rpx;
  729. text-align: left;
  730. font-style: normal;
  731. // font-weight: 500;
  732. font-weight: bold;
  733. }
  734. .kg {
  735. font-family: PingFangSC, PingFang SC;
  736. font-weight: 400;
  737. font-size: 24rpx;
  738. color: #333333;
  739. line-height: 34rpx;
  740. text-align: left;
  741. font-style: normal;
  742. }
  743. .order {
  744. width: 232rpx;
  745. height: 80rpx;
  746. background: #F83224;
  747. border-radius: 40rpx;
  748. font-family: PingFangTC, PingFangTC;
  749. font-weight: 500;
  750. font-size: 32rpx;
  751. color: #FFFFFF;
  752. line-height: 80rpx;
  753. text-align: center;
  754. font-style: normal;
  755. margin-left: 20rpx;
  756. }
  757. }
  758. //商品相关
  759. .abount {
  760. padding: 28rpx 24rpx;
  761. box-sizing: border-box;
  762. background: #FFFFFF;
  763. border-radius: 16rpx;
  764. width: 702rpx;
  765. .zong {
  766. width: 654rpx;
  767. padding: 22rpx 0 0 0;
  768. border-top: 2rpx solid rgba(151, 151, 151, 0.1);
  769. margin-top: 32rpx;
  770. .small {
  771. font-family: PingFangTC, PingFangTC;
  772. font-weight: 400;
  773. font-size: 24rpx;
  774. color: #444444;
  775. line-height: 34rpx;
  776. text-align: left;
  777. font-style: normal;
  778. }
  779. .mon {
  780. font-family: HarmonyOS_Sans_Medium;
  781. font-size: 28rpx;
  782. color: #F83224;
  783. line-height: 38rpx;
  784. text-align: left;
  785. font-style: normal;
  786. margin-left: 12rpx;
  787. font-weight: bold;
  788. }
  789. }
  790. .back {
  791. background: rgba(244, 244, 244, 1);
  792. padding: 22rpx 16rpx;
  793. box-sizing: border-box;
  794. margin-top: 10rpx;
  795. // margin-bottom: 20rpx;
  796. }
  797. .name {
  798. font-family: PingFangSC, PingFang SC;
  799. font-weight: 400;
  800. font-size: 28rpx;
  801. color: #333333;
  802. line-height: 40rpx;
  803. text-align: left;
  804. font-style: normal;
  805. }
  806. .money {
  807. font-family: HarmonyOS_Sans_Medium;
  808. font-size: 28rpx;
  809. color: #222222;
  810. line-height: 38rpx;
  811. text-align: left;
  812. font-style: normal;
  813. font-weight: 600;
  814. }
  815. }
  816. .recommend {
  817. margin-top: 20rpx;
  818. .title {
  819. font-family: PingFangSC, PingFang SC;
  820. font-weight: 400;
  821. font-size: 22rpx;
  822. color: #222222;
  823. line-height: 32rpx;
  824. text-align: left;
  825. font-style: normal;
  826. width: 148rpx;
  827. height: 64rpx;
  828. overflow: hidden;
  829. text-overflow: ellipsis;
  830. -webkit-line-clamp: 2;
  831. display: -webkit-box;
  832. -webkit-box-orient: vertical;
  833. word-break: break-all;
  834. }
  835. .top {
  836. width: 702rpx;
  837. height: 64rpx;
  838. background: linear-gradient(180deg, #FFE7E3 0%, rgba(255, 255, 255, 1) 100%);
  839. border-radius: 16rpx 16rpx 0 0;
  840. padding: 24rpx 22rpx;
  841. box-sizing: border-box;
  842. }
  843. .bottom {
  844. padding: 0 20rpx 22rpx;
  845. box-sizing: border-box;
  846. background: #fff;
  847. }
  848. }
  849. //物流
  850. .logistics {
  851. width: 702rpx;
  852. // height: 96rpx;
  853. background: #FFFFFF;
  854. border-radius: 16rpx;
  855. padding: 28rpx 22rpx;
  856. box-sizing: border-box;
  857. margin-top: 20rpx;
  858. .change {
  859. font-family: PingFangSC, PingFang SC;
  860. font-weight: 400;
  861. font-size: 28rpx;
  862. color: #F83224;
  863. line-height: 40rpx;
  864. text-align: left;
  865. font-style: normal;
  866. margin-right: 8rpx;
  867. }
  868. }
  869. //商城
  870. .shop {
  871. width: 702rpx;
  872. // height: 322rpx;
  873. background: #FFFFFF;
  874. border-radius: 16rpx;
  875. padding: 30rpx 24rpx;
  876. margin-top: 20rpx;
  877. box-sizing: border-box;
  878. .bu {
  879. width: 120rpx;
  880. height: 40rpx;
  881. border-radius: 20rpx;
  882. border: 1rpx solid rgba(151, 151, 151, 0.3);
  883. }
  884. .money {
  885. font-family: HarmonyOS_Sans_Medium;
  886. font-size: 24rpx;
  887. color: #F83224;
  888. line-height: 34rpx;
  889. text-align: left;
  890. font-style: normal;
  891. font-weight: 600;
  892. }
  893. .name {
  894. font-family: PingFangSC, PingFang SC;
  895. font-weight: 400;
  896. font-size: 30rpx;
  897. color: #222222;
  898. line-height: 42rpx;
  899. text-align: left;
  900. font-style: normal;
  901. margin-left: 10rpx;
  902. }
  903. .weight {
  904. font-family: PingFangSC, PingFang SC;
  905. font-weight: 400;
  906. font-size: 24rpx;
  907. color: rgba(34, 34, 34, 0.6);
  908. line-height: 34rpx;
  909. text-align: left;
  910. font-style: normal;
  911. margin-top: 16rpx;
  912. }
  913. }
  914. // 地址
  915. .address {
  916. width: 702rpx;
  917. // height: 182rpx;
  918. background: #FFFFFF;
  919. border-radius: 16rpx;
  920. padding: 32rpx 24rpx;
  921. box-sizing: border-box;
  922. .add {
  923. font-family: SFPro, SFPro;
  924. font-weight: 500;
  925. font-size: 32rpx;
  926. color: #222222;
  927. line-height: 36rpx;
  928. text-align: left;
  929. font-style: normal;
  930. }
  931. .info {
  932. font-family: SFPro, SFPro;
  933. font-weight: 400;
  934. font-size: 24rpx;
  935. color: #555555;
  936. line-height: 28rpx;
  937. text-align: left;
  938. font-style: normal;
  939. margin-top: 20rpx;
  940. }
  941. }
  942. }
  943. .minus {
  944. width: 22px;
  945. height: 22px;
  946. border-width: 1px;
  947. border-color: #E6E6E6;
  948. border-style: solid;
  949. border-top-left-radius: 100px;
  950. border-top-right-radius: 100px;
  951. border-bottom-left-radius: 100px;
  952. border-bottom-right-radius: 100px;
  953. @include flex;
  954. justify-content: center;
  955. align-items: center;
  956. }
  957. .input {
  958. padding: 0 10px;
  959. }
  960. .plus {
  961. width: 22px;
  962. height: 22px;
  963. background-color: #FF0000;
  964. border-radius: 50%;
  965. /* #ifndef APP-NVUE */
  966. display: flex;
  967. /* #endif */
  968. justify-content: center;
  969. align-items: center;
  970. }
  971. </style>